/* ============================================================
   AlgoVik Theme — base.css
   Variables, reset, typography, global utilities
   ============================================================ */

:root {
  /* Backgrounds — exact V1.0 values */
  --navy:        #0A0F2C;
  --navy-dark:   #060A1A;
  --navy-mid:    #0D1435;
  --navy-light:  #111840;

  /* Brand colours */
  --cobalt:      #1B4FFF;
  --cobalt-light:#3A6FFF;
  --cobalt-dim:  rgba(27, 79, 255, 0.13);

  /* Text */
  --ice:         #E8F0FF;
  --ice-dim:     rgba(232, 240, 255, 0.6);

  /* Accents */
  --gold:        #C9A84C;
  --gold-light:  #E0C06A;
  --gold-dim:    rgba(201, 168, 76, 0.13);
  --cyan:        #00D4FF;
  --cyan-dim:    rgba(0, 212, 255, 0.13);
  --green:       #00FF88;
  --green-dim:   rgba(0, 255, 136, 0.13);
  --red:         #FF4444;
  --red-dim:     rgba(255, 68, 68, 0.13);
  --amber:       #f59e0b;
  --purple:      #a78bfa;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-sub:     'Oswald', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Borders */
  --border-dim:  rgba(27, 79, 255, 0.18);
  --border-mid:  rgba(27, 79, 255, 0.30);

  /* Spacing */
  --section-pad:    4rem 6vw;
  --section-pad-sm: 3rem 5vw;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--ice);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

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

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: rgba(27,79,255,0.35); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cobalt-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--cobalt-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--ice);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* ── BUTTONS ── */
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  display: inline-block;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ice);
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(27, 79, 255, 0.6);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--cobalt); background: rgba(27,79,255,0.1); }

.btn-submit {
  width: 100%;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.25s;
}
.btn-submit:hover { background: var(--gold-light); }

/* ── PAGE TRANSITIONS ── */
.page { display: none; animation: fadeIn 0.4s ease; }
.page.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--green);
  color: var(--navy-dark);
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── TOOLTIP ── */
.tip {
  position: fixed;
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 12px;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  line-height: 1.8;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: opacity 0.1s;
}


/* ════════════════════════════════════════════
   CONTACT LIGHTBOX
════════════════════════════════════════════ */

/* Overlay */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 24, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lb-overlay.lb-open {
  opacity: 1;
  pointer-events: all;
}

/* Modal box */
.lb-modal {
  background: var(--navy-mid);
  border: 1px solid rgba(27, 79, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(27, 79, 255, 0.08),
    0 32px 80px rgba(4, 8, 24, 0.7),
    0 0 60px rgba(27, 79, 255, 0.07);
  width: 100%;
  max-width: 480px;
  position: relative;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.lb-overlay.lb-open .lb-modal {
  transform: translateY(0) scale(1);
}

/* Accent bar at top */
.lb-modal::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
}

/* Close button */
.lb-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 28px; height: 28px;
  background: rgba(232,240,255,0.06);
  border: 1px solid rgba(232,240,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ice-dim);
  font-size: 14px;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 2;
}
.lb-close:hover {
  background: rgba(255, 68, 68, 0.15);
  border-color: rgba(255, 68, 68, 0.35);
  color: var(--red);
}

/* Modal inner padding */
.lb-body {
  padding: 28px 32px 32px;
}

/* Eyebrow label */
.lb-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-eyebrow::before {
  content: '';
  display: block;
  width: 18px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Heading */
.lb-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 1.5px;
  color: var(--ice);
  line-height: 1;
  margin-bottom: 6px;
}

/* Sub */
.lb-sub {
  font-size: 0.82rem;
  color: var(--ice-dim);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Fields */
.lb-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.lb-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lb-field label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(232, 240, 255, 0.38);
}

.lb-field input,
.lb-field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(27, 79, 255, 0.22);
  color: var(--ice);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
}
.lb-field input::placeholder,
.lb-field textarea::placeholder {
  color: rgba(232, 240, 255, 0.18);
}
.lb-field input:focus,
.lb-field textarea:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 1px rgba(27, 79, 255, 0.2);
}
.lb-field textarea {
  resize: none;
  min-height: 72px;
}

/* Phone row */
.lb-phone-row {
  display: flex;
  gap: 0;
}
.lb-phone-row select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(27, 79, 255, 0.22);
  border-right: none;
  color: var(--ice);
  padding: 10px 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  width: 80px;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lb-phone-row select option { background: var(--navy-mid); }
.lb-phone-row select:focus { border-color: var(--cobalt); }
.lb-phone-row input { border-left: none; flex: 1; }

/* Submit */
.lb-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-light) 100%);
  color: #fff;
  border: none;
  padding: 13px 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 4px;
}
.lb-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.lb-submit:active { transform: translateY(0); }

/* Privacy note */
.lb-note {
  font-size: 0.68rem;
  color: rgba(232, 240, 255, 0.22);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

/* Success state */
.lb-success {
  text-align: center;
  padding: 40px 32px;
  display: none;
}
.lb-success.show { display: block; }
.lb-success-icon {
  width: 48px; height: 48px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 20px;
}
.lb-success-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--ice);
  margin-bottom: 8px;
}
.lb-success-sub {
  font-size: 0.85rem;
  color: var(--ice-dim);
  line-height: 1.6;
}

/* Mobile tweaks */
@media (max-width: 520px) {
  .lb-body { padding: 24px 20px 28px; }
  .lb-title { font-size: 1.7rem; }
}
