:root {
  --bg: #e8f1ff;
  --bg-deep: #d6e8ff;
  --bg-elevated: #ffffff;
  --ink: #06101f;
  --ink-soft: #3d5678;
  --line: rgba(20, 80, 180, 0.14);
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-300: #7dd3fc;
  --blue-400: #38bdf8;
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;
  --blue-700: #0369a1;
  --blue-800: #075985;
  --accent: #0077ff;
  --accent-bright: #00c2ff;
  --accent-deep: #0050c8;
  --accent-soft: rgba(0, 119, 255, 0.14);
  --glow: 0 0 40px rgba(0, 194, 255, 0.35);
  --radius: 22px;
  --shadow-soft: 0 28px 70px rgba(0, 80, 200, 0.18);
  --font-sans: "Outfit", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(0, 194, 255, 0.28), transparent 58%),
    radial-gradient(760px 480px at 8% 18%, rgba(0, 119, 255, 0.22), transparent 55%),
    radial-gradient(700px 420px at 50% 100%, rgba(56, 189, 248, 0.18), transparent 60%),
    linear-gradient(165deg, #f0f7ff 0%, #dcecff 42%, #e8f3ff 100%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Nav —— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  backdrop-filter: saturate(1.4) blur(18px);
  background: rgba(232, 241, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(232, 241, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 90, 200, 0.08);
}

.nav-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  justify-self: end;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent), var(--accent-bright));
  background-size: 200% 200%;
  animation: sheen 4s ease infinite;
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 194, 255, 0.4);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 980px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent-deep) 0%, var(--accent) 45%, var(--accent-bright) 100%);
  background-size: 200% 200%;
  animation: sheen 5s ease infinite;
  box-shadow: 0 10px 28px rgba(0, 119, 255, 0.38);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 194, 255, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 119, 255, 0.28);
  color: var(--accent-deep);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.15);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding:
    calc(var(--nav-h) + clamp(36px, 7vh, 80px))
    clamp(20px, 5vw, 72px)
    clamp(48px, 8vh, 88px);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.hero-glow--a {
  width: 52vw;
  height: 52vw;
  max-width: 680px;
  max-height: 680px;
  right: -10%;
  top: 0%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.55), rgba(0, 119, 255, 0.18) 45%, transparent 70%);
  animation: drift 10s ease-in-out infinite alternate;
}

.hero-glow--b {
  width: 40vw;
  height: 40vw;
  max-width: 460px;
  max-height: 460px;
  left: -4%;
  bottom: 0%;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.42), transparent 68%);
  animation: drift 14s ease-in-out infinite alternate-reverse;
}

.hero-glow--c {
  width: 28vw;
  height: 28vw;
  max-width: 320px;
  max-height: 320px;
  left: 42%;
  top: 18%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.5), transparent 70%);
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 8% 4% 6% 38%;
  background-image:
    linear-gradient(rgba(0, 119, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 119, 255, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 62% 42%, #000 15%, transparent 74%);
  opacity: 0.9;
  animation: gridShift 18s linear infinite;
}

.hero-scan {
  position: absolute;
  inset: 0 0 0 35%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 194, 255, 0.08) 48%,
    rgba(0, 194, 255, 0.22) 50%,
    rgba(0, 194, 255, 0.08) 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: scan 4.5s ease-in-out infinite;
  mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 75%);
  opacity: 0.7;
}

.orbit-ring {
  position: absolute;
  right: 8%;
  top: 50%;
  border: 1px solid rgba(0, 194, 255, 0.35);
  border-radius: 50%;
  box-shadow:
    0 0 24px rgba(0, 194, 255, 0.15),
    inset 0 0 24px rgba(0, 119, 255, 0.08);
}

.orbit-ring--lg {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  margin-top: calc(min(52vw, 520px) / -2);
  animation: spin 28s linear infinite;
}

.orbit-ring--md {
  width: min(38vw, 380px);
  height: min(38vw, 380px);
  right: 14%;
  margin-top: calc(min(38vw, 380px) / -2);
  border-color: rgba(0, 119, 255, 0.28);
  border-style: dashed;
  animation: spin 18s linear infinite reverse;
}

.orbit-ring--lg::after,
.orbit-ring--md::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: var(--glow);
  top: 8%;
  left: 50%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.brand-mark {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.95;
  background: linear-gradient(115deg, var(--accent-deep) 10%, var(--accent) 45%, var(--accent-bright) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s ease infinite;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.text-glow {
  background: linear-gradient(100deg, #042f6b 0%, var(--accent-deep) 30%, #0284c7 60%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stage-orb {
  position: absolute;
  width: min(96%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.35), rgba(0, 119, 255, 0.12) 45%, transparent 70%);
  filter: blur(6px);
  animation: pulseGlow 3.8s ease-in-out infinite;
}

/* —— Mac + Xcode mock —— */
.mac {
  position: relative;
  width: min(100%, 560px);
  transform: perspective(1400px) rotateY(-10deg) rotateX(5deg);
  animation: floaty 7s ease-in-out infinite;
  filter: drop-shadow(0 30px 55px rgba(0, 80, 200, 0.35));
  z-index: 1;
}

.mac-lid {
  border-radius: 14px 14px 0 0;
  padding: 10px 10px 8px;
  background: linear-gradient(180deg, #c9d3e0 0%, #9eabb8 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.mac-bezel {
  position: relative;
  border-radius: 8px;
  padding: 14px 10px 10px;
  background: #0a0c10;
}

.mac-camera {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #1a2330;
  box-shadow: inset 0 0 0 1px #2d3a4d, 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.mac-display {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10.2;
  background: #000;
}

.macos {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(800px 360px at 20% 10%, rgba(56, 189, 248, 0.45), transparent 55%),
    radial-gradient(700px 400px at 90% 80%, rgba(37, 99, 235, 0.55), transparent 50%),
    linear-gradient(160deg, #0b1b3a 0%, #123a6b 45%, #0a4f8a 100%);
  font-size: 10px;
  color: #e8eef8;
  user-select: none;
}

.menubar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  background: rgba(10, 18, 32, 0.55);
  backdrop-filter: blur(12px);
  font-size: 9px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.menubar-left,
.menubar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menubar-left strong {
  font-weight: 700;
}

.menubar-left span {
  opacity: 0.78;
}

.apple-logo {
  font-size: 11px;
  opacity: 1 !important;
}

.xcode-window {
  flex: 1;
  margin: 6px 8px 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.xcode-titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  background: linear-gradient(180deg, #2c2d31, #232428);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.traffic {
  display: flex;
  gap: 5px;
}

.traffic i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.t-close { background: #ff5f57; }
.t-min { background: #febc2e; }
.t-max { background: #28c840; }

.xcode-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.tb-run,
.tb-stop {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: default;
}

.tb-run {
  background: #2d8a46;
  color: #fff;
}

.mac[data-phase="run"] .tb-run,
.mac[data-phase="build"] .tb-run {
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.35);
  animation: blink 1s ease-in-out infinite;
}

.tb-stop {
  background: #3a3b40;
  color: #c5c7ce;
}

.scheme {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
}

.scheme b { font-weight: 600; }
.scheme span { opacity: 0.55; }

.xcode-status {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 119, 255, 0.2);
  color: #7dd3fc;
  white-space: nowrap;
}

.mac[data-phase="run"] .xcode-status {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.mac[data-phase="package"] .xcode-status {
  background: rgba(14, 165, 233, 0.22);
  color: #7dd3fc;
}

.mac[data-phase="ship"] .xcode-status {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
}

.xcode-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 92px 1fr 88px;
}

.xcode-sidebar,
.xcode-inspector {
  background: #25262a;
  border-right: 1px solid rgba(0, 0, 0, 0.35);
  padding: 6px 4px;
  overflow: hidden;
}

.xcode-inspector {
  border-right: none;
  border-left: 1px solid rgba(0, 0, 0, 0.35);
  padding: 6px;
}

.nav-item {
  padding: 3px 5px;
  border-radius: 3px;
  font-size: 8px;
  color: #b8bcc6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item.indent { padding-left: 12px; }
.nav-item.is-on { color: #e8eef8; font-weight: 600; }
.nav-item.is-sel {
  background: rgba(0, 119, 255, 0.35);
  color: #fff;
}

.mac[data-phase="package"] #demoProduct,
.mac[data-phase="ship"] #demoProduct {
  color: #7dd3fc;
  font-weight: 600;
}

.xcode-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #1e1f22;
}

.editor-tabs {
  display: flex;
  gap: 2px;
  padding: 4px 6px 0;
  background: #232428;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.tab {
  padding: 4px 8px;
  border-radius: 4px 4px 0 0;
  font-size: 8px;
  color: #8b909a;
  background: transparent;
}

.tab.is-active {
  background: #1e1f22;
  color: #e8eef8;
}

.editor-code {
  margin: 0;
  padding: 8px 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 8.5px;
  line-height: 1.45;
  color: #d7dbe3;
}

.mac[data-phase="ship"] .editor-code {
  display: none;
}

.mac[data-phase="package"] #demoTabArchive,
.mac[data-phase="ship"] #demoTabStore {
  background: #1e1f22;
  color: #e8eef8;
}

.mac[data-phase="package"] #demoTabCode,
.mac[data-phase="ship"] #demoTabCode,
.mac[data-phase="ship"] #demoTabArchive {
  background: transparent;
  color: #8b909a;
}

.store-panel {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background:
    radial-gradient(280px 120px at 10% 0%, rgba(0, 119, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #151821 0%, #0f1218 100%);
  overflow: hidden;
}

.mac[data-phase="ship"] .store-panel {
  display: flex;
}

.store-panel[hidden] {
  display: none !important;
}

.mac[data-phase="ship"] .store-panel[hidden] {
  display: flex !important;
}

.store-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asc-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  background: linear-gradient(145deg, #38bdf8, #1d4ed8 55%, #0ea5e9);
  box-shadow: 0 0 12px rgba(0, 194, 255, 0.45);
}

.store-panel-head strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #e8eef8;
}

.store-panel-head small {
  display: block;
  font-size: 7.5px;
  color: #8b909a;
}

.store-app {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(125, 211, 252, 0.18);
}

.store-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #0077ff, #00c2ff);
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.4);
}

.store-app-meta b {
  display: block;
  font-size: 9px;
  color: #f1f5f9;
}

.store-app-meta span {
  display: block;
  font-size: 7.5px;
  color: #8b909a;
}

.store-badge {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 999px;
  color: #7dd3fc;
  background: rgba(0, 119, 255, 0.22);
  white-space: nowrap;
}

.store-badge.is-live {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.22);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.25);
}

.store-badge.is-review {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.18);
}

.store-steps {
  display: grid;
  gap: 3px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.store-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 7.5px;
  color: #6b7280;
  opacity: 0.45;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.store-step i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a3b40;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.store-step.is-active {
  opacity: 1;
  color: #7dd3fc;
}

.store-step.is-active i {
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 0 10px rgba(0, 194, 255, 0.55);
  animation: blink 1s ease-in-out infinite;
}

.store-step.is-done {
  opacity: 0.9;
  color: #6ee7b7;
}

.store-step.is-done i {
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
  animation: none;
}

.store-step.is-live {
  opacity: 1;
  color: #f8fafc;
  font-weight: 700;
}

.store-step.is-live i {
  background: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25), 0 0 14px rgba(34, 211, 238, 0.7);
  animation: none;
}

.store-progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.store-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0050c8, #0077ff, #00c2ff, #6ee7b7);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.55);
  transition: width 0.35s linear;
  animation: sheen 2s linear infinite;
}

.store-foot {
  font-size: 7px;
  color: #8b909a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac[data-phase="ship"] .macos {
  background:
    radial-gradient(800px 360px at 20% 10%, rgba(56, 189, 248, 0.5), transparent 55%),
    radial-gradient(700px 400px at 90% 80%, rgba(14, 165, 233, 0.45), transparent 50%),
    linear-gradient(160deg, #071528 0%, #0b3a6e 45%, #065f8a 100%);
}

.mac[data-phase="ship"] .dock-icon.safari {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 10px rgba(14, 165, 233, 0.55);
}

.editor-code .kw { color: #fc5fa3; }
.editor-code .tn { color: #67b7a4; }
.editor-code .st { color: #fc6a5d; }
.editor-code .fn { color: #a167e6; }

.console {
  flex-shrink: 0;
  height: 42%;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.4);
  background: #17181b;
}

.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  font-size: 8px;
  color: #8b909a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.console-phase {
  color: #7dd3fc;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.console-log {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 4px 8px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 7.5px;
  line-height: 1.5;
  color: #a8b0bd;
}

.console-log .line { white-space: nowrap; }
.console-log .ok { color: #6ee7b7; }
.console-log .info { color: #7dd3fc; }
.console-log .warn { color: #fbbf24; }
.console-log .dim { color: #6b7280; }

.console-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.console-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0050c8, #0077ff, #00c2ff);
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.55);
  transition: width 0.35s linear;
}

.phase-stack {
  display: grid;
  gap: 5px;
}

.phase {
  padding: 5px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  opacity: 0.4;
  transition: opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.phase span {
  display: block;
  font-size: 7px;
  color: #7dd3fc;
  letter-spacing: 0.06em;
}

.phase b {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  font-weight: 700;
  color: #e8eef8;
}

.phase small {
  display: block;
  margin-top: 1px;
  font-size: 7px;
  color: #8b909a;
}

.phase.is-done {
  opacity: 0.75;
  border-color: rgba(110, 231, 183, 0.25);
}

.phase.is-active {
  opacity: 1;
  background: rgba(0, 119, 255, 0.18);
  border-color: rgba(0, 194, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 194, 255, 0.2);
}

.dock {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  height: 28px;
  margin: 4px auto 5px;
  padding: 4px 10px;
  width: max-content;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.dock-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.dock-icon.finder { background: linear-gradient(160deg, #5ec8ff, #1a73e8); }
.dock-icon.safari { background: linear-gradient(160deg, #7dd3fc, #0369a1); }
.dock-icon.xcode { background: linear-gradient(160deg, #38bdf8, #1d4ed8); }
.dock-icon.terminal { background: linear-gradient(160deg, #334155, #0f172a); }
.dock-icon.is-open {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 10px rgba(0, 194, 255, 0.55);
}

.mac-chin {
  height: 12px;
  background: linear-gradient(180deg, #a8b4c2, #8e9aa8);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.mac-notch {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 72px;
  height: 5px;
  margin-left: -36px;
  border-radius: 0 0 4px 4px;
  background: #6f7b88;
}

.mac-base {
  height: 10px;
  margin: 0 auto;
  width: 118%;
  margin-left: -9%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #b7c2ce 0%, #8d99a6 55%, #7a8693 100%);
  box-shadow: 0 8px 16px rgba(15, 40, 80, 0.2);
}

.mac-foot {
  width: 28%;
  height: 3px;
  margin: 6px auto 0;
  border-radius: 0 0 3px 3px;
  background: #6d7885;
}

/* —— Sections —— */
.section {
  position: relative;
  padding: clamp(72px, 12vh, 120px) clamp(20px, 5vw, 72px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2,
.trust-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 36rem;
}

/* Services */
.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s ease, background 0.35s ease;
}

.service-row:hover {
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(0, 119, 255, 0.08), transparent 55%);
}

.service-index {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.service-body h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.service-body p {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-soft);
}

.service-tag {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 194, 255, 0.35);
}

/* Pricing */
.pricing-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

.price-plan {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 40px);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(155deg, rgba(0, 119, 255, 0.16), rgba(0, 194, 255, 0.06) 42%, rgba(255, 255, 255, 0.92)),
    var(--bg-elevated);
  border: 1px solid rgba(0, 119, 255, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 28px 60px rgba(0, 90, 200, 0.16);
  position: relative;
  overflow: hidden;
}

.price-plan::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.32), transparent 70%);
  pointer-events: none;
}

.price-plan-top,
.price-features,
.price-cta {
  position: relative;
  z-index: 1;
}

.price-plan-tag {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent-bright));
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.3);
}

.price-plan h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-plan-desc {
  margin: 10px 0 0;
  color: var(--ink-soft);
  max-width: 28rem;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 22px;
}

.price-amount .currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.price-amount .value {
  font-size: clamp(3.4rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-amount .unit {
  margin-left: 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.price-features {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  flex: 1;
}

.price-features li {
  display: grid;
  gap: 2px;
  padding: 12px 0 12px 16px;
  border-left: 2px solid rgba(0, 119, 255, 0.35);
}

.price-features strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.price-features span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.price-cta {
  margin-top: 28px;
  width: 100%;
  cursor: pointer;
  border: none;
}

.price-extras {
  display: grid;
  gap: 14px;
}

.price-extra {
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.price-extra:hover {
  border-color: rgba(0, 119, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 90, 200, 0.1);
}

.price-extra h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}

.price-extra p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* Flow */
.flow-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.flow-item {
  position: relative;
  padding-top: 8px;
}

.flow-item::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 42px;
  right: -28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(0, 194, 255, 0.25));
  opacity: 0.55;
}

.flow-item:last-child::before {
  display: none;
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.35);
}

.flow-item h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.flow-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* Trust */
.trust-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
  padding: clamp(36px, 5vw, 56px);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(135deg, rgba(0, 119, 255, 0.12), rgba(0, 194, 255, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(230, 242, 255, 0.9));
  border: 1px solid rgba(0, 119, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 24px 60px rgba(0, 90, 200, 0.12);
  position: relative;
  overflow: hidden;
}

.trust-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.28), transparent 70%);
  animation: pulseGlow 6s ease-in-out infinite;
  pointer-events: none;
}

.trust-copy,
.trust-metrics {
  position: relative;
  z-index: 1;
}

.trust-copy p:last-child {
  margin: 18px 0 0;
  color: var(--ink-soft);
  max-width: 38rem;
}

.trust-metrics {
  margin: 0;
  display: grid;
  gap: 22px;
}

.trust-metrics div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.trust-metrics div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.trust-metrics dt {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-metrics dd {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Pay modal */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pay-modal[hidden] {
  display: none;
}

.pay-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 36, 0.62);
  backdrop-filter: blur(8px);
}

.pay-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 40, 100, 0.35);
  text-align: center;
  animation: modalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.pay-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 119, 255, 0.08);
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pay-modal-close:hover {
  background: rgba(0, 119, 255, 0.16);
  color: var(--ink);
}

.pay-modal-dialog h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pay-modal-desc {
  margin: 8px 0 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.pay-modal-qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.pay-open {
  overflow: hidden;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Footer */
.footer {
  padding: 40px clamp(20px, 5vw, 72px) 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(0, 119, 255, 0.05));
}

.footer-brand {
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@keyframes floaty {
  0%, 100% { transform: perspective(1400px) rotateY(-10deg) rotateX(5deg) translateY(0); }
  50% { transform: perspective(1400px) rotateY(-7deg) rotateX(3deg) translateY(-14px); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-30px, 22px, 0) scale(1.08); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25), 0 0 12px rgba(56, 189, 248, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0.1), 0 0 22px rgba(0, 194, 255, 0.85); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes sheen {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scan {
  0% { background-position: 0% -40%; }
  100% { background-position: 0% 140%; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes gridShift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 44px 44px, 44px 44px; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 48px);
  }

  .hero-stage {
    order: -1;
  }

  .orbit-ring {
    display: none;
  }

  .mac {
    width: min(100%, 460px);
    transform: perspective(1200px) rotateY(-4deg) rotateX(3deg);
  }

  .xcode-body {
    grid-template-columns: 78px 1fr 0;
  }

  .xcode-inspector {
    display: none;
  }

  .flow-track {
    grid-template-columns: 1fr 1fr;
  }

  .flow-item::before {
    display: none;
  }

  .trust-panel,
  .pricing-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .service-row {
    grid-template-columns: 48px 1fr;
    gap: 12px 16px;
  }

  .service-tag {
    grid-column: 2;
  }

  .flow-track {
    grid-template-columns: 1fr;
  }

  .mac {
    width: 100%;
    transform: none;
    animation: none;
    filter: drop-shadow(0 18px 30px rgba(0, 80, 200, 0.28));
  }

  .menubar-left span:nth-child(n + 4) {
    display: none;
  }

  .xcode-body {
    grid-template-columns: 0 1fr 0;
  }

  .xcode-sidebar {
    display: none;
  }

  .brand-mark {
    font-size: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mac,
  .hero-glow,
  .hero-scan,
  .orbit-ring,
  .stage-orb,
  .tb-run,
  .nav-cta,
  .btn-primary,
  .brand-mark,
  .hero-grid,
  .trust-panel::after {
    animation: none;
  }
}
