/* ══════════════════════════════════════════════════════════════════
   PROP PILOT — FLIGHT DECK DESIGN SYSTEM
   Shared by: home, pricing, propfirms, login, register
   Identity: green-cast graphite cockpit · emerald instruments ·
             placard typography (Saira Condensed / Inter / JetBrains Mono)
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* Green-cast graphite neutrals (the airframe) */
  --bg:            #070B09;
  --bg-raise:      #0B120E;
  --surface:       rgba(13, 20, 16, 0.92);
  --surface2:      #131C16;
  --surface3:      #1A2620;
  --border:        rgba(82, 210, 156, 0.10);
  --border2:       rgba(82, 210, 156, 0.24);
  --hairline:      rgba(233, 242, 236, 0.07);

  /* Instrument lights */
  --green:         #34D399;             /* emerald — brand + positive */
  --green-deep:    #10B981;
  --green-dim:     rgba(52, 211, 153, 0.13);
  --red:           #F4586B;             /* loss / danger */
  --red-dim:       rgba(244, 88, 107, 0.12);
  --gold:          #EFB13F;             /* caution amber */
  --gold-dim:      rgba(239, 177, 63, 0.12);
  --blue:          #57C8E0;             /* informational HUD cyan */
  --blue-dim:      rgba(87, 200, 224, 0.10);

  /* Ink */
  --text:          #E9F2EC;
  --text-light:    #C6D6CC;
  --label:         #9DB2A6;
  --muted:         #66796E;

  /* Type */
  --display:       'Inter Tight', 'Inter', system-ui, sans-serif;
  --sans:          'Inter', system-ui, sans-serif;
  --mono:          'JetBrains Mono', 'Consolas', monospace;

  /* Compat aliases (legacy markup) */
  --primary:            var(--green-deep);
  --primary-gradient:   linear-gradient(135deg, #0E9F6E 0%, #34D399 100%);
  --secondary:          var(--blue);
  --secondary-gradient: linear-gradient(135deg, #3AA8C1 0%, #7BDCEE 100%);
  --success:            var(--green);
  --warning:            var(--gold);
  --danger:             var(--red);
  --text-primary:       var(--text);
  --text-muted:         var(--label);
  --text-dark:          var(--muted);

  /* Rhythm */
  --space-1: 4px;  --space-2: 8px;  --space-3: 16px; --space-4: 24px;
  --space-5: 32px; --space-6: 56px; --space-7: 88px; --space-8: 140px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ── Reset / base ─────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(120% 70% at 50% 0%, #0C140F 0%, var(--bg) 62%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: inherit; }

::selection { background: rgba(52, 211, 153, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Altitude tape (signature graduation motif) ───────────────── */
.tape-rule {
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--hairline) 0 1px,
    transparent 1px 12px
  );
  background-size: 12px 6px;
  background-repeat: repeat-x;
  background-position: 0 bottom;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.tape-rule::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(233, 242, 236, 0.13) 0 1px,
    transparent 1px 60px
  );
  background-size: 60px 12px;
  background-repeat: repeat-x;
  background-position: 0 bottom;
}

/* ── Placard (cockpit label chip) ─────────────────────────────── */
.placard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(52, 211, 153, 0.09);
  white-space: nowrap;
}
.placard::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
}
.placard.neutral { color: var(--label); border-color: var(--hairline); background: rgba(255,255,255,0.02); }
.placard.neutral::before { background: var(--label); box-shadow: none; }

@media (max-width: 680px) {
  .placard {
    white-space: normal;
    line-height: 1.7;
    letter-spacing: 0.16em;
    max-width: 100%;
  }
}

/* ── Display typography ───────────────────────────────────────── */
.display-xl, .display-lg, .display-md {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
}
.display-xl { font-size: clamp(44px, 6.4vw, 84px); }
.display-lg { font-size: clamp(32px, 4.2vw, 54px); }
.display-md { font-size: clamp(24px, 3vw, 34px); }

.display-xl .dim, .display-lg .dim, .display-md .dim { color: var(--muted); }
.display-xl .lit, .display-lg .lit, .display-md .lit {
  color: var(--green);
  text-shadow: 0 0 34px rgba(52, 211, 153, 0.35);
}

.lede {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--label);
  line-height: 1.6;
  max-width: 52ch;
  font-weight: 400;
}

/* ── Buttons — quiet pills ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.22s cubic-bezier(0.28, 0, 0.2, 1),
              box-shadow 0.22s cubic-bezier(0.28, 0, 0.2, 1),
              background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary-gradient);
  color: #04150D;
  box-shadow: 0 2px 18px rgba(16, 185, 129, 0.22);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(52, 211, 153, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {          /* legacy alias — same emerald action */
  background: var(--primary-gradient);
  color: #04150D;
  box-shadow: 0 2px 18px rgba(16, 185, 129, 0.22);
}
.btn-secondary:hover {
  box-shadow: 0 8px 32px rgba(52, 211, 153, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: transparent;
  color: var(--text);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.btn-sm { padding: 8px 18px; font-size: 13px; min-height: 38px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ── Nav ──────────────────────────────────────────────────────── */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 11, 9, 0.72);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid rgba(233, 242, 236, 0.045);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--green); }
.logo img { height: 26px; width: 26px; object-fit: contain; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--label);
  text-decoration: none;
  padding: 6px 2px;
  transition: color 0.18s ease;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--green); }

.nav-ctas { display: flex; align-items: center; gap: 10px; }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--hairline);
  background: rgba(7, 11, 9, 0.97);
}
.nav-drawer a {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-light);
  text-decoration: none;
  padding: 13px 4px;
  border-bottom: 1px solid var(--hairline);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer.open { display: flex; }

@media (max-width: 900px) {
  .nav-menu, .nav-ctas .btn-outline { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ── Section scaffolding ──────────────────────────────────────── */
.section { padding: var(--space-8) 0; position: relative; }
.section-tight { padding: var(--space-6) 0; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: var(--space-6);
}
.section-head.centered { align-items: center; text-align: center; }

/* ── Cards ────────────────────────────────────────────────────── */
.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}

/* Corner screws — instrument-panel fastener detail */
.screws::before, .screws::after {
  content: '';
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(233, 242, 236, 0.16);
  top: 10px;
}
.screws::before { left: 10px; }
.screws::after { right: 10px; }

/* ── Forms (auth) ─────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--label);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.field input, .field select {
  width: 100%;
  background: rgba(4, 8, 6, 0.7);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-size: 16px; /* prevents iOS zoom */
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  min-height: 44px;
}
.field input:focus, .field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14);
}

.error-msg {
  display: none;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(244, 88, 107, 0.3);
  border-radius: var(--radius);
  font-size: 12.5px;
  padding: 10px 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--hairline);
  padding: var(--space-6) 0 var(--space-5);
  margin-top: var(--space-7);
  position: relative;
}
footer.site-footer::before {
  content: '';
  position: absolute;
  top: -15px; left: 0; right: 0;
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg, var(--hairline) 0 1px, transparent 1px 12px);
  background-size: 12px 6px;
  background-repeat: repeat-x;
  background-position: 0 bottom;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
  display: inline-block;
}
.footer-links a:hover { color: var(--green); }

.footer-copyright {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.footer-risk-disclaimer {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 14px;
  max-width: 90ch;
}
.footer-risk-disclaimer strong { color: var(--label); }

/* ── Motion ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.28, 0, 0.2, 1),
              transform 0.9s cubic-bezier(0.28, 0, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* Alternating raised band (Apple-style section separation without borders) */
.band {
  background: linear-gradient(180deg, rgba(233, 242, 236, 0.025) 0%, rgba(233, 242, 236, 0.012) 100%);
  border-radius: 28px;
  margin: 0 auto;
  max-width: 1440px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
