/* FixBench Landing — Obsidian Forge palette */

:root {
  --bg-top: #222838;
  --bg-bottom: #12151C;
  --bg-elevated: #2C3344;
  --surface: #343D50;
  --surface-border: #4A5568;
  --copper: #D4845A;
  --copper-bright: #EBA97A;
  --copper-deep: #A8613D;
  --brass: #C9A86C;
  --brass-deep: #8F7344;
  --vermillion: #F07167;
  --vermillion-glow: rgba(240, 113, 103, 0.16);
  --cobalt: #6B9BFF;
  --cobalt-soft: rgba(107, 155, 255, 0.20);
  --text-primary: #EDEFF3;
  --text-secondary: #A3ADBD;
  --text-tertiary: #6E7A8F;
  --success: #4CD4A0;
  --radius: 18px;
  --radius-sm: 14px;
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--copper-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--copper); }

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Ambient & grid */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 85% 90%, var(--vermillion-glow), transparent 70%);
}

.blueprint-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--cobalt) 1px, transparent 1px),
    linear-gradient(90deg, var(--cobalt) 1px, transparent 1px);
  background-size: 48px 48px;
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(34, 40, 56, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--copper-bright);
  text-shadow: 0 1px 0 var(--brass-deep);
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-size: 1.1rem;
}

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

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--text-primary); }

.nav-cta {
  padding: 10px 18px !important;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--copper-bright), var(--copper), var(--copper-deep));
  color: var(--bg-bottom) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 0 var(--brass-deep), 0 4px 20px rgba(212, 132, 90, 0.25);
}

.nav-cta:hover { filter: brightness(1.08); color: var(--bg-bottom) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  padding: 80px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow, .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hero h1 .highlight {
  color: var(--copper-bright);
  text-shadow: 0 0 40px rgba(235, 169, 122, 0.2);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--copper);
  margin-bottom: 20px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, filter 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--copper-bright), var(--copper), var(--copper-deep));
  color: var(--bg-bottom);
  box-shadow: 0 2px 0 var(--brass-deep), 0 8px 32px rgba(212, 132, 90, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: var(--bg-bottom);
}

.btn-ghost {
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  background: rgba(52, 61, 80, 0.5);
}

.btn-ghost:hover {
  border-color: var(--copper);
  color: var(--text-primary);
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--copper-bright);
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: lowercase;
}

/* Phone mock */
.hero-visual { display: flex; justify-content: center; }

.phone-mock {
  width: 280px;
  padding: 12px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(107, 155, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.phone-screen {
  border-radius: 22px;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  padding: 20px 16px 14px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-header {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--copper-bright);
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 14px;
}

.mock-card.urgent {
  border-color: rgba(240, 113, 103, 0.4);
  box-shadow: 0 0 24px var(--vermillion-glow);
}

.mock-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vermillion);
  background: var(--vermillion-glow);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.mock-card p {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.mock-progress {
  height: 5px;
  background: var(--surface-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.mock-progress span {
  display: block;
  height: 100%;
  background: var(--copper);
  border-radius: 3px;
}

.mock-card small {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.mock-checks {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.mock-checks .done { color: var(--success); }
.mock-checks span:not(.done) { color: var(--text-tertiary); }

.mock-tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-tertiary);
  padding-top: 8px;
  border-top: 1px solid var(--surface-border);
}

.mock-tabs .active { color: var(--copper); font-weight: 600; }

/* Sections */
.section {
  padding: 100px 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  max-width: 720px;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 48px;
}

.effective-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

/* Features */
.features { background: rgba(18, 21, 28, 0.5); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.feature-card:hover {
  border-color: var(--copper-deep);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 132, 90, 0.08);
  transform: translateY(-3px);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 12px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  border: 1px solid var(--surface-border);
}

.feature-icon.triage { background: rgba(212, 132, 90, 0.15); color: var(--copper); }
.feature-icon.rescue { background: var(--vermillion-glow); color: var(--vermillion); }
.feature-icon.workshop { background: var(--cobalt-soft); color: var(--cobalt); }
.feature-icon.map { background: var(--cobalt-soft); color: var(--cobalt); }
.feature-icon.toolkit { background: rgba(201, 168, 108, 0.15); color: var(--brass); }
.feature-icon.offline { background: rgba(76, 212, 160, 0.12); color: var(--success); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--copper-bright);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.disclaimer {
  padding: 16px;
  border-left: 3px solid var(--copper);
  background: rgba(52, 61, 80, 0.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem !important;
  color: var(--text-secondary) !important;
}

.disclaimer strong { color: var(--copper-bright); }

.osm-note {
  font-size: 0.8rem !important;
  color: var(--text-tertiary) !important;
  margin-top: 8px !important;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
}

.about-icon { font-size: 1.5rem; margin-bottom: 10px; display: block; }

.about-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.about-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Privacy */
.privacy { background: rgba(18, 21, 28, 0.5); }

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.policy-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
}

.policy-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--copper-bright);
  margin-bottom: 12px;
}

.policy-card p, .policy-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.policy-card ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.policy-card li { margin-bottom: 6px; }

/* Contact */
.contact-inner { text-align: center; }

.contact-inner .section-eyebrow,
.contact-inner h2,
.contact-inner .section-lead,
.contact-inner .reply-time {
  margin-left: auto;
  margin-right: auto;
}

.reply-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  border-color: var(--copper-deep);
  box-shadow: 0 0 30px rgba(212, 132, 90, 0.1);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-card a {
  font-size: 1rem;
  font-weight: 500;
  word-break: break-word;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--surface-border);
  background: rgba(18, 21, 28, 0.8);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--copper-bright);
  font-weight: 700;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Mobile nav open state */
body.nav-open { overflow: hidden; }

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual { order: -1; }
  .phone-mock { width: 240px; }
  .hero { padding-top: 48px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px;
    gap: 24px;
    background: rgba(18, 21, 28, 0.97);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  body.nav-open .site-nav { transform: translateX(0); }

  .site-nav a { font-size: 1.1rem; }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  .section { padding: 72px 0; }

  .feature-grid { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
