/* Megh Labs v2. Brand: Monsoon #2563EB, Sky #7AA2FF, Ink #0E1726, Night #0B1220, Slate #4A5568.
   Fonts: Space Grotesk (headings), Inter (body), Caveat (handwritten notes). No inline styles (CSP). */
:root {
  --monsoon: #2563eb; --monsoon-600: #1d4ed8; --sky: #7aa2ff;
  --ink: #0e1726; --night: #0b1220; --night-2: #111a2e; --slate: #4a5568; --muted: #64748b;
  --bg: #f6f8fc; --paper: #fffdf7; --card: #fff; --line: #e3e8f0; --line-dark: rgba(122,162,255,.16);
  --ok: #22c55e; --amber: #f59e0b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14,23,38,.04), 0 8px 24px rgba(14,23,38,.06);
  --shadow-lg: 0 24px 64px rgba(11,18,32,.38);
  --head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --container: 1160px;
  --ease: cubic-bezier(.22,.8,.24,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16.5px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--monsoon); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.hidden { display: none !important; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section { padding: 104px 0; }
.hand { font-family: var(--hand); font-weight: 600; }
.kicker { font-family: var(--hand); font-size: 26px; color: var(--monsoon); line-height: 1; display: inline-block; transform: rotate(-2deg); margin-bottom: 10px; }
.band .kicker, .hero .kicker { color: var(--sky); }
.h2 { font-size: clamp(30px, 4.2vw, 46px); }
.lede { color: var(--slate); font-size: 18.5px; max-width: 640px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 16px; padding: 14px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--monsoon); color: #fff; box-shadow: 0 10px 28px rgba(37,99,235,.38); }
.btn-primary:hover { background: var(--monsoon-600); box-shadow: 0 14px 34px rgba(37,99,235,.45); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--monsoon); color: var(--monsoon); }
.btn-white { background: #fff; color: var(--monsoon); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); border-bottom: 1px solid var(--line-dark); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #cbd5e1; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--night); color: #dbe3f0; padding: 84px 0 120px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 340px at 85% 5%, rgba(37,99,235,.38), transparent 70%), radial-gradient(520px 300px at 5% 95%, rgba(122,162,255,.16), transparent 70%); }
.sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sky .cloud { position: absolute; color: var(--sky); opacity: .05; animation: drift linear infinite; }
.sky .c1 { width: 260px; top: 8%; left: -20%; animation-duration: 95s; }
.sky .c2 { width: 150px; top: 58%; left: -15%; animation-duration: 70s; animation-delay: -30s; opacity: .05; }
.sky .c3 { width: 340px; top: 72%; left: -30%; animation-duration: 130s; animation-delay: -80s; opacity: .045; }
.sky .c4 { width: 110px; top: 26%; left: -10%; animation-duration: 55s; animation-delay: -12s; opacity: .08; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(140vw); } }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero .container > * { min-width: 0; }
.hello { font-family: var(--hand); font-size: 30px; color: var(--sky); display: inline-flex; align-items: center; gap: 10px; transform: rotate(-2deg); }
.hello .wave { display: inline-block; transform-origin: 70% 80%; animation: wave 2.4s 1s ease-in-out 2; }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(16deg); } 20%,40% { transform: rotate(-8deg); } }
.hero h1 { color: #fff; font-size: clamp(40px, 5.8vw, 68px); margin: 14px 0 20px; }
.scribble { position: relative; white-space: nowrap; color: var(--sky); }
.scribble svg { position: absolute; left: -3%; bottom: -.16em; width: 106%; height: .34em; overflow: visible; }
.scribble path { fill: none; stroke: var(--sky); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { font-size: 19px; color: #aab6cc; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note-arrow { display: flex; align-items: flex-start; gap: 6px; margin: 14px 0 30px 18px; color: #8fa2c4; font-family: var(--hand); font-size: 22px; line-height: 1.1; }
.note-arrow svg { width: 44px; height: 34px; flex: none; color: #8fa2c4; transform: translateY(-8px); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #8a98b3; font-size: 14.5px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--sky); }
.rise { opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) forwards; }
.rise.d1 { animation-delay: .05s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .32s; } .rise.d4 { animation-delay: .46s; } .rise.d5 { animation-delay: .6s; } .rise.d6 { animation-delay: .75s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Hero visual */
.visual { position: relative; padding-bottom: 54px; }
.console { background: linear-gradient(180deg, rgba(17,26,46,.95), rgba(11,18,32,.95)); border: 1px solid var(--line-dark); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(1.2deg); transition: transform .6s var(--ease); }
.visual:hover .console { transform: rotate(0); }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line-dark); }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.console-bar i:nth-child(1) { background: #f87171; } .console-bar i:nth-child(2) { background: #fbbf24; } .console-bar i:nth-child(3) { background: #34d399; }
.console-bar span { margin-left: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #7b8aa6; }
.console-body { padding: 18px; display: grid; gap: 10px; }
.step { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; background: rgba(122,162,255,.05); border: 1px solid rgba(122,162,255,.08); transition: background .4s, border-color .4s; }
.step.is-run { background: rgba(37,99,235,.12); border-color: rgba(122,162,255,.3); }
.step .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(37,99,235,.18); color: var(--sky); flex: none; }
.step .ic svg { width: 18px; height: 18px; }
.step b { display: block; color: #e2e8f0; font-family: var(--head); font-weight: 600; font-size: 15px; }
.step small { color: #7b8aa6; font-size: 13px; }
.st { margin-left: auto; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.st.wait { color: #64748b; background: rgba(100,116,139,.12); }
.st.run { color: var(--sky); background: rgba(122,162,255,.14); }
.st.run::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); margin-right: 6px; vertical-align: middle; animation: blink 1s infinite; }
.st.done { color: #4ade80; background: rgba(74,222,128,.1); }
@keyframes blink { 50% { opacity: .2; } }
.bubble { position: absolute; left: -26px; bottom: 0; width: min(330px, 88%); background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 16px; box-shadow: 0 18px 50px rgba(0,0,0,.35); display: flex; gap: 12px; align-items: flex-start; transform: rotate(-2deg); animation: bob 5s ease-in-out infinite; opacity: 0; transition: opacity .6s; }
.bubble.show { opacity: 1; }
.bubble .av { width: 36px; height: 36px; border-radius: 50%; background: var(--monsoon); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 14px; flex: none; }
.bubble b { font-family: var(--head); font-size: 14px; }
.bubble small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.bubble p { font-size: 14px; color: var(--slate); margin: 2px 0 0; line-height: 1.45; }
@keyframes bob { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-6px); } }

/* Stats */
.stats { padding: 0; margin-top: -52px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.stat { padding: 26px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--head); font-size: 34px; letter-spacing: -.02em; }
.stat > span { color: var(--slate); font-size: 14.5px; }

/* Pain points */
.pains { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pain-list li { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-size: 17px; color: var(--ink); box-shadow: var(--shadow); }
.tick { width: 26px; height: 26px; flex: none; margin-top: 1px; color: var(--monsoon); }
.tick rect { fill: none; stroke: #cbd5e1; stroke-width: 2; }
.tick path { fill: none; stroke: var(--monsoon); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s var(--ease) .25s; }
.in .tick path, .tick.in path { stroke-dashoffset: 0; }
.pain-aside { position: sticky; top: 110px; }
.pain-aside .hand { font-size: 28px; color: var(--monsoon); display: block; margin-top: 18px; transform: rotate(-2deg); }

/* Bento services */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; position: relative; overflow: hidden; }
.tile:hover { transform: translateY(-4px); border-color: rgba(37,99,235,.35); box-shadow: 0 18px 44px rgba(14,23,38,.1); }
.tile h3 { font-size: 19px; margin-bottom: 6px; }
.tile p { color: var(--slate); font-size: 15px; margin: 0; }
.tile .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(37,99,235,.08); color: var(--monsoon); margin-bottom: 16px; transition: transform .35s var(--ease); }
.tile:hover .icon { transform: rotate(-8deg) scale(1.08); }
.tile .icon svg { width: 22px; height: 22px; }
.tile.wide { grid-column: span 2; }
.tile.big { grid-column: span 2; grid-row: span 2; background: var(--night); color: #cbd5e1; border-color: var(--line-dark); display: flex; flex-direction: column; }
.tile.big h3 { color: #fff; font-size: 28px; }
.tile.big p { color: #9aa8c2; font-size: 16.5px; }
.tile.big .icon { background: rgba(122,162,255,.14); color: var(--sky); }
.tile.big ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.tile.big li { display: flex; gap: 10px; color: #cbd5e1; font-size: 15px; }
.tile.big li svg { width: 18px; height: 18px; color: var(--sky); flex: none; margin-top: 4px; }
.heartbeat { margin-top: auto; padding-top: 22px; }
.heartbeat svg { width: 100%; height: 60px; }
.heartbeat path { fill: none; stroke: var(--sky); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: .25 .75; stroke-dashoffset: 1; animation: ecg 3.2s linear infinite; }
@keyframes ecg { to { stroke-dashoffset: 0; } }
.tile .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tile .tags span { font-size: 12px; font-weight: 600; color: var(--slate); background: var(--bg); border: 1px solid var(--line); padding: 3px 9px; border-radius: 7px; }

/* Marquee */
.marquee { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--head); font-weight: 500; font-size: 15.5px; background: var(--card); border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.marquee + .marquee .marquee-track { animation-direction: reverse; animation-duration: 56s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tools-head { text-align: center; margin-bottom: 30px; }

/* Note from Nayeem */
.letter-wrap { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.polaroid { background: #fff; padding: 14px 14px 18px; border-radius: 6px; box-shadow: 0 22px 50px rgba(14,23,38,.18); transform: rotate(-3.5deg); max-width: 340px; margin: 0 auto; position: relative; transition: transform .5s var(--ease); }
.polaroid:hover { transform: rotate(-1deg) scale(1.02); }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(2deg); background: rgba(122,162,255,.35); border-radius: 3px; }
.photo { aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; background: linear-gradient(160deg, #1e3a8a, var(--night)); display: grid; place-items: center; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 84px; color: rgba(255,255,255,.92); letter-spacing: -.04em; }
.photo .mono small { display: block; font-family: var(--hand); font-weight: 600; font-size: 24px; color: var(--sky); text-align: center; letter-spacing: 0; margin-top: -10px; }
.photo.has-img .mono { display: none; }
.polaroid figcaption { font-family: var(--hand); font-size: 26px; text-align: center; color: var(--ink); margin-top: 10px; }
.letter { background: var(--paper); border: 1px solid #efe9da; border-radius: 18px; padding: 40px 42px; box-shadow: var(--shadow); position: relative; }
.letter p { font-size: 17.5px; color: #374151; }
.letter .sig { font-family: var(--hand); font-size: 46px; color: var(--monsoon); line-height: 1; display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease) .3s; margin-top: 4px; }
.letter.in .sig { clip-path: inset(0 0 0 0); }
.letter .role { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.letter .links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Process */
.process { position: relative; }
.track { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); }
.track i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--monsoon), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.process.in .track i { transform: scaleX(1); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.pstep .num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--monsoon); color: var(--monsoon); font-family: var(--head); font-weight: 700; font-size: 18px; margin-bottom: 18px; position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--bg); }
.pstep h3 { font-size: 19px; }
.pstep p { color: var(--slate); font-size: 15.5px; margin: 0; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.plan:hover { transform: translateY(-4px); }
.plan.featured { border: 2px solid var(--monsoon); box-shadow: 0 22px 54px rgba(37,99,235,.16); position: relative; }
.plan .badge { position: absolute; top: -14px; left: 28px; background: var(--monsoon); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; color: var(--slate); font-size: 15px; }
.plan li svg { width: 18px; height: 18px; color: var(--monsoon); flex: none; margin-top: 4px; }
.plan .btn { margin-top: auto; }

/* Notebook (work) */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.note { background: var(--paper); border: 1px solid #efe9da; border-radius: 6px; padding: 30px 26px 26px; box-shadow: 0 12px 30px rgba(14,23,38,.08); position: relative; background-image: repeating-linear-gradient(transparent 0 31px, rgba(37,99,235,.07) 31px 32px); transition: transform .4s var(--ease); }
.note:nth-child(1) { transform: rotate(-1.2deg); } .note:nth-child(2) { transform: rotate(.8deg); } .note:nth-child(3) { transform: rotate(-.6deg); }
.note:hover { transform: rotate(0) translateY(-4px); }
.note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(122,162,255,.35); border-radius: 3px; }
.note .tag { font-family: var(--hand); font-size: 22px; color: var(--monsoon); }
.note h3 { font-size: 19px; margin: 6px 0 8px; }
.note p { color: var(--slate); font-size: 15.5px; margin: 0; line-height: 2; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: rgba(37,99,235,.35); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--head); font-weight: 600; font-size: 17px; padding: 16px 0; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--monsoon); font-size: 24px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--slate); padding-bottom: 14px; margin: 0; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: start; }
.channels { display: grid; gap: 12px; margin-top: 26px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: border-color .2s, transform .25s var(--ease); }
.channel:hover { border-color: var(--monsoon); transform: translateX(4px); }
.channel .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(37,99,235,.08); color: var(--monsoon); flex: none; }
.channel .icon svg { width: 22px; height: 22px; }
.channel b { display: block; font-family: var(--head); }
.channel small { color: var(--muted); }
.promise { margin-top: 22px; font-family: var(--hand); font-size: 25px; color: var(--monsoon); transform: rotate(-1.5deg); display: inline-block; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--monsoon); box-shadow: 0 0 0 4px rgba(37,99,235,.12); background: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.status.show { display: block; animation: rise .4s var(--ease) both; }
.status.ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.status.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status.info { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }

/* Dark band + CTA */
.band { background: var(--night); color: #cbd5e1; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 320px at 100% 0%, rgba(37,99,235,.25), transparent 70%); pointer-events: none; }
.band .container { position: relative; }
.band h2 { color: #fff; }
.band .lede { color: #9aa8c2; }
.cta { background: linear-gradient(120deg, var(--monsoon), #1e40af 60%, #1e3a8a); background-size: 200% 200%; animation: sheen 12s ease infinite; color: #fff; border-radius: 24px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; box-shadow: 0 24px 60px rgba(37,99,235,.3); margin-bottom: 72px; position: relative; overflow: hidden; }
@keyframes sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 6px; }
.cta p { color: #dbe6ff; margin: 0; }

/* Footer */
.site-footer { background: var(--night); color: #8a98b3; padding: 56px 0 32px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot img { height: 30px; width: auto; margin-bottom: 14px; }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #aab6cc; }
.foot a:hover { color: #fff; }
.foot .hand { font-size: 22px; color: var(--sky); }
.foot-bottom { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }

/* Auth + portal + legal (shared pages) */
.auth-page { min-height: 100vh; background: var(--night); display: grid; place-items: center; padding: 40px 20px; position: relative; overflow: hidden; }
.auth-page::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(37,99,235,.35), transparent 70%), radial-gradient(500px 280px at 0% 100%, rgba(122,162,255,.15), transparent 70%); pointer-events: none; }
.auth-card { position: relative; width: 100%; max-width: 440px; background: var(--card); border-radius: 22px; padding: 38px 34px; box-shadow: var(--shadow-lg); animation: rise .6s var(--ease) both; }
.auth-card section { padding: 0; }
.auth-card .logo { height: 32px; width: auto; margin: 0 auto 22px; }
.auth-card h1 { font-size: 26px; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--slate); font-size: 15px; margin-bottom: 26px; }
.auth-links { display: flex; justify-content: space-between; font-size: 14px; margin: -4px 0 18px; }
.auth-foot { text-align: center; color: #8a98b3; font-size: 14px; margin-top: 22px; position: relative; }
.auth-foot a { color: var(--sky); }
.portal-head { background: var(--night); color: #cbd5e1; padding: 36px 0; }
.portal-head h1 { color: #fff; font-size: 28px; margin: 0; }
.portal-main { padding: 40px 0 80px; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; }
.card p { color: var(--slate); }
.legal { max-width: 780px; margin: 0 auto; padding: 64px 20px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p, .legal li { color: var(--slate); }

/* Scroll reveal */
/* Only hide when JS is running (html.js), so content is never lost without JS */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.s1 { transition-delay: .08s; } .reveal.s2 { transition-delay: .16s; } .reveal.s3 { transition-delay: .24s; } .reveal.s4 { transition-delay: .32s; } .reveal.s5 { transition-delay: .4s; }

/* Responsive */
@media (max-width: 1024px) {
  .hero .container, .pains, .letter-wrap, .contact-wrap, .portal-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans, .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .track { display: none; }
  .pain-aside { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
  .bubble { left: 8px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 72px; left: 0; right: 0; padding: 12px 20px 20px; background: var(--night); border-bottom: 1px solid var(--line-dark); }
  .site-header.open .nav-links a { padding: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  section { padding: 76px 0; }
  .hero { padding: 56px 0 100px; }
  .bento, .plans, .notes, .steps, .form-row { grid-template-columns: minmax(0, 1fr); }
  .tile.wide, .tile.big { grid-column: auto; grid-row: auto; }
  .nav-cta .btn-primary { display: none; }
  .cta { padding: 32px 24px; }
  .letter { padding: 30px 24px; }
  .form-card, .auth-card { padding: 26px 20px; }
  .foot { grid-template-columns: 1fr; }
  .stat { padding: 20px; }
  .stat b { font-size: 26px; }
  .console { transform: none; }
  .note-arrow { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .rise, .reveal { opacity: 1; transform: none; }
  .sky .cloud, .marquee-track, .bubble, .cta { animation: none !important; }
  .bubble { opacity: 1; }
  .letter .sig { clip-path: none; }
}

/* Process steps on the dark band */
.band .track { background: rgba(122,162,255,.18); }
.band .pstep h3 { color: #fff; }
.band .pstep p { color: #9aa8c2; }
.band .pstep .num { background: var(--night); color: var(--sky); border-color: var(--sky); box-shadow: 0 0 0 8px var(--night); }
.process { margin-top: 44px; }

/* =====================================================================
   Glam layer (v3): aurora, rain, grain, beams, spotlights, orbit, wordmark
   ===================================================================== */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
html { scroll-padding-top: 84px; }

/* Glass header floating over the hero (home page only) */
.home .site-header { position: fixed; left: 0; right: 0; background: rgba(11,18,32,.5); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
.home .site-header.scrolled { background: rgba(11,18,32,.8); }
.home .hero { padding-top: 156px; }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--monsoon), var(--sky), #a5b4fc); box-shadow: 0 0 14px rgba(122,162,255,.9); }

/* Hero atmosphere */
.aurora { position: absolute; inset: -20% -10%; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: aurora 24s ease-in-out infinite alternate; will-change: transform; }
.aurora .a1 { width: 64vmax; height: 64vmax; top: -30%; right: -12%; background: radial-gradient(circle, rgba(37,99,235,.5), transparent 62%); }
.aurora .a2 { width: 56vmax; height: 56vmax; bottom: -40%; left: -18%; background: radial-gradient(circle, rgba(122,162,255,.3), transparent 62%); animation-duration: 30s; }
.aurora .a3 { width: 40vmax; height: 40vmax; top: 6%; left: 34%; background: radial-gradient(circle, rgba(129,140,248,.26), transparent 62%); animation-duration: 36s; }
@keyframes aurora { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-5%,6%,0) scale(1.08); } 100% { transform: translate3d(6%,-4%,0) scale(.94); } }
.hero-spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(560px circle at var(--hx, 72%) var(--hy, 30%), rgba(122,162,255,.14), transparent 45%); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }
.rain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rain i { position: absolute; top: -25%; left: var(--x); width: 1px; height: var(--h, 80px); opacity: var(--o, .25); background: linear-gradient(180deg, transparent, rgba(122,162,255,.75)); animation: fall var(--d, 3s) linear var(--delay, 0s) infinite; }
@keyframes fall { to { transform: translate3d(-48px, 150vh, 0); } }
.hero h1 { text-shadow: 0 4px 40px rgba(37,99,235,.28); }

/* Gradient + shimmer text */
.shine { background: linear-gradient(100deg, #7aa2ff 0%, #dbe6ff 25%, #7aa2ff 45%, #a5b4fc 70%, #7aa2ff 100%); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 220% center; } }
.grad { background: linear-gradient(90deg, var(--monsoon), #6366f1 55%, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band .grad, .hero .grad { background: linear-gradient(90deg, var(--sky), #c7d2fe 60%, var(--sky)); -webkit-background-clip: text; background-clip: text; }

/* Animated gradient border ("beam") */
.beam { position: relative; }
.beam::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 64%, rgba(122,162,255,.95) 76%, #c4b5fd 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 6s linear infinite; }
@keyframes beam { to { --ang: 360deg; } }

/* Hero visual: glow + parallax (JS sets --px/--py on .visual) */
.visual::before { content: ""; position: absolute; inset: 6% 4% 20%; background: radial-gradient(closest-side, rgba(37,99,235,.55), transparent); filter: blur(28px); z-index: -1; pointer-events: none; }
.console { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(1.2deg); transition: transform .25s ease-out; }
.visual:hover .console { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(0deg); }

/* Glass stats with gradient numbers */
.stats-grid { background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(11,18,32,.18); }
.stat b { background: linear-gradient(135deg, var(--ink) 30%, var(--monsoon)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cursor spotlight on cards (JS sets --mx/--my) */
.spot { position: relative; isolation: isolate; }
.spot > * { position: relative; z-index: 1; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(37,99,235,.12), transparent 42%); }
.spot:hover::after { opacity: 1; }
.tile.big.spot::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(122,162,255,.2), transparent 45%); }
.js .tilt.in { transition: transform .18s ease-out, opacity .7s var(--ease), box-shadow .3s; will-change: transform; }

/* Big tile: mesh glow */
.tile.big { background: radial-gradient(520px 280px at 0% 0%, rgba(37,99,235,.4), transparent 62%), radial-gradient(460px 280px at 100% 100%, rgba(129,140,248,.25), transparent 62%), var(--night); }
.tile.big .heartbeat path { filter: drop-shadow(0 0 6px rgba(122,162,255,.9)); }

/* Light sections: soft color fields + dot grid */
.glow-bg { position: relative; isolation: isolate; }
.glow-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(620px 320px at 92% 8%, rgba(37,99,235,.09), transparent 70%), radial-gradient(520px 300px at 2% 92%, rgba(129,140,248,.09), transparent 70%); }
.dots { position: relative; isolation: isolate; }
.dots::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(14,23,38,.08) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); }

/* Orbit centerpiece */
.orbit { position: relative; width: min(500px, 86vw); aspect-ratio: 1; margin: 6px auto 46px; }
.orbit .core { position: absolute; inset: 37%; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 32% 28%, #60a5fa, var(--monsoon) 45%, #1e3a8a); box-shadow: 0 0 0 10px rgba(37,99,235,.08), 0 0 70px rgba(37,99,235,.55), inset 0 0 22px rgba(255,255,255,.25); animation: core 4.5s ease-in-out infinite; }
.orbit .core svg { width: 58%; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
@keyframes core { 50% { box-shadow: 0 0 0 18px rgba(37,99,235,.05), 0 0 95px rgba(37,99,235,.7), inset 0 0 22px rgba(255,255,255,.25); } }
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(37,99,235,.3); animation: orbit 42s linear infinite; }
.ring.r1 { inset: 21%; }
.ring.r2 { inset: 3%; animation-duration: 70s; animation-direction: reverse; border-color: rgba(99,102,241,.22); }
.ring .slot { position: absolute; inset: 0; transform: rotate(var(--a)); }
.ring .o { position: absolute; left: 50%; top: 0; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 10px 24px rgba(14,23,38,.1);
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); animation: counter 42s linear infinite; }
.ring.r2 .o { animation-duration: 70s; animation-direction: reverse; }
.r1 .slot:nth-child(1) { --a: 0deg; } .r1 .slot:nth-child(2) { --a: 120deg; } .r1 .slot:nth-child(3) { --a: 240deg; }
.r2 .slot:nth-child(1) { --a: 45deg; } .r2 .slot:nth-child(2) { --a: 135deg; } .r2 .slot:nth-child(3) { --a: 225deg; } .r2 .slot:nth-child(4) { --a: 315deg; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes counter { from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); } to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a) - 360deg)); } }
.marquee-track span { transition: border-color .2s, color .2s; }
.marquee-track span:hover { border-color: var(--monsoon); color: var(--monsoon); }

/* Process timeline: glowing beam + travelling light */
.band .track i { box-shadow: 0 0 16px rgba(122,162,255,.75); }
.band .track::after { content: ""; position: absolute; top: -4px; left: -90px; width: 90px; height: 10px; border-radius: 10px; opacity: 0;
  background: radial-gradient(closest-side, #fff, rgba(122,162,255,.7) 45%, transparent); }
.process.in .track::after { opacity: 1; animation: travel 3.8s ease-in-out 2s infinite; }
@keyframes travel { from { left: -90px; } to { left: 100%; } }
.band .pstep .num { box-shadow: 0 0 0 8px var(--night), 0 0 26px rgba(122,162,255,.45); }

/* Buttons: gradient + light sweep (JS adds a gentle magnetic pull) */
.btn-primary { position: relative; overflow: hidden; background: linear-gradient(135deg, #3b82f6, var(--monsoon) 50%, #1d4ed8); }
.btn-primary::after, .btn-white::after { content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); transition: left .75s var(--ease); }
.btn-white { position: relative; overflow: hidden; }
.btn-white::after { background: linear-gradient(100deg, transparent, rgba(37,99,235,.18), transparent); }
.btn-primary:hover::after, .btn-white:hover::after { left: 150%; }

/* CTA atmosphere */
.cta::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%); animation: aurora 18s ease-in-out infinite alternate; }

/* Footer wordmark */
.wordmark { font-family: var(--head); font-weight: 700; font-size: clamp(64px, 17vw, 230px); letter-spacing: -.06em; line-height: .82; text-align: center; margin: 44px 0 -6px; user-select: none;
  background: linear-gradient(180deg, rgba(122,162,255,.28), rgba(122,162,255,0) 88%); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 640px) {
  .home .hero { padding-top: 128px; }
  .orbit .ring .o { font-size: 12px; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora span, .rain, .beam::before, .shine, .ring, .ring .o, .orbit .core, .cta::after, .band .track::after { animation: none !important; }
  .rain { display: none; }
}

/* Polish pass: typography + restraint */
h1, h2, h3, .h2 { text-wrap: balance; }
p, li, .lede { text-wrap: pretty; }
.hero h1 { letter-spacing: -.035em; }
.h2 { letter-spacing: -.03em; }
.rain i { opacity: calc(var(--o, .25) * .7); }
.sky .cloud { opacity: .04; }
.grain { opacity: .05; }
