/* Tokens from docs/product/ui-foundation/design-language/DESIGN-LANGUAGE.md (marketing register). */
:root {
  --ink: #0E1330;
  --ink-2: #3B4163;
  --ink-3: #575D7E;
  --line: #E4E7F0;
  --line-2: #EEF0F6;
  --surface: #F6F7FB;
  --white: #FFFFFF;

  --cobalt: #2236C0;
  --cobalt-600: #1A2A9A;
  --cobalt-50: #EEF1FE;
  --cobalt-100: #DCE2FD;

  --navy: #0B1026;
  --navy-2: #141B3E;
  --navy-line: rgba(184, 194, 240, .16);
  --on-dark: #FFFFFF;
  --on-dark-2: #C5CBEA;
  --on-dark-3: #9CA4CA;

  --marigold: #F6B93B;

  --g-lav: linear-gradient(160deg, #EFE9FF 0%, #FCEDE4 100%);
  --g-blue: linear-gradient(160deg, #DDEEFF 0%, #ECE7FF 100%);
  --g-sun: linear-gradient(160deg, #FFF1C7 0%, #FDE9DD 100%);
  --g-rose: linear-gradient(160deg, #FCE6F0 0%, #EDE8FF 100%);

  --sky-tint: #D5E6FC;
  --sky-text: #1B5DA6;
  --lilac-tint: #E4DDF9;
  --lilac-text: #5A3DB5;
  --butter-tint: #FCE9B4;
  --butter-text: #7A5200;
  --amber-tint: #FCEFD3;
  --amber-text: #8A5300;
  --teal: #0C7D7F;
  --teal-tint: #D6F1F0;
  --teal-text: #0B5E61;

  --font: "DM Sans", "Noto Sans Devanagari", "Noto Sans Gurmukhi", system-ui, sans-serif;
  --t-xs: 13px;
  --t-sm: 15px;
  --t-md: 17px;
  --t-lg: 20px;
  --t-h2: clamp(2.25rem, 1.4rem + 2.4vw, 3.55rem);
  --t-h1: clamp(2.6rem, 1.2rem + 3.8vw, 4.1rem);

  --r-ctl: 12px;
  --r-card: 20px;
  --r-panel: 32px;
  --card-sh: 0 1px 2px rgba(14, 19, 48, .04), 0 14px 34px -22px rgba(14, 19, 48, .28);
  --sh-sm: 0 1px 2px rgba(14, 19, 48, .06), 0 4px 12px -6px rgba(14, 19, 48, .14);
  --sh-md: 0 1px 2px rgba(14, 19, 48, .05), 0 12px 30px -12px rgba(14, 19, 48, .18);
  --sh-lg: 0 1px 2px rgba(14, 19, 48, .05), 0 18px 44px -14px rgba(14, 19, 48, .18), 0 56px 110px -40px rgba(34, 54, 192, .28);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 40px;
  --section-pad: 128px;
  --head-gap: 56px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.55;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--ink); color: var(--white); }
.skip:focus { top: 12px; }

h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: var(--t-h2); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: var(--t-lg); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.lead { font-size: var(--t-lg); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.brand { color: var(--cobalt); }

.mark {
  background-image: linear-gradient(176deg, transparent 6%, var(--marigold) 7%, var(--marigold) 93%, transparent 94%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 .18em;
  margin: 0 -.06em;
  border-radius: .22em .4em .3em .35em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl); border: 0;
  font: 600 16px/1 var(--font); letter-spacing: -.005em; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary { background: var(--cobalt); color: var(--white); box-shadow: 0 1px 2px rgba(26, 42, 154, .3), 0 8px 18px -8px rgba(34, 54, 192, .65); }
.btn--primary:hover { background: var(--cobalt-600); transform: translateY(-1px); }
.btn--quiet { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); }
.btn--quiet:hover { background: var(--surface); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--navy-line); }
.btn--ghost:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 17px; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; line-height: 1.35; white-space: nowrap; }
.tag--sky { background: var(--sky-tint); color: var(--sky-text); }
.tag--lilac { background: var(--lilac-tint); color: var(--lilac-text); }
.tag--butter { background: var(--butter-tint); color: var(--butter-text); }
.tag--amber { background: var(--amber-tint); color: var(--amber-text); }
.tag--teal { background: var(--teal-tint); color: var(--teal-text); }
.ico { width: 14px; height: 14px; flex: none; fill: currentColor; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line-2); }
.header__row { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.header__logo { display: inline-flex; padding: 8px 0; }
.header__nav { display: flex; gap: 4px; margin-left: auto; }
.header__nav a { padding: 10px 14px; border-radius: 10px; font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); text-decoration: none; }
.header__nav a:hover { background: var(--surface); color: var(--ink); }

/* Hero */
.hero { padding: 96px 0 104px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; }
.hero__text .lead { margin-top: 24px; max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.draw { position: relative; white-space: nowrap; }
.draw svg { position: absolute; left: 0; right: 0; bottom: -.14em; width: 100%; height: .22em; overflow: visible; }
.draw svg { clip-path: inset(-6px 100% -6px -6px); animation: draw 1s var(--ease) .35s forwards; }
.draw path { fill: none; stroke: var(--cobalt); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@keyframes draw { to { clip-path: inset(-6px); } }

/* Product pictures */
.screen { background: var(--white); border-radius: var(--r-card); box-shadow: var(--sh-lg); padding: 20px; font-size: var(--t-sm); }
.screen__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.screen__title { font-weight: 700; letter-spacing: -.01em; }
.screen__reply { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--surface); color: var(--ink-3); }

.hero__picture { max-width: 460px; width: 100%; justify-self: end; }
.story { display: flex; flex-direction: column; gap: 10px; min-height: 318px; }
.story > * { opacity: 0; transform: translateY(8px); animation: appear .5s var(--ease) forwards; animation-delay: calc(var(--i) * 1.1s + .9s); }
@keyframes appear { to { opacity: 1; transform: none; } }

.bubble { max-width: 84%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.bubble--in { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.bubble--out { align-self: flex-end; background: var(--cobalt-50); border-bottom-right-radius: 6px; }
.bubble__who { display: block; font-size: 12.5px; font-weight: 600; color: var(--cobalt); }
.handoff { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--amber-tint); color: var(--amber-text); font-size: 12.5px; font-weight: 600; }

.setting + .setting { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.setting__label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.setting__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.setting__list { display: grid; gap: 8px; margin-top: 10px; }
.setting__list li { position: relative; padding-left: 18px; }
.setting__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 600; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }

/* Text band: two lines moving in opposite directions */
.band { overflow: hidden; padding: 8px 0 72px; font-size: clamp(64px, 8.6vw, 148px); font-weight: 800; letter-spacing: -.045em; line-height: 1.14; white-space: nowrap; }
.band__track { display: flex; width: max-content; }
.band__track > span { padding-right: .28em; }
.band__line--a { color: rgba(14, 19, 48, .14); }
.band__line--a .band__track { animation: train 34s linear infinite; }
.band__line--b .band__track { animation: train 62s linear infinite reverse; }
@keyframes train { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: var(--section-pad) 0; }
.section--lav { background: var(--g-lav); }
.section--rose { background: var(--g-rose); }
.section__head { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 820px; margin: 0 auto var(--head-gap); text-align: center; }
.section__head .lead { max-width: 34em; }
.section__foot { margin-top: 32px; text-align: center; font-size: var(--t-sm); color: var(--ink-2); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 28px; border-radius: var(--r-card); background: var(--white); box-shadow: var(--card-sh); }
.card p { margin-top: 10px; font-size: var(--t-sm); color: var(--ink-2); }

/* Feature rows */
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding: 64px; border-radius: var(--r-panel); }
.row--blue { background: var(--g-blue); }
.row__text h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -.03em; line-height: 1.12; }
.row__text > p { margin-top: 14px; color: var(--ink-2); max-width: 30em; }
.row__picture { max-width: 440px; width: 100%; justify-self: center; }
.row .screen { box-shadow: var(--sh-md); }

.steps { display: grid; gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; color: var(--ink-2); }
.steps li { position: relative; padding-left: 48px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); color: var(--cobalt); font-weight: 700; font-size: var(--t-sm); box-shadow: var(--sh-sm); }
.steps b { display: block; color: var(--ink); }

/* Closing band: the one dark surface on the page */
.closing { padding: 136px 0 48px; background: var(--navy); color: var(--on-dark); text-align: center; }
.closing__inner { display: flex; flex-direction: column; align-items: center; }
.closing h2 { margin-top: 40px; }
.closing .lead { margin-top: 20px; max-width: 30em; color: var(--on-dark-2); }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.closing__small { width: 100%; margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--navy-line); font-size: var(--t-xs); color: var(--on-dark-3); }
.closing :focus-visible { outline-color: var(--on-dark); }

/* Coming-soon dialog */
.soon { width: min(440px, calc(100vw - 32px)); padding: 36px 32px 32px; border: 0; border-radius: var(--r-card); color: var(--ink); box-shadow: var(--sh-lg); text-align: center; }
.soon::backdrop { background: rgba(11, 16, 38, .5); }
.soon[open] { animation: soon-in .25s var(--ease); }
@keyframes soon-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.soon img { margin: 0 auto 20px; }
.soon h2 { font-size: 28px; letter-spacing: -.03em; }
.soon p { margin-top: 12px; font-size: var(--t-sm); color: var(--ink-2); }
.soon a { color: var(--cobalt); font-weight: 600; overflow-wrap: anywhere; }
.soon form { margin-top: 24px; }
.soon .btn { width: 100%; }

@media (max-width: 1080px) {
  :root { --section-pad: 112px; --head-gap: 48px; }
  .hero__grid { gap: 40px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { gap: 40px; padding: 48px; }
}

@media (max-width: 820px) {
  :root { --gutter: 16px; --section-pad: 88px; --head-gap: 36px; }
  body { font-size: 16px; }
  .header__nav { display: none; }
  .header__row { justify-content: space-between; min-height: 64px; }
  .hero { padding: 56px 0 64px; }
  .hero__grid, .row, .grid, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .hero__picture { justify-self: center; }
  .draw { white-space: normal; }
  .draw svg { display: none; }
  .draw { text-decoration: underline; text-decoration-color: var(--cobalt); text-decoration-thickness: 4px; text-underline-offset: .12em; }
  .band { padding-bottom: 48px; }
  .row { padding: 28px 20px; border-radius: var(--r-card); }
  .card { padding: 24px; }
  .closing { padding-top: 96px; }
  .closing__small { margin-top: 64px; }
  .btn--lg { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .draw svg { animation: none; clip-path: none; }
  .story > * { animation: none; opacity: 1; transform: none; }
  .band__track { animation: none !important; }
  .soon[open] { animation: none; }
}

/* Project pages (/projects/...) */
.header__nav a[aria-current="page"] { background: var(--cobalt-50); color: var(--cobalt); }
.row__text .btn { margin-top: 28px; }
.setting__label + p { margin-top: 6px; }

.hero--center { padding: 72px 0 40px; }
.hero--center .hero__text { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 820px; margin-inline: auto; text-align: center; }
.hero--center .hero__text .lead { margin-top: 0; max-width: 28em; }
.hero--center .hero__actions { justify-content: center; margin-top: 12px; }

.demo { padding: 24px 0 var(--section-pad); }
.demo .section__foot { margin-top: 24px; }
.video { position: relative; display: block; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border: 0; border-radius: var(--r-panel); background: var(--navy); box-shadow: var(--sh-lg); color: var(--ink); text-decoration: none; }
.video:focus-visible { border-radius: var(--r-panel); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 10px 30px -8px rgba(34, 54, 192, .7); transition: transform .25s var(--ease), background-color .2s var(--ease); }
.video__play svg { width: 34px; height: 34px; margin-left: 4px; fill: var(--white); }
.video:hover .video__play { transform: scale(1.07); background: var(--cobalt-600); }
.video__label { position: absolute; left: 20px; bottom: 20px; padding: 8px 14px; border-radius: 999px; background: var(--white); font-size: var(--t-sm); font-weight: 600; box-shadow: var(--sh-sm); }

@media (max-width: 820px) {
  .hero--center { padding: 40px 0 24px; }
  .video { border-radius: var(--r-card); }
  .video__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .video__label { left: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .video__play { transition: none; }
  .video:hover .video__play { transform: none; }
}
