/* Pixel Veil — marketing site
   Heavily inspired by modern macOS-app landing pages (Superwhisper, Raycast,
   Linear). Dark-first, generous type, premium feel. Hand-written CSS with
   advanced animations: letter-by-letter hero reveal, mouse-tracked gradient
   cursor glow, 3D tilt on the app mockup, magnetic button hover, scroll
   parallax, animated gradient borders, staggered section entries. */

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

:root {
  --bg: #07060d;
  --bg-soft: #0f0d1a;
  --card: #16132a;
  --card-hi: #1d1935;
  --border: rgba(255,255,255,0.08);
  --border-hi: rgba(255,255,255,0.14);
  --text: #ecebf2;
  --text-dim: #a6a2b8;
  --text-dimmer: #6f6b84;
  --accent: #a590ff;
  --accent-2: #7b5cff;
  --accent-soft: #2a1f55;
  --danger: #ff5d6b;
  --ok: #7ae09d;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.05) inset, 0 10px 40px rgba(0,0,0,0.35);
  --container: 1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255,255,255,0.06);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ================== Buttons ================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-xl { font-size: 15px; padding: 14px 22px; border-radius: 12px; }

.btn-primary {
  background: linear-gradient(180deg, #9b83ff 0%, #7b5cff 100%);
  color: white;
  box-shadow: 0 6px 22px -6px rgba(123, 92, 255, 0.6), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.btn-primary:hover { box-shadow: 0 10px 30px -6px rgba(123, 92, 255, 0.7), 0 1px 0 rgba(255,255,255,0.25) inset; }

.btn-ghost {
  color: var(--text-dim);
  background: transparent;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.btn-ghost-outline {
  color: var(--text);
  border-color: var(--border-hi);
  background: rgba(255,255,255,0.02);
}
.btn-ghost-outline:hover { border-color: var(--accent); background: rgba(123, 92, 255, 0.08); }

/* ================== Floating nav ================== */

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 36px);
  max-width: 1120px;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  background: rgba(12, 10, 22, 0.75);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-brand img { width: 28px; height: 28px; object-fit: contain; }
.nav-links {
  display: flex;
  gap: 20px;
  margin-left: 16px;
  margin-right: auto;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 8px; }

@media (max-width: 780px) {
  .nav-links { display: none; }
}

/* ================== Hero ================== */

.hero {
  position: relative;
  padding: 150px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center top, rgba(0,0,0,0.6) 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, rgba(0,0,0,0.6) 30%, transparent 70%);
}
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero-bg-orb-1 {
  width: 520px; height: 520px;
  left: 50%; top: -150px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(123, 92, 255, 0.55), transparent 60%);
}
.hero-bg-orb-2 {
  width: 420px; height: 420px;
  right: -140px; top: 80px;
  background: radial-gradient(circle, rgba(165, 144, 255, 0.4), transparent 60%);
}
.hero-inner { position: relative; max-width: 920px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(165, 144, 255, 0.2);
}

.hero h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 .grad {
  display: block;
  background: linear-gradient(90deg, #c6b5ff, #7b5cff 60%, #a590ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 32px;
}
.hero-cta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-meta {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-dimmer);
}

/* App hero visual (fake app window) */

.hero-visual {
  margin-top: 70px;
  perspective: 1500px;
}
.hero-window {
  position: relative;
  margin: 0 auto;
  max-width: 960px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow:
    0 60px 140px rgba(123, 92, 255, 0.22),
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 30px 60px rgba(0,0,0,0.6);
  overflow: hidden;
  transform: rotateX(3deg);
  transition: transform 0.4s ease;
}
.hero-window:hover { transform: rotateX(0deg); }

.hero-window-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border);
}
.hero-window-chrome .dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
}
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.hero-window-title {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.hero-window-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 420px;
}
.sidebar {
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0,0,0,0.15);
}
.sb-app {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 10px;
}
.sb-app img { width: 32px; height: 32px; object-fit: contain; }
.sb-app-name { font-size: 13px; font-weight: 600; }
.sb-app-sub { font-size: 11px; color: var(--text-dimmer); }
.sb-row {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sb-row.active { background: linear-gradient(90deg, rgba(123, 92, 255, 0.35), rgba(123, 92, 255, 0.15)); color: white; }
.sb-icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}
.sb-row.active .sb-icon { color: white; }

.detail {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 220px;
  grid-template-areas:
    "main  side"
    "main  side2";
  gap: 12px;
}
.hero-card-main { grid-area: main; }
.hero-card-small { grid-area: side; }
.hero-card-small + .hero-card-small { grid-area: side2; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.hero-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hero-card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(123, 92, 255, 0.2);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.hero-card-title { font-weight: 600; font-size: 15px; }
.hero-card-sub {
  font-size: 12px;
  color: var(--ok);
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(122,224,157,0.25);
}
.toggle {
  margin-left: auto;
  width: 38px; height: 22px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}
.toggle.on { background: linear-gradient(180deg, #9b83ff, #7b5cff); }
.toggle span {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: left 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.toggle.on span { left: 18px; }
.slider-row { margin-bottom: 14px; }
.slider-label {
  display: flex; justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.slider-val { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.slider {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
.slider-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #9b83ff, #7b5cff);
  border-radius: 3px;
}
.slider-thumb {
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.pattern-row { display: flex; gap: 6px; }
.pattern-chip {
  flex: 1;
  font-size: 11.5px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pattern-chip svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.pattern-chip.active {
  color: var(--accent);
  background: rgba(123, 92, 255, 0.18);
  border-color: rgba(123, 92, 255, 0.45);
}
.hcs-title { font-size: 12.5px; font-weight: 600; margin-bottom: 10px; color: var(--text-dim); }
.hcs-row { display: flex; align-items: center; gap: 10px; }
.hcs-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: grid; place-items: center;
  color: var(--accent);
}
.hcs-icon svg { width: 16px; height: 16px; }
.hcs-row-title { font-size: 12.5px; font-weight: 500; }
.hcs-row-sub { font-size: 10.5px; color: var(--text-dimmer); }
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
}

@media (max-width: 820px) {
  .hero-window-body { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .detail { grid-template-columns: 1fr; grid-template-areas: "main" "side" "side2"; }
}

/* ================== Section heads ================== */

section {
  padding: 100px 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 18px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.55;
}

/* ================== Features ================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.feature:hover {
  border-color: rgba(123, 92, 255, 0.4);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.06), rgba(123, 92, 255, 0.02));
}
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(123, 92, 255, 0.15);
  margin-bottom: 16px;
  position: relative;
}
.feature-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: no-repeat center / 60% 60%;
}
.feature-icon[data-i="shield"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a590ff'%3E%3Cpath d='M12 2l8 4v6c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V6l8-4z'/%3E%3C/svg%3E"); }
.feature-icon[data-i="sun"]::before    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a590ff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
.feature-icon[data-i="bolt"]::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a590ff'%3E%3Cpath d='M13 2L3 14h7l-1 8 10-12h-7l1-8z'/%3E%3C/svg%3E"); }
.feature-icon[data-i="grid"]::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a590ff'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
.feature-icon[data-i="display"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a590ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
.feature-icon[data-i="apps"]::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a590ff' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='3.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.feature-icon[data-i="clock"]::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a590ff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.feature-icon[data-i="lock"]::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a590ff' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }

@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .feature-grid { grid-template-columns: 1fr; } }

/* ================== How it works ================== */

.how { background: radial-gradient(ellipse at 50% 0%, rgba(123, 92, 255, 0.08), transparent 60%); }
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.how-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.how-steps { display: flex; flex-direction: column; gap: 30px; }
.how-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
}
.how-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(123, 92, 255, 0.1);
  align-self: flex-start;
  height: fit-content;
}
.how-step h3 { font-size: 18px; margin-bottom: 6px; }
.how-step p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ================== Preview ================== */

.preview-visual {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.12), rgba(123, 92, 255, 0.02));
  border: 1px solid var(--border);
}
.preview-visual img {
  width: 100%;
  border-radius: var(--radius);
}

/* ================== Quotes ================== */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.quote {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.quote blockquote {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 16px;
  color: var(--text);
}
.quote figcaption {
  font-size: 13px;
  color: var(--text-dimmer);
}

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

/* ================== FAQ ================== */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-list details {
  padding: 20px 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-list details[open] {
  background: var(--card);
  border-color: var(--border-hi);
}
.faq-list summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '＋';
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { content: '－'; }
.faq-list p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ================== Download ================== */

.download-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 40px;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at center, rgba(123, 92, 255, 0.18), rgba(123, 92, 255, 0.03) 70%), var(--card);
  border: 1px solid var(--border-hi);
  text-align: center;
  box-shadow: 0 40px 100px rgba(123, 92, 255, 0.15);
}
.download-logo img {
  width: 88px; height: 88px;
  margin: 0 auto 24px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(123, 92, 255, 0.5));
}
.download-card p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 12px auto 32px;
  max-width: 460px;
}
.download-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.download-fine {
  font-size: 13px;
  color: var(--text-dimmer);
  margin-top: 0 !important;
}
.dl-version {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(123, 92, 255, 0.2);
  color: var(--accent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
}

/* Gatekeeper first-launch note inside the download card. */
.gatekeeper {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: var(--radius);
  text-align: left;
  background: rgba(255, 204, 117, 0.06);
  border: 1px solid rgba(255, 204, 117, 0.18);
}
.gk-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffc882;
  margin-bottom: 8px;
}
.gatekeeper p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}
.gatekeeper strong { color: var(--text); font-weight: 600; }
.gatekeeper em     { color: var(--accent); font-style: normal; font-weight: 500; }
.gk-alt {
  margin-top: 10px !important;
  font-size: 12.5px !important;
  color: var(--text-dimmer) !important;
}
.gk-alt code {
  background: rgba(0,0,0,0.35);
  color: var(--accent);
  padding: 2px 8px;
}

/* ================== Community ================== */

.community-inner {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(123, 92, 255, 0.12));
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.community-inner h2 { margin: 10px 0; }
.community-inner p { color: var(--text-dim); max-width: 520px; }

@media (max-width: 760px) {
  .community-inner { grid-template-columns: 1fr; text-align: center; }
  .community-inner .btn { justify-self: center; }
}

/* ================== Footer ================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.footer-brand img { width: 26px; height: 26px; object-fit: contain; }
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text); }
.footer-fine { font-size: 13px; color: var(--text-dimmer); }

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-links { flex-wrap: wrap; }
}

/* ================== Reveal-on-scroll ================== */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ================== Scroll progress bar ================== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #9b83ff, #c6b5ff, #7b5cff);
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(155, 131, 255, 0.6);
}

/* ================== Nav brand: larger logo ================== */

.nav-brand-mark {
  object-fit: contain;
  border-radius: 9px;
  filter: drop-shadow(0 4px 14px rgba(123, 92, 255, 0.4));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-brand:hover .nav-brand-mark { transform: rotate(-6deg) scale(1.08); }

/* ================== Hero: letter-by-letter title reveal ================== */

.hero-title .hero-line {
  display: block;
  overflow: hidden;
  line-height: 1.04;
}
.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotateX(-30deg);
  transform-origin: 50% 100%;
  animation: charIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes charIn {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}
.hero-title .space { display: inline-block; width: 0.28em; }

/* Fade the hero sub + CTA in sequence */
.hero-sub,
.hero-cta,
.hero-meta {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-sub   { animation-delay: 0.7s; }
.hero-cta   { animation-delay: 0.85s; }
.hero-meta  { animation-delay: 1.0s; }
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* ================== Mouse-tracked cursor glow ================== */

.hero-bg-cursor {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 144, 255, 0.35), transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(40px);
  z-index: 1;
  mix-blend-mode: screen;
}
.hero:hover .hero-bg-cursor { opacity: 1; }

/* Background orbs: subtle float even without mouse input */
.hero-bg-orb-1 { animation: orbFloat1 14s ease-in-out infinite; }
.hero-bg-orb-2 { animation: orbFloat2 18s ease-in-out infinite; }
@keyframes orbFloat1 {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 30px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-20px, 40px); }
}

/* ================== 3D tilt transform containers ================== */

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  will-change: transform;
}
.hero-window {
  transform: perspective(1500px) rotateX(4deg);
}
.hero-visual {
  perspective: 1500px;
  will-change: transform;
}

/* ================== How-visual: proper contrast against dark bg ================== */

/* The onboarding PNG is drawn for light backgrounds. Wrap it in a brighter
   card with an animated gradient border so it reads on our dark theme. */
.how-visual { position: relative; border-radius: var(--radius-lg); }
.how-visual::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, #7b5cff, #c6b5ff, #7b5cff, #a590ff, #7b5cff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: borderSpin 6s linear infinite;
  z-index: 0;
  opacity: 0.6;
}
@keyframes borderSpin { to { transform: rotate(1turn); } }

.how-visual-inner {
  position: relative;
  z-index: 1;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(198, 181, 255, 0.15), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(123, 92, 255, 0.1), transparent 60%),
    #f6f4ff;
  overflow: hidden;
}
.how-visual-inner img {
  width: 100%;
  display: block;
}

/* ================== Magnetic button hover ================== */

.btn { will-change: transform; }
.btn.magnetic { transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }

/* ================== Feature cards: hover glow ================== */

.feature { position: relative; overflow: hidden; }
.feature::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(165, 144, 255, 0.22), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature:hover::after { opacity: 1; }

/* ================== Card: pattern row animated pulse for active ================== */

.pattern-chip.active {
  position: relative;
}
.pattern-chip.active::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(123, 92, 255, 0.55);
  animation: pulseBorder 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulseBorder {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 0; transform: scale(1.04); }
}

/* ================== Reduced-motion fallback ================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .char { opacity: 1; transform: none; }
  .hero-sub, .hero-cta, .hero-meta { opacity: 1; transform: none; }
}
