/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f0f0f;
  --bg-alt:    #181818;
  --surface:   #222222;
  --border:    #2e2e2e;
  --text:      #e8e8e8;
  --text-muted:#8a8a8a;
  --accent:    #e63000;        /* CrossFit-inspired red */
  --accent-h:  #ff4010;
  --radius:    6px;
  --max-w:     1060px;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section        { padding: 5rem 0; }
.section-alt    { background: var(--bg-alt); }

/* ── Typography ──────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1.25rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }

.section-lead { font-size: 1.15rem; color: var(--text-muted); max-width: 680px; margin-bottom: 1.5rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text-muted); }

button.btn { font-family: inherit; }
button.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Header ──────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
nav { display: flex; gap: 1.75rem; }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
nav a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 { margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Features grid ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.feature-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Demo block ──────────────────────────────────────────── */
.demo-block { text-align: center; }
.demo-block p { color: var(--text-muted); max-width: 520px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ── Contact form ────────────────────────────────────────── */
.contact-form { max-width: 560px; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
label { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }

input, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color 0.15s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: #555; }
textarea { resize: vertical; }

.form-status {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  min-height: 1.4em;
}
.form-status.success { color: #4caf82; }
.form-status.error   { color: #e06060; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { gap: 1rem; }
  .hero { padding: 4rem 0; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}
