:root {
  --bg-deep: #07090c;
  --bg-panel: #10141b;
  --bg-elevated: #171d27;
  --border: #2a3344;
  --border-glow: rgba(201, 162, 39, 0.35);
  --accent: #c9a227;
  --accent-2: #5ec8ff;
  --text: #e9edf2;
  --text-muted: #b0b8c4;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1100px;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
}

body {
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.028) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,0.028) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255,255,255,0.028) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,0.028) 25%, transparent 25%);
  background-size: 10px 10px;
  background-position: 0 0, 5px 0, 5px -5px, 0 5px;
  opacity: 0.9;
}

.bg-glow {
  position: fixed;
  inset: -20% -10% auto;
  height: 55vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201,162,39,0.16), transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(94,200,255,0.12), transparent 50%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  border: 1px solid var(--border-glow);
  background:
    linear-gradient(145deg, rgba(201,162,39,0.35), transparent 55%),
    linear-gradient(320deg, rgba(94,200,255,0.25), transparent 50%),
    var(--bg-elevated);
  box-shadow: 0 0 24px rgba(201,162,39,0.15);
}

.brand-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.brand h1 {
  margin: 0.1rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-tag {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.hero {
  padding: 1.75rem 0 2rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero h2 {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.15;
  font-weight: 750;
}

.hero-lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.motif-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
}

.motif-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(16, 20, 27, 0.85);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.motif-ico {
  color: var(--accent);
  font-size: 0.85rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}

.section-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding-bottom: 2.5rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(165deg, rgba(255,255,255,0.03), transparent 40%),
    var(--bg-panel);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tool-card:hover {
  border-color: rgba(201, 162, 39, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.42), 0 0 0 1px rgba(201,162,39,0.12);
}

.tool-card--soon {
  opacity: 0.78;
  border-style: dashed;
}

.tool-card--soon:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}

.card-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.card-top h4 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.card-goal {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.btn-open,
.btn-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-open {
  color: #0a0c0f;
  background: linear-gradient(180deg, #dfb83a, var(--accent));
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-open:hover {
  filter: brightness(1.06);
}

.btn-open:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.btn-soon {
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: default;
}

.site-footer {
  padding-top: 1.25rem;
  padding-bottom: 2.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.site-footer strong {
  color: var(--accent);
}

.footer-note,
.footer-counter {
  margin: 0.55rem 0 0;
  max-width: 48rem;
}

.footer-counter code {
  color: var(--text);
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1.15rem;
  }

  .hero h2 {
    max-width: none;
  }

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