/* ============================================================
   Mars Forge — landing styles (vanilla CSS, no frameworks)
   Mobile-first, breakpoint 768px. HW-accelerated animations only.
   ============================================================ */

:root {
  /* Brand palette — easy to retheme */
  --bg:        #0c0d12;
  --bg-soft:   #14161f;
  --bg-card:   #181b26;
  --bg-card-2: #1e2230;
  --border:    #2a2f3f;
  --text:      #e8eaf0;
  --text-dim:  #9aa0b4;
  --text-mute: #6b7184;
  --accent:    #ff5a1f;   /* forge orange */
  --accent-2:  #ffb648;   /* ember */
  --accent-dk: #d9430f;
  --ok:        #36d399;
  --radius:    14px;
  --maxw:      1140px;
  --shadow:    0 12px 40px rgba(0,0,0,.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}
.section--tight { padding: 44px 0; }

.section__head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; }
h2 { font-size: 30px; font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
.section__head p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 17px;
}

.lead { color: var(--text-dim); font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background-color .18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255,90,31,.32);
}
.btn--primary:hover { box-shadow: 0 12px 30px rgba(255,90,31,.4); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-card); }
.btn--sm { font-size: 14px; padding: 9px 18px; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,13,18,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  border-radius: 7px;
  font-size: 15px;
}
.brand__mark span { transform: translateY(-1px); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
}
.lang-switch a {
  padding: 6px 12px;
  color: var(--text-mute);
  transition: background-color .15s ease, color .15s ease;
}
.lang-switch a.is-active { background: var(--accent); color: #fff; }
.lang-switch a:not(.is-active):hover { color: var(--text); }

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  width: 760px; height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,90,31,.18), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: 38px;
  font-weight: 850;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--accent-2); font-style: normal; }
.hero__sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 30px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.hero__meta {
  margin-top: 26px;
  font-size: 14px;
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}
.hero__meta b { color: var(--text); font-weight: 700; }

/* timeline strip under hero */
.hero-strip {
  margin-top: 44px;
  display: grid;
  gap: 10px;
}
.hero-strip__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.hero-strip__day { font-size: 12px; font-weight: 700; color: var(--accent-2); letter-spacing:.08em; text-transform: uppercase; }
.hero-strip__txt { font-size: 15px; color: var(--text-dim); margin-top: 4px; }
@media (min-width: 768px) {
  .hero { padding: 96px 0 72px; }
  .hero h1 { font-size: 54px; }
  .hero__sub { font-size: 21px; }
  .hero-strip { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- "how we work" steps ---------- */
.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 22px 64px;
  transition: transform .2s ease, border-color .2s ease;
  will-change: transform;
}
.step:hover { transform: translateY(-3px); border-color: rgba(255,90,31,.35); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px; top: 20px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border-radius: 9px;
}
.step h3 { margin-bottom: 5px; }
.step p { color: var(--text-dim); font-size: 15px; }
.step__tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  background: rgba(255,182,72,.1);
  border: 1px solid rgba(255,182,72,.25);
  padding: 3px 10px;
  border-radius: 999px;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .step { padding: 56px 18px 20px; }
  .step::before { top: 16px; left: 18px; }
  .step h3 { font-size: 16px; }
}

/* ---------- services / pricing ---------- */
.cards {
  display: grid;
  gap: 18px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
  will-change: transform;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,90,31,.4); }
.card--featured {
  border-color: rgba(255,90,31,.5);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
}
.card__badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.card__icon { font-size: 26px; margin-bottom: 12px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card__desc { color: var(--text-dim); font-size: 15px; }
.card__price {
  margin: 18px 0 4px;
  font-size: 26px;
  font-weight: 800;
}
.card__price small { font-size: 14px; font-weight: 600; color: var(--text-mute); }
.card__term { font-size: 13px; color: var(--text-mute); }
.card__list {
  list-style: none;
  margin: 18px 0 0;
  display: grid;
  gap: 9px;
}
.card__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.card__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--ok);
  font-weight: 800;
}
.card__cta { margin-top: 22px; }
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- trust ---------- */
.trust-grid {
  display: grid;
  gap: 16px;
}
.trust-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.trust-item__icon { font-size: 24px; margin-bottom: 12px; }
.trust-item h3 { margin-bottom: 7px; }
.trust-item p { color: var(--text-dim); font-size: 15px; }
.trust-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.stat {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 10px;
}
.stat__num { font-size: 28px; font-weight: 850; color: var(--accent-2); }
.stat__label { font-size: 13px; color: var(--text-mute); margin-top: 3px; }
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-stats { grid-template-columns: repeat(4, 1fr); }
  .stat__num { font-size: 34px; }
}

/* ---------- portfolio / cases ---------- */
.cases {
  display: grid;
  gap: 16px;
}
.case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease;
  will-change: transform;
}
.case:hover { transform: translateY(-4px); }
.case__thumb {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, var(--bg-card-2) 0 14px, var(--bg-soft) 14px 28px);
  display: grid;
  place-items: center;
  color: var(--text-mute);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case__body { padding: 20px; }
.case__type { font-size: 12px; font-weight: 700; color: var(--accent-2); letter-spacing: .08em; text-transform: uppercase; }
.case__body h3 { margin: 6px 0 8px; font-size: 18px; }
.case__body p { color: var(--text-dim); font-size: 14.5px; }
.case__meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case__meta span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}
@media (min-width: 768px) {
  .cases { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(255,90,31,.35); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  font-size: 16.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  transition: transform .2s ease;
  will-change: transform;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p {
  padding: 0 0 18px;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* ---------- big CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-dk), var(--accent));
  border-radius: 20px;
  padding: 48px 28px;
  text-align: center;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 50%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: 28px; position: relative; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 17px; margin: 12px auto 24px; max-width: 560px; position: relative; }
.cta-band .btn--primary {
  background: #fff;
  color: var(--accent-dk);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  position: relative;
}
.cta-band .btn--primary:hover { box-shadow: 0 14px 36px rgba(0,0,0,.3); }
@media (min-width: 768px) {
  .cta-band { padding: 64px 40px; }
  .cta-band h2 { font-size: 36px; }
}

/* ---------- "work with us" (recruiting) ---------- */
.join {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 18px;
  align-items: center;
}
.join h3 { font-size: 20px; }
.join p { color: var(--text-dim); font-size: 15px; margin-top: 6px; }
.join ul { list-style: none; margin: 14px 0 0; display: grid; gap: 7px; }
.join ul li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text-dim); }
.join ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent-2); }
@media (min-width: 768px) {
  .join { grid-template-columns: 1fr auto; padding: 32px 36px; }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
  margin-top: 24px;
}
.site-footer__inner {
  display: grid;
  gap: 18px;
}
.site-footer .brand { font-size: 17px; }
.site-footer__tag { color: var(--text-mute); font-size: 14px; max-width: 420px; margin-top: 8px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 14px; }
.site-footer__links a { color: var(--text-dim); transition: color .15s ease; }
.site-footer__links a:hover { color: var(--text); }
.site-footer__legal { color: var(--text-mute); font-size: 13px; }
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
}

/* ---------- entrance animation (HW accelerated) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .step:hover, .case:hover { transform: none; }
}
