/* ═══════════════════════════════════════════
   NandinoAI – Landing Page v4
   Creme + Sage Green + Plant/Growth Theme
   ═══════════════════════════════════════════ */

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

:root {
  --bg: #f5f3ef;
  --bg-warm: #edeae4;
  --surface: rgba(255,255,255,.55);
  --surface-solid: #ffffff;
  --text: #1a1a1a;
  --body: #4a4a4f;
  --muted: #8a8a92;
  --light: #b5b5bc;
  --sage: #6b9e84;
  --sage-light: #7da894;
  --sage-soft: #a7c7b7;
  --sage-bg: rgba(107,158,132,.06);
  --sage-border: rgba(107,158,132,.12);
  --sage-glow: 0 0 50px rgba(107,158,132,.1);
  --border: rgba(0,0,0,.06);
  --border-light: rgba(0,0,0,.04);
  --shadow: 0 1px 4px rgba(26,20,8,.04), 0 6px 20px rgba(26,20,8,.04);
  --shadow-lg: 0 8px 36px rgba(26,20,8,.08);
  --glass: rgba(255,255,255,.5);
  --glass-border: rgba(255,255,255,.7);
  --glass-hover: rgba(255,255,255,.7);
  --blur: blur(16px) saturate(160%);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: .3s cubic-bezier(.22,1,.36,1);
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 0 }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain removed — caused flickering on some GPUs */

/* Skip to content */
.skip-link { position:absolute; top:-100%; left:16px; padding:8px 16px; background:var(--sage); color:#fff; border-radius:0 0 8px 8px; font-size:.85rem; font-weight:600; z-index:200; text-decoration:none; transition:top .2s }
.skip-link:focus { top:0 }

/* Focus ring */
:focus-visible { outline:2px solid var(--sage); outline-offset:3px; border-radius:4px }

::selection { background: rgba(107,158,132,.15); color: var(--text) }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 40px }


/* ═══════════════════════════════════════
   AMBIENT GLOW — soft sage blobs
   ═══════════════════════════════════════ */
.ambient-glow {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.ambient-glow .blob {
  position: absolute; border-radius: 50%; filter: blur(130px); opacity: .3;
}
.blob-1 { width: 600px; height: 600px; top: 10%; right: -5%; background: rgba(107,158,132,.12); will-change: transform; animation: bFloat1 25s ease-in-out infinite }
.blob-2 { width: 500px; height: 500px; top: 50%; left: -8%; background: rgba(167,199,183,.1); will-change: transform; animation: bFloat2 30s ease-in-out infinite }
.blob-3 { width: 400px; height: 400px; bottom: 5%; right: 15%; background: rgba(107,158,132,.08); will-change: transform; animation: bFloat3 22s ease-in-out infinite }

@keyframes bFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-35px,25px)} }
@keyframes bFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(25px,-20px)} }
@keyframes bFloat3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,-30px)} }


/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(245,243,239,.7);
  border-bottom: 1px solid var(--border-light);
  transition: all .4s ease;
}
nav.scrolled {
  background: rgba(245,243,239,.88);
  box-shadow: 0 1px 16px rgba(0,0,0,.04);
}
nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 68px }

.logo { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0 }
.logo span { color: var(--sage) }
.logo svg { flex-shrink: 0; margin-right: 10px; position: relative; top: -2px }

.nav-r { display: flex; gap: 32px; align-items: center }
.nav-r a { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 500; transition: color var(--transition); position: relative }
.nav-r a:not(.nav-cta):hover { color: var(--text) }
.nav-r a:not(.nav-cta)::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:1.5px; background:var(--sage); transition:width var(--transition) }
.nav-r a:not(.nav-cta):hover::after { width: 100% }
.nav-cta { background: var(--text); color: #fff !important; padding: 9px 22px; border-radius: 10px; font-weight: 600; transition: all var(--transition) }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.1) }

.menu-toggle { display:none; background:none; border:none; cursor:pointer; width:32px; height:32px; z-index:101 }
.menu-toggle span { display:block; width:20px; height:2px; background:var(--text); margin:5px auto; transition:all var(--transition); border-radius:2px }
.menu-toggle.active span:nth-child(1){transform:rotate(45deg) translateY(7px)}
.menu-toggle.active span:nth-child(2){opacity:0}
.menu-toggle.active span:nth-child(3){transform:rotate(-45deg) translateY(-7px)}


/* ═══════════════════════════════════════
   HERO — Light with growing plant animation
   ═══════════════════════════════════════ */
.hero {
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background-image:
    radial-gradient(ellipse 55% 60% at 5% 25%, rgba(107,158,132,.35) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 92% 10%, rgba(167,199,183,.28) 0%, transparent 60%);
}

.hero-inner { max-width: 620px; position: relative; z-index: 2 }

/* Growing plant SVG decoration */
.hero-plant {
  position: absolute;
  right: -20px; bottom: -40px;
  width: 420px; height: 520px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.hero-plant .plant-deco { opacity: .25 }
.hero-plant .stem {
  stroke: var(--sage);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawStem 1.5s ease forwards .8s;
}
.hero-plant .leaf-shape {
  fill: var(--sage);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 0% 50%;
}
.hero-plant .leaf-1  { animation: growLeaf .6s cubic-bezier(.22,1,.36,1) forwards 1.4s, breathe 3.8s ease-in-out infinite 2.2s }
.hero-plant .leaf-2  { animation: growLeaf .6s cubic-bezier(.22,1,.36,1) forwards 1.6s, breathe 4.2s ease-in-out infinite 2.4s }
.hero-plant .leaf-3  { animation: growLeaf .6s cubic-bezier(.22,1,.36,1) forwards 1.8s, breathe 3.5s ease-in-out infinite 2.6s }
.hero-plant .leaf-4  { animation: growLeaf .6s cubic-bezier(.22,1,.36,1) forwards 2.0s, breathe 4.5s ease-in-out infinite 2.8s }
.hero-plant .leaf-5  { animation: growLeaf .6s cubic-bezier(.22,1,.36,1) forwards 2.2s, breathe 3.9s ease-in-out infinite 3.0s }
.hero-plant .leaf-6  { animation: growLeaf .6s cubic-bezier(.22,1,.36,1) forwards 2.4s, breathe 4.1s ease-in-out infinite 3.2s }
.hero-plant .leaf-7  { animation: growLeaf .6s cubic-bezier(.22,1,.36,1) forwards 2.6s, breathe 3.7s ease-in-out infinite 3.4s }
.hero-plant .leaf-8  { animation: growLeaf .6s cubic-bezier(.22,1,.36,1) forwards 2.8s, breathe 4.3s ease-in-out infinite 3.6s }
.hero-plant .leaf-9  { animation: growLeaf .6s cubic-bezier(.22,1,.36,1) forwards 3.0s, breathe 3.6s ease-in-out infinite 3.8s }
.hero-plant .leaf-10 { animation: growLeaf .6s cubic-bezier(.22,1,.36,1) forwards 3.2s, breathe 4.0s ease-in-out infinite 4.0s }

@keyframes drawStem {
  to { stroke-dashoffset: 0 }
}
@keyframes growLeaf {
  0%   { opacity: 0;   transform: scale(0) rotate(-20deg);  filter: drop-shadow(0 0 0px rgba(107,158,132,0)) }
  45%  { opacity: .8;  transform: scale(1.2) rotate(8deg);  filter: drop-shadow(0 0 12px rgba(107,158,132,.6)) }
  75%  { opacity: .55; transform: scale(.97) rotate(-2deg); filter: drop-shadow(0 0 4px rgba(107,158,132,.2)) }
  100% { opacity: .5;  transform: scale(1) rotate(0deg);    filter: drop-shadow(0 0 0px rgba(107,158,132,0)) }
}
@keyframes breathe {
  0%,100% { opacity: .5;  transform: scale(1) translateY(0);       filter: drop-shadow(0 0 2px rgba(107,158,132,.1)) }
  50%     { opacity: .58; transform: scale(1.05) translateY(-4px);  filter: drop-shadow(0 0 6px rgba(107,158,132,.22)) }
}

.overline {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage); font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.overline svg { flex-shrink: 0 }

h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600; letter-spacing: -.02em; line-height: 1.1;
  color: var(--text); margin-bottom: 24px; text-wrap: balance;
}
h1 em, h1 em .word {
  font-style: italic; color: var(--sage);
}

.hero h1 .word {
  display: inline-block; opacity: 0; transform: translateY(18px);
  animation: fadeUp .6s ease forwards;
}
@media(max-width:600px){
  .hero h1 .word {
    opacity: 1; transform: none; animation: none;
  }
}
.overline {
  opacity: 0; transform: translateY(10px);
  animation: fadeUp .7s ease forwards .3s;
}

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

.hero-sub {
  font-size: 1.05rem; color: var(--muted); line-height: 1.75;
  margin-bottom: 40px; max-width: 520px;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp .7s ease forwards .8s;
}

.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp .7s ease forwards 1s;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  background: var(--text); color: #fff;
  border: none; cursor: pointer; font-family: inherit;
  transition: all var(--transition); position: relative;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg) }
.btn-primary:active { transform: translateY(0) scale(0.98) }

.btn-sec {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: 12px;
  font-weight: 500; font-size: .95rem; text-decoration: none;
  color: var(--text); border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.btn-sec:hover { border-color: var(--text); transform: translateY(-2px) }
.btn-sec:active { transform: translateY(0) scale(0.98) }


/* ═══════════════════════════════════════
   TRUST TICKER
   ═══════════════════════════════════════ */
.ticker {
  padding: 28px 0; overflow: hidden;
  background: rgba(255,255,255,.4); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative; z-index: 1;
}
.ticker-track { display:flex; gap:56px; animation:tickX 30s linear infinite; width:max-content; will-change:transform }
.ticker-item { font-size:.82rem; font-weight:600; color:var(--light); white-space:nowrap; display:flex; align-items:center; gap:10px; letter-spacing:.02em }
.ticker-item .d { width:5px; height:5px; border-radius:50%; background:var(--sage); opacity:.35 }
@keyframes tickX { to{transform:translateX(-50%)} }


/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
section { padding: 120px 0; position: relative; z-index: 1 }
.slabel { font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color:var(--sage); font-weight:600; margin-bottom:12px; display:flex; align-items:center; gap:6px }
h2 { font-family:'Newsreader',Georgia,serif; font-size:clamp(1.8rem,3.5vw,2.6rem); font-weight:600; letter-spacing:-.015em; color:var(--text); margin-bottom:14px; text-wrap:balance }
.ssub { color:var(--muted); max-width:480px; margin-bottom:56px; font-size:.93rem; line-height:1.6 }


/* ═══════════════════════════════════════
   ABOUT — Glass with sage accents
   ═══════════════════════════════════════ */
.about-section { position: relative; z-index: 1 }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 48px;
  row-gap: 20px;
  align-items: stretch;
}
.about-text { grid-column: 1; grid-row: 1 }
.about-photo {
  grid-column: 2; grid-row: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 0;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  display: block;
}
.credential-list {
  grid-column: 1 / -1; grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.about-text {
  padding: 36px; border-radius: var(--radius-lg);
  background: var(--glass); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.5);
}
.about-text p { margin-bottom:18px; font-size:.93rem; line-height:1.75 }
.about-text p:last-of-type { margin-bottom:0 }
.about-text strong { color:var(--text); font-weight:600 }

.credential {
  display:flex; gap:14px; align-items:center;
  padding:14px 18px; border-radius:var(--radius);
  background: var(--glass); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.5);
  transition: all .4s cubic-bezier(.22,1,.36,1);
}
.credential:hover {
  transform: translateX(4px) translateY(-2px);
  background: var(--glass-hover);
  box-shadow: var(--shadow-lg), var(--sage-glow);
}

.cred-icon {
  width:36px; height:36px; border-radius:10px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(61,90,71,.09); color: var(--forest);
}
.cred-icon svg { width: 26px; height: 26px; }
.cred-label { font-size:.85rem; font-weight:600; color:var(--text) }
.cred-detail { font-size:.76rem; color:var(--muted); margin-top:2px }


/* ═══════════════════════════════════════
   APPROACH — Glass Step Cards
   ═══════════════════════════════════════ */
.steps-row { display:grid; grid-template-columns:repeat(3,1fr); gap:24px }
.step-card {
  padding:40px 30px; border-radius:var(--radius-lg);
  background:var(--glass); backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border:1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.5);
  position:relative; overflow:hidden;
  transition: all .5s cubic-bezier(.22,1,.36,1);
}
.step-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--sage); opacity:0; transition:opacity .4s }
.step-card:hover {
  transform:translateY(-8px);
  background:var(--glass-hover);
  box-shadow: var(--shadow-lg), var(--sage-glow);
}
.step-card:hover::before { opacity:1 }
.step-num { font-family:'Newsreader',Georgia,serif; font-size:4rem; font-weight:600; color:var(--sage); opacity:.1; line-height:1; position:absolute; top:16px; right:20px; font-variant-numeric:tabular-nums }
.step-card h3 { font-size:1.15rem; font-weight:700; color:var(--text); margin-bottom:10px }
.step-card p { font-size:.87rem; color:var(--body); line-height:1.65 }
.step-tag {
  display:inline-block; margin-top:18px; padding:5px 14px;
  border-radius:8px; font-size:.7rem; font-weight:600;
  background:var(--sage-bg); color:var(--sage);
  border: 1px solid var(--sage-border);
}


/* ═══════════════════════════════════════
   USE CASES — Scroll Cards
   ═══════════════════════════════════════ */
.cases-section { overflow:hidden }
.cases-wrap { padding: 0 32px }
.cases-scroll { display:flex; gap:18px; overflow-x:auto; padding-bottom:16px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none }
.cases-scroll::-webkit-scrollbar { display:none }
.case-card {
  min-width:290px; max-width:310px; flex-shrink:0; scroll-snap-align:start;
  padding:22px 72px 30px 26px; border-radius:18px;
  position: relative;
  background:var(--glass); backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border:1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.5);
  transition: all .4s cubic-bezier(.22,1,.36,1);
}
.case-card:hover { transform:translateY(-6px); background:var(--glass-hover); box-shadow:var(--shadow-lg) }
.case-tag { font-size:.65rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--sage); margin-bottom:12px }
.case-card h4 { font-size:.97rem; font-weight:700; color:var(--text); margin-bottom:8px }
.case-card p { font-size:.82rem; color:var(--muted); line-height:1.6 }


/* ═══════════════════════════════════════
   STATS — Sage numbers
   ═══════════════════════════════════════ */
.stats-bar { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:24px }
.stat-box {
  text-align:center; padding:34px 20px; border-radius:18px;
  background:var(--glass); backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border:1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.5);
  transition: all .4s cubic-bezier(.22,1,.36,1);
}
.stat-box:hover { transform:translateY(-4px); background:var(--glass-hover); box-shadow:var(--shadow-lg) }
.stat-num { font-family:'Newsreader',Georgia,serif; font-size:2.2rem; font-weight:600; color:var(--sage); font-variant-numeric:tabular-nums }
.stat-lbl { font-size:.78rem; color:var(--muted); margin-top:6px }


/* ═══════════════════════════════════════
   GROWTH DIVIDER — growing trees
   ═══════════════════════════════════════ */
.growth-divider {
  padding: 20px 40px 0;
  max-width: 1100px;
  margin: -40px auto 0;
  position: relative;
  z-index: 1;
}
.growth-divider svg { width: 100%; height: auto; display: block }

/* All vine strokes draw in */
.vine {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  opacity: .3;
}
@keyframes drawVine { to { stroke-dashoffset: 0 } }

/* Tree leaves grow in */
.tree-leaf {
  opacity: 0;
  transform-origin: center;
}
@keyframes growCrown {
  0% { opacity: 0; transform: scale(0) }
  60% { opacity: .2; transform: scale(1.15) }
  100% { opacity: .15; transform: scale(1) }
}

/* Ground + arrow */
.growth-divider.vis .vine-ground { animation: drawVine .8s ease forwards }
.growth-divider.vis .vine-arrow { animation: drawVine 1s ease forwards 2s }
.growth-divider.vis .vine-arrowhead { animation: drawVine .3s ease forwards 2.6s }

/* Tree 1 — sapling */
.growth-divider.vis .tree-1 .vine-trunk { animation: drawVine .5s ease forwards .2s }
.growth-divider.vis .tree-1 .vine-b1 { animation: drawVine .3s ease forwards .5s }
.growth-divider.vis .tree-1 .vine-b2 { animation: drawVine .3s ease forwards .6s }
.growth-divider.vis .tree-1 .tl-1a { animation: growCrown .4s ease forwards .6s }
.growth-divider.vis .tree-1 .tl-1b { animation: growCrown .4s ease forwards .7s }
.growth-divider.vis .tree-1 .tl-1c { animation: growCrown .4s ease forwards .75s }

/* Tree 2 — medium */
.growth-divider.vis .tree-2 .vine-trunk { animation: drawVine .6s ease forwards .6s }
.growth-divider.vis .tree-2 .vine-b1 { animation: drawVine .35s ease forwards .9s }
.growth-divider.vis .tree-2 .vine-b2 { animation: drawVine .35s ease forwards 1s }
.growth-divider.vis .tree-2 .vine-b3 { animation: drawVine .3s ease forwards 1.1s }
.growth-divider.vis .tree-2 .tl-2a { animation: growCrown .4s ease forwards 1s }
.growth-divider.vis .tree-2 .tl-2b { animation: growCrown .4s ease forwards 1.05s }
.growth-divider.vis .tree-2 .tl-2c { animation: growCrown .4s ease forwards 1.1s }
.growth-divider.vis .tree-2 .tl-2d { animation: growCrown .4s ease forwards 1.15s }
.growth-divider.vis .tree-2 .tl-2e { animation: growCrown .4s ease forwards 1.2s }

/* Tree 3 — large */
.growth-divider.vis .tree-3 .vine-trunk { animation: drawVine .7s ease forwards 1s }
.growth-divider.vis .tree-3 .vine-b1 { animation: drawVine .35s ease forwards 1.3s }
.growth-divider.vis .tree-3 .vine-b2 { animation: drawVine .35s ease forwards 1.4s }
.growth-divider.vis .tree-3 .vine-b3 { animation: drawVine .3s ease forwards 1.5s }
.growth-divider.vis .tree-3 .vine-b4 { animation: drawVine .3s ease forwards 1.55s }
.growth-divider.vis .tree-3 .tl-3a { animation: growCrown .4s ease forwards 1.4s }
.growth-divider.vis .tree-3 .tl-3b { animation: growCrown .4s ease forwards 1.45s }
.growth-divider.vis .tree-3 .tl-3c { animation: growCrown .4s ease forwards 1.5s }
.growth-divider.vis .tree-3 .tl-3d { animation: growCrown .4s ease forwards 1.55s }
.growth-divider.vis .tree-3 .tl-3e { animation: growCrown .4s ease forwards 1.6s }
.growth-divider.vis .tree-3 .tl-3f { animation: growCrown .4s ease forwards 1.65s }
.growth-divider.vis .tree-3 .tl-3g { animation: growCrown .4s ease forwards 1.7s }

/* Tree 4 — full grown */
.growth-divider.vis .tree-4 .vine-trunk { animation: drawVine .8s ease forwards 1.4s }
.growth-divider.vis .tree-4 .vine-b1 { animation: drawVine .35s ease forwards 1.8s }
.growth-divider.vis .tree-4 .vine-b2 { animation: drawVine .35s ease forwards 1.85s }
.growth-divider.vis .tree-4 .vine-b3 { animation: drawVine .3s ease forwards 1.9s }
.growth-divider.vis .tree-4 .vine-b4 { animation: drawVine .3s ease forwards 1.95s }
.growth-divider.vis .tree-4 .vine-b5 { animation: drawVine .3s ease forwards 2s }
.growth-divider.vis .tree-4 .tl-4a { animation: growCrown .5s ease forwards 1.9s }
.growth-divider.vis .tree-4 .tl-4b { animation: growCrown .4s ease forwards 1.95s }
.growth-divider.vis .tree-4 .tl-4c { animation: growCrown .4s ease forwards 2s }
.growth-divider.vis .tree-4 .tl-4d { animation: growCrown .4s ease forwards 2.05s }
.growth-divider.vis .tree-4 .tl-4e { animation: growCrown .4s ease forwards 2.1s }
.growth-divider.vis .tree-4 .tl-4f { animation: growCrown .4s ease forwards 2.15s }
.growth-divider.vis .tree-4 .tl-4g { animation: growCrown .4s ease forwards 2.2s }
.growth-divider.vis .tree-4 .tl-4h { animation: growCrown .4s ease forwards 2.25s }
.growth-divider.vis .tree-4 .tl-4i { animation: growCrown .4s ease forwards 2.3s }


/* ═══════════════════════════════════════
   CTA — Sage banner
   ═══════════════════════════════════════ */
.cta-box {
  padding:72px 56px; border-radius:28px; text-align:center;
  background:var(--sage); color:#fff;
  position:relative; overflow:hidden;
}
.cta-box::before {
  content:''; position:absolute; top:-30%; right:-10%;
  width:400px; height:400px;
  background:radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  pointer-events:none;
}
.cta-box::after {
  content:''; position:absolute; bottom:-20%; left:-5%;
  width:300px; height:300px;
  background:radial-gradient(circle, rgba(0,0,0,.08), transparent 70%);
  pointer-events:none;
}
.cta-box h2 { color:#fff; margin-bottom:14px; font-size:clamp(1.6rem,3vw,2.2rem) }
.cta-box p { color:rgba(255,255,255,.6); max-width:440px; margin:0 auto 36px; font-size:.93rem }

/* Decorative leaf in CTA */
.cta-leaf {
  position:absolute; top:20px; right:40px; opacity:.1; pointer-events:none;
}

.btn-white {
  display:inline-flex; align-items:center; gap:8px;
  padding:16px 40px; border-radius:12px;
  font-weight:600; font-size:.95rem; text-decoration:none;
  background:#fff; color:var(--sage);
  border:none; cursor:pointer; font-family:inherit;
  transition:all var(--transition); position:relative; z-index:1;
}
.btn-white:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,0,0,.12) }
.btn-white:active { transform:translateY(0) scale(0.98) }


/* ═══════════════════════════════════════
   CONTACT — Glass cards
   ═══════════════════════════════════════ */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:start }
.contact-form {
  display:flex; flex-direction:column; gap:16px;
  padding:36px; border-radius:var(--radius-lg);
  background:var(--glass); backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border:1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.5);
}
.fg label { display:block; font-size:.72rem; color:var(--muted); margin-bottom:6px; font-weight:500; letter-spacing:.04em; text-transform:uppercase }
.fg input,.fg textarea,.fg select {
  width:100%; padding:14px 18px; border-radius:12px;
  background:rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.6);
  color:var(--text); font-family:inherit; font-size:.88rem;
  transition:all var(--transition); outline:none;
}
.fg input:focus,.fg textarea:focus,.fg select:focus { border-color:var(--sage); box-shadow:0 0 0 4px var(--sage-bg) }
.fg textarea { resize:vertical; min-height:100px }
.fg select { cursor:pointer }

.cal-card {
  padding:40px; border-radius:var(--radius-lg);
  background:var(--glass); backdrop-filter:var(--blur);
  -webkit-backdrop-filter:var(--blur);
  border:1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.5);
  transition:all .4s;
}
.cal-card:hover { background:var(--glass-hover); box-shadow:var(--shadow-lg) }
.cal-card h3 { font-size:1.15rem; font-weight:700; color:var(--text); margin-bottom:8px }
.cal-card > p { color:var(--muted); font-size:.87rem; margin-bottom:28px }
.cal-btn {
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 30px; border-radius:12px;
  font-weight:600; font-size:.88rem; text-decoration:none;
  color:#fff; background:var(--sage); transition:all var(--transition);
}
.cal-btn:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(107,158,132,.25) }
.cal-btn:active { transform:translateY(0) scale(0.98) }
.cal-btn svg { flex-shrink:0 }
.mail-line { margin-top:32px; padding-top:28px; border-top:1px solid var(--border-light) }
.mail-line p { font-size:.76rem; color:var(--muted); margin-bottom:4px }
.mail-line a { color:var(--sage); text-decoration:none; font-size:.88rem; font-weight:500 }
.mail-line a:hover { text-decoration:underline }


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer { border-top:1px solid var(--border-light); padding:40px 0; text-align:center; font-size:.76rem; color:var(--muted); position:relative; z-index:1 }
footer a { color:var(--muted); text-decoration:none; transition:color var(--transition) }
footer a:hover { color:var(--text) }


/* ═══════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════ */
.rv { opacity:0; transform:translateY(28px); transition:all .8s cubic-bezier(.22,1,.36,1) }
.rv.vis { opacity:1; transform:translateY(0) }
.d1{transition-delay:.08s}.d2{transition-delay:.16s}.d3{transition-delay:.24s}
.d4{transition-delay:.32s}.d5{transition-delay:.4s}.d6{transition-delay:.48s}


/* ═══════════════════════════════════════
   LEGAL
   ═══════════════════════════════════════ */
.legal-page { padding:120px 0 80px; position:relative; z-index:1 }
.legal-page .wrap { padding:40px; border-radius:var(--radius-lg); background:var(--glass); backdrop-filter:var(--blur); border:1px solid var(--glass-border); box-shadow:var(--shadow) }
.legal-page h1 { font-size:2rem; margin-bottom:32px; color:var(--text) }
.legal-page h2 { font-size:1.3rem; margin-top:40px; margin-bottom:12px }
.legal-page h3 { font-size:1.05rem; margin-top:24px; margin-bottom:8px; color:var(--text) }
.legal-page p,.legal-page li { font-size:.9rem; line-height:1.7; margin-bottom:12px }
.legal-page ul { padding-left:20px }
.legal-page a { color:var(--sage); text-decoration:none }
.legal-page a:hover { text-decoration:underline }


/* ═══════════════════════════════════════
   NEURAL NETWORK – growth-divider trees
   ═══════════════════════════════════════ */
.neural-node { opacity: 0 }
.growth-divider.vis .nn-1 { animation: nodeAppear .6s ease forwards  .9s }
.growth-divider.vis .nn-2 { animation: nodeAppear .6s ease forwards 1.4s }
.growth-divider.vis .nn-3 { animation: nodeAppear .6s ease forwards 1.9s }
.growth-divider.vis .nn-4 { animation: nodeAppear .6s ease forwards 2.3s }
@keyframes nodeAppear { 0%{opacity:0} 60%{opacity:.75} 100%{opacity:.5} }
@keyframes nodePulse  { 0%,100%{opacity:.5} 50%{opacity:.12} }
.growth-divider.sway .neural-node { animation: nodePulse 2.5s ease-in-out infinite !important }

.synapse-node { opacity: 0 }
.growth-divider.vis .sn-1b1  { animation: synapseIn .4s ease forwards  .7s }
.growth-divider.vis .sn-1b2  { animation: synapseIn .4s ease forwards  .8s }
.growth-divider.vis .sn-2b1  { animation: synapseIn .4s ease forwards 1.2s }
.growth-divider.vis .sn-2b2  { animation: synapseIn .4s ease forwards 1.3s }
.growth-divider.vis .sn-2b3  { animation: synapseIn .4s ease forwards 1.35s }
.growth-divider.vis .sn-3b1  { animation: synapseIn .4s ease forwards 1.7s }
.growth-divider.vis .sn-3b2  { animation: synapseIn .4s ease forwards 1.8s }
.growth-divider.vis .sn-3b3  { animation: synapseIn .4s ease forwards 1.85s }
.growth-divider.vis .sn-3b4  { animation: synapseIn .4s ease forwards 1.9s }
.growth-divider.vis .sn-4b1  { animation: synapseIn .4s ease forwards 2.1s }
.growth-divider.vis .sn-4b2  { animation: synapseIn .4s ease forwards 2.15s }
.growth-divider.vis .sn-4b3  { animation: synapseIn .4s ease forwards 2.2s }
.growth-divider.vis .sn-4b4  { animation: synapseIn .4s ease forwards 2.25s }
@keyframes synapseIn { to { opacity: .38 } }
.growth-divider.sway .synapse-node { animation: nodePulse 3s ease-in-out infinite !important }

.neural-connect { opacity: 0 }
.neural-connect.nc-top { stroke: #6b9e84; stroke-width: .9; stroke-dasharray: 8 5 }
.growth-divider.vis .cn-1-2 { animation: connectAppear 1s ease forwards 1.1s }
.growth-divider.vis .cn-2-3 { animation: connectAppear 1s ease forwards 1.6s }
.growth-divider.vis .cn-3-4 { animation: connectAppear 1s ease forwards 2.1s }
@keyframes connectAppear { to { opacity: .22 } }
.neural-connect.nc-mid { stroke: #6b9e84; stroke-width: .7; stroke-dasharray: 5 7 }
.growth-divider.vis .cm-1-2 { animation: connectMid 1s ease forwards 1.5s }
.growth-divider.vis .cm-2-3 { animation: connectMid 1s ease forwards 2.0s }
.growth-divider.vis .cm-3-4 { animation: connectMid 1s ease forwards 2.4s }
@keyframes connectMid { to { opacity: .14 } }
.neural-connect.nc-hi { stroke: #6b9e84; stroke-width: .6; stroke-dasharray: 4 8 }
.growth-divider.vis .cu-2-3 { animation: connectHi 1s ease forwards 1.8s }
.growth-divider.vis .cu-3-4 { animation: connectHi 1s ease forwards 2.35s }
@keyframes connectHi { to { opacity: .10 } }

/* ═══════════════════════════════════════
   FAQ
   ═══════════════════════════════════════ */
.faq-section { padding: 96px 0 }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 2px }

.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-item:first-child { border-top: 1px solid var(--border-light) }

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--sage);
  flex-shrink: 0;
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg) }
.faq-item[open] summary { color: var(--sage) }

.faq-item p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 680px;
}

/* ═══════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════ */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
  .rv{opacity:1;transform:none}
  .hero h1 .word{opacity:1;transform:none}
  .overline,.hero-sub,.hero-btns{opacity:1;transform:none}
}


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media(max-width:900px){
  .wrap{padding:0 28px}
  .about-grid{grid-template-columns:1fr;column-gap:0;row-gap:20px;align-items:start}
  .about-photo{grid-column:1;grid-row:1;min-height:0;aspect-ratio:3/4;height:auto}
  .about-photo img{object-position:center 15%}
  .about-text{grid-column:1;grid-row:2}
  .credential-list{grid-column:1;grid-row:3;grid-template-columns:1fr}
  .steps-row{grid-template-columns:1fr}
  .stats-bar{grid-template-columns:1fr 1fr}
  .contact-grid{grid-template-columns:1fr;gap:24px}
  .cta-box{padding:48px 28px}
  section{padding:80px 0}
  .hero-plant{display:none}
  .growth-divider { padding: 20px 0 0 }
  .growth-divider svg { height: 220px; width: 100% }
}
@media(max-width:600px){
  /* Layout */
  .wrap{padding:0 18px}
  section{padding:56px 0}

  /* Scroll offset — section padding (56px) < nav height (68px) on mobile */
  html{scroll-padding-top:20px}

  /* Nav — safe area + bigger touch target */
  .nav{padding-top:env(safe-area-inset-top,0)}
  .menu-toggle{display:flex;flex-direction:column;justify-content:center;width:44px;height:44px}
  .nav-r{position:fixed;top:68px;left:0;right:0;background:rgba(245,243,239,.97);backdrop-filter:blur(12px);flex-direction:column;gap:0;padding:0;max-height:0;overflow:hidden;transition:max-height .4s ease,padding .4s ease;border-bottom:1px solid transparent}
  .nav-r.open{max-height:360px;padding:16px 0;border-bottom-color:var(--border-light)}
  .nav-r a{display:block!important;padding:14px 24px;font-size:1rem}
  .nav-r a::after{display:none}
  .nav-cta{margin:8px 24px;text-align:center;display:block}

  /* Hero */
  .hero{padding:100px 0 52px;min-height:100svh}
  h1{font-size:1.9rem;line-height:1.2;text-wrap:unset}
  .overline{font-size:.65rem;letter-spacing:.1em}
  .hero-sub{font-size:.9rem;margin-bottom:24px;line-height:1.65}
  .hero-btns{flex-direction:column;gap:10px}
  .hero-btns .btn-primary,.hero-btns .btn-sec{width:100%;justify-content:center;padding:15px 24px}

  /* Ticker */
  .ticker{padding:18px 0}
  .ticker-track{gap:22px}

  /* Section headings */
  h2{font-size:1.55rem}
  .ssub{font-size:.88rem;margin-bottom:32px}

  /* About */
  .about-grid{row-gap:16px}
  .about-text{padding:22px 18px}
  .about-text p{font-size:.88rem}
  .credential{padding:14px 16px;gap:12px}
  .cred-icon{width:36px;height:36px;border-radius:10px}
  .cred-label{font-size:.82rem}
  .cred-detail{font-size:.72rem}

  /* Step cards */
  .step-card{padding:26px 20px}
  .steps-grow .step-card{padding:20px 18px 18px}
  .steps-grow .step-card h3{font-size:1.1rem;padding-right:40px}
  .steps-grow .step-card p{font-size:.86rem}
  .step-num{font-size:2.8rem}
  .steps-grow .step-card .step-num{font-size:2rem}
  .step-card h3{font-size:1.05rem}
  .step-card p{font-size:.84rem}

  /* Use cases */
  .cases-wrap{padding:0}
  .cases-scroll{padding:0 18px 16px;scroll-padding-left:18px}
  .case-card{min-width:78vw;max-width:84vw}
  .case-card h4{font-size:.92rem}
  .case-card p{font-size:.8rem}

  /* Stats — 2x2 grid */
  .stats-bar{grid-template-columns:1fr 1fr;gap:10px}
  .stat-box{padding:22px 12px}
  .stat-num{font-size:1.7rem}
  .stat-lbl{font-size:.7rem}

  /* Trees */
  .growth-divider{padding:12px 0 0}
  .growth-divider svg{height:180px}

  /* CTA box */
  .cta-box{padding:36px 20px;text-align:center}
  .cta-box h2{font-size:1.45rem}
  .cta-box p{font-size:.87rem;margin-bottom:24px}
  .btn-white{width:100%;justify-content:center;padding:15px 24px}

  /* Contact */
  .contact-grid{gap:20px}
  .contact-form{padding:20px 18px;gap:12px}
  .fg input,.fg textarea,.fg select{padding:12px 14px;font-size:.85rem}
  .fg{margin-bottom:0}
  .cal-card{padding:24px 20px}
  .cal-card h3{font-size:1.05rem}
  .cal-card > p{margin-bottom:20px;font-size:.84rem}
  .cal-btn{width:100%;justify-content:center;padding:14px 20px}
  .mail-line{margin-top:20px;padding-top:16px}

  /* FAQ */
  .faq-section{padding:56px 0}
  .faq-item summary{font-size:.95rem;padding:16px 0}
  .faq-item p{font-size:.88rem}

  /* Footer */
  footer{padding:28px 0;font-size:.72rem}

  /* Case card icon */
  .case-ic{width:36px;height:36px;top:14px;right:14px}
  .case-card{padding-right:56px}
}

/* Ultra-small screens (iPhone SE, Galaxy A) */
@media(max-width:360px){
  .wrap{padding:0 14px}
  h1{font-size:1.65rem}
  h2{font-size:1.35rem}
  .hero{padding:88px 0 44px}
  .hero-sub{font-size:.85rem}
  .stat-num{font-size:1.5rem}
  .stat-lbl{font-size:.66rem}
  .stat-box{padding:18px 10px}
  .btn-primary,.btn-sec{font-size:.85rem;padding:13px 20px}
  .faq-item summary{font-size:.88rem}
}


/* ═══════════════════════════════════════
   v2 ENHANCEMENTS
   ═══════════════════════════════════════ */
:root {
  --forest: #3d5a47;
  --forest-soft: rgba(61,90,71,.08);
  --forest-border: rgba(61,90,71,.15);
}

/* Hero overline — dark forest green */
.hero .overline { color: var(--forest) }

/* FAQ — leaf toggle instead of + */
.faq-item summary::after {
  content: ''; width: 14px; height: 14px;
  background: radial-gradient(ellipse at 30% 30%, var(--sage) 0%, var(--forest) 80%);
  border-radius: 0 100% 0 100%;
  transform: rotate(-20deg);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(160deg) }

/* Ticker — tiny leaf dots */
.ticker-item .d {
  border-radius: 0 100% 0 100%;
  transform: rotate(-30deg);
  background: var(--forest);
  width: 6px; height: 6px;
}

/* CTA — forest gradient */
.cta-box { background: linear-gradient(135deg, var(--sage) 0%, var(--forest) 100%) }
.btn-white { color: var(--forest) }

/* Use case cards — icon top-right */
.case-ic {
  width: 46px; height: 46px;
  position: absolute; top: 18px; right: 18px;
  display: block; color: var(--forest); opacity: .8;
  transition: opacity .4s ease, transform .5s cubic-bezier(.22,1,.36,1);
  filter: drop-shadow(0 2px 6px rgba(61,90,71,.08));
}
.case-card:hover .case-ic { opacity: 1; transform: translateY(-2px) }
.case-card.case-soft { background: var(--forest-soft); border: 1px dashed var(--forest-border) }
.case-card.case-soft .case-tag { color: var(--forest) }
.case-card.case-soft .case-ic { color: var(--forest); opacity: .6 }

/* Steps grow — v2 card style */
.steps-grow .step-card {
  padding: 32px 30px 28px;
  display: flex; flex-direction: column;
}
.steps-grow .step-card .step-num {
  font-size: 3.6rem;
  color: var(--forest);
  opacity: .35;
  top: 20px; right: 24px;
}
.steps-grow .step-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.28rem; font-weight: 600;
  letter-spacing: -.01em; line-height: 1.3;
  margin-bottom: 12px;
  padding-right: 52px;
}
.steps-grow .step-card p { font-size: .9rem; line-height: 1.7; margin-bottom: 18px; flex: 1 }
.steps-grow .step-card .step-tag { align-self: flex-start; margin-top: auto }
.steps-grow .step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61,90,71,.2);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(61,90,71,.08);
}
.steps-grow .step-card::before { background: linear-gradient(90deg, var(--sage), var(--forest)) }

/* Bio brand — NandinoAI logo style */
.about-text .brand { font-weight: 700; color: var(--text) }
.about-text .brand-ai { color: var(--sage); font-weight: 700 }

/* Section accent sprig */
.section-accent {
  display: block; margin: 0 auto; width: 180px; height: 44px;
  opacity: 0; transform: translateY(6px);
  animation: accentIn 1.4s cubic-bezier(.22,1,.36,1) .2s forwards;
}
.section-accent.accent-sprig { width: 200px }
@keyframes accentIn { to { opacity: 1; transform: none } }


/* Mobile overrides — must come after v2 rules to win specificity */
@media(max-width:600px){
  .steps-grow .step-card .step-num { font-size: 2.4rem; top: 14px; right: 16px }
  .case-ic { top: 10px }
}
@media(min-width:601px){
  .step-card h3 br { display: none }
}


