/* =========================================================
   FORC3MOD — stylesheet
   ========================================================= */

:root {
  --bg: #0a0b0e;
  --bg-alt: #0e1015;
  --surface: #14161d;
  --surface-2: #1a1d26;
  --border: #232634;
  --text: #eef0f4;
  --text-dim: #a6acbb;
  --text-mute: #6b7182;
  --accent: #2f6fff;
  --accent-2: #4fb3ff;
  --accent-soft: rgba(47, 111, 255, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-head: 'Rajdhani', 'Inter', sans-serif;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.ico { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.15em; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section__lead { color: var(--text-dim); font-size: 17px; }
.section__lead.center { margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .ico { width: 16px; height: 16px; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 111, 255, 0.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47, 111, 255, 0.4); }
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--lg { padding: 16px 32px; font-size: 15px; }
.btn--discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.32);
}
.btn--discord:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(88, 101, 242, 0.46); }
.btn--discord .ico { width: 17px; height: 17px; }

@media (max-width: 640px) {
  .btn--discord span { display: none; }
  .btn--discord { padding: 13px 16px; }
}

/* ===== Header ===== */
/* Note: intentionally no backdrop-filter here — it would establish a new
   containing block on .header, which breaks position:fixed on the mobile
   nav overlay below (it would size itself to the header instead of the
   viewport). Solid near-opaque background gives the same sticky-bar look. */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 11, 14, 0.98);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 24px;
}

.logo { display: flex; align-items: center; }
.logo__img { height: 26px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: #fff; background: var(--surface); }
.nav__link.is-active { color: var(--accent-2); }
.caret { font-size: 10px; opacity: .7; }

.nav__item { position: relative; }
.nav__drop {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item.has-drop:hover .nav__drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__drop a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav__drop a:hover { background: var(--surface-2); color: #fff; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.icon-btn .ico { width: 17px; height: 17px; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent-2); }

.hamburger { display: none; flex-direction: column; gap: 4px; }
.hamburger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.header__cta { flex-shrink: 0; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .header__cta span { display: none; }
  .header__cta { padding: 13px 16px; }
  .header__actions { gap: 8px; }
}

/* Mobile nav overlay. `top` is set inline by JS to match the header's actual
   bottom edge (varies: topbar is visible pre-scroll, gone once it scrolls
   off, while the header stays sticky) — 82px here is just a pre-JS fallback. */
.nav.is-open {
  display: flex;
  position: fixed;
  top: 82px; right: 0; bottom: 0; left: 0;
  background: var(--bg);
  flex-direction: column;
  align-items: stretch;
  padding: 20px;
  gap: 4px;
  overflow-y: auto;
  z-index: 90;
}
.nav.is-open .nav__link { padding: 14px 16px; font-size: 16px; }
.nav.is-open .nav__drop {
  position: static; opacity: 1; visibility: visible; transform: none;
  box-shadow: none; margin: 0 0 6px 12px; display: none;
  border: none; background: transparent;
}
.nav.is-open .nav__item.is-expanded .nav__drop { display: block; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background: radial-gradient(ellipse at 70% 20%, #0d1626 0%, var(--bg) 55%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.hero__glow {
  position: absolute; top: -200px; right: -160px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,111,255,.28), transparent 70%);
  filter: blur(10px);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__title {
  font-size: clamp(40px, 6.4vw, 78px);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.grad {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

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

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about__media { position: relative; }
.about__card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.about__card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(47,111,255,.25), transparent 55%);
}
.about__card h3 { font-size: 28px; position: relative; }
.about__card p { color: var(--text-dim); font-size: 14.5px; position: relative; }
.about__badge {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  position: absolute; top: 32px; left: 32px;
}

.feature-list { margin: 28px 0 34px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-dim); }
.tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 12px;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__card { aspect-ratio: 16/10; }
}

/* ===== Cards / Mods ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(47,111,255,.4); }
.card--featured {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border-color: rgba(47,111,255,.35);
  position: relative;
}
.card--featured::after {
  content: "Popular";
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-head);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-2); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px;
}
.card__ico {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 22px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 18px; }
.card__link { color: var(--accent-2); font-weight: 600; font-size: 14px; }
.card__link:hover { text-decoration: underline; }

@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ===== CTA / Contact ===== */
.cta {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  overflow: hidden;
}
.cta__glow {
  position: absolute; top: -120px; left: -100px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,111,255,.22), transparent 70%);
}
.cta__content { position: relative; z-index: 1; align-self: center; }
.cta__content h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 16px; text-transform: uppercase; }
.cta__content p { color: var(--text-dim); font-size: 16px; }

.cta__form {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; }
.field--full { grid-column: 1 / -1; }
.cta__form-label { color: var(--text-dim); font-size: 14.5px; }
.cta__form input,
.cta__form select,
.cta__form textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 14.5px;
  resize: vertical;
}
.cta__form input:focus,
.cta__form select:focus,
.cta__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.cta__form select { appearance: none; }
.cta__form button { border: none; }
.form-note {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--accent-2);
  min-height: 18px;
}

@media (max-width: 900px) {
  .cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta__form { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 72px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer__brand p { color: var(--text-mute); font-size: 14px; margin-top: 16px; max-width: 260px; }
.footer__col h5 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-mute); margin-bottom: 18px;
}
.footer__col a { display: block; color: var(--text-dim); font-size: 14.5px; margin-bottom: 12px; }
.footer__col a:hover { color: var(--accent-2); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mute);
}
.footer__links a:hover { color: var(--accent-2); }

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* =========================================================
   FORC3 Designer page theme — dark charcoal + lime accent,
   matching the app's own UI (distinct from the site-wide blue
   brand used on the rest of forc3mod.com).
   ========================================================= */
.theme-designer {
  --bg: #121212;
  --bg-alt: #161616;
  --surface: #1c1c1c;
  --surface-2: #232323;
  --border: #2c2c2c;
  --accent: #a3b800;
  --accent-2: #d4e100;
  --accent-soft: rgba(212, 225, 0, 0.14);
}
/* The header/nav bar keeps the site-wide blue brand untouched, even
   on this page's otherwise lime-themed content. */
.theme-designer .header {
  --bg: #0a0b0e;
  --bg-alt: #0e1015;
  --surface: #14161d;
  --surface-2: #1a1d26;
  --border: #232634;
  --accent: #2f6fff;
  --accent-2: #4fb3ff;
  --accent-soft: rgba(47, 111, 255, 0.12);
}
.theme-designer .header .btn--primary {
  box-shadow: 0 8px 24px rgba(47, 111, 255, 0.28);
  color: #fff;
}
.theme-designer .header .btn--primary:hover {
  box-shadow: 0 12px 30px rgba(47, 111, 255, 0.4);
}
.theme-designer .hero {
  background: radial-gradient(ellipse at 70% 20%, #141a06 0%, var(--bg) 55%);
}
.theme-designer .hero__glow {
  background: radial-gradient(circle, rgba(212, 225, 0, .22), transparent 70%);
}
.theme-designer .btn--primary {
  box-shadow: 0 8px 24px rgba(212, 225, 0, 0.22);
  color: #121212;
}
.theme-designer .btn--primary:hover {
  box-shadow: 0 12px 30px rgba(212, 225, 0, 0.32);
}
.theme-designer .about__card::before {
  background: radial-gradient(circle at 20% 15%, rgba(212, 225, 0, .18), transparent 55%);
}
.theme-designer .card:hover { border-color: rgba(212, 225, 0, .4); }
.theme-designer .card--featured { border-color: rgba(212, 225, 0, .35); }
.theme-designer .cta__glow {
  background: radial-gradient(circle, rgba(212, 225, 0, .16), transparent 70%);
}
