@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@500;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --dark:    #0e0e1a;
  --dark2:   #1A1A2E;
  --blue:    #0F3460;
  --blue2:   #16213E;
  --red:     #E94560;
  --red-dim: rgba(233,69,96,0.18);
  --light:   #c8d0e0;
  --muted:   #6a7a99;
  --white:   #FFFFFF;
  --card-bg: #131929;
  --input-bg:#0d1b2e;
  --border:  #1e2d4a;
  --border2: #2a3a5a;
  --font-head: 'Rajdhani', 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--light);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
header {
  background: var(--dark2);
  padding: 0.75rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
header img {
  height: 44px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  flex-shrink: 0;
}
header h1 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
}
header nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
header nav a {
  color: var(--light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
header nav a:hover { color: var(--red); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 3px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  transition: box-shadow 0.2s, opacity 0.2s !important;
}
.nav-cta:hover {
  opacity: 0.9 !important;
  box-shadow: 0 0 14px rgba(233,69,96,0.45) !important;
}

/* ── Main ───────────────────────────────────────────────────────────────── */
main { max-width: 1140px; margin: 2.5rem auto; padding: 0 1.5rem; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5.5rem 2rem 4.5rem;
  background:
    linear-gradient(180deg, rgba(15,52,96,0.55) 0%, rgba(14,14,26,0.9) 100%),
    var(--dark2);
  border-radius: 6px;
  margin-bottom: 3.5rem;
  border: 1px solid var(--border2);
}

/* metal grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,52,96,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,52,96,0.35) 1px, transparent 1px);
  background-size: 44px 44px;
  border-radius: 6px;
  pointer-events: none;
}

/* corner accent marks */
.hero::after {
  content: '';
  position: absolute;
  top: 16px; left: 16px;
  width: 28px; height: 28px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
  opacity: 0.7;
  pointer-events: none;
}

.hero-corner-br {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 28px; height: 28px;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
  opacity: 0.7;
  pointer-events: none;
}

/* laser scan line */
.laser-scan {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(233,69,96,0.0) 10%,
    #E94560 40%,
    #ff8aab 50%,
    #E94560 60%,
    rgba(233,69,96,0.0) 90%,
    transparent 100%
  );
  box-shadow: 0 0 6px #E94560, 0 0 18px rgba(233,69,96,0.35);
  animation: laserScan 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes laserScan {
  0%   { top: -2px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: calc(100% + 2px); opacity: 0; }
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
  position: relative;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  position: relative;
}
.hero h1 span { color: var(--red); }

.hero p {
  color: var(--light);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  opacity: 0.8;
  position: relative;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-cta-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1.2rem;
  position: relative;
  letter-spacing: 0.02em;
}

/* ── Features grid ──────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 1.8rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(15,52,96,0.6);
  border: 1px solid var(--border2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  transition: background 0.3s, box-shadow 0.3s;
}
.feature-card:hover .feature-icon {
  background: var(--red-dim);
  box-shadow: 0 0 12px rgba(233,69,96,0.2);
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-body h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.feature-body p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── How it works ───────────────────────────────────────────────────────── */
.how-it-works {
  margin-bottom: 3.5rem;
}
.section-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
/* connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 22px);
  right: calc(12.5% + 22px);
  height: 1px;
  background: linear-gradient(90deg,
    var(--red),
    rgba(233,69,96,0.4),
    rgba(233,69,96,0.4),
    var(--red)
  );
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.step-bubble {
  width: 56px;
  height: 56px;
  background: var(--card-bg);
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
  transition: background 0.3s, box-shadow 0.3s;
  color: var(--red);
}
.step-bubble svg { width: 24px; height: 24px; }
.step:hover .step-bubble {
  background: var(--red-dim);
  box-shadow: 0 0 20px rgba(233,69,96,0.3);
}

.step-num {
  position: absolute;
  top: -8px; right: -8px;
  width: 20px; height: 20px;
  background: var(--red);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.step p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Materials strip ────────────────────────────────────────────────────── */
.materials-strip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.materials-strip-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.materials-list {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex: 1;
}
.material-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 0.04em;
}
.material-chip::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--red);
  opacity: 0.7;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 2.5rem 1.5rem;
}
.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand img {
  height: 36px;
  width: auto;
  max-width: 220px;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--light);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--red); }
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.65;
}

/* ── Cards (generic) ────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h2 {
  font-family: var(--font-head);
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h3 {
  font-family: var(--font-head);
  color: var(--light);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
p { line-height: 1.6; }
a { color: var(--red); }

/* ── Forms ──────────────────────────────────────────────────────────────── */
label { display: block; margin-bottom: 0.3rem; font-size: 0.82rem; color: #8899bb; letter-spacing: 0.03em; }
input, select, textarea {
  width: 100%; padding: 0.65rem 0.9rem;
  background: var(--input-bg); border: 1px solid var(--border);
  color: var(--white); border-radius: 4px; margin-bottom: 1rem;
  font-size: 0.95rem; font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.12);
}
select option { background: var(--input-bg); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  padding: 0.7rem 1.5rem;
  border: none; border-radius: 4px;
  cursor: pointer; font-size: 0.92rem;
  font-weight: 600; font-family: var(--font-body);
  letter-spacing: 0.03em;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--red); color: var(--white);
  box-shadow: 0 2px 16px rgba(233,69,96,0.25);
}
.btn-primary:hover { box-shadow: 0 4px 24px rgba(233,69,96,0.4); }
.btn-secondary { background: var(--blue); color: var(--white); }
.btn-success { background: #27ae60; color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); opacity: 1; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* ── Status badges ──────────────────────────────────────────────────────── */
.status-badge {
  display: inline-block; padding: 0.2rem 0.7rem;
  border-radius: 20px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: var(--font-head);
}
.status-pending   { background: #2a2a3a; color: #888; }
.status-estimated { background: #0d2240; color: #5dade2; }
.status-confirmed { background: #0d2a1a; color: #58d68d; }
.status-rejected  { background: #2a0d0d; color: #ec7063; }
.status-ordered   { background: #1a0d2a; color: #a569bd; }

/* ── Tables ─────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  background: var(--blue); color: var(--white);
  padding: 0.6rem 1rem; text-align: left;
  font-family: var(--font-head);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
}
td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
tr:hover td { background: rgba(255,255,255,0.025); }
.text-right { text-align: right; }

/* ── Drop zone ──────────────────────────────────────────────────────────── */
.drop-zone {
  border: 1px dashed var(--border2); border-radius: 6px;
  padding: 2.5rem 2rem; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s; margin-bottom: 1rem;
  background: var(--input-bg);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--red); background: rgba(233,69,96,0.04);
}
.drop-zone p { color: #6a7a99; margin-bottom: 0.5rem; }
.drop-zone small { color: #4a5a70; }
.file-list { margin-top: 1rem; text-align: left; }
.file-item {
  display: flex; justify-content: space-between;
  padding: 0.4rem 0.6rem; background: var(--input-bg);
  border-radius: 4px; margin-top: 0.4rem;
  font-size: 0.82rem; color: var(--light);
}

/* ── Coin tip ───────────────────────────────────────────────────────────── */
.coin-tip {
  background: #090f1a;
  border-left: 2px solid var(--red);
  padding: 0.8rem 1rem; font-size: 0.84rem;
  color: #8899bb; margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
}
.coin-tip b { color: var(--light); }

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.error { color: #e74c3c; font-size: 0.83rem; margin-top: -0.5rem; margin-bottom: 0.75rem; min-height: 1.2rem; }
.success-msg { color: #2ecc71; background: #0d2a1a; border: 1px solid #27ae60; border-radius: 4px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.info-msg { color: #85c1e9; background: #0d1e2e; border: 1px solid #1a5276; border-radius: 4px; padding: 0.75rem 1rem; margin-bottom: 1rem; }

/* ── Total display ──────────────────────────────────────────────────────── */
.total-display { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; letter-spacing: 0.02em; }
.total-estimated { color: #3498db; }
.total-confirmed { color: #2ecc71; }
.total-label { font-size: 0.78rem; color: #6a7a99; margin-top: 0.2rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ── Loading ────────────────────────────────────────────────────────────── */
.loading { color: #6a7a99; font-style: italic; }

/* ── Divider ────────────────────────────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .steps::before { display: none; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  header { padding: 0.75rem 1.2rem; flex-wrap: wrap; }
  header img { max-width: 200px; height: 38px; }
  header nav { width: 100%; margin-left: 0; margin-top: 0.5rem; gap: 1rem; }
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-cta-group { flex-direction: column; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  main { padding: 0 1rem; }
  table { display: block; overflow-x: auto; }
  .materials-strip { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
