/* -------------------------------------------------------------------------
   Dusk Office — landing page styles. Single-file vanilla CSS, no framework.
   Palette: Dusk Office Abyss-inspired — deep navy bg, cyan accent.
   ------------------------------------------------------------------------- */

:root {
  --bg: #0a0e1a;
  --bg-alt: #0f1422;
  --bg-card: #111827;
  --border: #1e293b;
  --border-strong: #334155;
  --fg: #e6f1ff;
  --fg-muted: #94a3b8;
  --fg-dim: #64748b;
  --accent: #06b6d4;
  --accent-bright: #67e8f9;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-bright);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.18);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

p {
  margin: 0 0 0.75rem;
}

.muted {
  color: var(--fg-muted);
}

/* -------------------- Hero -------------------- */

.hero {
  position: relative;
  padding-bottom: 4rem;
  background:
    radial-gradient(1200px 600px at 20% -100px, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(103, 232, 249, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand img {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--fg-muted);
}
.nav-links a:hover {
  color: var(--fg);
}

.hero-inner {
  max-width: var(--max);
  margin: 3rem auto 2rem;
  padding: 0 1.5rem;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-bright);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbe4f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 740px;
  margin: 0 auto 2rem;
}
.lede strong {
  color: var(--fg);
  font-weight: 600;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #04212a;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-bright);
  color: #04212a;
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
  color: var(--accent-bright);
}

.social-proof {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin: -1rem 0 2rem;
  letter-spacing: 0.01em;
}
.social-proof strong {
  color: var(--accent-bright);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stats strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: -0.02em;
}
.hero-stats span {
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.hero-shot {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}
.hero-shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}

/* -------------------- Sections -------------------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-align: center;
}
.section > p {
  text-align: center;
  color: var(--fg-muted);
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.section-alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.section-alt > h2,
.section-alt > p {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* -------------------- Feature grid -------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.feature-grid article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.feature-grid article:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}
.feature-grid h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.feature-grid p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* -------------------- Variant grid (mini-preview cards) -------------------- */

.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Card-level styles set inline by JS: background, color, borderColor.
   Padding, layout, shadow and transitions live here. */
.variant {
  --hover-shadow: 0 0 0 1px currentColor, 0 14px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 1rem 0.85rem;
  border: 1px solid transparent; /* set inline */
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 16px rgba(0, 0, 0, 0.25);
  isolation: isolate;
}
.variant::after {
  /* Subtle vignette at the bottom-right to add depth without overwhelming the
     theme palette. Stays neutral against light & dark backgrounds. */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 100%, rgba(0, 0, 0, 0.18), transparent 60%);
  pointer-events: none;
  opacity: 0.6;
  z-index: -1;
}
.variant:hover {
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
}
.variant:active {
  transform: translateY(-1px);
}

.vhead {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.vdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vlabel {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
}

.vpreview {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Light themes: invert the preview band tint so it reads as a soft surface */
.variant[style*="rgb(248, 250, 252)"] .vpreview,
.variant[style*="rgb(246, 238, 222)"] .vpreview,
.variant[style*="rgb(227, 232, 236)"] .vpreview,
.variant[style*="rgb(236, 231, 222)"] .vpreview {
  background: rgba(0, 0, 0, 0.05);
}
.vpreview .kw {
  font-weight: 600;
}
.vpreview .fn {
  font-weight: 500;
}

.vtag {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  margin-top: auto;
}

/* -------------------- Fingerprint grid -------------------- */

.fp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.fp-grid article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.fp-grid h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.fp-grid p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin: 0 0 0.4rem;
}
.fp-grid p.suggest {
  color: var(--fg);
  margin-top: 0.6rem;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}
.fp-grid p.suggest strong {
  color: var(--accent-bright);
}

/* -------------------- Install grid -------------------- */

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.install-grid article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.install-grid h3 {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: var(--accent-bright);
}
.install-grid ol {
  padding-left: 1.2rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.install-grid ol strong {
  color: var(--fg);
}

/* -------------------- Footer -------------------- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.footer-links {
  display: flex;
  gap: 1.25rem;
}

/* -------------------- Mobile -------------------- */

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .section {
    padding: 3.5rem 1.25rem;
  }
  .hero-inner {
    margin-top: 2rem;
  }
}
