@import url('./fonts.css');

/* ---------------------------------------------------------------------------
   IMTsuite — "Fireline" design system.
   Class names are unchanged from the previous stylesheet so every existing
   page inherits the new look without markup edits. The old brand-* variables
   are kept as aliases because some pages reference them from inline styles.
   --------------------------------------------------------------------------- */

:root {
  /* surfaces */
  --ink: #0a0e0c;
  --ink2: #121917;
  --ink3: #1b2320;
  --line: #2a3330;

  /* ink on dark */
  --cream: #f2efe4;
  --ash: #8b968e;

  /* accent */
  --ember: #ff5c16;
  --ember-dim: #c9430c;

  /* status */
  --success: #5aa86a;
  --danger: #d0623f;
  --warning: #e0a53c;

  /* aliases kept for existing inline styles */
  --bg: var(--ink);
  --surface: var(--ink2);
  --surface-band: var(--ink2);
  --border: var(--line);
  --brand-green: var(--cream);
  --brand-green-mid: var(--ash);
  --brand-orange: var(--ember);
  --text-primary: var(--cream);
  --text-secondary: var(--ash);

  --radius: 0px;
  --content-max: 1240px;
  --content-pad: 28px;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  /* short names used by the home page markup */
  --head: var(--font-head);
  --body: var(--font-body);
  --mono: var(--font-mono);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--cream);
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
h1 { font-size: clamp(31px, 4.4vw, 58px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ember); }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}
.section { padding: 84px 0; }
.section--band { background: var(--ink2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow, .tag {
  color: var(--ember);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

/* section heading rule */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 8px;
}
.sec-head h2 { margin: 0; }
.sec-head .tag { margin: 0; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.btn-primary { background: var(--ember); color: #140800; border-color: var(--ember); }
.btn-primary:hover { background: #ff7434; border-color: #ff7434; color: #140800; }
.btn-secondary { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ember); color: var(--ember); }
.btn-launch { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-launch:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* cards */
.card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.16s, background 0.16s;
}
a.card:hover { background: var(--ink3); border-color: var(--line); border-left-color: var(--ember); }
a.card:hover h3 { color: var(--ember); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ash); font-size: 16px; }
.card-logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 16px;
}

.grid { display: grid; gap: 20px; }
.grid--products { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* forms */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 7px;
  color: var(--ash);
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--ink2);
  color: var(--cream);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #5f6b62; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(255, 92, 22, 0.18);
}

/* alerts */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 15px;
  border-left: 3px solid transparent;
}
.alert-error { background: rgba(208, 98, 63, 0.14); color: #e08363; border-left-color: var(--danger); }
.alert-success { background: rgba(90, 168, 106, 0.14); color: #84cf94; border-left-color: var(--success); }

/* nav */
.site-nav {
  background: rgba(10, 14, 12, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
}
.site-nav .brand {
  text-decoration: none;
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--cream);
}
.site-nav .brand span { color: var(--ember); }
.site-nav .brand:hover { color: var(--cream); }
.site-nav .links { display: flex; gap: 30px; align-items: center; }
.site-nav .links a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
}
.site-nav .links a:hover, .site-nav .links a.active { color: var(--ember); }
.nav-toggle { display: none; background: none; border: 0; font-size: 20px; color: var(--cream); cursor: pointer; }

/* announcements */
.announcement {
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.announcement strong { display: block; margin-bottom: 2px; font-family: var(--font-head); }
.announcement--info     { background: var(--ink2); color: var(--cream); }
.announcement--warning  { background: rgba(224, 165, 60, 0.12); color: #e8b95e; border-bottom-color: var(--warning); }
.announcement--critical { background: rgba(208, 98, 63, 0.16); color: #e79070; border-bottom-color: var(--danger); font-weight: 600; }

/* footer */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  color: var(--ash);
  padding: 60px 0 40px;
  margin-top: 0;
  font-size: 14px;
}
.site-footer a { color: var(--ash); }
.site-footer a:hover { color: var(--ember); }
.site-footer .big {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(44px, 13vw, 168px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  margin: 0 0 36px;
}
.site-footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

/* tables */
table { border-collapse: collapse; width: 100%; font-size: 15px; }
table th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--ember);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}
table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hero { padding: 74px 0 60px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(255, 255, 255, 0.028) 119px 120px);
  pointer-events: none;
}
.hero .container, .hero .wrap { position: relative; z-index: 1; }
.hero .lede { color: var(--ash); font-size: 19px; max-width: 640px; }
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .peaks { position: absolute; right: 0; bottom: 0; width: 64%; max-width: 920px; z-index: 0; pointer-events: none; }

/* home hero: split copy / product render */
.hero--home .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 478px);
  gap: 48px;
  align-items: center;
}
.hero .lockup { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.hero .lockup b {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(32px, 3.7vw, 48px);
  letter-spacing: -0.025em;
  color: var(--cream);
  line-height: 1;
}
.hero .lockup i { font-style: normal; color: var(--ember); font-size: clamp(22px, 2.4vw, 30px); line-height: 1; }
.hero .lockup span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(19px, 2.1vw, 27px);
  color: var(--ash);
  letter-spacing: -0.01em;
}
.hero--home h1 { font-size: clamp(31px, 4.8vw, 70px); line-height: 0.98; margin: 18px 0 0; }
.hero--home h1 em { font-style: normal; color: var(--ember); }
.hero--home h1 .l1, .hero--home h1 .l2, .hero--home h1 .l3 { display: block; white-space: nowrap; line-height: 0.96; }
.hero .claim { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.hero .claim .lede {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
}
.hero .claim .lede em { font-style: normal; color: var(--ember); white-space: nowrap; }
.shot { position: relative; }
.shot img { display: block; width: 100%; height: auto; }

/* claim band */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink2); }
.stats .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); padding: 0; }
.stat { background: var(--ink2); padding: 40px 30px; display: flex; align-items: center; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 3.1vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--cream);
}
.stat b i { font-style: normal; color: var(--ember); }

/* product index rows */
.row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr) 52px;
  gap: 24px;
  align-items: center;
  padding: 30px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s;
  margin: 0 -14px;
  text-decoration: none;
}
.row:hover { background: var(--ink2); }
.row .num { font-family: var(--font-mono); font-size: 12px; color: var(--ash); letter-spacing: 0.16em; }
.row h3 { font-size: clamp(22px, 2.7vw, 33px); letter-spacing: -0.025em; margin: 0; }
.row:hover h3 { color: var(--ember); }
.row p { margin: 0; color: var(--ash); font-size: 16px; }
.row .go { font-size: 24px; color: var(--line); text-align: right; transition: color 0.18s, transform 0.18s; }
.row:hover .go { color: var(--ember); transform: translateX(5px); }

/* flagship ad cards */
.ads { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.adcard { background: var(--ink2); display: flex; flex-direction: column; overflow: hidden; text-decoration: none; }
.adcard img { display: block; width: 100%; height: auto; }
.adcard .foot {
  flex: 1;
  background: var(--ember);
  color: #170700;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s;
}
.adcard:hover .foot { background: #ff7434; }
.adcard .foot b {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1.05;
}
.adcard .foot p { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: #4a1a00; }
.adcard .foot span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a1a00;
  margin-top: 2px;
}

/* why columns */
.why { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border-left: 1px solid var(--line); }
.why > div { padding: 34px 30px; border-right: 1px solid var(--line); }
.why h4 { margin: 16px 0 10px; }
.why p { margin: 0; color: var(--ash); font-size: 16px; }
.why .bar { width: 46px; height: 3px; background: var(--ember); }

/* closing band */
.band { background: var(--ember); color: #160700; padding: 74px 0; }
.band h2 {
  color: #160700;
  font-size: clamp(30px, 5vw, 60px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 18px;
  max-width: 900px;
}
.band p { margin: 0 0 30px; font-size: 19px; max-width: 560px; color: #3a1300; }
.band .btn-ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.band .btn-ink:hover { background: var(--ink3); border-color: var(--ink3); color: var(--cream); }

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero--home .container { grid-template-columns: 1fr; gap: 38px; }
  .stats .container { grid-template-columns: 1fr; }
  .ads { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; border-left: 0; }
  .why > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 52px 1fr 34px; gap: 16px; }
  .row p { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .site-nav .links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink2);
    border-bottom: 1px solid var(--line);
    padding: 16px 28px;
    z-index: 10;
  }
  .site-nav .links.open { display: block; }
  .site-nav .links.open a { display: block; margin: 14px 0; }
  .nav-toggle { display: block; }
}
