/* Toolies — Steam-inspired marketing landing (static, no build) */

:root {
  --bg-deep: #0e1419;
  --bg-base: #171a21;
  --bg-panel: #1b2838;
  --bg-elevated: #2a475e;
  --accent: #66c0f4;
  --accent-bright: #1a9fff;
  --accent-glow: rgba(102, 192, 244, 0.35);
  --text: #c7d5e0;
  --text-muted: #8f98a0;
  --text-dim: #6b7b8c;
  --border: rgba(102, 192, 244, 0.18);
  --success: #5ba32b;
  --warning: #e9b949;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --font-display: "Oswald", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(26, 159, 255, 0.15), transparent),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(14, 20, 25, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(14, 20, 25, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: rgba(102, 192, 244, 0.12);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #0e1419;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  color: #0e1419;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

/* Hero */
.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(102, 192, 244, 0.12), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(26, 159, 255, 0.08), transparent 35%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #fff;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.hero-meta strong { color: var(--text); }

/* Dashboard mock */
.dashboard-mock {
  background: linear-gradient(145deg, var(--bg-panel) 0%, #0f1923 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
  position: relative;
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mock-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  background: var(--text-dim);
}

.mock-dots span:nth-child(1) { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #febc2e; }
.mock-dots span:nth-child(3) { background: #28c840; }

.mock-category {
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mock-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mock-tile {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--bg-elevated), #1e3a52);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.mock-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 55%);
}

.mock-tile span {
  position: absolute;
  left: 0.4rem;
  bottom: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
}

.mock-tile:nth-child(1) { background-image: linear-gradient(160deg, #2d5a87, #1b2838); }
.mock-tile:nth-child(2) { background-image: linear-gradient(160deg, #3d6b4f, #1b2838); }
.mock-tile:nth-child(3) { background-image: linear-gradient(160deg, #6b4a7a, #1b2838); }
.mock-tile:nth-child(4) { grid-column: span 2; }
.mock-tile.focused {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

section { padding: 4.5rem 0; }

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

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

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: linear-gradient(160deg, rgba(42, 71, 94, 0.35), rgba(23, 26, 33, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 192, 244, 0.35);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 192, 244, 0.12);
  border-radius: 10px;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

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

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.install-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.install-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(102, 192, 244, 0.2);
  color: var(--accent);
}

.badge-soon {
  background: rgba(233, 185, 73, 0.2);
  color: var(--warning);
}

.install-card > p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  flex: 1;
}

.install-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.install-steps li { margin-bottom: 0.5rem; }
.install-steps strong { color: var(--text); }

.code-block {
  position: relative;
  background: #0a0e12;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #a8d4f0;
  overflow-x: auto;
  margin: 0 0 1rem;
}

.code-block pre { margin: 0; white-space: pre-wrap; word-break: break-word; }

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.note {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0;
}

.note a { font-weight: 600; }

/* Deploy */
.deploy-panel {
  background: linear-gradient(135deg, rgba(42, 71, 94, 0.4), rgba(23, 26, 33, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.deploy-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.deploy-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.deploy-steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0e1419;
  font-weight: 800;
  border-radius: 50%;
  font-size: 0.9rem;
}

.deploy-steps h4 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  color: #fff;
}

.deploy-steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(91, 163, 43, 0.15);
  border: 1px solid rgba(91, 163, 43, 0.35);
  border-radius: 999px;
  color: #b8e986;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .dashboard-mock {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
  .install-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(14, 20, 25, 0.98);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .header-cta-desktop { display: none; }
}

@media (min-width: 721px) {
  .nav-cta-mobile { display: none; }
}
.nav-toggle-icon {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.feature-icon svg {
  display: block;
}
