/* ============================================================
   Ramp Manufacturing Co. — Design System
   ============================================================ */

:root {
  --bg:          #0c0e12;
  --bg-2:        #10131a;
  --surface:     #161a22;
  --surface-2:   #1c212b;
  --border:      #29303c;
  --border-2:    #363f4e;
  --text:        #e8ecf3;
  --muted:       #9aa5b4;
  --muted-2:     #6c7684;
  --brand:       #ff6a1a;
  --brand-600:   #ec5c11;
  --brand-700:   #c94c0d;
  --brand-soft:  rgba(255,106,26,0.12);
  --brand-glow:  rgba(255,106,26,0.35);
  --steel:       #64707f;
  --ok:          #34d17f;

  --radius:      14px;
  --radius-sm:   10px;
  --radius-lg:   22px;
  --maxw:        1200px;
  --shadow:      0 20px 50px -20px rgba(0,0,0,0.7);
  --shadow-sm:   0 8px 24px -12px rgba(0,0,0,0.6);

  --ff-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-head: "Archivo", var(--ff-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; color: var(--muted); }

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

section { position: relative; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand);
  display: inline-block;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------------- Buttons ---------------- */
.btn {
  --pad-y: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) 26px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  color: #1a0d05;
  box-shadow: 0 10px 30px -10px var(--brand-glow);
}
.btn--primary:hover { box-shadow: 0 14px 38px -8px var(--brand-glow); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover { border-color: var(--brand); color: #fff; }

.btn--light { background: #fff; color: #12151b; }
.btn--light:hover { transform: translateY(-1px); }

.btn--lg { --pad-y: 17px; padding-inline: 32px; font-size: 1.05rem; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12,14,18,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(12,14,18,0.9);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-head);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: 1.18rem;
  color: #fff;
}
.brand .brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand small {
  display: block;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: #fff; background: var(--surface); }
.nav-links a.active { color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: clamp(70px, 11vw, 150px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(255,106,26,0.16), transparent 60%),
    radial-gradient(700px 500px at 10% 20%, rgba(59,89,152,0.10), transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(700px 460px at 70% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 460px at 70% 0%, #000, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note {
  margin-top: 22px;
  display: flex; align-items: center; gap: 10px;
  color: var(--muted-2); font-size: .92rem;
}
.hero-note svg { width: 18px; height: 18px; color: var(--ok); flex: 0 0 auto; }

.hero-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.hero-card h3 { color: #fff; font-family: var(--ff-head); }
.spec-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--muted); font-size: .95rem; }
.spec-row .v { color: #fff; font-weight: 700; font-family: var(--ff-head); }
.badge-inline {
  display:inline-flex; align-items:center; gap:6px;
  font-size:.78rem; font-weight:700; color:var(--brand);
  background:var(--brand-soft); padding:4px 10px; border-radius:999px;
}

/* ---------------- Trust bar ---------------- */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.trust-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 20px 40px;
  padding: 26px 0;
}
.trust-label { color: var(--muted-2); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; }
.trust-logos span {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--steel);
  letter-spacing: .02em;
  opacity: .9;
}

/* ---------------- Section headings ---------------- */
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { color: #fff; }

/* ---------------- Grid cards ---------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.card h3 { color: #fff; margin-bottom: 8px; }
.card p { margin: 0; font-size: .97rem; }

.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

/* material card variant */
.mat-card { padding: 0; overflow: hidden; }
.mat-card .mat-top {
  padding: 26px 26px 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--border);
}
.mat-card .mat-top h3 { margin-bottom: 4px; }
.mat-card .mat-top .grade { color: var(--brand); font-weight: 700; font-size: .85rem; font-family: var(--ff-head); letter-spacing:.04em; }
.mat-card ul { list-style: none; margin: 0; padding: 20px 26px 26px; }
.mat-card li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; color: var(--muted); font-size: .95rem;
}
.mat-card li svg { width: 16px; height: 16px; color: var(--brand); flex: 0 0 auto; }

/* ---------------- Feature split ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .panel {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow);
}
.checklist { list-style: none; margin: 22px 0 0; padding: 0; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: 0; }
.checklist .ci {
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-top: 2px;
}
.checklist .ci svg { width: 15px; height: 15px; }
.checklist strong { color: #fff; font-family: var(--ff-head); }
.checklist p { margin: 2px 0 0; font-size: .93rem; }

/* stat panel */
.stat-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--border); border-radius: var(--radius); overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 30px 26px;
}
.stat .num {
  font-family: var(--ff-head); font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff; line-height: 1;
}
.stat .num span { color: var(--brand); }
.stat .lbl { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* ---------------- Stats band ---------------- */
.stats-band { background: var(--bg-2); border-block: 1px solid var(--border); }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; text-align: center; }
.stats-row .num { font-family: var(--ff-head); font-weight: 800; font-size: clamp(2.2rem,5vw,3.2rem); color: #fff; }
.stats-row .num span { color: var(--brand); }
.stats-row .lbl { color: var(--muted); font-size: .95rem; }

/* ---------------- Steps ---------------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4,1fr); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--ff-head); font-weight: 800; font-size: 1.6rem;
  color: var(--brand); display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; color: #fff; }
.step p { font-size: .93rem; margin: 0; }

/* ---------------- CTA band ---------------- */
.cta {
  position: relative;
  background: linear-gradient(120deg, #1a1207, var(--bg-2) 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 68px);
  overflow: hidden;
}
.cta::after {
  content:""; position:absolute; right:-80px; top:-80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow), transparent 65%);
}
.cta .container-inner { position: relative; z-index: 2; max-width: 640px; }
.cta h2 { color: #fff; }
.cta .hero-actions { margin-top: 24px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 30px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { max-width: 34ch; font-size: .95rem; margin-top: 16px; }
.footer-col h4 {
  font-family: var(--ff-head); font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: .95rem; transition: color .15s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--muted-2); font-size: .88rem;
}
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--muted); }

/* ---------------- Page hero (subpages) ---------------- */
.page-hero {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(700px 380px at 85% -20%, rgba(255,106,26,0.14), transparent 60%);
  pointer-events:none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color:#fff; }
.breadcrumb { display:flex; gap:8px; align-items:center; color:var(--muted-2); font-size:.9rem; margin-bottom:18px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--border-2); }

/* ---------------- Support / Contact ---------------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items:start; }

.contact-cards { display:grid; gap:16px; }
.contact-item {
  display:flex; gap:16px; align-items:flex-start;
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.contact-item .ci {
  flex:0 0 auto; width:46px; height:46px; border-radius:12px;
  background: var(--brand-soft); color: var(--brand);
  display:grid; place-items:center;
}
.contact-item .ci svg { width:22px; height:22px; }
.contact-item h3 { font-size:1.05rem; color:#fff; margin-bottom:4px; }
.contact-item p, .contact-item a { margin:0; font-size:.96rem; color:var(--muted); }
.contact-item a.link { color: var(--brand); font-weight:600; }
.contact-item a.link:hover { text-decoration: underline; }

.form-card {
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-sm);
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field { margin-bottom:18px; }
.field label { display:block; font-size:.86rem; font-weight:600; color:var(--text); margin-bottom:7px; }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width:100%; padding:13px 15px;
  background: var(--bg-2); color: var(--text);
  border:1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .98rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239aa5b4' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position: right 14px center; padding-right:40px; }
.form-note { font-size:.85rem; color:var(--muted-2); margin-top:6px; }
.form-success {
  display:none; align-items:center; gap:12px;
  background: rgba(52,209,127,0.1); border:1px solid rgba(52,209,127,0.3);
  color: #a9f0cb; border-radius: var(--radius-sm); padding:16px 18px; margin-bottom:20px;
  font-size:.95rem;
}
.form-success.show { display:flex; }
.form-success svg { width:20px; height:20px; flex:0 0 auto; color:var(--ok); }

/* ---------------- FAQ ---------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-q {
  width:100%; text-align:left; background:none; border:0; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding: 22px 0; color:#fff; font-family:var(--ff-head); font-weight:700; font-size:1.08rem;
}
.faq-q .icon { flex:0 0 auto; width:26px; height:26px; border-radius:8px; background:var(--surface); border:1px solid var(--border); display:grid; place-items:center; color:var(--brand); transition: transform .2s; }
.faq-q .icon svg { width:16px; height:16px; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height:0; overflow:hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 0 22px; margin:0; }

/* ---------------- Misc ---------------- */
.pill {
  display:inline-flex; align-items:center; gap:8px;
  background: var(--surface); border:1px solid var(--border);
  color: var(--muted); font-size:.85rem; font-weight:600;
  padding:7px 14px; border-radius:999px;
}
.pill svg { width:15px; height:15px; color: var(--brand); }
.pill-row { display:flex; flex-wrap:wrap; gap:10px; }

.divider { height:1px; background:var(--border); border:0; margin:0; }

/* reveal animation */
.reveal { opacity:0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { order: 2; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--bg-2); border-bottom:1px solid var(--border);
    padding: 14px 24px 22px; gap: 4px;
  }
  .site-header.menu-open .nav-links a { padding: 12px 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-panel { grid-template-columns: 1fr 1fr; }
}

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