/*
  Hero Frequencies — Main Stylesheet
  ====================================
  Color variables are defined in :root below.
  To change the color scheme, update the --accent and --accent2 values.
*/

:root {
  --bg:        #edf2f7;
  --surface:   #ffffff;
  --border:    #cddaec;
  --accent:    #3b82c4;   /* steel blue — primary accent */
  --accent2:   #60a5d4;   /* light steel blue — secondary accent */
  --text:      #2d4052;
  --muted:     #6b8099;
  --heading:   #1a2a3a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── SCROLL PROGRESS BAR ─────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── STATS BAR ────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.stat { padding: 0.5rem; }

/* ── FAQ ──────────────────────────────────────────── */
.faq-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.25rem; }
.faq-a p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }

/* ── SOCIAL LINKS ─────────────────────────────────── */
.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }

/* ── FADE-IN ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── SITE DISCLAIMER + NAV ────────────────────────── */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}
.site-disclaimer {
  background: #1a2a3a;
  color: #d7e2ee;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  padding: 0.55rem 1.5rem;
}
#disclaimer-modal { z-index: 600; }
.disclaimer-modal .modal-sub {
  margin-bottom: 1.5rem;
  line-height: 1.65;
  color: var(--text);
}

/* ── NAV ──────────────────────────────────────────── */
nav {
  position: relative;
  top: auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2.5rem;
  background: rgba(237, 242, 247, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo img {
  height: 42px; width: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.nav-logo span {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--heading);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

/* ── HAMBURGER ────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 7rem 2rem 5.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59,130,196,0.08) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-logo {
  width: 130px; height: 130px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.88;
  margin-bottom: 2rem;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .mission {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.badge-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.775rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s;
}
.hero-cta:hover { opacity: 0.88; transform: translateY(-2px); }
.hero-cta svg { width: 16px; height: 16px; }

/* ── SECTION SHELL ────────────────────────────────── */
section { padding: 5.5rem 2rem; border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-desc {
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 3rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* ── SPLIT LAYOUT ─────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-text h3 {
  font-size: 1.45rem; font-weight: 700;
  color: var(--heading); margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.split-text p { color: var(--muted); font-size: 0.975rem; margin-bottom: 1.25rem; line-height: 1.8; }
.detail-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.detail-list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.9rem; color: var(--muted); }
.detail-list li::before { content: "→"; color: var(--accent); flex-shrink: 0; margin-top: 0.05rem; }
.screenshot {
  border-radius: 10px;
  border: 1px solid var(--border);
  width: 100%; display: block;
  box-shadow: 0 4px 24px rgba(59,130,196,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screenshot:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 40px rgba(59,130,196,0.18); }
.screenshot { cursor: zoom-in; }

/* ── LIGHTBOX ─────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 50, 0.88);
  backdrop-filter: blur(8px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
#lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
#lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  cursor: default;
}
#lightbox.open img {
  transform: scale(1);
}
#lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  font-size: 2rem; line-height: 1;
  transition: color 0.2s;
}
#lightbox-close:hover { color: var(--text); }

/* ── CALLOUT ──────────────────────────────────────── */
.callout {
  background: linear-gradient(135deg, rgba(59,130,196,0.07), rgba(96,165,212,0.05));
  border: 1px solid rgba(59,130,196,0.25);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-top: 2.5rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.callout-icon { font-size: 2rem; flex-shrink: 0; margin-top: 0.1rem; }
.callout-content h4 { font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 0.4rem; }
.callout-content p { color: var(--muted); font-size: 0.925rem; line-height: 1.75; }

/* ── PILLARS ──────────────────────────────────────── */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.pillar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pillar:hover { border-color: var(--accent2); box-shadow: 0 0 20px rgba(96,165,212,0.12); }
.pillar-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent2); margin-bottom: 0.4rem; }
.pillar h4 { font-size: 0.975rem; font-weight: 600; color: var(--heading); margin-bottom: 0.4rem; }
.pillar p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ── CONTACT MODAL ────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 50, 0.75);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 560px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  font-size: 1.4rem; line-height: 1;
  transition: color 0.2s;
  padding: 0.25rem;
}
.modal-close:hover { color: var(--text); }
.modal h3 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--heading); margin-bottom: 0.3rem;
}
.modal .modal-sub {
  font-size: 0.875rem; color: var(--muted); margin-bottom: 1.75rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  width: 100%;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a0b8cc; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-submit {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 0.25rem;
  width: 100%;
}
.form-submit:hover { opacity: 0.85; transform: translateY(-1px); }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 1.75rem 1.25rem; }
}

/* ── FOOTER ───────────────────────────────────────── */
footer { padding: 3.5rem 2rem 2.5rem; text-align: center; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); }
footer .footer-logo { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.75rem; }
footer .footer-logo img { height: 32px; mix-blend-mode: multiply; opacity: 0.6; }
footer .footer-logo span { font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.footer-tagline { color: var(--muted); margin-bottom: 0.5rem; font-size: 0.875rem; }
.footer-contact { margin-bottom: 1.25rem; }
.footer-contact a { color: var(--accent); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.footer-contact a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-divider { width: 40px; height: 1px; background: var(--border); margin: 0 auto 1.25rem; }
.footer-disclaimer {
  font-size: 0.78rem;
  color: #8aa0b8;
  max-width: 700px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}
.footer-copy { font-size: 0.78rem; color: #8aa0b8; }

/* ── BACK TO TOP ──────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 99; color: var(--muted);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 0.75rem 1.25rem; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(237,242,247,0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 1.5rem; }
  .nav-links a::after { display: none; }

  /* Hero */
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero-logo { width: 96px; height: 96px; }
  .hero .mission { font-size: 1rem; }
  .badge-row { gap: 0.5rem; }
  .badge { font-size: 0.7rem; padding: 0.3rem 0.75rem; }

  /* Sections */
  section { padding: 3.5rem 1.25rem; }

  /* Splits */
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse { direction: ltr; }

  /* Grids */
  .pillar-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  /* Callout */
  .callout { flex-direction: column; gap: 0.75rem; padding: 1.5rem; }

  /* Modal — slides up from bottom on mobile */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 1.25rem 2.5rem;
  }

  /* Footer */
  .footer-links { flex-wrap: wrap; gap: 1rem; justify-content: center; }

  /* Buttons */
  #back-to-top { right: 1.25rem; bottom: 1.25rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .section-title { font-size: 1.4rem; }
  .hero-cta { width: 100%; justify-content: center; }
  .split-text h3 { font-size: 1.2rem; }
  .callout-icon { font-size: 1.5rem; }
  .modal h3 { font-size: 1.1rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 1.75rem; }
}
