/* ═══════════════════════════════════════════════════════════════════════
   LANDINGFIX — SHARED STYLESHEET
   Single source of truth for the design system across all pages.
   Edit variables in :root to change the theme everywhere.
   ═══════════════════════════════════════════════════════════════════════ */

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

/* ── DESIGN TOKENS (CSS Variables) ────────────────────────────────────── */
:root {
  /* Background layers — darkest to lightest. Used to create depth. */
  --bg:        #0A0E1A;   /* page background */
  --bg2:       #0F1626;   /* card background */
  --bg3:       #151D30;   /* nested card background */
  --surface:   #1A2340;   /* interactive surface (hover states, inputs) */

  /* Border colors — subtle by default, brighter when emphasised */
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);

  /* Brand colors */
  --accent:    #3B82F6;   /* primary blue */
  --accent2:   #60A5FA;   /* lighter blue (gradients, links) */
  --accent3:   #818CF8;   /* indigo (for gradient endpoints) */
  --accentGlow:#3B82F620; /* blue with 12% opacity for soft glow */

  /* Semantic colors */
  --green:     #10B981;   /* success / good scores */
  --greenDim:  #10B98115; /* success background tint */
  --amber:     #F59E0B;   /* warning / medium scores */
  --amberDim:  #F59E0B15;
  --red:       #EF4444;   /* error / bad scores */
  --redDim:    #EF444415;
  --purple:    #8B5CF6;   /* secondary highlight */

  /* Text colors — light to dim */
  --text:      #F1F5FF;   /* primary text */
  --textMid:   #94A3C0;   /* secondary text */
  --textDim:   #5A6880;   /* tertiary / disabled text */

  /* Radius scale */
  --radius:    12px;
  --radiusLg:  20px;
  --radiusSm:  8px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.2);
  --shadow-hover: 0 8px 32px rgba(59,130,246,0.15);
}

/* ── BASE TYPOGRAPHY ──────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display font for big headings — gives editorial, premium feel */
.display-font {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ── LAYOUT HELPERS ───────────────────────────────────────────────────── */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV BAR ──────────────────────────────────────────────────────────── */
nav.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}
.nav-logo-dot {
  /* Brand mark — uses /assets/favicon.svg so the favicon and nav logo stay
     visually consistent. Falls back gracefully if the file isn't found:
     you'll see nothing instead of a broken image icon. */
  width: 22px;
  height: 22px;
  background: url("../assets/favicon.svg") center / contain no-repeat;
  border-radius: 5px;
  box-shadow: 0 0 14px var(--accentGlow);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  color: var(--textMid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--text);
}
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(59,130,246,0.4);
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover {
  background: rgba(59,130,246,0.12);
  border-color: var(--accent);
}

/* Hide some nav items on mobile */
@media (max-width: 720px) {
  .nav-links .nav-link { display: none; }
}

/* ── BUTTONS ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: #2563EB;
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn--secondary {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn--secondary:hover {
  background: var(--surface);
  border-color: rgba(255,255,255,0.2);
}
.btn--ghost {
  background: transparent;
  color: var(--textMid);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border2);
}
.btn--large {
  padding: 16px 36px;
  font-size: 16px;
}
.btn--block {
  width: 100%;
}
.btn--accent-glow {
  box-shadow: 0 0 32px rgba(59,130,246,0.25);
}

/* ── FORM ELEMENTS ────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--textMid);
  margin-bottom: 8px;
}
label .required {
  color: var(--accent2);
}
label .optional {
  color: var(--textDim);
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder, textarea::placeholder {
  color: var(--textDim);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3C0' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
select option {
  background: var(--bg2);
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
.error-msg {
  font-size: 12px;
  color: #F87171;
  margin-top: 6px;
  display: none;
}
.input-error {
  border-color: #F87171 !important;
}

/* ── CARDS ────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  padding: 28px;
}
.card--elevated {
  background: var(--bg3);
  border-color: var(--border2);
  box-shadow: var(--shadow-card);
}

/* ── BADGES ───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge--info {
  background: rgba(59,130,246,0.12);
  color: var(--accent2);
  border: 1px solid rgba(59,130,246,0.25);
}
.badge--success {
  background: var(--greenDim);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.25);
}
.badge--warning {
  background: var(--amberDim);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.3);
}
.badge--danger {
  background: var(--redDim);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
}
.badge--neutral {
  background: rgba(255,255,255,0.06);
  color: var(--textMid);
  border: 1px solid var(--border);
}

/* ── ANIMATIONS ───────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fadeUp { animation: fadeUp 0.6s ease both; }

/* Scroll reveal — JS adds .visible to animate in */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ───────────────────────────────────────────────────────────── */
footer.sitefooter {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg2);
}
footer.sitefooter .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
footer.sitefooter .footer-links a {
  color: var(--textMid);
  text-decoration: none;
  font-size: 13px;
}
footer.sitefooter .footer-links a:hover { color: var(--text); }
footer.sitefooter p {
  font-size: 13px;
  color: var(--textDim);
}
footer.sitefooter strong {
  color: var(--textMid);
  font-weight: 500;
}

/* ── UTILITY ──────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-mid    { color: var(--textMid); }
.text-dim    { color: var(--textDim); }
.text-accent { color: var(--accent2); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ── SECTION ──────────────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
}
.section-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 17px;
  color: var(--textMid);
  max-width: 600px;
  line-height: 1.6;
}

/* ── LOADING SPINNER ──────────────────────────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ── TOAST NOTIFICATION ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  box-shadow: var(--shadow-card);
  z-index: 1000;
  animation: fadeUp 0.3s ease both;
  max-width: 360px;
}
.toast--success { border-left-color: var(--green); }
.toast--error { border-left-color: var(--red); }
.toast--warning { border-left-color: var(--amber); }

/* ── MODAL ────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.modal-backdrop.active {
  display: flex;
}
.modal {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radiusLg);
  max-width: 480px;
  width: 100%;
  padding: 36px;
  animation: fadeUp 0.3s ease both;
}
.modal h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--textMid);
  font-size: 24px;
  cursor: pointer;
}

/* ── RESPONSIVE TWEAKS ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .wrap, .wrap--sm, .wrap--wide { padding: 0 20px; }
}
