/* -----------------------------
   Base
------------------------------ */
:root {
  --bg0: #070a12;
  --bg1: #0a0f1f;

  --ink: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --muted2: rgba(255, 255, 255, 0.58);

  /* Keep your same vibe (blue/purple) */
  --a: rgba(88, 115, 255, 0.60);
  --b: rgba(92, 58, 255, 0.45);
  --c: rgba(25, 158, 255, 0.25);

  /* Card */
  --card: rgba(14, 18, 36, 0.62);  /* less transparent so seams can't cut through */
  --card2: rgba(14, 18, 36, 0.72);
  --border: rgba(255, 255, 255, 0.10);
  --border2: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
}

/* -----------------------------
   Layout
------------------------------ */
.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 96px 0;
  isolation: isolate;
}

/* Alternating backgrounds: colorful / dark / colorful / dark */
.bg-dark::before,
.bg-colorful::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* Base dark wash (continuous) */
.bg-dark::before {
  background:
    linear-gradient(180deg,
      rgba(6, 9, 18, 0.88) 0%,
      rgba(6, 9, 18, 0.92) 55%,
      rgba(6, 9, 18, 0.98) 100%
    );
}

/* Colorful wash: IMPORTANT
   1) Extended fade (no "ending" at one spot)
   2) Multiple alpha stops (smooth, no boundary line)
*/
.bg-colorful::before {
  background:
    radial-gradient(900px 520px at 18% 22%,
      rgba(88, 115, 255, 0.55) 0%,
      rgba(88, 115, 255, 0.28) 28%,
      rgba(88, 115, 255, 0.14) 48%,
      rgba(88, 115, 255, 0.06) 65%,
      rgba(88, 115, 255, 0.00) 82%
    ),
    radial-gradient(780px 520px at 82% 18%,
      rgba(92, 58, 255, 0.42) 0%,
      rgba(92, 58, 255, 0.22) 30%,
      rgba(92, 58, 255, 0.10) 52%,
      rgba(92, 58, 255, 0.04) 70%,
      rgba(92, 58, 255, 0.00) 86%
    ),
    radial-gradient(900px 640px at 55% 85%,
      rgba(25, 158, 255, 0.18) 0%,
      rgba(25, 158, 255, 0.10) 30%,
      rgba(25, 158, 255, 0.05) 55%,
      rgba(25, 158, 255, 0.02) 72%,
      rgba(25, 158, 255, 0.00) 88%
    ),
    linear-gradient(180deg,
      rgba(6, 9, 18, 0.82) 0%,
      rgba(6, 9, 18, 0.90) 65%,
      rgba(6, 9, 18, 0.98) 100%
    );
}

/* Optional subtle film grain-ish overlay (very light) */
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 30% 10%, rgba(255,255,255,0.03), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(255,255,255,0.02), transparent 60%);
  opacity: 0.65;
}

/* -----------------------------
   Topbar
------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(6, 9, 18, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(88,115,255,1), rgba(92,58,255,1));
  box-shadow: 0 0 0 4px rgba(88,115,255,0.14);
}
.brand__name { letter-spacing: 0.2px; }

.brand__logo,
.footer__logo {
  height: 55px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}


.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.nav a:hover { color: var(--ink); }

/* Hide hamburger by default (desktop/tablet) */
.navToggle { display: none; }

/* Mobile nav toggle (hamburger) */
.navToggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(6, 9, 18, 0.35);
  cursor: pointer;
}

.navToggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  transition: background 160ms ease;
}
.navToggle__bars::before,
.navToggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  transition: transform 160ms ease, top 160ms ease;
}
.navToggle__bars::before { top: -6px; }
.navToggle__bars::after  { top:  6px; }

.navToggle[aria-expanded="true"] .navToggle__bars { background: transparent; }
.navToggle[aria-expanded="true"] .navToggle__bars::before { top: 0; transform: rotate(45deg); }
.navToggle[aria-expanded="true"] .navToggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* -----------------------------
   Typography
------------------------------ */
h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.06;
  margin: 10px 0 14px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 22px;
}
.sublead {
  color: var(--muted);
  line-height: 1.6;
  max-width: 70ch;
  margin: 0 0 28px;
}
.eyebrow {
  color: var(--muted2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.muted { color: var(--muted2); }

.text-gradient {
  background: linear-gradient(90deg, rgba(88,115,255,1), rgba(25,158,255,0.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -----------------------------
   Cards (Option 2)
------------------------------ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);        /* key: blur hides background boundaries */
  -webkit-backdrop-filter: blur(14px);
}

.card--panel {
  background: var(--card2);
  border: 1px solid var(--border2);
}

/* -----------------------------
   Buttons
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(88,115,255,1), rgba(92,58,255,0.95));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.btn:hover { filter: brightness(1.05); }
.btn--ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--sm { height: 38px; padding: 0 12px; border-radius: 10px; }

/* -----------------------------
   Hero
------------------------------ */
.hero {
  padding-top: 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.stat { padding: 14px 14px; }
.stat__kpi { font-weight: 800; margin-bottom: 4px; }
.stat__label { color: var(--muted2); font-size: 13px; }

/* Panel mock */
.hero__panel { padding: 18px; }
.panel__top {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.pill {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.80);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
}
.pill--ok {
  background: rgba(88,115,255,0.18);
  border-color: rgba(88,115,255,0.22);
}
.panel__box {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  margin-bottom: 12px;
}
.panel__box--out {
  background: rgba(88,115,255,0.10);
  border-color: rgba(88,115,255,0.18);
}
.panel__label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.panel__text { color: var(--muted); line-height: 1.55; }
.panel__list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.panel__hint { margin-top: 10px; color: var(--muted2); font-size: 13px; line-height: 1.55; }

/* -----------------------------
   Steps
------------------------------ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
}
.step__num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(88,115,255,0.16);
  border: 1px solid rgba(88,115,255,0.20);
}

/* -----------------------------
   Features grid
------------------------------ */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.feature { padding: 18px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.6; }

/* -----------------------------
   Contact
------------------------------ */
.contact {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.bullets {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.bullet { padding: 14px; color: var(--muted); line-height: 1.6; }
.bullet b { color: var(--ink); }

.form {
  padding: 18px;
  display: grid;
  gap: 12px;
}
label {
  display: grid;
  gap: 8px;
  color: var(--muted2);
  font-weight: 700;
  font-size: 13px;
}
input, textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  padding: 12px 12px;
  outline: none;
  font: inherit;
}
input:focus, textarea:focus {
  border-color: rgba(88,115,255,0.38);
  box-shadow: 0 0 0 4px rgba(88,115,255,0.12);
}
.fineprint {
  margin: 0;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.5;
  min-height: 18px;
}

/* -----------------------------
   Footer
------------------------------ */
.footer { padding-top: 40px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted2);
  font-size: 13px;
}

.footer__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer__logo {
  height: 55px;   /* Change 4em to a fixed pixel value */
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* -----------------------------
   Responsive
------------------------------ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
}

@media (max-width: 520px) {
  .section { padding: 76px 0; }

  /* Show hamburger only on small screens */
  .navToggle { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(6, 9, 18, 0.35);
    cursor: pointer;
  }

  /* Hide desktop links on mobile (you already had this behavior) */
  /* Collapse nav by default on mobile */
.nav { display: none; }

/* Show full nav when open */
.nav.nav--open { display: flex; }

/* Make links stack nicely */
.nav a { display: block; }

/* When menu is open, show the hidden links */
.nav.nav--open a:not(.btn) { 
  display: block;
}


}

/* Mobile dropdown nav */
@media (max-width: 820px) {
  .topbar__inner { position: relative; }

  .navToggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 16px;
    background: rgba(6, 9, 18, 0.92);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  }

  .nav a {
    display: block;
    padding: 12px 12px;
    font-size: 15px;
  }

  .nav a.btn {
    margin: 6px 6px 8px;
    text-align: center;
  }

  .nav.nav--open { display: flex; }
}



/* -----------------------------
   About page
------------------------------ */

/* Active nav item (used on about.html) */
.nav a[aria-current="page"] {
  color: var(--ink);
  position: relative;
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(88,115,255,0.9);
  box-shadow: 0 0 0 4px rgba(88,115,255,0.12);
}

/* About hero layout */
.about-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: start;
}

.about-card {
  padding: 18px;
}

.about-card h3 {
  margin-top: 2px;
}

.about-points {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.about-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;   /* 1 column = 3 rows */
  gap: 18px;
  margin-top: 18px;
}

.person {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.person__head {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 16px;
  align-items: center;
}

.person__photo {
  width: 176px;
  height: 176px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.person__name {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

.person__role {
  margin: 4px 0 0;
  color: var(--muted2);
  font-weight: 700;
  font-size: 13px;
}

.person__bio {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.person__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 12px;
  border-radius: 12px;
  width: fit-content;
}
.person__link:hover {
  background: rgba(255,255,255,0.08);
}

/* About responsive */
@media (max-width: 980px) {
  .about-hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}



/* -----------------------------
   Footer trust + links (remote-first SaaS)
------------------------------ */
.footer__inner {
  align-items: flex-start;
  gap: 18px;
}

.footer__right {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.footer__meta {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  color: var(--muted2);
  font-size: 12.5px;
  line-height: 1.4;
}



/* Footer links should match footer text tone (same as copyright) */
.footer__links a {
  color: inherit;          /* <-- makes it exactly the same as footer text */
  text-decoration: none;
  font-weight: 700;
}

.footer__links a:hover {
  color: inherit;          /* keep same tone */
  text-decoration: none;   /* never underline */
  opacity: 0.9;            /* subtle hover */
}

.footer__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  color: var(--muted2);
  font-size: 12.5px; /* half of 12.5px */
}

.footer__links .sep {
  color: rgba(255,255,255,0.35);
}

/* Contact cards */
.contact-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.kv {
  display: grid;
  gap: 6px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.kv b { color: var(--ink); }

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.faq details {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: rgba(255,255,255,0.90);
  list-style: none;
}
.faq summary::-webkit-details-marker { display:none; }
.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* Responsive footer */
@media (max-width: 980px) {
  .footer__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .footer__right {
    justify-items: start;
    text-align: left;
  }
  .footer__links {
    justify-content: flex-start;
  }
}


/* -----------------------------
   Policy pages: smaller numbered section headings
------------------------------ */
.page-policy h2 {
  font-size: calc(clamp(28px, 3.4vw, 38px) / 2);
  line-height: 1.2;
  margin: 18px 0 10px;
}