/* ===== Inkholm Landing Page Styles ===== */

/* Design Tokens */
:root {
  /* Colors from DESIGN_SPEC */
  --paper-base: #e8dcca;
  --paper-aged: #d4c4a8;
  --ink-primary: #1A1A1A;
  --ink-faded: #5c4d42;
  --leather-cover: #8B5A2B;
  --leather-dark: #5C3D2E;
  --brass: #B8860B;
  --wax-seal: #8B0000;
  
  /* Derived colors */
  --paper-light: #f5f0e6;
  --leather-gradient: linear-gradient(145deg, #a06b35 0%, #8B5A2B 50%, #5C3D2E 100%);
  
  /* Typography */
  --font-handwriting: 'Patrick Hand', cursive;
  --font-display: 'Newsreader', serif;
  
  /* Spacing */
  --section-padding: 100px 20px;
  --container-max: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-handwriting);
  background: var(--paper-base);
  color: var(--ink-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-style: italic;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--leather-dark);
}

p {
  font-size: 1.25rem;
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 15px 0;
  background: rgba(232, 220, 202, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 61, 46, 0.1);
  transition: all 0.3s ease;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--leather-dark);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-faded);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--leather-dark);
}

.nav-cta {
  background: var(--wax-seal);
  color: white !important;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: bold;
}

.nav-cta:hover {
  background: #a01010;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-padding);
  padding-top: 150px;
  background: 
    radial-gradient(circle at 30% 20%, rgba(184, 134, 11, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(139, 90, 43, 0.08) 0%, transparent 40%),
    var(--paper-base);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(transparent 96%, rgba(60, 50, 40, 0.15) 96%);
  background-size: 100% 2rem;
  pointer-events: none;
  opacity: 0.5;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 1;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.hero h1 {
  color: var(--leather-dark);
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.4rem;
  color: var(--ink-faded);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--wax-seal);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 0, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--leather-dark);
  border: 2px solid var(--leather-cover);
}

.btn-secondary:hover {
  background: var(--leather-cover);
  color: white;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-preview {
  position: relative;
  width: 320px;
  height: 640px;
  background: var(--leather-gradient);
  border-radius: 40px;
  padding: 20px;
  box-shadow: 
    0 25px 80px rgba(92, 61, 46, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
}

.app-screen {
  width: 100%;
  height: 100%;
  background: var(--paper-base);
  border-radius: 24px;
  padding: 30px 20px;
  background-image: 
    linear-gradient(transparent 96%, rgba(60, 50, 40, 0.2) 96%);
  background-size: 100% 2rem;
  overflow: hidden;
}

.app-screen-header {
  text-align: center;
  color: var(--ink-faded);
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: 30px;
}

.app-screen-content {
  font-size: 1.1rem;
  line-height: 2rem;
}

.diary-text {
  font-weight: bold;
  margin-bottom: 1rem;
}

.user-text {
  color: var(--ink-faded);
}

/* Floating decorations */
.floating-quill {
  position: absolute;
  font-size: 3rem;
  animation: float 6s ease-in-out infinite;
  opacity: 0.6;
}

.floating-quill:nth-child(1) { top: 10%; right: -20px; animation-delay: 0s; }
.floating-quill:nth-child(2) { bottom: 20%; left: -30px; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== Features Section ===== */
.features {
  padding: var(--section-padding);
  background: var(--paper-light);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  color: var(--leather-dark);
}

.section-header p {
  color: var(--ink-faded);
  margin-top: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--paper-base);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(92, 61, 46, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(92, 61, 46, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--ink-faded);
  font-size: 1.1rem;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: var(--section-padding);
  background: var(--paper-base);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--leather-cover);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-family: var(--font-display);
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: var(--ink-faded);
}

/* ===== Pricing Section ===== */
.pricing {
  padding: var(--section-padding);
  background: 
    linear-gradient(180deg, var(--paper-light) 0%, var(--paper-base) 100%);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--paper-base);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  border: 2px solid rgba(92, 61, 46, 0.1);
  transition: all 0.3s ease;
}

.pricing-card.featured {
  background: var(--leather-gradient);
  color: white;
  transform: scale(1.05);
  border: none;
  box-shadow: 0 25px 80px rgba(92, 61, 46, 0.3);
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured p,
.pricing-card.featured li {
  color: white;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.price {
  font-size: 3rem;
  font-weight: bold;
  color: var(--leather-dark);
  margin: 20px 0;
}

.price span {
  font-size: 1rem;
  font-weight: normal;
  opacity: 0.8;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 30px 0;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(92, 61, 46, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--brass);
  font-weight: bold;
}

.pricing-card.featured .pricing-features li {
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured .pricing-features li::before {
  color: #ffd700;
}

.trial-note {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 10px;
}

/* ===== Testimonial Quote ===== */
.quote-section {
  padding: var(--section-padding);
  background: var(--leather-dark);
  color: var(--paper-base);
  text-align: center;
}

.quote {
  max-width: 800px;
  margin: 0 auto;
}

.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.6;
  margin-bottom: 20px;
}

.quote cite {
  font-family: var(--font-handwriting);
  font-size: 1.2rem;
  opacity: 0.8;
}

/* ===== CTA Section ===== */
.cta {
  padding: var(--section-padding);
  text-align: center;
  background: var(--paper-base);
}

.cta h2 {
  color: var(--leather-dark);
  margin-bottom: 20px;
}

.cta p {
  color: var(--ink-faded);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ===== Footer ===== */
footer {
  background: var(--leather-dark);
  color: var(--paper-aged);
  padding: 60px 20px 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 20px;
  color: var(--paper-base);
}

.footer-brand p {
  font-size: 1rem;
  opacity: 0.8;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: 20px;
  color: var(--paper-base);
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: var(--paper-aged);
  text-decoration: none;
  font-size: 1rem;
  display: block;
  padding: 8px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--brass);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(232, 220, 202, 0.1);
  font-size: 0.95rem;
  opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto 40px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .app-preview {
    width: 260px;
    height: 520px;
    transform: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .pricing-card.featured {
    transform: none;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content, .hero-visual {
  animation: fadeInUp 1s ease forwards;
}

.hero-visual {
  animation-delay: 0.3s;
}
