:root {
  --bg: #F5F2FF;
  --ink: #1A1230;
  --muted: #4E4668;
  --violet: #5B2DD6;
  --violet-dark: #3F1A9E;
  --lilac: #EDE7FF;
  --lilac-2: #E2D9FB;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Assistant', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--violet); }
a:hover { color: var(--violet-dark); }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.glass {
  background: rgba(255, 255, 255, .7);
  border: 1px solid #FFFFFF;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -30px rgba(70, 30, 160, .3);
}

.wordmark { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.03em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 30px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 18px; color: var(--ink);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 16px 30px -14px rgba(91, 45, 214, .8); }
.btn-primary:hover { background: var(--violet-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 16px; }

/* Nav */
.nav {
  position: sticky; top: 16px; z-index: 50;
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between;
  margin-top: 24px; padding: 10px 12px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; padding-right: 6px; color: var(--ink); text-decoration: none; }
.brand .wordmark { font-size: 21px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 17px; font-weight: 600; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--violet); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 64px 0 96px; }
.hero-text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.chip { padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--violet); }
.hero h1 { font-size: clamp(42px, 6vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; }
.lead { font-size: 21px; line-height: 1.6; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.stage-wrap { flex: 1 1 580px; min-width: 0; }
.stage { position: relative; width: 640px; height: 540px; perspective: 1800px; transform-origin: top right; }
.scene {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -6deg));
  transition: transform .4s ease-out;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lilac-2); display: inline-block; }

.browser {
  position: absolute; left: 0; top: 20px; width: 470px; height: 350px;
  background: #fff; border-radius: 18px; overflow: hidden;
  transform: translateZ(-80px) rotateY(14deg);
  box-shadow: -30px 50px 80px -30px rgba(40, 10, 110, .4);
  padding: 18px 22px; display: flex; flex-direction: column; gap: 12px;
}
.browser-bar { display: flex; gap: 6px; align-items: center; }
.url {
  margin-left: 12px; flex: 1; height: 22px; border-radius: 6px; background: var(--bg);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #6A6285;
  display: flex; align-items: center; padding: 0 10px;
}
.b-nav { display: flex; justify-content: space-between; align-items: center; }
.b-name { font-weight: 800; font-size: 14px; }
.b-pill { width: 70px; height: 22px; border-radius: 999px; background: var(--violet); }
.b-title { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.b-title span:first-child { height: 20px; width: 72%; border-radius: 6px; background: var(--ink); }
.b-title span:last-child { height: 9px; width: 88%; border-radius: 5px; background: #CFC6EA; }
.b-img { flex: 1; border-radius: 14px; background: linear-gradient(150deg, #D9CCFF, #8B6CF0); }
.b-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.b-cards div { height: 50px; border-radius: 10px; background: #EEE8FF; }
.b-cards div:nth-child(2) { background: #D9CCFF; }

.terminal {
  position: absolute; right: 0; top: 250px; width: 380px;
  background: var(--ink); border-radius: 16px; overflow: hidden;
  transform: translateZ(120px) rotateY(-12deg);
  box-shadow: -20px 50px 70px -24px rgba(26, 18, 48, .6);
}
.term-bar { display: flex; gap: 7px; align-items: center; padding: 11px 14px; background: #241A40; }
.term-bar .dot { background: #4A3F6B; }
.term-title { margin-left: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #8E86A8; }
.term-body { padding: 14px 18px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 2; color: #F5F2FF; }
.g { color: #86EFAC; } .p { color: #C4B2FF; } .m { color: #8E86A8; }

.show { animation: show 10s infinite both; animation-delay: var(--d, 0s); }
@keyframes show {
  0% { opacity: 0; transform: translateY(8px); }
  5%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

/* Sections */
.section { padding: 0 0 112px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.section-head h2 { font-size: clamp(36px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { font-size: 19px; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }

.ico {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  background: var(--lilac); color: var(--violet);
  display: flex; align-items: center; justify-content: center;
}
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 64px; height: 64px; border-radius: 20px; }
.ico-lg svg { width: 30px; height: 30px; }

.card { border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin-top: 8px; font-size: 23px; font-weight: 800; }
.card p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.price { margin-top: auto; font-size: 16px; font-weight: 600; color: var(--violet); }

.tilt { transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s; }
.tilt:hover { transform: perspective(1200px) rotateX(3deg) rotateY(-4deg) translateY(-8px); box-shadow: 0 40px 80px -30px rgba(70, 30, 160, .4); }

.work { border-radius: 30px; padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.work-shot {
  height: 330px; border-radius: 20px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.screen {
  width: 82%; height: auto; border-radius: 12px; display: block;
  transform: perspective(1300px) rotateX(14deg) rotateY(-18deg) rotateZ(2deg);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
  box-shadow: -30px 40px 60px -24px rgba(30, 10, 70, .4);
}
.work:hover .screen { transform: perspective(1300px) rotateX(4deg) rotateY(-5deg) translateZ(40px); }
.work-info { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; }
.work-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.work-head h3 { font-size: 24px; font-weight: 800; }
.tag { font-size: 14px; font-weight: 600; color: var(--violet); background: var(--lilac); padding: 6px 12px; border-radius: 999px; }
.work-info p { font-size: 17px; line-height: 1.5; color: var(--muted); }
.work-info a { font-size: 16px; font-weight: 600; align-self: flex-start; }

.step { border-radius: 26px; padding: 28px; display: flex; gap: 18px; align-items: flex-start; }
.step > div:last-child { display: flex; flex-direction: column; gap: 6px; }
.num { font-size: 14px; font-weight: 700; color: var(--violet); }
.step h3 { font-size: 21px; font-weight: 800; }
.step p { font-size: 16px; line-height: 1.55; color: var(--muted); }

.contact {
  border-radius: 40px; padding: 72px 32px; margin-bottom: 56px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
}
.contact h2 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.contact p { font-size: 19px; color: var(--muted); }

.footer {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  padding: 0 0 40px; font-size: 15px; color: var(--muted);
}
.foot-brand { display: flex; align-items: center; gap: 8px; }
.foot-brand .wordmark { color: var(--ink); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }

/* Small screens */
@media (max-width: 720px) {
  .nav { position: static; border-radius: 24px; justify-content: center; }
  .nav-links { gap: 20px; font-size: 16px; }
  .hero { padding: 40px 0 56px; }
  .section { padding-bottom: 80px; }
  .work-shot { height: 240px; }
  .contact { padding: 56px 20px; border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .show { animation: none; }
  .scene, .tilt, .screen { transition: none; }
}
