@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:ital,wght@0,300;0,700;1,300;1,700&display=swap');

:root {
  --bg: #FDFDFD;
  --text-main: #0B0B0D;
  --text-sec: #5A5A62;
  --accent: #cf5454;
  --surface: #FFFFFF;
  --border: #F2E6E4;
  --header-bg: rgba(253, 253, 253, 0.85);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  --glass: rgba(255, 255, 255, 0.02);
  --nav-height: 72px;
  --glow: radial-gradient(circle at 50% 50%, rgba(207, 84, 84, 0.05) 0%, transparent 70%);
}

[data-theme="dark"] {
  --bg: #131315; /* Ink-like Charcoal */
  --bg-alt: #1c1b1e; /* Surface Container Low */
  --text-main: #FFFFFF; /* High-contrast Full White */
  --text-sec: #9CA3AF;
  --accent: #cf5454;
  --surface: #2a2a2c; /* Surface Container High */
  --border: rgba(255, 255, 255, 0.06);
  --header-bg: rgba(19, 19, 21, 0.8); /* Semi-transparent Glass */
  --card-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
  --glass: rgba(255, 255, 255, 0.03);
  --glow: radial-gradient(circle at 50% 50%, rgba(207, 84, 84, 0.15) 0%, transparent 65%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.4s ease;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Section Layering (No-Line Rule) */
.section-main { background-color: var(--bg); }
.section-alt { background-color: var(--bg-alt); }

/* Red Glow Utility */
.radial-glow {
  position: absolute;
  top: 50%; left: 50%; 
  transform: translate(-50%, -50%);
  width: 140%; height: 140%;
  background: var(--glow);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

/* Navbar */
nav {
  height: var(--nav-height);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px; /* Gap only between Icon and Text-Block */
  min-width: 0;
  text-decoration: none;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 4px; /* Precise gap between Brand and Subtitle */
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.logo-text .brand-name {
  color: var(--accent);
  font-weight: 700;
  font-style: normal;
}

.logo-text .subtitle {
  color: var(--text-main);
  font-weight: 300;
  font-style: italic;
  font-size: 0.85em;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-left: auto;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500; 
  color: var(--text-main); /* Full White */
  letter-spacing: 0.5px;
  opacity: 0.9; /* Slight dimming for hierarchy, can be removed if user wants 100% white */
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: #FFFFFF;
  opacity: 1;
}

.nav-btns {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white !important;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(207, 84, 84, 0.3);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 10px 25px rgba(207, 84, 84, 0.5);
}

.theme-toggle {
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent);
  transition: all 0.3s ease;
}

/* Sections */
section {
  padding: 120px 6%;
  position: relative;
}

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

/* Hero Section - Standard (for secondary pages) */
.hero {
  text-align: center;
  padding: 120px 6% 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero Section - Home (Full Screen Cover) */
.hero.home {
  min-height: 100vh;
  justify-content: center;
  padding-top: var(--nav-height);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  max-width: 1100px;
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-sec);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Image removed per user request */
.mockup-container {
  display: none;
}

/* Feature Section */
.features-header {
  text-align: center;
  margin-bottom: 90px;
}

.features-header h2 {
  font-size: 3.2rem;
  margin-bottom: 18px;
}

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

/* Glassmorphic Feature Card */
.feature-card {
  background: rgba(255, 255, 255, 0.03); /* Glass base */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 50px 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.4), 0 0 40px rgba(207, 84, 84, 0.1);
}

.icon-box {
  width: 56px;
  height: 56px;
  background: rgba(207, 84, 84, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 32px;
}

.feature-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-sec);
  line-height: 1.8;
}

/* Pricing Upgrade */
.pricing-banner {
  background: linear-gradient(135deg, var(--accent), #9b3d3d);
  padding: 100px 60px;
  border-radius: 32px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(207, 84, 84, 0.2);
}

.pricing-banner h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* Footer Base */
footer {
  padding: 100px 6%;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: center;
}

.footer-center .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 32px;
}

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

/* Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.desktop-only { display: inline; }
@media (max-width: 768px) {
  .desktop-only { display: none; }
}

@media (max-width: 1024px) {
  .footer-grid { 
    flex-direction: column; 
    text-align: center; 
    gap: 32px;
  }
  .footer-left, .footer-center, .footer-right {
    justify-content: center;
    flex: none;
    width: 100%;
  }
  .footer-left { order: 1; }
  .footer-right { order: 2; }
  .footer-center { order: 3; }
}

@media (max-width: 768px) {
  nav {
    padding: 12px;
    justify-content: space-between;
    flex-wrap: nowrap;
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  
  nav .logo img {
    height: 28px;
  }
  
  nav .logo {
    margin-bottom: 0;
    width: auto;
    max-width: calc(100% - 84px);
  }
  
  .nav-links { 
    position: absolute;
    top: calc(100% + 8px);
    left: 4%;
    right: 4%;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: auto;
    margin-bottom: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  
  .nav-links > a {
    font-size: 0.86rem;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav-links > a:hover,
  .nav-links > a.active {
    background: rgba(255, 255, 255, 0.06);
  }
  
  .nav-btns { 
    width: 100%; 
    justify-content: space-between; 
    gap: 10px;
    margin-top: 8px;
  }

  .nav-actions {
    margin-left: auto;
    gap: 8px;
    flex-shrink: 0;
  }

  .theme-toggle,
  .menu-toggle {
    width: 34px;
    height: 34px;
  }
  
  .nav-btns .btn-primary {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero { 
    padding-top: 110px;
    min-height: 100vh;
  }
  .hero h1 { font-size: 2.1rem; padding: 0 10px; line-height: 1.25; margin-bottom: 20px; }
  .hero p { font-size: 0.95rem; padding: 0 15px; margin-bottom: 35px; line-height: 1.6; }
  
  .hero-btns .btn-primary { 
    padding: 16px 40px !important; 
    font-size: 1.05rem !important;
  }
  
  section { padding: 60px 20px; }
  .feature-card { padding: 35px 25px; }
  .features-header h2 { font-size: 2.2rem; }
  
  .pricing-banner { padding: 60px 20px; }
  .pricing-banner h2 { font-size: 2rem; }
  
  .footer-center { gap: 10px; }
  .footer-left {
    margin-top: 0;
    font-size: 0.95rem;
  }
}
