:root {
  --paper: #EDEFF4;
  --white: #FFFFFF;
  --ink: #161A2E;
  --muted: #565C74;
  --cobalt: #2E3BFF;
  --cobalt-deep: #1F28C7;
  --cobalt-tint: #D7DAFF;
  --line: #CDD1DD;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --radius-lg: 28px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; font-variation-settings: "opsz" 96; }
p { margin: 0; }
a { color: inherit; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(237, 239, 244, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.logo-mark { width: 28px; height: 28px; color: var(--cobalt); }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
}
.nav-list a { text-decoration: none; }
.nav-list a:hover { color: var(--cobalt); }
.nav-list .nav-cta {
  background: var(--ink);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-list .nav-cta:hover { background: var(--cobalt); color: var(--white); }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(64px, 10vw, 128px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.25rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 12ch;
  text-wrap: balance;
}
.lede {
  margin-top: 28px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-ghost { border: 2px solid var(--ink); padding: 13px 24px; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* Phone */
.phone-stage {
  position: relative;
  justify-self: center;
  width: min(300px, 78vw);
}
.phone {
  position: relative;
  aspect-ratio: 9 / 18.5;
  background: var(--ink);
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(46, 59, 255, 0.45);
  transform: rotate(4deg);
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  background: var(--ink);
  border-radius: 999px;
  z-index: 2;
}
.screen {
  height: 100%;
  background: var(--white);
  border-radius: 36px;
  padding: 54px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.line { height: 10px; border-radius: 6px; background: var(--ink); opacity: .85; }
.line.thin { height: 7px; opacity: .3; margin-top: 7px; }
.line.light { background: var(--white); opacity: .95; }
.line.light.thin { opacity: .55; }
.w40 { width: 40%; } .w45 { width: 45%; } .w55 { width: 55%; } .w60 { width: 60%; }
.w65 { width: 65%; } .w70 { width: 70%; }

.ui-status { display: none; }
.ui-greeting { padding: 4px 2px 6px; }
.ui-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cobalt);
  border-radius: 20px;
  padding: 20px 16px;
}
.ui-hero-card > div:last-child { flex: 1; }
.ring {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-right-color: var(--white);
}
.ui-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--paper);
}
.chip { width: 30px; height: 30px; border-radius: 9px; background: var(--cobalt-tint); flex: none; }
.chip.c2 { background: #FFD9C7; }
.chip.c3 { background: #C9F0DF; }
.ui-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 12px 6px 4px;
  border-top: 1px solid var(--paper);
}
.ui-tabbar i { width: 22px; height: 22px; border-radius: 7px; background: var(--line); }
.ui-tabbar i.on { background: var(--cobalt); }

.code-tag {
  position: absolute;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 30px -12px rgba(22, 26, 46, .35);
  white-space: nowrap;
}
.tag-a { top: 14%; left: -22%; color: var(--cobalt); }
.tag-b { top: 52%; right: -18%; }
.tag-c { bottom: 8%; left: -14%; }

/* One orchestrated moment: the app screen assembles on load */
@media (prefers-reduced-motion: no-preference) {
  .screen > .ui, .code-tag {
    opacity: 0;
    animation: assemble .6s cubic-bezier(.2, .8, .2, 1) forwards;
  }
  .screen > .ui { transform: translateY(14px); }
  .ui-greeting { animation-delay: .35s; }
  .ui-hero-card { animation-delay: .55s; }
  .ui-row:nth-of-type(4) { animation-delay: .75s; }
  .ui-row:nth-of-type(5) { animation-delay: .87s; }
  .ui-row:nth-of-type(6) { animation-delay: .99s; }
  .ui-tabbar { animation-delay: 1.15s; }
  .code-tag { transform: scale(.85); }
  .tag-a { animation-delay: 1.35s; }
  .tag-b { animation-delay: 1.5s; }
  .tag-c { animation-delay: 1.65s; }
  .ring { animation: spin-in 1.4s .7s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes assemble { to { opacity: 1; transform: none; } }
@keyframes spin-in { from { transform: rotate(-200deg); } to { transform: rotate(0); } }

/* Sections */
.section-title {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.035em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.services {
  background: var(--white);
  padding: clamp(64px, 10vw, 120px) 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-list { list-style: none; margin: 0; padding: 0; }
.service {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  column-gap: clamp(24px, 5vw, 72px);
  row-gap: 10px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 {
  grid-row: span 2;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -0.025em;
}
.service p { max-width: 36em; color: var(--muted); }
.service .stack { color: var(--cobalt); font-weight: 600; font-size: 1rem; }

.process {
  background: var(--white);
  padding: 0 0 clamp(72px, 10vw, 128px);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 76px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cobalt-tint);
  color: var(--cobalt);
  font-weight: 800;
  font-size: 1.35rem;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 64px;
  right: -12px;
  height: 2px;
  background: var(--cobalt-tint);
}
.steps h3 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 1.05rem; }

.contact {
  background: var(--cobalt);
  color: var(--white);
  padding: clamp(72px, 11vw, 140px) 0;
}
.contact h2 {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 15ch;
}
.contact p {
  margin-top: 24px;
  font-size: 1.2rem;
  max-width: 32em;
  color: rgba(255, 255, 255, .82);
}
.contact-email {
  display: inline-block;
  margin-top: 40px;
  font-size: clamp(1.6rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  word-break: break-word;
}
.contact-email:hover { text-decoration-color: rgba(255, 255, 255, .5); }
.contact :focus-visible { outline-color: var(--white); }

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  font-size: .95rem;
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .phone-stage { margin-top: 24px; width: min(260px, 64vw); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps li::after { display: none; }
}
@media (max-width: 640px) {
  .nav-list li:not(:last-child) { display: none; }
  .service { grid-template-columns: 1fr; }
  .service h3 { grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .tag-a { left: -12%; }
  .tag-b { right: -10%; }
  .tag-c { left: -8%; }
}
