/* ──────────────────────────────────────────────────────────────
   ATOMIK GROW — marketing site
   Modern-minimal (ref: udayreddy.in) · Inter · brand green accent
   ────────────────────────────────────────────────────────────── */

:root {
  --bg:          #ffffff;
  --bg-soft:     #f4f7f5;
  --bg-soft2:    #eef2ef;
  --surface:     #ffffff;
  --border:      #e6e8e5;
  --border-2:    #d6d9d5;
  --text:        #0a0a0a;
  --text-2:      #3f4248;
  --muted:       #5f6367;          /* darkened for WCAG AA on #fff and #f4f7f5 */
  --accent:      #2d9c73;          /* brand green — large text / decorative only */
  --accent-deep: #1f7858;          /* small text + buttons (white-on-it passes AA) */
  --accent-soft: #e6f4ec;
  --accent-glow: rgba(45, 156, 115, 0.20);
  --mint:        #9fe3c4;          /* on-dark accent */

  --r:    0.75rem;
  --r2:   1rem;
  --r3:   1.5rem;
  --r4:   2rem;
  --pill: 999px;
  --nav-h: 72px;

  --sh-sm: 0 1px 2px rgba(10,10,10,.04), 0 1px 3px rgba(10,10,10,.05);
  --sh:    0 6px 22px rgba(10,10,10,.06);
  --sh-lg: 0 24px 60px rgba(10,10,10,.10);
  --sh-glow: 0 22px 60px rgba(31,120,88,.30);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
strong { font-weight: 700; color: var(--text); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.accent-serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }

/* accessibility utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--pill);
  font-size: 14px; font-weight: 600; transform: translateY(-150%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 6px; }

/* ─────  BUTTONS  ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  border-radius: var(--pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-primary { background: var(--accent-deep); color: #fff; box-shadow: var(--sh); }
.btn-primary:hover { background: #18614a; transform: translateY(-2px); box-shadow: var(--sh-glow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--text); transform: translateY(-2px); }

/* ─────  NAV  ───── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.menu-open {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-mark .orbit { transform-origin: center; transform-box: fill-box; }
.brand-mark .orbit:nth-of-type(1) { animation: spin 10s linear infinite; }
.brand-mark .orbit:nth-of-type(2) { animation: spin 14s linear infinite reverse; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.brand-text { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.brand-tag { color: var(--accent-deep); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--accent-deep); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────  HERO (centered)  ───── */
.hero {
  position: relative;
  padding: clamp(118px, 17vh, 178px) 0 clamp(62px, 9vh, 104px);
  text-align: center;
  background:
    radial-gradient(900px 540px at 50% -8%, var(--accent-glow), transparent 62%),
    radial-gradient(680px 480px at 88% 14%, rgba(59,126,191,.05), transparent 60%),
    var(--bg);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--border-2);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--text-2);
  box-shadow: var(--sh-sm); margin-bottom: 28px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-title {
  font-weight: 800; font-size: clamp(42px, 7vw, 86px); line-height: 1.02;
  letter-spacing: -0.035em; color: var(--text); max-width: 16ch;
}
.hero-sub { margin: 24px auto 0; max-width: 60ch; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero-trust { margin-top: 34px; }
.hero-logos { margin-top: 18px; }
.trust-text { font-size: 14.5px; color: var(--muted); }
.trust-text strong { color: var(--text-2); }

/* ─────  SCALPEL CURSOR (cosmetic; fine-pointer devices only)  ───── */
@media (hover: hover) and (pointer: fine) {
  body, body * { cursor: none !important; }
}
.scalpel-cursor {
  position: fixed; top: 0; left: 0;
  width: 60px; height: 24px;
  pointer-events: none; z-index: 9999;
  transform: translate(-1000px, -1000px);
  transform-origin: 1px 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)) drop-shadow(0 1px 2px rgba(0,0,0,.2));
  transition: opacity .2s var(--ease);
  will-change: transform;
  opacity: 0;
}
.scalpel-cursor.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .scalpel-cursor { display: none; }
}

/* ─────  PLATFORM STRIP  ───── */
.strip { padding: 38px 0 32px; background: transparent; }
.strip-label { text-align: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; font-weight: 600; }
.strip-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 36px; }
.strip-logo { display: inline-flex; align-items: center; color: var(--text-2); opacity: .7; transition: color .2s var(--ease), opacity .2s var(--ease), transform .2s var(--ease); }
.strip-logo svg { width: clamp(26px, 3vw, 32px); height: auto; }
.strip-logo:hover { color: var(--accent-deep); opacity: 1; transform: translateY(-2px); }

/* ─────  SECTIONS  ───── */
.section { padding: clamp(72px, 11vh, 130px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vh, 64px); text-align: center; }
.kicker { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; margin-bottom: 16px; }
.kicker.center { text-align: center; }
.section-title { font-weight: 800; font-size: clamp(29px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
.section-sub { margin-top: 18px; font-size: clamp(15px,1.3vw,18px); color: var(--text-2); line-height: 1.6; }

/* shared content card rhythm */
.card, .why-card, .quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r3);
  padding: 30px 28px; box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover, .why-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--border-2); }

/* services */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 24px; background: var(--accent-soft); border-radius: 14px; margin-bottom: 18px; }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 940px; margin: 0 auto; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r3); padding: 24px 26px; box-shadow: var(--sh-sm); }
.step-n { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--accent-deep); line-height: 1; flex-shrink: 0; min-width: 38px; }
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step p { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.step-badge { font-family: var(--sans); font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--accent-deep); background: var(--accent-soft); padding: 3px 10px; border-radius: var(--pill); }
.step-you { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); box-shadow: 0 0 0 1px var(--accent), var(--sh); }

/* work grid */
.work-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.work-card { position: relative; border-radius: var(--r2); overflow: hidden; background: #0b0f0d; box-shadow: var(--sh); border: 1px solid var(--border); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.work-card video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

/* stats band */
.stats-band { background: var(--text); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: clamp(46px, 7vh, 72px) 0; }
.stat { text-align: center; }
.stat-num { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat-num span { font-size: .42em; font-weight: 600; color: var(--mint); letter-spacing: 0; }
.stat-label { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.74); line-height: 1.4; }

/* why grid */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 940px; margin: 0 auto; }
.why-icon { font-size: 22px; color: var(--accent-deep); margin-bottom: 12px; }
.why-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.why-card p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; }

/* faq */
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); padding: 4px 22px; box-shadow: var(--sh-sm); }
.faq-item summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 18px 28px 18px 0; position: relative; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--accent-deep); font-weight: 400; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--text-2); font-size: 15.5px; line-height: 1.6; padding: 0 0 18px; }

/* cta */
.cta-section { padding-bottom: clamp(72px, 11vh, 130px); }
.cta-card { position: relative; overflow: hidden; text-align: center; background: var(--text); color: #fff; border-radius: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(48px, 8vh, 84px) clamp(24px, 6vw, 80px); }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(620px 360px at 50% 0%, rgba(45,156,115,.5), transparent 65%); opacity: .55; pointer-events: none; }
.cta-card .kicker { color: var(--mint); position: relative; }
.cta-title { position: relative; font-weight: 800; font-size: clamp(28px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.03em; }
.cta-card .accent-serif { color: var(--mint); }
.cta-sub { position: relative; max-width: 56ch; margin: 18px auto 0; font-size: clamp(15px,1.3vw,18px); color: rgba(255,255,255,.74); line-height: 1.6; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.cta-card .btn-primary { background: #fff; color: var(--accent-deep); box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.cta-card .btn-primary:hover { background: #f3faf6; color: #18614a; }
.cta-card .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); }

/* footer */
.footer { border-top: 1px solid var(--border); padding: clamp(48px,7vh,72px) 0 32px; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-tag { margin-top: 16px; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 32ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-content: flex-start; }
.footer-links a { color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--accent-deep); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }

/* ─────  REVEAL ANIMATION  ───── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards-grid .card:nth-child(2), .why-grid .why-card:nth-child(2) { transition-delay: .06s; }
.cards-grid .card:nth-child(3) { transition-delay: .12s; }
.cards-grid .card:nth-child(4) { transition-delay: .06s; }
.cards-grid .card:nth-child(5) { transition-delay: .12s; }
.cards-grid .card:nth-child(6) { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .brand-mark .orbit { animation: none; }
  .scalpel-cursor { display: none !important; }
  body, body * { cursor: auto !important; }
}

/* ─────  RESPONSIVE  ───── */
@media (max-width: 940px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--sh-lg);
    padding: 14px clamp(20px,5vw,48px) 22px;
  }
  .nav.menu-open .nav-links a { width: 100%; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .work-card:nth-child(5) { display: none; }   /* show 4 clips on phones, clean 2×2 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .nav-cta .btn-sm { padding: 8px 14px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 380px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ══════════════════════════════════════════════════════════════
   BACKGROUND — continuous clean grid + a green glow that spreads as
   you scroll. Lightweight (no fireworks, no oversized layers).
   Behind all content (z-index:0); content lifted to 1.
   ══════════════════════════════════════════════════════════════ */
#bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg); }

/* clean grid — even + continuous down the whole page (no fade) */
#bg-fx .bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,44,77,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,44,77,.05) 1px, transparent 1px);
  background-size: 54px 54px;
}

/* green glow that grows + spreads with scroll (JS sets --spread on #bg-fx).
   Stays semi-transparent so the grid shows through it all the way down. */
#bg-fx .green-spread {
  position: absolute; inset: 0;
  background: radial-gradient(62vmax 62vmax at 50% 24%,
    rgba(45,156,115,.58) 0%,
    rgba(45,156,115,.34) 40%,
    rgba(45,156,115,.13) 64%,
    transparent 82%);
  transform-origin: 50% 24%;
  transform: scale(calc(.65 + var(--spread, 0) * 1.4));
  opacity: calc(.16 + var(--spread, 0) * .8);
  transition: opacity .2s linear, transform .2s linear;
}

/* lift real content above the background layer */
main, .footer { position: relative; z-index: 1; }

/* make the light sections transparent so grid + glow stay continuous */
.section-soft { background: transparent; }
.strip { background: transparent; }
.footer { background: transparent; }

/* hero transparent so grid + glow show through */
.hero { background: transparent; }
.hero-inner { position: relative; z-index: 1; }

/* ── green glow + ripple behind the hero text (top focal point) ── */
.hero-glow {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: min(720px, 88vw); height: min(720px, 88vw);
  pointer-events: none; z-index: 0;
}
.hero-glow::before {
  content: ""; position: absolute; inset: 24%; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,156,115,.42), rgba(45,156,115,.12) 46%, transparent 68%);
  filter: blur(16px);
  animation: glowPulse 5s ease-in-out infinite;
}
.hero-glow .ripple {
  position: absolute; top: 50%; left: 50%;
  width: 44%; height: 44%; margin: -22% 0 0 -22%;
  border-radius: 50%; border: 1.5px solid rgba(45,156,115,.42);
  opacity: 0; animation: ripple 5.4s ease-out infinite;
}
.hero-glow .ripple:nth-child(2) { animation-delay: 1.8s; }
.hero-glow .ripple:nth-child(3) { animation-delay: 3.6s; }
@keyframes ripple { 0% { transform: scale(.45); opacity: 0; } 16% { opacity: .5; } 100% { transform: scale(2.15); opacity: 0; } }
@keyframes glowPulse { 0%, 100% { opacity: .82; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .hero-glow::before { animation: none; }
  .hero-glow .ripple { display: none; }
  #bg-fx .green-spread { transition: none; }
}
