/* /css/base.css */

:root{
  --bg-0:#050b17;
  --bg-1:#07122b;
  --bg-2:#0a1d46;

  --line:rgba(255,255,255,.12);

  --text:#ffffff;
  --sub:rgb(232,238,249);

  --nav-pill:rgba(255,255,255,.06);
  --nav-pill-2:rgba(255,255,255,.08);

  --blue:#0b63d6;
  --blue-2:#0a57c0;

  --cta-red:rgb(224,49,44);

  --radius-10:10px;
  --radius-14:14px;
  --radius-18:18px;
  --radius-22:22px;

  --shadow:0 16px 42px rgba(0,0,0,.45);
  --shadow-soft:0 10px 26px rgba(0,0,0,.35);

  --wrap:1120px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(1100px 540px at 50% 0%, rgba(11,99,214,.25), transparent 62%),
    radial-gradient(900px 520px at 18% 10%, rgba(22,169,255,.16), transparent 62%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 46%, var(--bg-2) 100%);
}

a{color:inherit;text-decoration:none}

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 18px;
}

/* HEADER */
.site-header{
  position:relative;
  padding:18px 0 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(900px 260px at 50% 0%, rgba(11,99,214,.18), transparent 62%),
    linear-gradient(180deg, rgba(5,11,23,.92) 0%, rgba(7,18,43,.80) 100%);
  backdrop-filter:saturate(130%) blur(10px);
}

.header-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:240px;
}

.brand-title{
  margin:0;
  font-size:20px;
  font-weight:900;
  letter-spacing:-0.6px;
  line-height:1.05;
}

.brand-sub{
  margin:0;
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  color:rgba(232,238,249,.72);
}

.header-right{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0; /* critical: allows internal flex items to shrink */
}

/* Desktop nav (text links across top) */
.site-nav{
  display:flex;
  align-items:center;
  gap:22px;
  flex:1 1 auto;  /* critical: nav can shrink */
  min-width:0;    /* critical: prevents phone pill overflow */
}

.site-nav a{
  display:inline-block;
  font-size:20px;
  font-weight:800;
  color:rgba(232,238,249,.92);
  padding:10px 8px;
  border-radius:12px;
  line-height:1;
  white-space:nowrap;
}

.site-nav a:hover{
  color:#ffffff;
  background:rgba(255,255,255,.06);
}

/* Header phone CTA */
.header-phone{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:10px 16px;
  font-size:16px;
  font-weight:900;
  letter-spacing:0.2px;
  color:#fff;
  background:linear-gradient(180deg, rgba(11,99,214,1) 0%, rgba(10,87,192,1) 100%);
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  box-shadow:0 14px 34px rgba(0,0,0,.35);
  white-space:nowrap;
  flex:0 0 auto; /* critical: do not shrink */
}

.header-phone svg{
  width:20px;
  height:20px;
  flex:0 0 auto;
  fill:#fff;
  opacity:.95;
}

/* Mobile pill nav panel (always visible) */
.nav-panel{
  display:none;
  margin-top:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius-22);
  background:linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.03) 100%);
  box-shadow:var(--shadow-soft);
  padding:14px;
}

.nav-pills{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
}

.nav-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 22px;
  font-size:18px;
  font-weight:900;
  color:rgba(255,255,255,.92);
  background:linear-gradient(180deg, var(--nav-pill-2) 0%, var(--nav-pill) 100%);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius-18);
  box-shadow:0 10px 22px rgba(0,0,0,.26);
  white-space:nowrap;
}

.nav-pill:hover{
  color:#fff;
  border-color:rgba(255,255,255,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.06) 100%);
}

/* HERO */
.hero{
  padding:58px 0 62px;
  text-align:center;
  background:
    radial-gradient(1000px 520px at 50% 0%, rgba(11,99,214,.22), transparent 66%),
    linear-gradient(180deg, rgba(7,18,43,.20) 0%, rgba(7,18,43,.00) 100%);
}

.hero h1{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:41.24px;
  font-weight:1000;
  line-height:43.302px;
  letter-spacing:-0.8248px;
  color:#ffffff;
}

.hero .hero-sub{
  max-width:820px;
  margin:18px auto 0;
  font-size:16px;
  font-weight:650;
  line-height:25.6px;
  color:var(--sub);
}

.hero-cta{
  margin-top:22px;
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  border-radius:var(--radius-10);
  white-space:nowrap;
  user-select:none;
}

.btn-primary{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:18px;
  font-weight:900;
  color:rgb(255,255,255);
  padding:12px 14px;
  border-width:0.666667px;
  border-style:solid;
  border-color:rgba(0,0,0,0);
  background-color:var(--cta-red);
  box-shadow:0 14px 28px rgba(0,0,0,.28);
}

.btn-secondary{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:18px;
  font-weight:900;
  color:rgb(255,255,255);
  padding:12px 18px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.02);
  box-shadow:0 10px 22px rgba(0,0,0,.20);
}

.btn-secondary:hover{
  border-color:rgba(255,255,255,.26);
  background:rgba(255,255,255,.05);
}

/* Feature pills */
.hero-features{
  margin-top:18px;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
}

.feature-pill{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:12px;
  font-weight:800;
  color:rgb(255,255,255);
  padding:8px 12px;
  border-radius:999px;
  border-width:0.666667px;
  border-style:solid;
  border-color:rgba(255,255,255,0.12);
  display:inline-flex;          /* FIX: no more full-width blocks */
  align-items:center;
  justify-content:center;
  width:auto;                  /* FIX */
  flex:0 0 auto;               /* FIX */
  white-space:nowrap;          /* FIX */
  text-align:center;
  background:rgba(255,255,255,.02);
}

/* RESPONSIVE */
@media (max-width: 980px){
  .site-nav{gap:12px}
  .site-nav a{font-size:18px}
  .header-phone{font-size:16px;padding:12px 18px}
  .header-phone svg{width:22px;height:22px}
}

@media (max-width: 760px){
  .header-inner{align-items:flex-start}

  .header-phone{
    align-self:flex-start;
    width:auto;
    font-size:26px;
    padding:14px 22px;
  }

  /* Hide desktop nav on mobile; show pill panel */
  .site-nav{display:none}
  .nav-panel{display:block}

  .brand-title{font-size:16px}
  .brand-sub{font-size:12px}

  .header-right{
    align-items:flex-start;
    justify-content:flex-start;
  }

  .nav-pill{
    flex:0 0 calc(50% - 7px);
    font-size:30px;
    min-height:56px;
  }

  .hero{padding:46px 0 54px}

  .hero h1{
    font-size:41.24px;
    line-height:43.302px;
  }

  .hero .hero-sub{padding:0 6px}

  .hero-cta{margin-top:20px}

  .hero-features{
    margin-top:16px;
    gap:10px;
    padding:0 6px;
  }

  /* keep feature pills content-width on mobile too */
  .feature-pill{
    flex:0 0 auto;
    min-width:0;
  }
}

@media (max-width: 420px){
  .header-phone{
    font-size:14px;
    padding:8px 12px;
  }

  .header-right{
    justify-content:flex-start;
  }

  .header-phone svg{
    width:16px;
    height:16px;
  }
}
