/* Sylo landing page — no dependencies, no build step. */
:root {
  --bg: #0b0d17;
  --bg-2: #111427;
  --bg-3: #161a30;
  --card: #171b33;
  --line: #262c4a;
  --text: #e7e9f5;
  --muted: #a6accd;
  --brand: #7c6cff;
  --brand-2: #38bdf8;
  --brand-ink: #ffffff;
  --radius: 16px;
  --wrap: 1080px;
  --font:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand-2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
code {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--card);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #5b7cfa);
  color: var(--brand-ink);
  box-shadow: 0 8px 24px -8px rgba(124, 108, 255, 0.6);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #8b7dff, #6b89ff);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(124, 108, 255, 0.22), transparent 60%),
    radial-gradient(700px 380px at 10% 10%, rgba(56, 189, 248, 0.14), transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-2);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(120deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-row.center {
  justify-content: center;
}
.cta-sub {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-art {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.hero-art .frame {
  width: 100%;
}

/* Browser-chrome frame around dashboard screenshots. */
.frame {
  margin: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.65);
}
.frame-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.frame-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a4160;
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
}
.frame-wide {
  max-width: 940px;
  margin: 0 auto;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat-strip div {
  display: flex;
  flex-direction: column;
}
.stat-strip strong {
  font-size: 1.6rem;
  color: var(--text);
}
.stat-strip span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- sections ---------- */
.section {
  padding: 84px 0;
}
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 40px;
  max-width: 46em;
}

.grid {
  display: grid;
  gap: 20px;
}
.features {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}
.card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(124, 108, 255, 0.13);
  color: var(--brand);
}
.card-ic svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- module chips ---------- */
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text);
  text-transform: capitalize;
}

/* ---------- split / privacy ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.split > * {
  min-width: 0;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--muted);
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-weight: 700;
}

/* ---------- comparison table ---------- */
.table-wrap {
  overflow-x: auto;
}
.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  color: var(--text);
  font-size: 1.05rem;
  border-bottom: 2px solid var(--line);
}
.compare thead th span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}
.compare tbody th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.compare tbody td {
  color: var(--muted);
}
/* highlight the Sylo column */
.compare th:nth-child(2),
.compare td:nth-child(2) {
  background: rgba(124, 108, 255, 0.07);
  color: var(--text);
}
.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- steps + code ---------- */
.steps {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 32px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #5b7cfa);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.code {
  background: #0a0c16;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #d6dbff;
}
.code .c {
  color: #6b7299;
}

/* ---------- cta band ---------- */
.cta-band {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(124, 108, 255, 0.2), transparent 70%), var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 10px;
}
.cta-band p {
  color: var(--muted);
  margin: 0 0 26px;
}

/* ---------- footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-note {
  color: #6b7099;
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .features,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 24px;
  }
  .nav-links .btn {
    margin: 10px 24px;
  }
}

@media (max-width: 520px) {
  .features,
  .steps {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
}
