:root {
  /* Modern Clinical Palette (Light Mode) */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  /* Very subtle cool grey */
  --color-text: #0F172A;
  /* Deep Slate */
  --color-text-muted: #64748B;

  /* Brand Colors */
  --color-primary: #10B981;
  /* Emerald 500 - Strong primary */
  --color-primary-light: #6EE7B7;
  /* Emerald 300 - The "Lighter Green" */
  --color-secondary: #064E3B;
  /* Deep Forest - For contrast/Text */
  --color-accent: #34D399;

  --gradient-brand: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

  --font-heading: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;

  --spacer-sm: 1rem;
  --spacer-md: 2rem;
  --spacer-lg: 4rem;
  --spacer-xl: 8rem;

  --radius-md: 16px;
  --radius-lg: 32px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.05),
    0 10px 10px -5px rgba(0, 0, 0, 0.01);
  /* Slick, layered shadow */
  --shadow-slick:
    0 35px 60px -15px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  /* Glassy edge */

  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px) rotateY(-8deg) rotateX(4deg);
  }

  50% {
    transform: translateY(-20px) rotateY(-8deg) rotateX(4deg);
  }

  100% {
    transform: translateY(0px) rotateY(-8deg) rotateX(4deg);
  }
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  /* Native smooth scroll */
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  /* Slightly bolder for light mode readability */
  line-height: 1.1;
  color: var(--color-text);
}

h1 {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -0.03em;
  color: var(--color-secondary);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: -0.02em;
}

p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.text-highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  font-weight: 600;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-pad {
  padding: var(--spacer-xl) 0;
}

/* Ambient Background - Subtle Light Mode Blobs */
.ambient-light {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(52, 211, 153, 0.05) 40%, transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  animation: breathe 12s ease-in-out infinite;
}

/* Scroll Reveal Base Class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--transition-smooth);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-secondary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.mobile-menu-btn {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
  background: var(--color-secondary);
  /* Dark green for sophistication */
  color: #fff;
  box-shadow: 0 10px 20px -5px rgba(6, 78, 59, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(6, 78, 59, 0.4);
  background: var(--color-primary);
  /* Pop to light green on hover */
}

.btn-outline {
  border: 2px solid rgba(15, 23, 42, 0.1);
  color: var(--color-text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-text);
  background: var(--color-text);
  color: #fff;
}

.btn-xl {
  padding: 1.2rem 2.5rem;
  font-size: 1.125rem;
}

/* Hero */
.hero {
  padding-top: 12rem;
  min-height: 95vh;
  position: relative;
  overflow: hidden;
}

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

.hero-sub {
  font-size: 1.35rem;
  margin: 2rem 0 3rem;
  max-width: 48ch;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-trust {
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-secondary);
}

/* Hero Visual Composition */
.hero-visual {
  position: relative;
  perspective: 2000px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -2rem;
  /* Pull up slightly */
}

.hero-composition {
  position: relative;
  width: 280px;
  /* Approximate phone width */
  height: 580px;
}

.hero-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 36px;
  border: 6px solid #fff;
  box-shadow:
    0 30px 60px -12px rgba(16, 185, 129, 0.25),
    0 18px 36px -18px rgba(0, 0, 0, 0.1);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Bouncy transition */
}

.hero-screen.main {
  z-index: 10;
  /* Front and Center */
  transform: rotateY(-12deg) rotateX(6deg) translateZ(20px);
  animation: float 6s ease-in-out infinite;
}

.hero-screen.secondary {
  z-index: 5;
  /* Tucked behind */
  transform: rotateY(-12deg) rotateX(6deg) translateZ(-40px) translate(50px, 40px);
  filter: brightness(0.95);
  animation: float 7s ease-in-out infinite reverse;
  /* Out of sync float */
}

/* Interactive Hover state */
.hero-visual:hover .hero-screen.main {
  transform: rotateY(-5deg) rotateX(2deg) translateZ(50px) scale(1.05);
  box-shadow: 0 50px 100px -20px rgba(16, 185, 129, 0.4);
}

.hero-visual:hover .hero-screen.secondary {
  transform: rotateY(-5deg) rotateX(2deg) translateZ(0px) translate(90px, 60px);
  filter: brightness(1);
}

.app-mockup-img {
  display: none;
  /* Hide old class if present */
}

/* Features */
.features {
  background: var(--color-bg-alt);
  position: relative;
}

/* Decorative shape */
.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, #fff 0%, transparent 100%);
}

/* Global Section Header */
.section-header {
  margin: 0 auto 4rem;
  max-width: 800px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  text-align: center;
  /* Center feature card content too as per request */
}

.feature-card {
  background: #fff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  /* Added to center icon */
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.icon-box {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
  /* Gentle rotation on hover */
  transition: transform 0.5s ease;
}

.feature-card:hover .icon-box {
  transform: rotate(10deg);
  background: var(--color-primary);
  color: #fff;
}

/* Spotlight - Export */
.spotlight {
  background: #fff;
  overflow: hidden;
}

.spotlight-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
  text-align: left;
  /* Keep left alignment for the side-by-side layout, or user will complain it looks weird. BUT user asked to "centerise all headings" */
}

/* Override for specifically the Heading if needed, but side-by-side usually wants left. 
   However, if the user explicitly wants "all headings and titles centered", let's make sure the SECTION headers are centered. 
   Spotlight is a specific feature block. Let's try to center the CONTENT of the spotlight for a "centered layout". 
*/
.spotlight-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spotlight-container {
  /* Switch to stacked centered layout if we want true centering? Or just center text in the grid? */
  /* Let's keep the grid but center the text within the left column */
  align-items: center;
}

/* ACTUALLY, to fully comply with "centerise everything", this section should probably be stacked or the text centered. */
.spotlight-content h2,
.spotlight-content p {
  text-align: center;
}

.check-list {
  text-align: left;
  /* Lists usually need left align to look readable */
  display: inline-block;
  /* Allows centering the block itself */
  margin: 0 auto;
}

.check-list li {
  margin-bottom: 1.2rem;
  padding-left: 2.5rem;
  position: relative;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
}

.spotlight-visual img {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}

/* How It Works */
.workflow {
  background: var(--color-bg-alt);
}

.steps-grid {
  gap: 3rem;
}

.step-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-item h3 {
  margin: 1rem 0;
  font-size: 1.5rem;
}

.step-num {
  font-size: 5rem;
  color: rgba(16, 185, 129, 0.1);
  font-weight: 800;
  position: relative;
  /* top: 0; left: 0; Removed to allow centering flow */
  margin-bottom: -2rem;
  display: block;
}

/* Pricing */
.pricing {
  background: #fff;
}

.price-card {
  padding: 3rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: 0.3s;
}

.price-card:hover {
  border-color: var(--color-primary-light);
}

.price-card.featured {
  background: #064E3B;
  /* Deep Green Highlight */
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.price-card.featured h3,
.price-card.featured p,
.price-card.featured .price {
  color: #fff;
}

.price-card.featured .price span {
  color: rgba(255, 255, 255, 0.6);
}

.price-card.featured .price-features li {
  opacity: 0.9;
}

.pricing-coming-soon {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--gradient-surface);
  box-shadow: var(--shadow-card);
}

.pricing-coming-soon h3 {
  margin: 1rem 0;
  font-family: var(--font-heading);
}

.pricing-coming-soon p {
  margin-bottom: 2rem;
}

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.25rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 1.5rem 0;
  color: var(--color-text);
  letter-spacing: -0.05em;
}

.badge {
  background: var(--color-primary-light);
  color: var(--color-secondary);
  padding: 6px 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  top: -16px;
}

/* Footer */
.footer {
  background: #F8FAFC;
  padding: 6rem 0 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--color-text-muted);
}

.footer h4 {
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-logo {
  color: var(--color-secondary);
}

/* Mobile */
@media (max-width: 768px) {

  .hero-container,
  .spotlight-container,
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero {
    padding-top: 8rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    font-size: 1.5rem;
  }

  .feature-grid {
    gap: 1.5rem;
  }
}

/* Enhancing Grid Items */
.screen-item img {
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth) !important;
}

.screen-item:hover img {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-slick) !important;
}
