:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #14b8a6;
  --accent-deep: #0d9488;
  --dot-coral: #fb7185;
  --dot-teal: #2dd4bf;
  --dot-lavender: #a78bfa;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 70% 40% at 50% -10%, rgba(20, 184, 166, 0.08), transparent 65%);
}

.noise {
  display: none;
}

.container {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.logo img,
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent-deep);
  color: #ffffff;
}

.btn-primary:hover {
  background: #0f766e;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(15, 23, 42, 0.2);
  background: #fafafa;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 36px 0 88px;
  position: relative;
}

.hero-badge {
  --hb-w: 248px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px 10px 16px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.16);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--accent-deep);
  overflow: hidden;
  max-width: 100%;
  width: var(--hb-w);
  box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.hero-badge.is-catch {
  box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.08);
}

.hero-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 48%, transparent 64%);
  transform: translateX(-120%);
  pointer-events: none;
}

.hero-badge.is-shine::after {
  animation: hbShine 1.15s ease forwards;
}

@keyframes hbShine {
  to { transform: translateX(120%); }
}

.hb-scene {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.hb-pocket {
  width: 28px;
  height: 28px;
  color: var(--accent-deep);
  transform-origin: 50% 70%;
}

.hero-badge.is-catch .hb-pocket {
  animation: hbCatch 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hbCatch {
  0% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(-6deg); }
  100% { transform: scale(1); }
}

.hb-dot {
  position: absolute;
  top: 3px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(-10px) scale(0.4);
}

.hb-dot-a { left: 1px; background: #fb7185; }
.hb-dot-b { left: 10px; background: #2dd4bf; }
.hb-dot-c { left: 19px; background: #a78bfa; }

.hero-badge.is-play .hb-dot {
  animation: hbDotIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    hbDotTuck 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-badge.is-play .hb-dot-a { animation-delay: 0.08s, 1.35s; }
.hero-badge.is-play .hb-dot-b { animation-delay: 0.22s, 1.5s; }
.hero-badge.is-play .hb-dot-c { animation-delay: 0.36s, 1.65s; }

@keyframes hbDotIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hbDotTuck {
  to { opacity: 0; transform: translate(4px, 14px) scale(0.2); }
}

.hb-copy {
  position: relative;
  flex: 1;
  height: 1.35em;
  overflow: hidden;
}

.hb-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(110%);
}

.hero-badge:not(.is-play) .hb-word:not(.hb-word-final) {
  display: none;
}

.hero-badge:not(.is-play) .hb-word-final {
  position: relative;
  opacity: 1;
  transform: none;
}

.hb-word.is-in {
  animation: hbWordIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hb-word.is-out {
  animation: hbWordOut 0.5s ease forwards;
}

@keyframes hbWordIn {
  from { opacity: 0; transform: translateY(110%) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hbWordOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-110%); }
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero-copy h1 span {
  color: var(--accent-deep);
}

.hero-copy h1 + p {
  font-size: clamp(1.2rem, 2vw, 1.38rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-actions .btn {
  padding: 14px 26px;
  font-size: 1.05rem;
}

.hero-meta {
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.hero-demo {
  background: #eef2f3;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(15, 118, 110, 0.12);
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.demo-device {
  padding: 10px 10px 0;
  background: linear-gradient(180deg, #f7f8f9 0%, #e8ecee 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.demo-screen {
  position: relative;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  aspect-ratio: 16 / 10;
  background:
    url("assets/demo-wallpaper.png") center / cover no-repeat;
}

.demo-screen-top {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.demo-desktop {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  background: transparent;
}

.demo-menubar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  height: 28px;
  padding: 0 10px 0 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  line-height: 1;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.demo-menubar-left {
  grid-column: 1;
  gap: 11px;
  height: 100%;
  flex-shrink: 0;
}

.demo-menubar-icons {
  grid-column: 2;
  min-width: 0;
  height: 100%;
  justify-content: flex-end;
  overflow: hidden;
}

.demo-system {
  grid-column: 3;
  gap: 9px;
  padding-left: 4px;
  font-size: 13px;
  color: #1d1d1f;
  height: 100%;
  flex-shrink: 0;
}

.demo-apple-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.demo-apple {
  width: 11px;
  height: 13px;
  display: block;
}

.demo-menu-item {
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.demo-menu-item.is-app {
  font-weight: 600;
}

.demo-menubar-left,
.demo-menubar-icons,
.demo-system,
.demo-icons-slot,
.demo-clutter,
.demo-pockets {
  display: flex;
  align-items: center;
}

.demo-icons-slot {
  position: relative;
  height: 22px;
  width: 100%;
  max-width: 100%;
  justify-content: flex-end;
  overflow: hidden;
}

.demo-clutter,
.demo-pockets {
  gap: 2px;
  height: 22px;
  flex-shrink: 0;
}

.demo-clutter {
  opacity: 1;
  justify-content: flex-end;
  max-width: 100%;
  overflow: hidden;
}

.demo-pockets {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: max-content;
  max-width: 100%;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
}

.demo-icon {
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: calc(var(--i, 0) * 25ms);
}

.hero-demo[data-phase="clean"] .demo-icon,
.hero-demo[data-phase="open"] .demo-icon {
  opacity: 0;
  transform: scale(0.5);
}

.demo-status-icon,
.demo-barpocket-icon {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: calc(var(--i, 0) * 120ms + 200ms);
}

.hero-demo[data-phase="clean"] .demo-status-icon,
.hero-demo[data-phase="open"] .demo-status-icon,
.hero-demo[data-phase="clean"] .demo-barpocket-icon,
.hero-demo[data-phase="open"] .demo-barpocket-icon {
  opacity: 1;
  transform: scale(1);
}

.demo-icon,
.demo-status-icon,
.demo-barpocket-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #1d1d1f;
  flex-shrink: 0;
}

.demo-icon svg,
.demo-status-icon svg,
.demo-barpocket-icon svg,
.demo-barpocket-icon img {
  width: 14px;
  height: 14px;
  display: block;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.demo-barpocket-icon img {
  object-fit: contain;
}

.hero-demo[data-phase="clean"] .demo-clutter,
.hero-demo[data-phase="open"] .demo-clutter {
  pointer-events: none;
}

.hero-demo[data-phase="clean"] .demo-pockets,
.hero-demo[data-phase="open"] .demo-pockets {
  opacity: 1;
}

.demo-system-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.demo-system-icon svg[viewBox="0 0 22 12"] {
  width: 20px;
  height: 11px;
}

.demo-clock {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}

.demo-panel {
  position: absolute;
  width: 248px;
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s 0.28s;
  pointer-events: none;
  z-index: 25;
  left: 0;
  top: 0;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
}

.demo-panel-arrow {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #ffffff;
  transform: rotate(45deg);
  border-radius: 1.5px;
  z-index: 1;
}

.demo-panel-inner {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.hero-demo[data-panel-open="true"] .demo-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s;
}

.hero-demo[data-panel-open="true"] .demo-pocket-vpn {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 5px;
}

.demo-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 14px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.demo-panel-symbol {
  width: 16px;
  height: 16px;
  color: #1d1d1f;
  flex-shrink: 0;
  overflow: visible;
}

.demo-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  flex: 1;
  letter-spacing: -0.01em;
}

.demo-panel-gear {
  width: 15px;
  height: 15px;
  color: #86868b;
  flex-shrink: 0;
  margin-right: 2px;
  overflow: visible;
}

.demo-panel-apps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.demo-panel-apps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #1d1d1f;
  line-height: 1.2;
}

.demo-panel-apps li + li {
  box-shadow: inset 46px 0 0 #ffffff, inset 0 0.5px 0 rgba(0, 0, 0, 0.1);
}

.demo-app-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
}

.demo-app-icon img {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 5px;
}

.demo-panel-footer {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 14px;
  font-size: 11px;
  font-family: inherit;
  color: #6e6e73;
  text-align: left;
  background: transparent;
  border: none;
  border-top: 0.5px solid rgba(0, 0, 0, 0.1);
  cursor: default;
}

/* Animated cursor - positioned by demo.js */
.demo-cursor {
  position: absolute;
  z-index: 30;
  width: 24px;
  height: 28px;
  opacity: 0;
  pointer-events: none;
  left: 0;
  top: 0;
  transform: translate(-4px, -4px);
  transition: left 0.65s ease, top 0.65s ease, opacity 0.25s ease, transform 0.15s ease;
}

.demo-cursor-icon {
  width: 24px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.demo-cursor-ring {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(20, 184, 166, 0.7);
  opacity: 0;
  transform: scale(0.4);
}

.demo-cursor.is-visible {
  opacity: 1;
}

.demo-cursor.is-clicking {
  transform: translate(-4px, -4px) scale(0.88);
}

.demo-cursor.is-clicking .demo-cursor-ring {
  animation: demo-cursor-ring 0.45s ease forwards;
}

@keyframes demo-cursor-ring {
  0% {
    opacity: 0.9;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

.demo-system-item {
  display: flex;
  align-items: center;
  line-height: 1;
}

.demo-caption {
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  background: #f3f6f6;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  transition: opacity 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .demo-icon,
  .demo-status-icon,
  .demo-barpocket-icon,
  .demo-panel {
    transition: none !important;
  }

  .hero-demo .demo-icon { opacity: 0; transform: none; }
  .hero-demo .demo-pockets { opacity: 1; }
  .hero-demo .demo-status-icon,
  .hero-demo .demo-barpocket-icon { opacity: 1; transform: none; }
  .hero-demo .demo-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .pocket-stage .pocket-tile,
  .pocket-stage.is-open .pocket-tile {
    opacity: 1;
    transition: none;
  }

  .pocket-stage .pocket-tile-a,
  .pocket-stage.is-open .pocket-tile-a {
    transform: translate(-150px, -148px) rotate(-10deg);
  }

  .pocket-stage .pocket-tile-b,
  .pocket-stage.is-open .pocket-tile-b {
    transform: translate(-90px, -178px) rotate(-6deg);
  }

  .pocket-stage .pocket-tile-c,
  .pocket-stage.is-open .pocket-tile-c {
    transform: translate(-30px, -194px) rotate(-2deg);
  }

  .pocket-stage .pocket-tile-d,
  .pocket-stage.is-open .pocket-tile-d {
    transform: translate(30px, -194px) rotate(2deg);
  }

  .pocket-stage .pocket-tile-e,
  .pocket-stage.is-open .pocket-tile-e {
    transform: translate(90px, -178px) rotate(6deg);
  }

  .pocket-stage .pocket-tile-f,
  .pocket-stage.is-open .pocket-tile-f {
    transform: translate(150px, -148px) rotate(10deg);
  }
}


section {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 56px;
  line-height: 1.7;
}

.section-desc-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pocket-scene {
  text-align: center;
  padding: 40px 0 80px;
}

.pocket-scene .section-desc {
  margin-bottom: 24px;
}

.pocket-stage {
  position: relative;
  width: min(560px, 100%);
  height: 460px;
  margin: 0 auto;
}

.pocket-tiles {
  position: absolute;
  left: 50%;
  top: 196px;
  width: 0;
  height: 0;
  z-index: 1;
}

.pocket-tile {
  position: absolute;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  width: 68px;
  left: 0;
  margin-left: -34px;
  opacity: 0;
  transform: translate(0, 48px) scale(0.78);
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  transition-delay: calc(var(--i) * 70ms);
}

.pocket-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.pocket-tile-icon svg {
  width: 24px;
  height: 24px;
}

.pocket-tile span:last-child {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
}

.pocket-tile-a .pocket-tile-icon { background: #fb7185; }
.pocket-tile-b .pocket-tile-icon { background: #4ade80; }
.pocket-tile-c .pocket-tile-icon { background: #60a5fa; }
.pocket-tile-d .pocket-tile-icon { background: #a78bfa; }
.pocket-tile-e .pocket-tile-icon { background: #fbbf24; }
.pocket-tile-f .pocket-tile-icon { background: #f97316; }

.pocket-stage.is-open .pocket-tile {
  opacity: 1;
}

.pocket-stage.is-open .pocket-tile-a {
  transform: translate(-150px, -148px) rotate(-10deg);
}

.pocket-stage.is-open .pocket-tile-b {
  transform: translate(-90px, -178px) rotate(-6deg);
}

.pocket-stage.is-open .pocket-tile-c {
  transform: translate(-30px, -194px) rotate(-2deg);
}

.pocket-stage.is-open .pocket-tile-d {
  transform: translate(30px, -194px) rotate(2deg);
}

.pocket-stage.is-open .pocket-tile-e {
  transform: translate(90px, -178px) rotate(6deg);
}

.pocket-stage.is-open .pocket-tile-f {
  transform: translate(150px, -148px) rotate(10deg);
}

.pocket-body {
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: min(300px, 82%);
  height: auto;
  margin-left: 0;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(15, 118, 110, 0.16));
}

.steps {
  display: grid;
  grid-template-columns: 1fr 76px 1fr 76px 1fr;
  gap: 0 6px;
  align-items: stretch;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  opacity: 0.72;
}

.step-arrow svg {
  width: 72px;
  height: 44px;
  display: block;
  overflow: visible;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  padding: 8px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-deep);
  box-sizing: border-box;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.download-section {
  border-top: 1px solid var(--border);
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 52px;
  box-shadow: var(--shadow);
}

.download-logo-wrap {
  margin-bottom: 16px;
}

.download-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.2);
}

.download-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 8px;
}

.download-info p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.download-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-deep);
  flex-shrink: 0;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  min-width: 220px;
}

.download-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.faq {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 1.8px solid var(--text-muted);
  border-bottom: 1.8px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

footer {
  padding: 64px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-logo {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border-radius: 9px;
}

@media (max-width: 900px) {
  .hero,
  .features {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .step-arrow {
    height: 28px;
    transform: rotate(90deg);
  }

  .hero {
    gap: 32px;
    padding-bottom: 72px;
  }

  .hero-visual {
    justify-content: stretch;
  }

  .hero-demo {
    min-height: 0;
  }

  .demo-screen {
    min-height: 280px;
    aspect-ratio: 16 / 11;
  }

  .demo-menu-item:nth-child(n+5) {
    display: none;
  }

  .demo-clock {
    font-size: 12px;
  }

  .download-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .download-specs {
    justify-content: center;
  }

  .nav-links a:not(.btn) {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px);
  }

  nav {
    padding: 20px 0;
  }

  .hero {
    padding: 20px 0 48px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-copy p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .demo-device {
    padding: 6px 6px 0;
  }

  .demo-screen {
    min-height: 220px;
    aspect-ratio: 16 / 12;
  }

  .demo-menubar {
    height: 24px;
    padding: 0 6px 0 8px;
    font-size: 11px;
    column-gap: 6px;
  }

  .demo-menu-item:nth-child(n + 4) {
    display: none;
  }

  .demo-system {
    gap: 6px;
    font-size: 11px;
  }

  .demo-system-item:nth-child(2),
  .demo-system-item[title="Spotlight"],
  .demo-system-item[title="Control Center"],
  .demo-clock {
    display: none;
  }

  .demo-panel {
    width: min(248px, calc(100% - 12px));
  }

  .demo-caption {
    font-size: 0.78rem;
    padding: 10px 12px;
  }

  section {
    padding: 64px 0;
  }

  .pocket-scene {
    padding: 24px 0 48px;
  }

  .pocket-stage {
    height: 390px;
    overflow: hidden;
  }

  .pocket-tiles {
    top: 168px;
  }

  .pocket-tile {
    width: 54px;
    margin-left: -27px;
    gap: 4px;
  }

  .pocket-tile-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .pocket-tile-icon svg {
    width: 18px;
    height: 18px;
  }

  .pocket-tile span:last-child {
    font-size: 0.6rem;
  }

  .pocket-stage.is-open .pocket-tile-a,
  .pocket-stage .pocket-tile-a {
    transform: translate(-102px, -96px) rotate(-10deg);
  }

  .pocket-stage.is-open .pocket-tile-b,
  .pocket-stage .pocket-tile-b {
    transform: translate(-60px, -118px) rotate(-6deg);
  }

  .pocket-stage.is-open .pocket-tile-c,
  .pocket-stage .pocket-tile-c {
    transform: translate(-20px, -130px) rotate(-2deg);
  }

  .pocket-stage.is-open .pocket-tile-d,
  .pocket-stage .pocket-tile-d {
    transform: translate(20px, -130px) rotate(2deg);
  }

  .pocket-stage.is-open .pocket-tile-e,
  .pocket-stage .pocket-tile-e {
    transform: translate(60px, -118px) rotate(6deg);
  }

  .pocket-stage.is-open .pocket-tile-f,
  .pocket-stage .pocket-tile-f {
    transform: translate(102px, -96px) rotate(10deg);
  }

  .pocket-body {
    width: min(200px, 62%);
    bottom: 4px;
  }
}

footer a {
  color: var(--accent-deep);
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    animation: fadeUp 0.7s ease both;
  }

  .fade-up-delay-1 { animation-delay: 0.1s; }
  .fade-up-delay-2 { animation-delay: 0.2s; }
  .fade-up-delay-3 { animation-delay: 0.3s; }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .pocket-stage.is-open .pocket-body {
    animation: pocketBob 4.2s ease-in-out 0.8s infinite;
  }

  @keyframes pocketBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-7px); }
  }

  .pocket-stage.is-open .pocket-tile-icon {
    animation: tileFloat 3.4s ease-in-out infinite;
    animation-delay: calc(0.95s + var(--i) * 140ms);
  }

  @keyframes tileFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }

  .reveal.is-waiting {
    opacity: 0;
    transform: translateY(14px);
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
}
