/* ============ DUAL CURRENT TOKENS (Concept C) ============ */
:root {
  --bg: #10141b;
  --bg-deep: #0c0f15;
  --bg-alt: #0d1117;
  --ink: #e9ebee;
  --muted: #9aa3b2;
  --line: #1e2530;
  --line-soft: #1a212c;
  --card: #151b25;
  --card-line: #242e3d;
  --ember: #ff8c2e;
  --ember-2: #ff9a3c;
  --ember-3: #ff5f1a;
  --ember-soft: #ffb35c;
  --btn-light: #e9ebee;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ember); color: #14100a; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 300;
  background: var(--btn-light);
  color: #10141b;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* ember gradient text — the one flash accent */
.ember-text {
  font-style: normal;
  background: linear-gradient(100deg, var(--ember-soft), var(--ember-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0.04em; }
.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--ember-2), var(--ember-3));
  box-shadow: 0 0 14px rgba(255, 140, 46, 0.45);
}
.brand-name { font-size: 0.95rem; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 8px 18px !important;
  color: var(--ink) !important;
  transition: border-color 0.25s;
}
.nav-cta:hover { border-color: var(--ember); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 70% 20%, rgba(255, 140, 46, 0.07), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ember);
  margin-bottom: 18px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 36rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font: 600 0.92rem var(--font-body);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--btn-light);
  color: #10141b;
  box-shadow: 0 8px 22px rgba(233, 235, 238, 0.14);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--card-line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ember); }
.btn-ember {
  background: linear-gradient(100deg, var(--ember-2), var(--ember-3));
  color: #14100a;
  box-shadow: 0 8px 26px rgba(255, 122, 26, 0.35);
}

/* ============ BANNER ============ */
.banner { margin: 0 0 8px; }
.banner img {
  width: 100%;
  height: clamp(220px, 34vw, 380px);
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--card-line);
}

/* ============ SECTIONS ============ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.prose { color: var(--muted); max-width: 44rem; font-size: 1.05rem; }
.prose + .prose { margin-top: 14px; }
.note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid var(--ember);
  padding-left: 14px;
  max-width: 44rem;
}

/* ============ CARDS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--ember); }
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.quest-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ember-2);
  border: 1px solid rgba(255, 154, 60, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

/* ============ THE FORGE CURRENT (flash panel) ============ */
.flash {
  background: linear-gradient(135deg, #2b1a4d, #0e3a5c 55%, #0b2b2b);
  border: 1px solid #3b2f63;
  border-radius: 16px;
  padding: clamp(30px, 4.5vw, 52px);
  position: relative;
  overflow: hidden;
}
.flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255, 122, 26, 0.35), transparent 55%);
  pointer-events: none;
}
.flash > * { position: relative; z-index: 1; }
.flash h2 { margin-bottom: 12px; }
.flash p { font-size: 1.02rem; color: #c3c9d6; max-width: 46rem; margin-bottom: 26px; }
.flash .btn-ember { position: relative; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.email-line { margin-top: 20px; color: var(--muted); }
.email-link { color: var(--ember-2); font-weight: 600; }
.socials { display: flex; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.socials a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.socials a:hover { color: var(--ember-2); border-color: var(--ember-2); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  padding: 32px 30px;
  display: grid;
  gap: 18px;
}
.contact-form label { display: grid; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.contact-form input,
.contact-form textarea {
  font: 400 0.95rem var(--font-body);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--ember); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-note a { color: var(--ember-2); font-weight: 600; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line-soft); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer p { font-size: 0.88rem; color: var(--muted); }
.footer-sub a { color: var(--ember-2); text-decoration: none; font-weight: 600; }
.footer-sub a:hover { text-decoration: underline; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { padding: 0 16px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 4px; border-top: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-links a:first-child { border-top: 0; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; }
  .hero { padding: 64px 0 52px; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01s !important; animation-duration: 0.01s !important; }
}
