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

/* ─── Rendaero design tokens ─────────────────────────────────────────────── */
:root {
  /* Colors — brand */
  --ra-blue:       #1A56FF;
  --ra-blue-mid:   #0E3BCC;
  --ra-blue-50:    #EEF4FF;  /* primary action background */
  --ra-blue-100:   #C7D7FF;  /* primary action border */
  --ra-orange:     #FF6B35;

  /* Logo-derived blues. The wordmark mark uses a deep navy on the left
     fading to a bright cyan on the right ("AERO" is rendered in the cyan).
     Use --ra-navy for serious surfaces (rail, dark headers) and --ra-cyan
     for primary CTAs and links so the brand reads through the UI. */
  --ra-navy:       #0E2A5C;  /* deep navy from the R mark */
  --ra-navy-mid:   #15397D;
  --ra-cyan:       #3DA9E5;  /* bright accent from AERO */
  --ra-cyan-mid:   #2487C9;  /* hover/pressed */
  --ra-cyan-50:    #E8F4FB;  /* very light surface tint */
  --ra-cyan-100:   #B5DBEF;  /* soft border */
  --ra-cyan-700:   #1E6FA8;  /* readable text on cyan-50 */
  --ra-ink:        #0A0F1E;
  --ra-ink2:       #3B4566;
  --ra-ink3:       #7A85A3;
  --ra-sky:        #EEF1F8;
  --ra-mist:       #F5F6FB;
  --ra-white:      #FFFFFF;
  --ra-border:     #D4D8E8;
  --ra-border-soft: #E8EAF6;

  /* Colors — semantic status. Tailwind-style 50/100/500/700 scale.
     50  = surface tints (chips, pill backgrounds)
     100 = surface accents (chip borders, hover surfaces)
     500 = mid value (icons, accents, KPI rails)
     700 = legible text on -50 surface
     Use these for any status/intent color — never raw hex. */
  --ra-amber-50:   #FEF3C7;
  --ra-amber-100:  #FDE68A;
  --ra-amber-500:  #F59E0B;
  --ra-amber-700:  #92400E;

  --ra-green-50:   #DCFCE7;
  --ra-green-100:  #BBF7D0;
  --ra-green-500:  #10B981;
  --ra-green-700:  #15803D;

  --ra-red-50:     #FEE2E2;
  --ra-red-500:    #DC2626;
  --ra-red-700:    #B91C1C;

  --ra-info-50:    #DBEAFE;
  --ra-info-700:   #1E40AF;

  /* Dark slate — used for the rail + the dark "active" filter chip so they
     stay in lockstep visually. */
  --ra-slate-800:  #1F2937;
  --ra-slate-900:  #111827;

  /* Typography */
  --font-brand: 'Inter', sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ─── Base reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-brand);
  background: var(--ra-sky);
  color: var(--ra-ink);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Typography scale ───────────────────────────────────────────────────── */
.ra-display {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ra-ink);
}

.ra-heading {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ra-ink);
}

.ra-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ra-ink2);
}

.ra-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ra-ink3);
}

/* ─── Wordmark ───────────────────────────────────────────────────────────── */
.ra-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ra-wordmark-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ra-ink);
}

.ra-wordmark-text .aero { color: var(--ra-blue); }

/* Dark background variant */
.ra-wordmark--dark .ra-wordmark-text       { color: var(--ra-white); }
.ra-wordmark--dark .ra-wordmark-text .aero { color: var(--ra-orange); }

/* ─── Logo mark ──────────────────────────────────────────────────────────── */
.ra-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--ra-blue);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.ra-mark::before {
  content: '';
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 7px solid rgba(255,255,255,0.18);
  top: -10px;
  left: -10px;
}

.ra-mark::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.35);
  top: 14px;
  left: 14px;
}

.ra-mark-line {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--ra-orange);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.ra-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
  text-decoration: none;
}

.ra-btn-primary {
  background: var(--ra-blue);
  color: var(--ra-white);
}
.ra-btn-primary:hover { background: var(--ra-blue-mid); }

.ra-btn-secondary {
  background: transparent;
  color: var(--ra-ink2);
  border: 0.5px solid var(--ra-border);
}
.ra-btn-secondary:hover { background: var(--ra-sky); }

.ra-btn-danger {
  background: transparent;
  color: #C0392B;
  border: 0.5px solid #C0392B;
}

.ra-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.ra-card {
  background: var(--ra-white);
  border: 0.5px solid var(--ra-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

/* ─── Status badges ──────────────────────────────────────────────────────── */
.ra-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ra-badge-good   { background: #D1FAE5; color: #065F46; }
.ra-badge-bad    { background: #FEE2E2; color: #991B1B; }
.ra-badge-uncertain { background: #FEF3C7; color: #92400E; }
.ra-badge-pending   { background: var(--ra-sky); color: var(--ra-ink3); }

/* ─── Form inputs ────────────────────────────────────────────────────────── */
.ra-input {
  width: 100%;
  padding: 10px 12px;
  border: 0.5px solid var(--ra-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-brand);
  font-size: 14px;
  color: var(--ra-ink);
  background: var(--ra-white);
  outline: none;
  transition: border-color 0.15s;
}
.ra-input:focus { border-color: var(--ra-blue); }

/* ─── Divider ────────────────────────────────────────────────────────────── */
.ra-divider {
  height: 0.5px;
  background: var(--ra-border);
  margin: var(--space-6) 0;
}
