/* ===========================================================
   Brontes — static site styles
   Design: minimal, industrial, molten-metal accent
   =========================================================== */

:root {
  --bg:            #0f1113;
  --bg-soft:       #15181b;
  --surface:       #1a1e22;
  --surface-2:     #20252a;
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.16);

  --text:          #f2f1ee;
  --text-muted:    #a7adb4;
  --text-dim:      #767d85;

  --accent:        #e8590c;   /* molten amber */
  --accent-soft:   #ff7a33;
  --accent-glow:   rgba(232, 89, 12, 0.45);

  --max:   1120px;
  --pad:   clamp(20px, 5vw, 48px);
  --radius: 16px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
}

/* ----------  reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { overflow-wrap: break-word; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ----------  buttons  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px -10px var(--accent-glow);
}
.btn--primary:hover { background: var(--accent-soft); box-shadow: 0 10px 38px -8px var(--accent-glow); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.03); }

.btn--lg { font-size: 1.05rem; padding: 1em 1.8em; }

/* ----------  nav  ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand__mark { display: block; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--text) !important;
  border: 1px solid var(--line-strong);
  padding: 0.5em 1.1em;
  border-radius: 999px;
}
.nav__cta:hover { border-color: var(--accent); color: var(--accent-soft) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.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); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  /* defined below: hidden attribute must win over display:flex */
  gap: 0.25rem;
  padding: 0.5rem var(--pad) 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.mobile-menu a {
  padding: 0.7rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu[hidden] { display: none; }

/* ----------  hero  ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 16vh, 170px) 0 clamp(70px, 12vh, 130px);
  border-bottom: 1px solid var(--line);
}
.hero__glow {
  position: absolute;
  inset: -30% 0 auto 0;
  height: 620px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 10%, rgba(255, 122, 51, 0.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.9;
}
.hero__inner { position: relative; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8.5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero__sub {
  max-width: 620px;
  margin: 1.5rem auto 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text-muted);
}
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------  sections  ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.section__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.section__head--center { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: 3.5rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.section__body p { color: var(--text-muted); font-size: 1.08rem; }
.section__body p + p { margin-top: 1.1rem; }
.section__body strong { color: var(--text); }

/* ----------  capability cards  ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(232, 89, 12, 0.12);
  color: var(--accent-soft);
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.card ul li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-top: 1px solid var(--line);
}
.card ul li:first-child { border-top: 0; }

/* ----------  stats  ---------- */
.stats { padding: clamp(48px, 7vw, 80px) 0; background: var(--bg); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat { padding: 1rem; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__unit { font-size: 0.45em; color: var(--accent-soft); margin-left: 0.18em; font-weight: 600; }
.stat__label { display: block; margin-top: 0.7rem; color: var(--text-dim); font-size: 0.9rem; }

/* ----------  tags  ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.tags li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.6em 1.2em;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tags li:hover { border-color: var(--accent); color: var(--text); }

/* ----------  why  ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why__item {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.why__item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.why__item p { color: var(--text-muted); font-size: 0.98rem; }

/* ----------  cta  ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(72px, 12vw, 130px) 0;
  background:
    radial-gradient(ellipse 60% 120% at 50% 120%, var(--accent-glow), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
}
.cta__inner { max-width: 600px; margin-inline: auto; }
.cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}
.cta p { color: var(--text-muted); margin: 1.1rem auto 2.2rem; font-size: 1.1rem; }

/* ----------  footer  ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__tag { color: var(--text-dim); font-size: 0.92rem; }
.footer__copy { color: var(--text-dim); font-size: 0.85rem; }

/* ----------  reveal animation (only when JS is active)  ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------  responsive  ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .why { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
