/* Design System Variables */
:root {
  --bg: #FAF8F5;
  --bg-card: #F5F2ED;
  --text-primary: #2C2825;
  --text-secondary: #8C8279;
  --text-muted: #B5AFA8;
  --accent: #C4956A;
  --accent-soft: #EDE0D4;
  --border: #E8E2DA;
  --white: #FFFFFF;
  --shadow: rgba(44, 40, 37, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Decorative Background Glows */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}
.glow-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(250, 248, 245, 0) 70%);
  opacity: 0.6;
}
.glow-2 {
  top: 50%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #fcd34d 0%, rgba(250, 248, 245, 0) 70%);
  opacity: 0.3;
}

/* Typography Presets */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  font-family: 'Outfit', sans-serif;
}
.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(196, 149, 106, 0.2);
}
.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(196, 149, 106, 0.3);
}
.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px border var(--border);
}
.btn-secondary:hover {
  background-color: var(--border);
  transform: translateY(-2px);
}
.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 16px;
}
.btn-full {
  width: 100%;
  padding: 12px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: sticky;
  top: 0;
  background-color: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-b: 1px solid var(--border);
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  gap: 12px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(196, 149, 106, 0.15);
}
.logo-icon {
  width: 20px;
  height: 20px;
}
.brand-name {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 24px;
  min-h: calc(100vh - 80px);
  gap: 48px;
}
.hero-content {
  flex: 1;
  max-width: 540px;
}
.badge {
  display: inline-block;
  background-color: var(--accent-soft);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-title {
  font-size: 54px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  gap: 8px;
}
.trust-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.hero-visual {
  flex: 1.1;
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Mockup Frame component */
.mockup-frame {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(44, 40, 37, 0.08);
  overflow: hidden;
  z-index: 2;
  position: relative;
}
.mockup-header {
  height: 38px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-r { background-color: #ff5f56; }
.dot-y { background-color: #ffbd2e; }
.dot-g { background-color: #27c93f; }
.mockup-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: monospace;
}
.mockup-body {
  display: flex;
  height: 280px;
}
.mockup-sidebar {
  width: 60px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
  gap: 12px;
}
.mockup-item {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: var(--border);
}
.mockup-item.active {
  background-color: var(--accent-soft);
}
.mockup-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.mockup-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mockup-journal-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.mockup-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.mockup-tags {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.mockup-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  padding: 4px 8px;
  border-radius: 4px;
}
.cursor-pulse {
  animation: pulse 1s infinite alternate;
  color: var(--accent);
  font-weight: bold;
}
@keyframes pulse {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Features Grid */
.features-section {
  padding: 80px 24px;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}
.section-title {
  font-size: 40px;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
  background-color: var(--white);
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(44, 40, 37, 0.04);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
}
.card-title {
  font-size: 20px;
  margin-bottom: 12px;
}
.card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Interactive Demo Widget */
.demo-section {
  padding: 80px 24px;
}
.demo-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
}
.demo-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-tab {
  background: transparent;
  border: none;
  display: flex;
  align-items: flex-start;
  padding: 16px 20px;
  text-align: left;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-tab:hover {
  background-color: rgba(250, 248, 245, 0.5);
}
.demo-tab.active {
  background-color: var(--white);
  box-shadow: 0 8px 24px rgba(44, 40, 37, 0.03);
}
.tab-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-right: 16px;
  margin-top: 2px;
}
.tab-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}
.tab-info p {
  font-size: 13px;
  color: var(--text-secondary);
}
.demo-screen {
  flex: 1.2;
  display: flex;
  justify-content: center;
}

/* Pricing Grid */
.pricing-section {
  padding: 80px 24px;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 840px;
  margin: 0 auto;
  gap: 32px;
  align-items: center;
}
.price-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transition: transform 0.3s;
}
.price-card:hover {
  transform: translateY(-4px);
}
.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 16px 32px rgba(196, 149, 106, 0.1);
}
.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.price-tier {
  font-size: 22px;
  margin-bottom: 8px;
}
.price-value {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
}
.price-term {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.price-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.price-features {
  list-style: none;
  margin-bottom: 36px;
}
.price-features li {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, #c4956a 0%, #e07a5f 100%);
  border-radius: 28px;
  padding: 60px;
  text-align: center;
  color: var(--white);
  margin-top: 60px;
  margin-bottom: 80px;
  box-shadow: 0 20px 40px rgba(196, 149, 106, 0.15);
}
.cta-title {
  font-size: 42px;
  margin-bottom: 16px;
  color: var(--white);
}
.cta-subtitle {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* Footer styling */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  gap: 24px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.footer-right a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-right a:hover {
  color: var(--text-primary);
}
.copyright {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    width: 100%;
    height: 380px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .demo-wrapper {
    flex-direction: column;
    padding: 32px;
  }
  .demo-controls {
    width: 100%;
  }
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 16px 24px;
    flex-direction: column;
    gap: 16px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }
  .hero-title {
    font-size: 38px;
  }
  .cta-banner {
    padding: 40px 20px;
  }
  .cta-title {
    font-size: 28px;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-right {
    align-items: center;
    margin-top: 24px;
  }
}
