/* =========================================================
   Capture the Flag — marketing + support site
   Single shared stylesheet. No external dependencies.
   ========================================================= */

:root {
  --bg:        #080d1c;
  --bg-2:      #0c1326;
  --surface:   #111a32;
  --surface-2: #16223f;
  --border:    #243352;
  --text:      #eaf0fb;
  --muted:     #9aa8c7;
  --faint:     #6b7a9c;

  --blue:      #3b82f6;
  --blue-soft: #60a5fa;
  --red:       #ef4444;
  --red-soft:  #f87171;
  --green:     #34d399;

  --radius:    16px;
  --radius-sm: 12px;
  --maxw:      1120px;
  --shadow:    0 20px 50px -20px rgba(0, 0, 0, 0.7);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient glows in the page background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 60rem at 78% -10%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(50rem 50rem at 8% 8%, rgba(239, 68, 68, 0.12), transparent 55%);
  pointer-events: none;
}

a { color: var(--blue-soft); text-decoration: none; }
a:hover { color: #fff; }

img, svg { display: block; max-width: 100%; }

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

p { margin: 0 0 1rem; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 0.9rem;
}

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

/* ===================== Nav ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(8, 13, 28, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}
.nav-links a:hover { color: #fff; }
.nav-links .btn { color: #fff; }
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.8);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { color: #fff; background: var(--surface); transform: translateY(-2px); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 850;
  margin-bottom: 1.1rem;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--blue-soft), var(--green) 70%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 1.8rem;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-note {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero .lede { max-width: none; }
  .phone-stage { order: -1; }
}

/* Phone mockup */
.phone-stage { display: flex; justify-content: center; }
.phone {
  width: min(300px, 80vw);
  aspect-ratio: 9 / 19;
  background: #05080f;
  border-radius: 38px;
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, 0.02) inset;
  position: relative;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .phone, .pulse { animation: none; }
}
.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #0a1424;
}
.phone .notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 38%; height: 22px;
  background: #05080f;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

/* ===================== Sections ===================== */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.alt { background:
  linear-gradient(180deg, transparent, rgba(18, 26, 50, 0.5) 12%, rgba(18, 26, 50, 0.5) 88%, transparent);
}

/* ===================== Steps ===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ===================== Feature grid ===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.55rem;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #34507f; background: var(--surface-2); }
.card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.card h3 { font-size: 1.16rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ===================== Arsenal list ===================== */
.arsenal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.7rem;
}
.gear {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.gear .emoji {
  font-size: 1.4rem;
  line-height: 1.6;
  width: 1.8rem;
  text-align: center;
  flex: none;
}
.gear b { font-weight: 700; display: block; font-size: 0.98rem; }
.gear span { color: var(--muted); font-size: 0.9rem; }

/* ===================== CTA band ===================== */
.cta {
  text-align: center;
  background:
    radial-gradient(40rem 20rem at 50% 0%, rgba(59, 130, 246, 0.22), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.cta p { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin: 0 auto 2rem; }
.req {
  display: flex;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.req span { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ===================== Support / FAQ ===================== */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 0.8rem; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin: 0 auto; }

.faq { max-width: 760px; margin: 0 auto; }
details.qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
details.qa[open] { border-color: #34507f; }
details.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.3rem;
  font-weight: 650;
  font-size: 1.04rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary .chev {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  transition: transform 0.25s ease;
  color: var(--blue-soft);
}
details.qa[open] summary .chev { transform: rotate(180deg); }
details.qa .body {
  padding: 0 1.3rem 1.25rem;
  color: var(--muted);
}
details.qa .body p { margin: 0; }
details.qa .body p + p { margin-top: 0.8rem; }

/* Contact card */
.contact {
  max-width: 760px;
  margin: 3.5rem auto 0;
  text-align: center;
  background:
    radial-gradient(30rem 16rem at 50% 0%, rgba(59, 130, 246, 0.18), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.6rem 2rem;
}
.contact h2 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.contact p { color: var(--muted); margin-bottom: 1.6rem; }
.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.8);
  transition: transform 0.15s ease;
}
.email-btn:hover { transform: translateY(-2px); color: #fff; }

/* ===================== Legal / long-form prose ===================== */
.legal { max-width: 768px; margin: 0 auto; }
.legal .updated {
  color: var(--faint);
  font-size: 0.92rem;
  margin: -0.4rem 0 2rem;
}
.legal .intro { font-size: 1.08rem; color: var(--text); }
.legal h2 {
  font-size: 1.32rem;
  margin: 2.4rem 0 0.7rem;
  scroll-margin-top: 90px;
}
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.45rem; }
.legal strong { color: var(--text); font-weight: 650; }
.legal a { color: var(--blue-soft); }
.legal .tldr {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin: 0 0 2rem;
}
.legal .tldr p { margin: 0; color: var(--text); }

/* ===================== Footer ===================== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer .brand { font-size: 1rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer .copy { color: var(--faint); font-size: 0.86rem; width: 100%; }

/* Team color dots */
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; display: inline-block; }
.dot.blue { background: var(--blue); }
.dot.red { background: var(--red); }

.pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes pulse {
  0%, 100% { opacity: 0.35; r: 7; }
  50% { opacity: 0.9; r: 11; }
}
