:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #8b8b94;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --grad: linear-gradient(90deg, #a78bfa 0%, #60a5fa 50%, #22d3ee 100%);
  --radius: 22px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(99, 102, 241, 0.45); color: #fff; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 808px; }

.text-fade {
  background: linear-gradient(180deg, #fff 25%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.brand svg { width: 28px; height: 28px; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: #fff; color: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 40px -10px rgba(129, 140, 248, 0.7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 14px 50px -10px rgba(129, 140, 248, 0.9); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); }
.btn-sm { height: 34px; padding: 0 15px; font-size: 13.5px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 136px 0 96px; text-align: center; }
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 75%);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -340px;
  width: 1000px;
  height: 680px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 40% 50%, rgba(124, 58, 237, 0.55), transparent),
    radial-gradient(closest-side at 62% 55%, rgba(37, 99, 235, 0.45), transparent),
    radial-gradient(closest-side at 76% 45%, rgba(6, 182, 212, 0.3), transparent);
  filter: blur(48px);
  opacity: 0.8;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15), 0 0 12px var(--cyan); }
.hero h1 {
  margin: 0 auto 24px;
  max-width: 920px;
  font-size: clamp(42px, 7.6vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.hero .sub { margin: 0 auto 40px; max-width: 600px; font-size: clamp(17px, 2.1vw, 20px); line-height: 1.55; color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.beam {
  position: relative;
  height: 1px;
  max-width: 880px;
  margin: 104px auto 0;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.9) 30%, rgba(96, 165, 250, 0.9) 50%, rgba(34, 211, 238, 0.9) 70%, transparent);
}
.beam::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: -50px;
  height: 100px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.35), transparent);
  filter: blur(16px);
}
.platforms { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 40px; list-style: none; margin: 32px 0 0; padding: 0; font-size: 14px; color: var(--text-2); }
.platforms li { display: inline-flex; align-items: center; gap: 10px; }
.platforms svg { width: 18px; height: 18px; color: var(--text-3); }
.platforms .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

/* Sections */
.section { position: relative; padding: 112px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.038em;
  font-weight: 600;
}
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 340px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 60%);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}
.card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -140px;
  top: -160px;
  width: 360px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.22), transparent);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card.mobile::after { right: 4%; top: -60px; width: 440px; height: 440px; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.3), transparent); }
.card.web::after { right: -8%; top: 0; width: 480px; height: 480px; background: radial-gradient(closest-side, rgba(6, 182, 212, 0.2), transparent); }
.card-body { position: relative; z-index: 1; margin-top: auto; }
.tag { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; letter-spacing: -0.022em; font-weight: 600; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(#0c0c10, #0c0c10) padding-box,
    linear-gradient(135deg, rgba(167, 139, 250, 0.9), rgba(34, 211, 238, 0.9)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 8px 30px -8px rgba(99, 102, 241, 0.6);
}
.icon svg { width: 22px; height: 22px; }

.card.wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: end; }
.card.wide .card-body { grid-column: 1; grid-row: 1; }
.card-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  margin: -32px -32px -32px 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 98%);
}
.card-visual svg { position: absolute; height: auto; }
.visual-phone svg { top: 40px; left: 50%; width: min(232px, 78%); transform: translateX(-50%); filter: drop-shadow(0 30px 60px rgba(124, 58, 237, 0.35)); }
.visual-browser svg { top: 56px; left: 0; width: 135%; filter: drop-shadow(0 30px 60px rgba(6, 182, 212, 0.18)); }

/* Contact */
.section-cta { padding-top: 24px; }
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 32px;
  border-radius: 32px;
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 90% at 50% 130%, rgba(99, 102, 241, 0.45), transparent 70%),
    radial-gradient(ellipse 40% 60% at 82% 120%, rgba(34, 211, 238, 0.25), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}
.cta-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 10%, transparent 70%);
}
.cta h2 { margin: 0 0 18px; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.042em; font-weight: 600; }
.cta .lead { max-width: 520px; margin: 0 auto 40px; }
.mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px -20px rgba(99, 102, 241, 0.6);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.mail svg { flex: none; width: 20px; height: 20px; color: var(--text-2); transition: transform 0.2s ease, color 0.2s ease; }
.mail:hover { border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); box-shadow: 0 24px 70px -20px rgba(99, 102, 241, 0.8); }
.mail:hover svg:last-child { transform: translateX(3px); color: #fff; }

/* Footer */
.site-footer { position: relative; overflow: hidden; margin-top: 64px; padding: 48px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.foot .brand { font-size: 15px; }
.foot .brand svg { width: 24px; height: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--text-2); transition: color 0.2s ease; }
.foot-links a:hover { color: #fff; }
.copy { margin: 28px 0 0; }
.footer-mark {
  margin: 24px 0 -0.2em;
  text-align: center;
  font-size: clamp(72px, 19vw, 240px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.065em;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Legal pages */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 112px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .hero-glow { top: -440px; opacity: 0.55; }
.page-hero h1 { margin: 0 0 14px; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 600; }
.page-hero .meta { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.doc { padding-top: 56px; padding-bottom: 96px; }
.doc > p:first-child { font-size: 18px; color: var(--text); }
.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 56px 0 14px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: var(--text);
}
.doc h2 .num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.doc p, .doc li { font-size: 16px; line-height: 1.75; color: #c7c7ce; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--text-3); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: #c4b5fd; border-bottom: 1px solid rgba(196, 181, 253, 0.35); transition: color 0.2s ease, border-color 0.2s ease; }
.doc a:hover { color: #fff; border-color: #fff; }

/* 404 */
.hero-404 { padding: 152px 0; }
.hero-404 .code { display: inline-block; margin: 0 0 8px; font-size: clamp(96px, 20vw, 200px); line-height: 1; font-weight: 700; letter-spacing: -0.06em; }
.hero-404 h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: drift 14s ease-in-out infinite alternate; }
  .reveal { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .d1 { animation-delay: 0.08s; }
  .d2 { animation-delay: 0.16s; }
  .d3 { animation-delay: 0.24s; }
  .d4 { animation-delay: 0.36s; }
}
@keyframes drift {
  from { transform: translateX(-52%) scale(1); opacity: 0.7; }
  to { transform: translateX(-48%) scale(1.06); opacity: 0.9; }
}
@keyframes rise {
  from { transform: translateY(14px); }
  to { transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 88px 0 64px; }
  .beam { margin-top: 64px; }
  .platforms { gap: 10px 24px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; padding: 28px 24px; gap: 28px; }
  .card.wide { grid-column: auto; display: flex; }
  .card-visual { height: 230px; margin: -28px -24px -12px; }
  .visual-phone svg { top: 32px; width: 200px; }
  .visual-browser svg { top: 36px; left: 24px; width: 118%; }
  .cta { padding: 64px 20px; border-radius: 26px; }
  .mail { padding: 14px 22px; gap: 10px; }
  .mail svg:first-child { display: none; }
  .page-hero { padding: 80px 0 40px; }
  .doc { padding-top: 40px; }
  .hero-404 { padding: 112px 0; }
}
