/* ════════════════════════════════════════════════════════════
   ARAMCAD — LANDING PAGE
   Industrial technical-editorial aesthetic
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #0a0e14;
  --paper: #f5f3ee;
  --steel: #3a4d6b;
  --rust: #d97548;
  --line: #1a2028;
  --muted: #5a6577;
  --grid: rgba(255, 255, 255, 0.04);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle technical grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* ─────────── TOP BAR ─────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 28px;
  display: block;
  filter: brightness(0) invert(0.96);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar-nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.topbar-nav a:hover { opacity: 1; }

.lang-switch {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  font-family: 'IBM Plex Mono', monospace;
}

.lang-switch a {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

.lang-switch a.active {
  background: var(--paper);
  color: var(--ink);
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--rust);
  color: var(--ink);
}
.btn-primary:hover {
  background: #e88a5e;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--paper); }

.btn-large {
  padding: 16px 32px;
  font-size: 14px;
}

.btn .arrow { font-size: 16px; line-height: 1; }

/* ─────────── HERO ─────────── */

.hero {
  position: relative;
  padding: 120px 32px 100px;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 1;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta::before, .hero-meta::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--line);
}

.hero-meta span { color: var(--rust); }

.hero h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero h1 .accent {
  color: var(--rust);
  font-style: italic;
}

.hero h1 .underline {
  position: relative;
  display: inline-block;
}

.hero h1 .underline::after {
  content: '';
  position: absolute;
  bottom: 8%;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--steel);
}

.hero-lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  max-width: 680px;
  color: rgba(245, 243, 238, 0.78);
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.stat-block { font-family: 'IBM Plex Mono', monospace; }

.stat-num {
  font-size: 32px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-num .small { font-size: 18px; color: var(--muted); }

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ─────────── SECTION GENERICS ─────────── */

section {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 32px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 24px;
}

.section-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--rust);
}

h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  text-transform: uppercase;
  max-width: 900px;
}

h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(245, 243, 238, 0.7);
  max-width: 680px;
  margin-bottom: 64px;
  font-weight: 300;
}

/* ─────────── PROBLEM SECTION ─────────── */

.problem {
  background: linear-gradient(180deg, var(--ink) 0%, #0d1219 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.problem-card {
  background: var(--ink);
  padding: 36px 28px;
  position: relative;
}

.problem-card::before {
  content: attr(data-num);
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.problem-card h3 { color: var(--rust); margin-top: 32px; }

.problem-card p {
  color: rgba(245, 243, 238, 0.65);
  font-size: 14px;
  line-height: 1.6;
}

/* ─────────── FEATURES SECTION ─────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 56px;
  margin-top: 24px;
}

.feature {
  position: relative;
  padding-top: 24px;
  border-top: 2px solid var(--steel);
}

.feature.accent { border-top-color: var(--rust); }

.feature-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 16px;
}

.feature h3 { margin-bottom: 12px; font-size: 20px; }

.feature p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(245, 243, 238, 0.7);
}

/* ─────────── HOW IT WORKS ─────────── */

.howitworks {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.howitworks .section-tag { color: var(--rust); }
.howitworks .section-lead { color: rgba(10, 14, 20, 0.65); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 32px;
  position: relative;
  border-radius: 2px;
}

.step:nth-child(2) { transform: translateY(24px); }
.step:nth-child(3) { transform: translateY(48px); }

.step-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 72px;
  line-height: 1;
  color: var(--rust);
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.step h3 { color: var(--paper); font-size: 22px; margin-bottom: 12px; }

.step p {
  color: rgba(245, 243, 238, 0.65);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ─────────── COMPARISON TABLE ─────────── */

.comparison-wrap {
  margin-top: 48px;
  border: 1px solid var(--line);
  background: #0d1219;
  border-radius: 2px;
  overflow: hidden;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.comparison th, .comparison td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.comparison thead th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--ink);
}

.comparison thead th.us { color: var(--rust); }

.comparison tbody td:first-child {
  font-weight: 600;
  color: var(--paper);
  width: 30%;
}

.comparison tbody td.them { color: rgba(245, 243, 238, 0.5); }

.comparison tbody td.us {
  color: var(--paper);
  background: rgba(217, 117, 72, 0.04);
  border-left: 2px solid var(--rust);
}

.comparison tbody tr:last-child td { border-bottom: none; }

/* ─────────── AUDIENCE ─────────── */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.audience-card {
  padding: 36px 28px;
  background: #0d1219;
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.audience-card:hover {
  border-color: var(--rust);
  transform: translateY(-2px);
}

.audience-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--steel);
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 20px;
}

.audience-card h3 { font-size: 19px; margin-bottom: 12px; }

.audience-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(245, 243, 238, 0.65);
}

/* ─────────── DONATION CTA ─────────── */

.donation {
  text-align: center;
  padding: 120px 32px;
  background: radial-gradient(circle at 50% 0%, rgba(217, 117, 72, 0.08) 0%, transparent 60%);
  border-top: 1px solid var(--line);
}

.donation .section-tag { justify-content: center; display: inline-flex; }

.donation h2 { margin-left: auto; margin-right: auto; max-width: 720px; }

.donation p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(245, 243, 238, 0.7);
  max-width: 580px;
  margin: 0 auto 40px;
  font-weight: 300;
}

/* ─────────── FAQ ─────────── */

.faq-grid { margin-top: 48px; }

details {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

details:last-child { border-bottom: 1px solid var(--line); }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
  user-select: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
  color: var(--rust);
  transition: transform 0.2s;
  flex-shrink: 0;
}

details[open] summary::after { transform: rotate(45deg); }

details p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(245, 243, 238, 0.7);
  max-width: 800px;
}

/* ─────────── FINAL CTA ─────────── */

.final-cta {
  padding: 120px 32px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink) 0%, #0d1219 100%);
}

.final-cta h2 {
  margin: 0 auto 32px;
  max-width: 800px;
}

.final-cta .btn-primary {
  font-size: 16px;
  padding: 20px 40px;
}

/* ─────────── FOOTER ─────────── */

footer {
  border-top: 1px solid var(--line);
  padding: 64px 32px 32px;
  background: #07090d;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 28px;
  filter: brightness(0) invert(0.96);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(245, 243, 238, 0.55);
  max-width: 320px;
}

.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: rgba(245, 243, 238, 0.75);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--rust); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ─────────── REVEAL ANIMATION ─────────── */

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1, .hero-lead, .hero-actions, .hero-stats, .hero-meta {
  animation: rise 0.8s ease-out backwards;
}
.hero-meta     { animation-delay: 0.05s; }
.hero h1       { animation-delay: 0.15s; }
.hero-lead     { animation-delay: 0.30s; }
.hero-actions  { animation-delay: 0.45s; }
.hero-stats    { animation-delay: 0.60s; }

/* ─────────── RESPONSIVE ─────────── */

@media (max-width: 768px) {
  .topbar-inner { padding: 14px 20px; }
  .topbar-nav { display: none; }
  .topbar-nav.lang-only { display: flex; }

  .hero { padding: 80px 20px 64px; }
  .container { padding: 64px 20px; }

  .step:nth-child(2),
  .step:nth-child(3) { transform: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .comparison th, .comparison td {
    padding: 12px 14px;
    font-size: 13px;
  }
}
