/* assets/css/site.css — CONTRAST / ALTERNATING SECTIONS */

:root{
  --bg: #f5f8ff;
  --surface: #ffffff;
  --surface-2: #eef5ff;
  --text: #07162c;
  --muted: #4c5e78;

  --blue: #1b66ff;
  --blue2: #0b4fe6;
  --teal: #19c3b3;
  --teal2:#10a9a0;

  --navy: #061634;          /* dark section base */
  --navy2: #071e44;         /* gradient depth */
  --navyBorder: rgba(255,255,255,.10);

  --border: #dfe9f7;

  --shadow: 0 18px 55px rgba(7, 22, 44, 0.12);
  --shadow-soft: 0 10px 28px rgba(7, 22, 44, 0.10);

  --radius: 20px;
  --radius-sm: 14px;

  --max: 1180px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  line-height: 1.62;
  background:
    radial-gradient(1100px 480px at 12% -12%, rgba(27,102,255,.26), transparent 62%),
    radial-gradient(900px 420px at 92% 6%, rgba(25,195,179,.18), transparent 60%),
    radial-gradient(900px 420px at 70% 120%, rgba(27,102,255,.12), transparent 58%),
    linear-gradient(180deg, #f5f8ff 0%, #f2f6ff 50%, #f7fbff 100%);
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; height:auto; }
.container{
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

/* ===== Topbar / nav ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(245, 248, 255, 0.80);
  border-bottom: 1px solid rgba(223,233,247,.75);
}
.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.brand-stack{ display:flex; flex-direction:column; }
.brand-name{ font-size: 19px; }
.brand-tag{
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 650;
  margin-top: -2px;
}

.site-logo{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  object-fit: contain;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: var(--shadow-soft);
  padding: 7px;
  flex: 0 0 auto;
}
.footer .site-logo{
  width: 32px;
  height: 32px;
  border-radius: 14px;
  padding: 6px;
}

/* Nav links */
.nav-links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a{
  padding: 11px 13px;
  border-radius: 16px;
  color: var(--muted);
  font-weight: 750;
  font-size: 14.5px;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nav-links a:hover{
  background: rgba(27,102,255,.10);
  color: var(--text);
  transform: translateY(-1px);
}
.nav-links a.active{
  color: var(--text);
  background: linear-gradient(135deg, rgba(27,102,255,.20), rgba(25,195,179,.14));
  box-shadow: 0 12px 24px rgba(27,102,255,.14);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 18px;
  font-weight: 850;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease, border-color .2s ease;
  user-select:none;
  white-space: nowrap;
}
.btn-nav{ margin-left: 6px; }

.btn-primary{
  color:#fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 18px 34px rgba(27,102,255,.24);
}
.btn-primary:hover{ transform: translateY(-1px); filter: saturate(1.08); }

.btn-secondary{
  background: rgba(255,255,255,.92);
  color: var(--text);
  border-color: rgba(223,233,247,1);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover{ transform: translateY(-1px); }

.btn-ghost{
  background: transparent;
  border-color: rgba(223,233,247,1);
  color: var(--text);
}
.btn-ghost:hover{
  transform: translateY(-1px);
  background: rgba(27,102,255,.08);
}

/* Mobile nav */
.nav-toggle{
  display:none;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  border: 1px solid rgba(223,233,247,1);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.nav-toggle span{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero{ padding: 62px 0 28px; }
.hero-tight{ padding: 52px 0 22px; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}

.eyebrow{
  display:flex;
  gap: 10px;
  align-items:center;
  margin: 0 0 16px;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(27,102,255,.12);
  color: var(--blue2);
  border: 1px solid rgba(27,102,255,.24);
  font-weight: 900;
  font-size: 12.5px;
}
.pill-teal{
  background: rgba(25,195,179,.14);
  color: #0a6c66;
  border-color: rgba(25,195,179,.28);
}

h1{
  margin: 0 0 14px;
  font-size: clamp(36px, 3.8vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.038em;
}
.text-gradient{
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead{
  margin: 0 0 20px;
  font-size: 19px;
  color: var(--muted);
  max-width: 65ch;
}

.hero-cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-proof{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.metric{
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(223,233,247,1);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  box-shadow: var(--shadow-soft);
}
.metric-val{ font-weight: 900; font-size: 14px; }
.metric-label{ color: var(--muted); font-size: 13px; margin-top: 3px; }

/* Visual card */
.hero-visual{ display:flex; flex-direction:column; gap: 10px; }
.visual-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(223,233,247,1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.visual-card img{
  width:100%;
  border-radius: 14px;
  display:block;
}
.visual-note{
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ===== Sections (alternating) ===== */
.section{ padding: 58px 0; }

/* Stronger light section variant */
.section-soft{
  background:
    radial-gradient(900px 360px at 12% 0%, rgba(27,102,255,.14), transparent 60%),
    radial-gradient(780px 320px at 92% 10%, rgba(25,195,179,.10), transparent 55%),
    rgba(240,246,255,.75);
  border-top: 1px solid rgba(223,233,247,.95);
  border-bottom: 1px solid rgba(223,233,247,.95);
}

/* Dark alternating section */
.section-dark{
  color: #eaf2ff;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(27,102,255,.35), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(25,195,179,.28), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy2));
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.section-head{ margin-bottom: 18px; }
.section-head h2{
  margin:0 0 8px;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.muted{ color: var(--muted); font-size: 16px; }
.section-dark .muted{ color: rgba(234,242,255,.78); }

/* ===== Cards ===== */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Default card (light) */
.card{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(223,233,247,1);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(7, 22, 44, 0.14);
}

/* Alternate card tint for variation */
.card:nth-child(2){
  background: linear-gradient(180deg, rgba(27,102,255,.06), rgba(255,255,255,.92));
}
.card:nth-child(3){
  background: linear-gradient(180deg, rgba(25,195,179,.06), rgba(255,255,255,.92));
}

/* Cards inside dark section: glass look */
.section-dark .card{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}
.section-dark .card p{ color: rgba(234,242,255,.78); }
.section-dark .card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
}

/* Card icon */
.card-icon{
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(27,102,255,.18), rgba(25,195,179,.14));
  border: 1px solid rgba(27,102,255,.20);
  font-size: 18px;
  margin-bottom: 12px;
}
.section-dark .card-icon{
  background: linear-gradient(135deg, rgba(27,102,255,.35), rgba(25,195,179,.28));
  border-color: rgba(255,255,255,.18);
}

.card h3{
  margin:0 0 8px;
  font-size: 18.5px;
  letter-spacing: -0.01em;
}
.card p{ margin:0; font-size: 15.8px; color: var(--muted); }

/* ===== Split layout ===== */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

/* ===== Checklist ===== */
.checklist{
  list-style:none;
  padding:0;
  margin: 16px 0 0;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.checklist li{
  display:flex;
  align-items:flex-start;
  font-size: 16px;
  color: var(--muted);
}
.check{
  width: 22px;
  height: 22px;
  border-radius: 10px;
  background: rgba(25,195,179,.16);
  border: 1px solid rgba(25,195,179,.30);
  color: #0a6c66;
  font-weight: 900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right: 10px;
  flex: 0 0 auto;
}
.section-dark .checklist li{ color: rgba(234,242,255,.82); }
.section-dark .check{
  background: rgba(25,195,179,.22);
  border-color: rgba(25,195,179,.38);
  color: #eafffb;
}

/* ===== Panel ===== */
.panel{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(223,233,247,1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}
.section-dark .panel{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}
.panel h3{ margin:0 0 12px; font-size: 18.5px; }
.section-dark .panel h3{ color:#eaf2ff; }

.panel-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.panel-item{
  border: 1px solid rgba(223,233,247,1);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(240,246,255,.75);
}
.section-dark .panel-item{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.panel-title{ font-weight: 900; margin-bottom: 6px; }
.section-dark .panel-title{ color:#eaf2ff; }
.section-dark .panel-item .muted{ color: rgba(234,242,255,.78); }

/* CTA row used in some pages */
.cta-row{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ===== CTA ===== */
.cta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(27,102,255,.22);
  background:
    radial-gradient(900px 380px at 10% 0%, rgba(27,102,255,.22), transparent 60%),
    radial-gradient(900px 380px at 90% 0%, rgba(25,195,179,.16), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(240,246,255,.88));
  box-shadow: var(--shadow-soft);
}
.cta h2{
  margin:0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.cta-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===== Footer ===== */
.footer{
  padding: 34px 0 18px;
  border-top: 1px solid rgba(223,233,247,.95);
  background:
    radial-gradient(900px 360px at 12% 0%, rgba(27,102,255,.10), transparent 60%),
    radial-gradient(900px 360px at 92% 0%, rgba(25,195,179,.08), transparent 60%),
    rgba(255,255,255,.55);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}
.footer-brand{
  display:flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-note{
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.footer-links{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  justify-content: end;
}
.footer-head{ font-weight: 900; margin-bottom: 8px; }
.footer-links a{
  display:block;
  color: var(--muted);
  padding: 7px 0;
  font-size: 14.5px;
}
.footer-links a:hover{ color: var(--text); }

.footer-bottom{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(223,233,247,.95);
  color: var(--muted);
  font-size: 13.5px;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-proof{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .cta{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px){
  .nav-links{
    position:absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(223,233,247,1);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 10px;
    display:none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open{ display:flex; }
  .btn-nav{ width:100%; justify-content:center; margin-left:0; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }

  .cards{ grid-template-columns: 1fr; }
  .panel-grid{ grid-template-columns: 1fr; }
  .footer-links{ grid-template-columns: 1fr; }
}
/* ===== PATCH: Card variety + readable ghost button on dark sections ===== */

/* 1) Make ALL cards have a subtle tint by default (so 1st card isn't plain white) */
.card{
  background: linear-gradient(180deg, rgba(27,102,255,.05), rgba(255,255,255,.94));
}

/* Keep variation across cards (stronger accents per position) */
.cards .card:nth-child(2){
  background: linear-gradient(180deg, rgba(25,195,179,.06), rgba(255,255,255,.94));
}
.cards .card:nth-child(3){
  background: linear-gradient(180deg, rgba(27,102,255,.08), rgba(255,255,255,.92));
}

/* If you ever have 4+ cards, continue alternating */
.cards .card:nth-child(4n+1){
  background: linear-gradient(180deg, rgba(27,102,255,.06), rgba(255,255,255,.94));
}
.cards .card:nth-child(4n+2){
  background: linear-gradient(180deg, rgba(25,195,179,.06), rgba(255,255,255,.94));
}
.cards .card:nth-child(4n+3){
  background: linear-gradient(180deg, rgba(27,102,255,.09), rgba(255,255,255,.92));
}
.cards .card:nth-child(4n+4){
  background: linear-gradient(180deg, rgba(25,195,179,.09), rgba(255,255,255,.92));
}

/* 2) Fix ghost button on dark sections (readable + visible) */
.section-dark .btn-ghost{
  color: #eaf2ff;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.06);
}
.section-dark .btn-ghost:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.34);
  transform: translateY(-1px);
}

/* Optional: make secondary button also pop on dark sections (if used later) */
.section-dark .btn-secondary{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color: #eaf2ff;
  box-shadow: none;
}
.section-dark .btn-secondary:hover{
  background: rgba(255,255,255,.16);
}

