:root {
  --bg: #f3f6f5;
  --ink: #122421;
  --muted: #62736f;
  --line: #dbe5e2;
  --teal: #0f766e;
  --teal-dark: #095b55;
  --mint: #dff3ef;
  --orange: #f59e0b;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: Inter, "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 0; overflow-x: hidden; }
a { color: inherit; }

.page-transition { align-items: center; background: var(--teal-dark); display: flex; inset: 0; justify-content: center; opacity: 0; pointer-events: none; position: fixed; transform: translateY(100%); transition: transform .42s cubic-bezier(.7, 0, .2, 1), opacity .12s linear .28s; z-index: 100; }
.page-transition::before { color: white; content: "Wadia.AI"; font-size: 18px; font-weight: 800; letter-spacing: -.02em; opacity: 0; transform: translateY(8px); transition: opacity .18s ease .16s, transform .22s ease .16s; }
.page-transition span { background: rgb(255 255 255 / 20%); border-radius: 999px; bottom: 42%; height: 2px; left: 50%; overflow: hidden; position: absolute; transform: translateX(-50%); width: 110px; }
.page-transition span::after { animation: transition-progress .7s ease-in-out infinite; background: white; border-radius: inherit; content: ""; inset: 0; position: absolute; transform: translateX(-100%); }
body.page-leaving { overflow: hidden; }
body.page-leaving .page-transition { opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
body.page-leaving .page-transition::before { opacity: 1; transform: translateY(0); }

.motion-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.motion-ready .reveal.reveal-left { transform: translateX(-30px); }
.motion-ready .reveal.reveal-right { transform: translateX(30px); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translate(0, 0); }
.motion-ready .process-grid article.reveal:nth-child(2) { transition-delay: .1s; }
.motion-ready .process-grid article.reveal:nth-child(3) { transition-delay: .2s; }

.site-header { align-items: center; background: rgb(255 255 255 / 82%); border-bottom: 1px solid rgb(219 229 226 / 75%); border-top: 4px solid var(--teal); display: flex; justify-content: space-between; min-height: 76px; padding: 0 clamp(22px, 5vw, 76px); position: relative; z-index: 10; }
.brand { align-items: center; display: flex; font-size: 21px; font-weight: 800; gap: 10px; text-decoration: none; }
.brand > span:last-child > span { color: var(--teal); }
.brand-mark { align-items: center; background: var(--teal); border-radius: 10px; box-shadow: 0 5px 12px rgb(15 118 110 / 22%); color: white; display: flex; font-size: 17px; height: 36px; justify-content: center; transform: rotate(-4deg); width: 36px; }
.header-link { color: var(--teal-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.header-link span { display: inline-block; margin-left: 7px; transition: transform .2s ease; }
.header-link:hover span { transform: translateX(4px); }

main { overflow: hidden; }
.hero { align-items: center; display: grid; gap: clamp(40px, 6vw, 90px); grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr); margin: 0 auto; max-width: 1400px; min-height: calc(100vh - 80px); padding: 72px clamp(24px, 6vw, 88px) 90px; }
.hero-copy { max-width: 620px; position: relative; z-index: 2; }
.eyebrow { align-items: center; color: var(--teal-dark); display: flex; font-size: 11px; font-weight: 800; gap: 9px; letter-spacing: .11em; margin: 0 0 22px; text-transform: uppercase; }
.eyebrow span { background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 5px rgb(245 158 11 / 13%); height: 7px; width: 7px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 78px); letter-spacing: -.055em; line-height: .99; margin: 0; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; margin: 28px 0 32px; max-width: 590px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; }
.primary-action { align-items: center; background: var(--teal); border-radius: 8px; box-shadow: 0 10px 25px rgb(15 118 110 / 22%); color: white; display: inline-flex; font-size: 14px; font-weight: 800; gap: 28px; min-height: 52px; padding: 0 19px 0 23px; text-decoration: none; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.primary-action:hover { background: var(--teal-dark); box-shadow: 0 14px 30px rgb(15 118 110 / 28%); transform: translateY(-2px); }
.primary-action span { font-size: 20px; }
.secondary-action { border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 700; padding: 10px 2px; text-decoration: none; }
.trust-row { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 11px; gap: 18px; margin-top: 35px; }
.trust-row i { color: var(--teal); font-style: normal; font-weight: 900; margin-right: 4px; }

.ai-stage { aspect-ratio: 1.08; background: radial-gradient(circle at 50% 50%, rgb(255 255 255 / 94%) 0 21%, rgb(223 243 239 / 52%) 22% 43%, transparent 67%), linear-gradient(145deg, rgb(255 255 255 / 75%), rgb(231 240 238 / 40%)); border: 1px solid rgb(255 255 255 / 90%); border-radius: 38px; box-shadow: 0 36px 80px rgb(18 36 33 / 10%); isolation: isolate; max-width: 650px; overflow: hidden; position: relative; width: 100%; }
.ai-stage::before { background-image: linear-gradient(rgb(15 118 110 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(15 118 110 / 5%) 1px, transparent 1px); background-size: 34px 34px; content: ""; inset: 0; mask-image: radial-gradient(circle, black, transparent 72%); position: absolute; }
#aiCanvas { height: 100%; inset: 0; position: absolute; width: 100%; z-index: -1; }
.orbit { border: 1px dashed rgb(15 118 110 / 25%); border-radius: 50%; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); }
.orbit::after { background: var(--orange); border: 4px solid white; border-radius: 50%; box-shadow: 0 0 18px rgb(245 158 11 / 55%); content: ""; height: 8px; left: 50%; position: absolute; top: -6px; width: 8px; }
.orbit-one { animation: spin 20s linear infinite; height: 52%; width: 52%; }
.orbit-two { animation: spin-reverse 27s linear infinite; height: 78%; width: 78%; }
.ai-core { align-items: center; background: linear-gradient(145deg, #16877e, #07554f); border: 8px solid rgb(255 255 255 / 78%); border-radius: 50%; box-shadow: 0 18px 50px rgb(15 118 110 / 32%); color: white; display: flex; flex-direction: column; height: 146px; justify-content: center; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 146px; z-index: 3; }
.ai-core::before { border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; content: ""; inset: 11px; position: absolute; }
.core-pulse { animation: pulse 2.3s ease-out infinite; border: 1px solid var(--teal); border-radius: 50%; inset: -13px; position: absolute; }
.core-label { font-size: 37px; font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.ai-core small { font-size: 9px; letter-spacing: .09em; margin-top: 7px; opacity: .75; text-transform: uppercase; }
.signal-card { backdrop-filter: blur(10px); background: rgb(255 255 255 / 82%); border: 1px solid rgb(255 255 255 / 94%); border-radius: 12px; box-shadow: 0 12px 30px rgb(18 36 33 / 10%); display: grid; grid-template-columns: 28px 1fr; padding: 12px 14px; position: absolute; width: 175px; z-index: 4; }
.signal-card span { align-items: center; background: var(--mint); border-radius: 7px; color: var(--teal); display: flex; font-size: 9px; font-weight: 900; grid-row: span 2; height: 28px; justify-content: center; margin-right: 9px; width: 28px; }
.signal-card strong { font-size: 11px; }
.signal-card small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.signal-application { animation: float 5s ease-in-out infinite; left: 5%; top: 20%; }
.signal-documents { animation: float 5.8s ease-in-out -1.7s infinite; right: 4%; top: 25%; }
.signal-analysis { animation: float 5.4s ease-in-out -.8s infinite; bottom: 12%; left: 15%; }
.live-badge { align-items: center; background: rgb(255 255 255 / 80%); border: 1px solid white; border-radius: 999px; bottom: 7%; color: var(--muted); display: flex; font-size: 9px; font-weight: 700; gap: 7px; padding: 8px 11px; position: absolute; right: 7%; }
.live-badge span { animation: blink 1.7s ease-in-out infinite; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 4px rgb(34 197 94 / 12%); height: 6px; width: 6px; }

.process { background: white; padding: 100px clamp(24px, 7vw, 110px) 110px; }
.section-intro { margin: 0 auto 50px; max-width: 700px; text-align: center; }
.section-intro > p { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-intro h2, .about h2, .final-cta h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; margin: 12px 0 14px; }
.section-intro > span { color: var(--muted); font-size: 14px; }
.process-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); margin: 0 auto; max-width: 1160px; }
.process-grid article { background: #f8faf9; border: 1px solid var(--line); border-radius: 14px; min-height: 230px; overflow: hidden; padding: 28px; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.process-grid article:hover { box-shadow: 0 18px 35px rgb(18 36 33 / 8%); transform: translateY(-5px); }
.process-grid article > b { color: rgb(15 118 110 / 10%); font-size: 70px; line-height: .8; position: absolute; right: 17px; top: 20px; }
.step-icon { align-items: center; background: var(--mint); border-radius: 10px; color: var(--teal); display: flex; font-size: 22px; height: 46px; justify-content: center; margin-bottom: 30px; width: 46px; }
.process-grid h3 { font-size: 18px; margin: 0 0 10px; }
.process-grid p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; max-width: 280px; }

.about { align-items: start; display: grid; gap: 70px; grid-template-columns: 1fr 1fr; margin: 0 auto; max-width: 1200px; padding: 110px 30px; }
.about h2 { margin-bottom: 0; max-width: 540px; }
.about-copy { border-left: 1px solid var(--line); padding: 18px 0 18px 55px; }
.about-copy p { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0 0 26px; }
.about-copy a { color: var(--teal-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.about-copy a span { margin-left: 6px; }
.final-cta { align-items: center; background: linear-gradient(115deg, #075d56, #0f766e); border-radius: 24px; color: white; display: flex; justify-content: space-between; margin: 0 auto 80px; max-width: 1200px; overflow: hidden; padding: 48px 55px; position: relative; }
.final-cta::after { border: 1px solid rgb(255 255 255 / 12%); border-radius: 50%; content: ""; height: 350px; position: absolute; right: 10%; top: -190px; width: 350px; }
.final-cta > div > span { font-size: 11px; letter-spacing: .12em; opacity: .75; text-transform: uppercase; }
.final-cta h2 { margin: 7px 0 0; }
.primary-action.light { background: white; box-shadow: none; color: var(--teal-dark); position: relative; z-index: 2; }
footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 10px; justify-content: space-between; margin: 0 clamp(24px, 6vw, 90px); padding: 24px 0 30px; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes pulse { 0% { opacity: .7; transform: scale(.9); } 80%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes transition-progress { 0% { transform: translateX(-105%); } 55%, 100% { transform: translateX(105%); } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-copy { margin: 0 auto; text-align: center; }
  .eyebrow, .hero-actions, .trust-row { justify-content: center; }
  .ai-stage { margin: 0 auto; max-width: 620px; }
  .process-grid { grid-template-columns: 1fr; max-width: 600px; }
  .process-grid article { min-height: 200px; }
  .about { gap: 35px; grid-template-columns: 1fr; }
  .about-copy { border-left: 0; border-top: 1px solid var(--line); padding: 30px 0 0; }
}

@media (max-width: 620px) {
  .site-header { padding: 0 18px; }
  .header-link { font-size: 0; }
  .header-link span { font-size: 22px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 48px 18px 65px; }
  .hero h1 { font-size: 43px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-action { justify-content: space-between; }
  .secondary-action { align-self: center; }
  .trust-row { flex-direction: column; gap: 8px; }
  .ai-stage { border-radius: 22px; min-height: 440px; }
  .ai-core { height: 112px; width: 112px; }
  .core-label { font-size: 30px; }
  .signal-card { transform: scale(.84); width: 160px; }
  .signal-application { left: -3%; }
  .signal-documents { right: -3%; }
  .signal-analysis { bottom: 9%; left: 3%; }
  .process { padding: 75px 18px; }
  .about { padding: 75px 20px; }
  .final-cta { align-items: stretch; border-radius: 0; flex-direction: column; gap: 30px; margin-bottom: 40px; padding: 40px 24px; }
  footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition: none !important; }
}
