/* Innovative Website Builds — premium studio theme */
:root {
  --bg: #F6F5F1;
  --bg-alt: #EFEDE6;
  --surface: #FFFFFF;
  --ink: #0E1A2B;
  --ink-soft: #3A4556;
  --muted: #6B7280;
  --line: #DEDBD2;
  --accent: #1F5FD1;
  --accent-ink: #FFFFFF;
  --radius: 14px;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { left: 8px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(246, 245, 241, .9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-soft); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .nav-cta { color: #fff; padding: 11px 20px; }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .25s ease; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - 76px); min-height: calc(100svh - 76px);
  display: flex; align-items: center;
  padding: clamp(64px, 9vw, 120px) 0;
  text-align: center;
}
.hero-canvas { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hero-canvas.ready { opacity: 1; }
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 44% 50% at 50% 52%, rgba(246,245,241,.96) 0%, rgba(246,245,241,.9) 35%, rgba(246,245,241,.6) 62%, rgba(246,245,241,.2) 85%, rgba(246,245,241,0) 100%),
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(31,95,209,.07), transparent 70%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  margin-bottom: 32px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(31,95,209,.5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,95,209,.45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(31,95,209,0); } }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin: 0 auto;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { max-width: 54ch; margin: 28px auto 0; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 40px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(14,26,43,.35); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.section h2 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 48px) 32px; }
.work-card { text-decoration: none; display: block; }
.work-card-featured { grid-column: 1 / -1; }
.work-shot {
  aspect-ratio: 1200 / 532; overflow: hidden; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--line);
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease; }
.work-card:hover .work-shot img { transform: scale(1.03); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; }
.work-meta h3 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; }
.work-meta p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.work-url { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.work-card:hover .work-url { color: var(--accent); }


/* About */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 6vw, 96px); align-items: center; }
.about-copy h2 { margin-bottom: 24px; }
.about-lead { font-size: 18px; color: var(--ink-soft); max-width: 52ch; }
.about-tiles { list-style: none; padding: 0; margin: 36px 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-tile {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; font-size: 15px; line-height: 1.4;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.about-tile:hover { transform: translateY(-3px); border-color: rgba(31,95,209,.35); box-shadow: 0 20px 40px -24px rgba(14,26,43,.3); }
.about-icon { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(31,95,209,.08); color: var(--accent); }
.about-icon svg { width: 21px; height: 21px; }
.about-cta { gap: 10px; }
.about-cta svg { width: 18px; height: 18px; transition: transform .3s ease; }

.about-visual { position: relative; padding: 28px 8px; }
.about-visual::before {
  content: ""; position: absolute; inset: 8% 4%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(31,95,209,.22), transparent);
  filter: blur(20px);
}
.code-window {
  background: #0E1A2B; border-radius: 20px; overflow: hidden;
  box-shadow: 0 60px 110px -45px rgba(14,26,43,.6), inset 0 0 0 1px rgba(255,255,255,.07);
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.about-visual:hover .code-window { transform: perspective(1400px) rotateY(0) rotateX(0); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3A4A63; }
.code-bar span:nth-child(1) { background: #FF6B6B; }
.code-bar span:nth-child(2) { background: #F7C04A; }
.code-bar span:nth-child(3) { background: #3DD68C; }
.code-bar em { margin-left: auto; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-style: normal; color: rgba(255,255,255,.45); }
.code { margin: 0; padding: 26px 28px 34px; font: 14.5px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #C9D6EA; white-space: pre; overflow: hidden; }
.code i, .code b, .code u, .code s, .code var { font-style: normal; font-weight: 400; text-decoration: none; }
.code i.c { color: #62738F; font-style: italic; }
.code b { color: #C792EA; }
.code u { color: #82AAFF; }
.code s { color: #7FDBCA; }
.code var { color: #F2C27A; }
.caret { display: inline-block; width: 8px; height: 1.15em; margin-left: 2px; vertical-align: text-bottom; background: #82AAFF; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.float-card {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  box-shadow: 0 24px 48px -24px rgba(14,26,43,.35);
  animation: floaty 6s ease-in-out infinite alternate;
}
.float-card svg { width: 18px; height: 18px; color: var(--accent); }
.float-card-a { left: -18px; bottom: 6px; }
.float-card-b { right: -10px; top: 0; animation-delay: -3s; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; animation: pulse-green 2s ease-out infinite; }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }

/* Applications: compact app cards, each opens its own screen gallery */
.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; }
.apps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app-card {
  position: relative; display: flex; flex-direction: column; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -34px rgba(14,26,43,.4);
  transform: translateY(var(--lift, 0px));
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, border-color .45s ease;
}
/* Animated gradient border, revealed on hover */
.app-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 200deg, #1F5FD1 260deg, #6EA8FF 300deg, #E6EEFF 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .45s ease;
  animation: border-spin 4s linear infinite; animation-play-state: paused;
}
/* Soft light that follows the cursor */
.app-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(31,95,209,.07), transparent 60%);
  opacity: 0; transition: opacity .45s ease;
}
.app-card:hover, .app-card:focus-within { --lift: -6px; border-color: transparent; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 34px 60px -36px rgba(14,26,43,.45); }
.app-card:hover::before, .app-card:focus-within::before { opacity: 1; animation-play-state: running; }
.app-card:hover::after { opacity: 1; }
.app-thumb {
  position: relative; display: flex; flex-direction: column; width: 100%; padding: 0;
  border: 1px solid var(--line); border-radius: 14px; background: #F6F8FB; cursor: zoom-in; overflow: hidden;
  font: inherit; color: inherit; text-align: left;
}
.app-chrome { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: rgba(255,255,255,.85); border-bottom: 1px solid rgba(14,26,43,.07); }
.app-chrome i { width: 7px; height: 7px; border-radius: 50%; background: #D5D9E0; }
.app-chrome em { margin-left: 8px; font: 500 10.5px/1 var(--sans); font-style: normal; letter-spacing: .02em; color: #8A93A3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-shot { position: relative; display: block; aspect-ratio: 2000 / 1389; overflow: hidden; }
.app-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.001); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.app-card:hover .app-shot img { transform: scale(1.05); }
.app-count {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  font: 500 11.5px/1 var(--sans); color: #fff; background: rgba(14, 26, 43, .8); transition: background-color .3s ease;
}
.app-count svg { width: 12px; height: 12px; }
.app-card:hover .app-count { background: var(--accent); }
.app-body { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 12px 10px; flex: 1; }
.app-index { position: absolute; top: 14px; right: 12px; font: 400 30px/1 var(--serif); color: transparent; -webkit-text-stroke: 1px #C9C4B8; transition: -webkit-text-stroke-color .4s ease; }
.app-card:hover .app-index { -webkit-text-stroke-color: var(--accent); }
.app-cat { font-size: 11.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); padding-right: 44px; }
.app-body h3 { font-family: var(--serif); font-size: 25px; line-height: 1.1; padding-right: 40px; }
.app-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.app-tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.app-tags li { font-size: 11.5px; color: var(--ink-soft); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); transition: border-color .3s ease, color .3s ease; }
.app-card:hover .app-tags li { border-color: #D3D8E2; }
.app-open {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 0 2px; border: 0; border-top: 1px solid var(--line); margin-top: 16px; background: none;
  font: 500 14px/1 var(--sans); color: var(--ink); cursor: pointer;
}
.app-open span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.app-open svg { width: 14px; height: 14px; }
.app-card:hover .app-open span { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateX(2px) rotate(-45deg); }
.app-open:hover { color: var(--accent); }
.app-open:focus-visible, .app-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Closing card: always-on slow border, faint grid */
.app-card-next {
  justify-content: center; align-items: flex-start; padding: 34px 30px; overflow: hidden;
  background:
    linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box,
    linear-gradient(180deg, #D8D3C7, #D8D3C7) border-box;
  box-shadow: none;
}
.app-card-next .app-grid-bg { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .6;
  background-image: linear-gradient(rgba(14,26,43,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(14,26,43,.05) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask: radial-gradient(circle at 80% 15%, #000, transparent 70%); mask: radial-gradient(circle at 80% 15%, #000, transparent 70%); }
.app-card-next::before { opacity: .9; animation-play-state: running; animation-duration: 7s; }
.app-card-next:hover::before { animation-duration: 3s; }
.app-card-next > *:not(.app-grid-bg) { position: relative; }
.app-plus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.app-plus svg { width: 20px; height: 20px; }
.app-card-next:hover .app-plus { transform: rotate(90deg); }
.app-card-next .app-cat { margin-bottom: 10px; padding: 0; }
.app-card-next h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 10px; }
.app-card-next p:not(.app-cat) { font-size: 15px; color: var(--ink-soft); margin-bottom: 24px; }
.app-thumb.is-empty { display: grid; place-items: center; cursor: default; aspect-ratio: 2000 / 1389; background: linear-gradient(160deg, #13233B 0%, #0B1524 100%); }
.app-empty { font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #A9C7FF; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); }
/* Scroll reveal: cards rise in one after another, screenshot unveils */
.js .apps-grid.is-ready .app-card { opacity: 0; transform: translateY(28px); transition: opacity .8s ease calc(var(--i, 0) * 120ms), transform .9s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 120ms), box-shadow .45s ease, border-color .45s ease; }
.js .apps-grid.is-ready .app-shot img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1) calc(var(--i, 0) * 120ms + 200ms), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .apps-grid.is-ready .app-card.in { opacity: 1; transform: translateY(var(--lift, 0px)); }
.js .apps-grid.is-ready .app-card.in .app-shot img { clip-path: inset(0 0 0 0); }
.js .apps-grid.is-ready .app-card.in.settled { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, border-color .45s ease; }

/* Gallery */
.apps-viewer { width: min(1240px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); background: #F6F8FB; color: var(--ink); overflow: hidden; box-shadow: 0 40px 120px -20px rgba(0,0,0,.5); }
.apps-viewer[open] { display: flex; flex-direction: column; }
.apps-viewer::backdrop { background: rgba(14, 26, 43, .84); }
.apps-viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.apps-viewer-title { font-family: var(--serif); font-size: 24px; line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apps-viewer-tools { display: flex; align-items: center; gap: 8px; }
.apps-viewer-count { white-space: nowrap; font: 500 14px/1 var(--sans); color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.apps-viewer-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: background-color .2s ease, color .2s ease; }
.apps-viewer-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.apps-viewer-btn:disabled { opacity: .35; cursor: default; }
.apps-viewer-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; }
.apps-viewer-stage img { max-width: 100%; max-height: calc(94vh - 150px); width: auto; height: auto; }
.apps-viewer-caption { padding: 14px 24px 18px; border-top: 1px solid var(--line); background: #fff; }
.apps-viewer-caption strong { font-weight: 600; font-size: 15px; }
.apps-viewer-caption span { font-size: 15px; color: var(--ink-soft); }

/* Dark hero */
.hero-dark { background: radial-gradient(120% 90% at 50% 0%, #142850 0%, #0B1630 50%, #070E1E 100%); color: #fff; }
.hero-aurora { position: absolute; inset: 0; z-index: -4; overflow: hidden; pointer-events: none; }
.hero-aurora span { position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%; filter: blur(90px); opacity: .45; will-change: transform; }
.hero-aurora span:nth-child(1) { background: #1F5FD1; left: -18vmax; top: -22vmax; animation: drift-a 22s ease-in-out infinite alternate; }
.hero-aurora span:nth-child(2) { background: #5B3FD6; right: -20vmax; top: -10vmax; opacity: .32; animation: drift-b 26s ease-in-out infinite alternate; }
.hero-aurora span:nth-child(3) { background: #0EA5E9; left: 20%; bottom: -38vmax; opacity: .22; animation: drift-c 30s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(14vmax, 10vmax) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-12vmax, 12vmax) scale(.9); } }
@keyframes drift-c { to { transform: translate(-10vmax, -8vmax) scale(1.15); } }
.hero-grid {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 78%);
}
.hero-dark .hero-glow { background: radial-gradient(ellipse 38% 42% at 50% 52%, rgba(8,16,32,.78) 0%, rgba(8,16,32,.45) 55%, rgba(8,16,32,0) 100%); }
.hero-dark h1 { color: #fff; }
.hero-dark h1 em {
  background: linear-gradient(100deg, #6EA8FF 0%, #C9DCFF 35%, #7C9BFF 60%, #6EA8FF 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
  padding-right: .06em;
}
@keyframes shimmer { to { background-position: 100% 0; } }
.hero-dark .lede { color: rgba(255,255,255,.72); }
.hero-dark .hero-eyebrow { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #A9C7FF; }
.hero-dark .hero-eyebrow .dot { background: #6EA8FF; }
.hero-dark .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 12px 40px -12px rgba(110,168,255,.6); }
.hero-dark .btn-primary:hover { background: var(--accent); color: #fff; }
.hero-dark .btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.04); }
.hero-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-dark .scroll-cue { border-color: rgba(255,255,255,.35); }
.hero-dark .scroll-cue span { background: #fff; }

/* Dark section */
.section-dark { background: var(--ink); color: #fff; }
.section-dark .eyebrow { color: #8FB2F5; }

/* Services */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { position: relative; }
.service-inner {
  position: relative; height: 100%;
  border-radius: 20px; padding: 36px 32px 34px;
  background: linear-gradient(180deg, #17263D 0%, #111D30 100%);
  border: 1px solid rgba(255,255,255,.08);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, border-color .45s ease;
}
.service-inner::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 200deg, #1F5FD1 260deg, #6EA8FF 300deg, #E6EEFF 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .45s ease;
  animation: border-spin 3.5s linear infinite; animation-play-state: paused;
}
.service-inner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(110,168,255,.16), transparent 45%);
  opacity: 0; transition: opacity .45s ease;
}
@keyframes border-spin { to { --angle: 360deg; } }
.service:hover .service-inner, .service:focus-within .service-inner {
  --lift: -6px;
  border-color: rgba(110,168,255,.18);
  box-shadow: 0 40px 80px -30px rgba(31,95,209,.55), 0 0 0 1px rgba(110,168,255,.06);
}
.service:hover .service-inner::before, .service:hover .service-inner::after,
.service:focus-within .service-inner::before { opacity: 1; animation-play-state: running; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; transform: translateZ(30px); }
.service-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  color: #A9C7FF; background: linear-gradient(160deg, rgba(110,168,255,.16), rgba(110,168,255,.04));
  border: 1px solid rgba(110,168,255,.22);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), color .3s ease;
}
.service-icon svg { width: 26px; height: 26px; }
.service:hover .service-icon { transform: translateZ(24px) rotate(-6deg) scale(1.06); color: #fff; }
.service-num { font-size: 13px; color: rgba(255,255,255,.4); letter-spacing: .06em; }
.service h3 { font-family: var(--sans); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 12px; color: #fff; transform: translateZ(20px); }
.service p { color: rgba(255,255,255,.68); font-size: 16px; transform: translateZ(12px); }
.service-tags { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; transform: translateZ(10px); }
.service-tags li { font-size: 12.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.75); }

/* Process */
.process-wrap { position: relative; --progress: 0; }
.process-track { position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.process-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), #6EA8FF); transform-origin: left center; transform: scaleX(var(--progress)); }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step { display: flex; flex-direction: column; }
.step-node {
  position: relative; z-index: 1; flex-shrink: 0;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--line);
  font-family: var(--serif); font-size: 22px; color: var(--muted);
  transition: background-color .5s ease, border-color .5s ease, color .5s ease, box-shadow .5s ease;
}
.step.active .step-node { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 8px rgba(31,95,209,.10); }
.step-card {
  position: relative; overflow: hidden; margin-top: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px 34px; flex: 1;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .4s ease;
}
.step-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), #6EA8FF); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.step.active .step-card::before { transform: scaleX(1); }
.step-card:hover { transform: translateY(-6px); border-color: rgba(31,95,209,.35); box-shadow: 0 28px 56px -28px rgba(14,26,43,.35); }
.step-ghost { position: absolute; right: 14px; top: -14px; font-family: var(--serif); font-size: 104px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(31,95,209,.16); pointer-events: none; transition: -webkit-text-stroke-color .4s ease; }
.step-card:hover .step-ghost { -webkit-text-stroke-color: rgba(31,95,209,.32); }
.step-label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.step h3 { font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 10px; }
.step-card > p:not(.step-label) { color: var(--ink-soft); font-size: 15.5px; position: relative; }

/* Pricing */
.section-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.pricing { position: relative; overflow: hidden; isolation: isolate; background: var(--bg-alt); }
.pricing h2 em { font-style: italic; color: var(--accent); }
.pricing-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pricing-bg span { position: absolute; border-radius: 50%; will-change: transform; }
.pricing-bg span:nth-child(1) { width: 46vmax; height: 46vmax; left: -14vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(31,95,209,.16), transparent); animation: drift-a 18s ease-in-out infinite alternate; }
.pricing-bg span:nth-child(2) { width: 40vmax; height: 40vmax; right: -12vmax; top: 20%; background: radial-gradient(closest-side, rgba(91,63,214,.12), transparent); animation: drift-b 22s ease-in-out infinite alternate; }
.pricing-bg span:nth-child(3) { width: 36vmax; height: 36vmax; left: 30%; bottom: -20vmax; background: radial-gradient(closest-side, rgba(14,165,233,.12), transparent); animation: drift-c 26s ease-in-out infinite alternate; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 1080px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; border-radius: 28px; }
.plan-inner {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 30px 60px -40px rgba(14,26,43,.3);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
}
.plan:hover .plan-inner { transform: translateY(-8px); box-shadow: 0 50px 90px -40px rgba(14,26,43,.4); }
.plan-body { display: flex; flex-direction: column; flex: 1; padding: 34px 40px 40px; }

/* Animated stage (mini website / mini store) */
.plan-stage {
  position: relative; height: 250px; padding: 30px 34px 0; overflow: hidden;
  background: radial-gradient(90% 120% at 50% 0%, #DCE7FB 0%, #EEF2FA 60%, #F4F5F8 100%);
  border-bottom: 1px solid var(--line); perspective: 900px;
}
.plan-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.9)); }
.mock {
  position: relative; height: 100%; border-radius: 14px 14px 0 0; background: #fff;
  box-shadow: 0 30px 60px -30px rgba(14,26,43,.45), 0 0 0 1px rgba(14,26,43,.06);
  transform: rotateX(8deg) translateY(6px); transform-origin: bottom center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.plan:hover .mock { transform: rotateX(0) translateY(-4px); }
.mock-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-bottom: 1px solid #EDEEF2; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #E2E4EA; }
.mock-bar i:nth-child(1) { background: #FF8A80; } .mock-bar i:nth-child(2) { background: #FFD180; } .mock-bar i:nth-child(3) { background: #9BE7A0; }
.mock-bar b { flex: 0 1 46%; height: 12px; margin-left: 14px; border-radius: 6px; background: #F1F2F6; }
.mock-body { padding: 14px 16px; }
.mock-body i, .mock-body .ms-img, .mock-body .mp-cart { display: block; }

/* build-in loop shared by both mocks */
@keyframes mk-build {
  0% { opacity: 0; transform: translateY(10px) scale(.96); }
  8%, 82% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(-4px); }
}
.mk { animation: mk-build 9s cubic-bezier(.2,.7,.2,1) infinite both; animation-delay: calc(var(--t, 0) * 1s); }
.ms-nav, .ms-copy i, .ms-img, .ms-cards i, .mp-nav, .mp-grid > i { animation: mk-build 9s cubic-bezier(.2,.7,.2,1) infinite both; }

.ms-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ms-nav i { width: 34px; height: 7px; border-radius: 4px; background: #E7E9EF; }
.ms-nav i.ms-logo, .mp-nav i.ms-logo { width: 22px; height: 22px; border-radius: 7px; margin-right: auto; background: linear-gradient(135deg, var(--accent), #6EA8FF); }
.ms-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: center; }
.ms-copy i { height: 10px; border-radius: 5px; background: #0E1A2B; margin-bottom: 8px; }
.ms-copy i.l1 { width: 92%; animation-delay: .35s; }
.ms-copy i.l2 { width: 70%; animation-delay: .55s; }
.ms-copy i.l3 { width: 84%; height: 6px; background: #D5D9E2; animation-delay: .75s; }
.ms-copy i.ms-btn { width: 64px; height: 20px; border-radius: 10px; margin-top: 12px; background: var(--accent); animation: mk-build 9s cubic-bezier(.2,.7,.2,1) .95s infinite both, btn-press 9s ease 0s infinite; }
@keyframes btn-press { 0%, 55% { box-shadow: 0 0 0 0 rgba(31,95,209,0); } 58% { box-shadow: 0 0 0 0 rgba(31,95,209,.5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(31,95,209,0); } }
.ms-img { height: 84px; border-radius: 10px; animation-delay: .6s;
  background: linear-gradient(110deg, #C9D8F6 20%, #EAF0FC 40%, #C9D8F6 60%) 0 0 / 250% 100%, #C9D8F6;
}
.plan.in .ms-img, .plan:not(.reveal) .ms-img { animation: mk-build 9s cubic-bezier(.2,.7,.2,1) .6s infinite both, shimmer-img 2.4s linear infinite; }
@keyframes shimmer-img { to { background-position: -150% 0; } }
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.ms-cards i { height: 46px; border-radius: 9px; background: #F1F3F8; border: 1px solid #E8EBF2; }
.ms-cards i:nth-child(1) { animation-delay: 1.2s; } .ms-cards i:nth-child(2) { animation-delay: 1.35s; } .ms-cards i:nth-child(3) { animation-delay: 1.5s; }

.mock-cursor { position: absolute; left: 88%; top: 96%; width: 16px; height: 16px; z-index: 3; animation: cursor-move 9s cubic-bezier(.5,0,.2,1) infinite; }
.mock-cursor::before { content: ""; position: absolute; inset: 0; background: #0E1A2B; clip-path: polygon(0 0, 0 100%, 30% 72%, 52% 100%, 66% 92%, 45% 66%, 85% 66%); }
@keyframes cursor-move {
  0%, 18% { left: 88%; top: 96%; opacity: 0; transform: scale(1); }
  26% { opacity: 1; }
  50% { left: 13%; top: 66%; transform: scale(1); }
  56% { left: 13%; top: 66%; transform: scale(.8); }
  60%, 80% { left: 13%; top: 66%; transform: scale(1); opacity: 1; }
  90%, 100% { left: 13%; top: 66%; opacity: 0; }
}

/* Mini store */
.plan-featured .plan-stage { background: radial-gradient(90% 120% at 50% 0%, #22427F 0%, #142850 55%, #0E1A2B 100%); border-bottom-color: rgba(255,255,255,.08); }
.plan-featured .plan-stage::after { background: linear-gradient(180deg, transparent, rgba(14,26,43,.85)); }
.mock-shop { background: #F8F9FC; }
.mp-nav { display: flex; align-items: center; margin-bottom: 14px; }
.mp-cart { position: relative; width: 30px; height: 30px; border-radius: 9px; display: grid !important; place-items: center; background: #fff; border: 1px solid #E6E8EE; color: #0E1A2B; }
.mp-cart svg { width: 17px; height: 17px; }
.mp-cart em { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; border-radius: 8px; background: #22C55E; border: 2px solid #F8F9FC; animation: badge-pop 9s ease infinite; transform: scale(0); }
@keyframes badge-pop { 0%, 56% { transform: scale(0); } 60% { transform: scale(1.35); } 64%, 88% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
.mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mp-grid > i { border-radius: 10px; background: #fff; border: 1px solid #E6E8EE; padding: 6px; }
.mp-grid > i::before { content: ""; display: block; height: 70px; border-radius: 6px; background: linear-gradient(160deg, #D8E3FA, #B7CBF3); }
.mp-grid > i:nth-child(2)::before { background: linear-gradient(160deg, #E9DDFB, #CDB9F4); }
.mp-grid > i:nth-child(3)::before { background: linear-gradient(160deg, #D4F1EC, #A9E0D6); }
.mp-grid > i:nth-child(4)::before { background: linear-gradient(160deg, #FBE5D6, #F3C7A8); }
.mp-grid > i b { display: block; height: 6px; width: 70%; border-radius: 3px; background: #D5D9E2; margin-top: 8px; }
.mp-grid > i b::after { content: ""; display: block; width: 50%; height: 6px; border-radius: 3px; background: #0E1A2B; margin-top: 6px; transform: translateY(6px); }
.mp-grid > i { padding-bottom: 18px; }
.mp-grid > i:nth-child(1) { animation-delay: .3s; } .mp-grid > i:nth-child(2) { animation-delay: .5s; } .mp-grid > i:nth-child(3) { animation-delay: .7s; } .mp-grid > i:nth-child(4) { animation-delay: .9s; }
.mp-fly { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(160deg, #E9DDFB, #A88BEB); box-shadow: 0 8px 18px -6px rgba(91,63,214,.6); opacity: 0; animation: fly-cart 9s cubic-bezier(.6,0,.3,1) infinite; z-index: 3; }
@keyframes fly-cart {
  0%, 34% { opacity: 0; left: 36%; top: 50%; transform: scale(1); }
  38% { opacity: 1; left: 36%; top: 46%; transform: scale(1.15); }
  56% { opacity: 1; left: calc(100% - 34px); top: 46px; transform: scale(.45); }
  59%, 100% { opacity: 0; left: calc(100% - 34px); top: 46px; transform: scale(.3); }
}

/* Plan content */
.plan-head h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.04; margin-bottom: 8px; }
.plan-fit { font-size: 15px; color: var(--muted); }
.plan-price { display: flex; align-items: flex-end; gap: 12px; margin: 26px 0 0; }
.plan-from { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
.plan-amount { display: inline-flex; align-items: flex-start; font-family: var(--serif); font-size: 96px; line-height: 1; letter-spacing: -0.02em; }
.plan-amount sup { font-size: .32em; line-height: 1; margin: .18em 4px 0 0; color: var(--accent); }
.odo { display: inline-flex; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; }
.odo-col > span { display: flex; flex-direction: column; transform: translateY(calc(var(--n) * -1em)); transition: transform 1.8s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * .15s + .2s); }
.odo-col i { display: block; height: 1em; line-height: 1; font-style: normal; text-align: center; }
.js .plan.reveal:not(.in) .odo-col > span { transform: translateY(0); }

.plan-delivery { margin: 22px 0 28px; }
.plan-time { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.plan-time svg { width: 17px; height: 17px; color: var(--accent); }
.plan-track { position: relative; height: 8px; border-radius: 4px; background: rgba(14,26,43,.08); overflow: hidden; }
.plan-track span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #6EA8FF); transform-origin: left; transform: scaleX(var(--fill)); transition: transform 1.6s cubic-bezier(.16,1,.3,1) .5s; overflow: hidden; }
.plan-track span::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: track-shine 2.6s ease-in-out infinite; }
@keyframes track-shine { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
.js .plan.reveal:not(.in) .plan-track span { transform: scaleX(0); }

.plan-includes { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.plan ul { list-style: none; margin: 0 0 32px; padding: 0; }
.plan li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 15.5px; color: var(--ink-soft); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--k) * .08s + .4s); }
.plan li svg { width: 22px; height: 22px; flex-shrink: 0; padding: 3px; border-radius: 50%; color: #fff; background: var(--accent); }
.plan li svg path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .5s ease; transition-delay: calc(var(--k) * .08s + .7s); }
.js .plan.reveal:not(.in) li { opacity: 0; transform: translateX(-10px); }
.js .plan.reveal:not(.in) li svg path { stroke-dashoffset: 1; }
.plan-cta { width: 100%; gap: 10px; margin-top: auto; padding: 18px 24px; font-size: 15.5px; }
.plan-cta svg { width: 18px; height: 18px; transition: transform .3s ease; }
.plan-cta:hover svg, .about-cta:hover svg { transform: translateX(4px); }
.plan .btn-primary:hover { background: var(--accent); }

/* Featured (dark) plan */
.plan-featured .plan-inner {
  background: radial-gradient(120% 60% at 100% 40%, #1C3A72 0%, rgba(28,58,114,0) 55%), linear-gradient(165deg, #14264A 0%, #0E1A2B 65%);
  color: #fff; border-color: transparent; box-shadow: 0 50px 100px -45px rgba(31,95,209,.65);
}
.plan-featured .plan-inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 4;
  background: conic-gradient(from var(--angle), rgba(110,168,255,.15) 0deg, rgba(110,168,255,.15) 180deg, #1F5FD1 250deg, #8FB8FF 300deg, #FFFFFF 330deg, rgba(110,168,255,.15) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-spin 6s linear infinite;
}
.plan-featured:hover .plan-inner { box-shadow: 0 60px 110px -45px rgba(31,95,209,.85); }
.plan-featured .plan-fit, .plan-featured .plan-from, .plan-featured .plan-includes { color: rgba(255,255,255,.6); }
.plan-featured .plan-amount sup { color: #8FB8FF; }
.plan-featured .plan-time { color: #fff; }
.plan-featured .plan-time svg { color: #8FB8FF; }
.plan-featured .plan-track { background: rgba(255,255,255,.1); }
.plan-featured .plan-track span { background: linear-gradient(90deg, #6EA8FF, #FFFFFF); }
.plan-featured li { color: rgba(255,255,255,.88); }
.plan-featured li svg { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }

.plans-note { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; max-width: 100%; margin: 40px auto 0; padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft); text-align: center; }
.plans-note .pulse-dot { display: inline-block; flex-shrink: 0; }

@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* Contact */
.contact { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 0% 0%, #142850 0%, #0B1630 50%, #070E1E 100%); color: #fff; }
.contact-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 25% 40%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 25% 40%, #000 15%, transparent 75%);
}
.contact-bg span { position: absolute; border-radius: 50%; }
.contact-bg span:nth-child(1) { width: 60vmax; height: 60vmax; left: -22vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(31,95,209,.45), transparent); }
.contact-bg span:nth-child(2) { width: 50vmax; height: 50vmax; right: -18vmax; bottom: -28vmax; background: radial-gradient(closest-side, rgba(91,63,214,.28), transparent); }
.contact .eyebrow { color: #8FB2F5; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; }
.contact h2 em {
  font-style: italic;
  background: linear-gradient(100deg, #6EA8FF 0%, #C9DCFF 35%, #7C9BFF 60%, #6EA8FF 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate; padding-right: .06em;
}
.contact-intro > p { color: rgba(255,255,255,.72); font-size: 18px; margin-top: 22px; max-width: 40ch; }
.contact-direct { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 12px; max-width: 460px; }
.contact-direct a {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; text-decoration: none; color: #fff;
  border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  transition: background-color .3s ease, border-color .3s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}
.cd-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #A9C7FF; background: rgba(110,168,255,.12); border: 1px solid rgba(110,168,255,.18); transition: background-color .3s ease, color .3s ease; }
.cd-icon svg { width: 20px; height: 20px; }
.cd-text { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.cd-go { width: 18px; height: 18px; flex-shrink: 0; color: rgba(255,255,255,.4); transition: transform .3s ease, color .3s ease; }
.contact-direct a:hover { background: rgba(255,255,255,.08); border-color: rgba(110,168,255,.35); transform: translateX(4px); }
.contact-direct a:hover .cd-icon { background: var(--accent); color: #fff; }
.contact-direct a:hover .cd-go { color: #fff; transform: translate(2px, -2px); }

/* Form card with animated light border */
.form-shell { position: relative; border-radius: 26px; padding: 1.5px; background: rgba(255,255,255,.12); box-shadow: 0 60px 120px -50px rgba(31,95,209,.75); }
.form-shell::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 200deg, #1F5FD1 260deg, #8FB8FF 300deg, #FFFFFF 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-spin 7s linear infinite;
}
.form { position: relative; overflow: hidden; background: var(--surface); color: var(--ink); border-radius: 25px; padding: clamp(28px, 4vw, 44px); padding-top: clamp(34px, 4.4vw, 50px); }
.form-progress { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--bg-alt); }
.form-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #6EA8FF); transform-origin: left; transform: scaleX(var(--fp, 0)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }

.field { position: relative; display: flex; flex-direction: column; margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  position: absolute; left: 16px; top: 11px; z-index: 1; pointer-events: none;
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  transition: color .2s ease;
}
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 32px 16px 12px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field textarea::placeholder { color: #9AA0AA; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m6 8 4 4 4-4' stroke='%236B7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px;
}
.field select:invalid, .field select.is-empty { color: #8A909A; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C9C5BA; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background-color: #fff; box-shadow: 0 0 0 4px rgba(31,95,209,.12); }
.field:focus-within label { color: var(--accent); }
.field.done label::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: #16A34A; vertical-align: middle; position: relative; top: -1px; }

.form-submit { gap: 12px; padding: 19px 24px; font-size: 16px; margin-top: 8px; position: relative; overflow: hidden; }
.form-submit svg { width: 18px; height: 18px; transition: transform .3s ease; }
.form-submit:hover svg { transform: translateX(4px); }
.form-submit::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg); transition: left .7s ease;
}
.form-submit:hover::after { left: 120%; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* Thank-you page */
.thanks-page { min-height: 100vh; display: flex; flex-direction: column; }
.thanks { flex: 1; display: flex; align-items: center; padding: 64px 0; }
.thanks h1 { font-family: var(--serif); font-size: clamp(44px, 7vw, 88px); line-height: 1.02; margin-bottom: 24px; }
.thanks p { color: var(--ink-soft); font-size: 18px; max-width: 48ch; margin-bottom: 36px; }

/* Reveal on scroll (content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-top { margin-bottom: 32px; }
  .process { grid-template-columns: 1fr; gap: 20px; }
  .process-track { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .process-fill { background: linear-gradient(180deg, var(--accent), #6EA8FF); transform-origin: center top; transform: scaleY(var(--progress)); }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
  .step-card { margin-top: 0; }
  .about, .contact-grid { grid-template-columns: 1fr; }
  .contact-direct { max-width: none; }
  .about-visual { max-width: 560px; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 16px; border-bottom: 0; padding: 15px 20px; }
  .plans { grid-template-columns: 1fr; max-width: 620px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { height: 68px; }
  .nav { top: 68px; }
  .logo img { height: 44px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .work-meta { flex-direction: column; gap: 6px; }
  .apps-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .apps-grid::-webkit-scrollbar { display: none; }
  .app-card { flex: 0 0 80%; scroll-snap-align: start; padding: 8px; border-radius: 20px; }
  .app-thumb { border-radius: 13px; }
  .app-body { padding: 16px 10px 8px; }
  .app-body h3 { font-size: 23px; }
  .app-index { font-size: 26px; top: 14px; right: 10px; }
  .app-desc { font-size: 14px; -webkit-line-clamp: 2; }
  .app-card-next { padding: 26px 22px; }
  .app-card-next h3 { font-size: 26px; }
  .app-card:hover { --lift: 0px; }
  .apps-viewer { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .apps-viewer-bar { padding: 10px 10px 10px 16px; }
  .apps-viewer-title { font-size: 19px; }
  .apps-viewer-tools { gap: 6px; }
  .apps-viewer-btn { width: 40px; height: 40px; }
  .apps-viewer-stage img { max-height: none; width: 100%; }
  .apps-viewer-caption { padding: 12px 16px 18px; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .step-node { width: 44px; height: 44px; font-size: 18px; }
  .process-track { left: 21px; top: 22px; bottom: 22px; }
  .hero { min-height: 0; padding: 96px 0 104px; }
  .scroll-cue { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .plan-inner { border-radius: 24px; }
  .plan { border-radius: 24px; }
  .plan-body { padding: 28px 22px 26px; }
  .plan-stage { height: 200px; padding: 22px 18px 0; }
  .plan-head h3 { font-size: 32px; }
  .plan-amount { font-size: 84px; }
  .ms-img { height: 64px; }
  .mp-grid { grid-template-columns: repeat(3, 1fr); }
  .mp-grid > i:nth-child(4) { display: none; }
  .mp-grid > i::before { height: 56px; }
  .plans-note { border-radius: 16px; align-items: flex-start; text-align: left; }
  .plans-note .pulse-dot { margin-top: 7px; }
  .contact h2 { font-size: 44px; }
  .form-shell { border-radius: 22px; }
  .form { border-radius: 21px; padding: 30px 18px 22px; }
  .about-tiles { grid-template-columns: 1fr; }
  .code { font-size: 12.5px; padding: 20px 18px 26px; }
  .code-window { transform: none; }
  .float-card-a { left: 0; bottom: -6px; }
  .float-card-b { right: 0; top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-eyebrow .dot, .scroll-cue span, .service-inner::before, .plan-featured .plan-inner::before, .form-shell::before, .contact h2 em, .hero-aurora span, .hero-dark h1 em, .caret, .float-card, .pulse-dot, .app-card::before { animation: none; }
  .app-card, .app-shot img, .app-open span, .app-plus { transition: none; }
  .js .apps-grid.is-ready .app-card { opacity: 1; transform: none; transition: none; }
  .js .apps-grid.is-ready .app-shot img { clip-path: none; transition: none; }
  .service-inner, .step-card, .service-icon { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pricing-bg span, .ms-nav, .ms-copy i, .ms-img, .ms-cards i, .mp-nav, .mp-grid > i, .mp-cart em, .mp-fly, .mock-cursor, .plan-track span::after { animation: none !important; }
  .mp-cart em { transform: scale(1); }
  .mp-fly, .mock-cursor { display: none; }
  .js .plan.reveal:not(.in) li, .js .plan.reveal:not(.in) .odo-col > span, .js .plan.reveal:not(.in) .plan-track span { opacity: 1; transform: translateY(calc(var(--n, 0) * -1em)); }
  .js .plan.reveal:not(.in) .plan-track span { transform: scaleX(var(--fill)); }
  .js .plan.reveal:not(.in) li { transform: none; }
  .js .plan.reveal:not(.in) li svg path { stroke-dashoffset: 0; }
  .plan-inner, .mock, .odo-col > span, .plan-track span, .plan li, .plan li svg path, .contact-direct a, .form-progress span { transition: none; }
}

/* Phones: keep the hero lights still so the blur is painted once (same look, smoother scrolling) */
@media (max-width: 820px) {
  .hero-aurora span { animation: none; will-change: auto; }
}
