/* Silo — dark, modern marketing site (shares Velox's design language) */

:root {
  color-scheme: dark;

  --bg: #0a0c10;
  --bg-elev: #11141b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.07);

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef1f6;
  --muted: #98a2b3;
  --faint: #6b7585;

  --accent: #4f93ff;
  --accent-bright: #84b6ff;
  --accent-ink: #04101f;
  --accent-soft: rgba(79, 147, 255, 0.14);
  --violet: #9d7cf0;
  --amber: #f0a35e;

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --w: 1140px;
  --nav-h: 62px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(79, 147, 255, 0.13), transparent 60%),
    radial-gradient(820px 480px at 92% -4%, rgba(157, 124, 240, 0.12), transparent 58%),
    var(--bg);
  background-repeat: no-repeat;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(79, 147, 255, 0.3);
  color: #fff;
}

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

p a {
  text-decoration: underline;
  text-decoration-color: rgba(79, 147, 255, 0.4);
  text-underline-offset: 0.18em;
}

p a:hover {
  text-decoration-color: var(--accent);
}

code {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.08rem 0.34rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  color: #d6e6ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  width: min(var(--w), calc(100% - 40px));
  height: var(--nav-h);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.nav-cta {
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.nav-cta:hover {
  background: var(--surface-2);
}

.nav-stat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease;
}

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

.nav-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-stat-sep {
  width: 1px;
  height: 13px;
  background: var(--border-strong);
}

.nav-stat-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 124px) 0 clamp(36px, 6vw, 64px);
  text-align: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 78%);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 26px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
}

.badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  content: "";
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  background: linear-gradient(125deg, #ffffff 38%, var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.actions,
.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .actions {
  justify-content: center;
}

.hero-shot {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 24px));
  margin: clamp(52px, 7vw, 92px) auto 0;
}

.hero-shot::before {
  position: absolute;
  inset: -14% 8% auto;
  height: 72%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(79, 147, 255, 0.28), transparent 70%);
  filter: blur(46px);
  content: "";
  z-index: -1;
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.62);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 22px;
  font-weight: 600;
  font-size: 0.98rem;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 8px 30px rgba(79, 147, 255, 0.28);
}

.button.primary:hover {
  box-shadow: 0 14px 42px rgba(79, 147, 255, 0.4);
}

.button.secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: var(--surface-2);
}

/* ---------- capability band ---------- */

.metric-band {
  display: grid;
  width: min(var(--w), calc(100% - 40px));
  margin: clamp(8px, 4vw, 40px) auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--border);
  overflow: hidden;
}

.metric {
  background: var(--bg-elev);
  padding: clamp(22px, 3vw, 32px);
}

.metric-value {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #eaf2ff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- sections ---------- */

.section {
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(34px, 5vw, 52px);
  text-align: center;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

/* ---------- feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  padding: 26px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(79, 147, 255, 0.22);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- split + flow card ---------- */

.split {
  display: grid;
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--border);
}

.split p {
  color: var(--muted);
}

.flow {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--border);
  box-shadow: var(--shadow);
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-elev);
}

.flow-step .n {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(79, 147, 255, 0.3);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.flow-step h4 {
  margin: 3px 0 4px;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- comparison (graphics support) ---------- */

#graphics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.comparison {
  width: min(860px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elev);
}

.comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row span {
  color: var(--text);
}

.comparison-row strong {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

.comparison-row.trail strong {
  color: var(--amber);
}

.note {
  margin: 24px auto 0;
  max-width: 700px;
  color: var(--faint);
  text-align: center;
  font-size: 0.95rem;
}

/* ---------- install CTA ---------- */

.install {
  position: relative;
  display: flex;
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto clamp(60px, 8vw, 96px);
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(79, 147, 255, 0.1), rgba(157, 124, 240, 0.07));
}

.install::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 130% at 100% 0%, rgba(79, 147, 255, 0.18), transparent 60%);
  content: "";
  pointer-events: none;
}

.install > * {
  position: relative;
  z-index: 1;
}

.install > div:first-child {
  max-width: 580px;
}

.install p {
  margin: 0;
  color: var(--muted);
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  gap: 18px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.9rem;
}

.footer a {
  color: var(--muted);
}

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

.footer .brand {
  margin-right: auto;
  font-size: 1rem;
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .metric-band,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }

  .install {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 16px;
    font-size: 0.86rem;
  }

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

  .metric-band,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer .brand {
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .button:hover,
  .feature:hover {
    transform: none;
  }
}
