/* =============================================================
   codesignhn — Landing pages shared styles
   Uses the exact palette of index.html
   ============================================================= */

:root {
  /* CORE palette (matches index.html) */
  --c1: #2d3259;      /* deep navy */
  --c2: #00648a;      /* teal blue */
  --c3: #4a5199;      /* mid blue */
  --c4: #8ee4cc;      /* mint (accent) */
  --cyan: #64f0e0;    /* cyan (highlight) */
  --white: #ffffff;

  /* Dark surface */
  --bg:      #0a0f1f;
  --bg2:     #0e1428;
  --panel:   #12172d;
  --panel2:  #171c34;
  --text:       #e6ecff;
  --text-strong:#ffffff;
  --dim:        rgba(230,236,255,0.60);
  --border:     rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  /* Gradients & effects */
  --grad-1: linear-gradient(135deg, var(--c4) 0%, var(--cyan) 100%);
  --grad-2: linear-gradient(135deg, var(--c2) 0%, var(--c4) 100%);
  --grad-3: linear-gradient(135deg, var(--cyan) 0%, var(--c2) 100%);
  --glow:    0 0 40px rgba(142,228,204,0.25);
  --shadow:  0 20px 60px rgba(0,0,0,0.35);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 900px 700px at 12% -10%, rgba(0,100,138,0.14), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 90% 105%, rgba(142,228,204,0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

a { color: var(--c4); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.02em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* =========================================================
   NAV
   ========================================================= */
nav.top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,15,31,0.75);
  backdrop-filter: saturate(140%) blur(24px);
  -webkit-backdrop-filter: saturate(140%) blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
nav.top .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 22px; letter-spacing: -0.03em;
  display: inline-flex; align-items: center; gap: 2px;
}
.logo .co { color: var(--white); }
.logo .de {
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--c4); }
.cta-nav {
  background: var(--grad-1); color: var(--c1); padding: 10px 20px;
  border-radius: 999px; font-weight: 700; font-size: 13px;
  box-shadow: 0 8px 22px rgba(142,228,204,0.30);
  transition: transform .25s, box-shadow .25s;
}
.cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(142,228,204,0.45);
  color: var(--c1);
}
@media (max-width: 720px) { .nav-links a:not(.cta-nav) { display:none; } }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  padding: 22px 0 0;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--dim);
  letter-spacing: 1px;
}
.breadcrumb a { color: var(--dim); }
.breadcrumb a:hover { color: var(--c4); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 15% 15%, rgba(0,100,138,0.22), transparent 60%),
    radial-gradient(600px 400px at 85% 90%, rgba(142,228,204,0.15), transparent 60%);
  z-index: -1;
}
.hero .container { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--c4);
  margin-bottom: 22px;
  padding: 8px 16px;
  border: 1px solid rgba(142,228,204,0.30);
  border-radius: 999px;
  background: rgba(142,228,204,0.06);
  animation: eyebrowGlow 3s ease-in-out infinite;
}
@keyframes eyebrowGlow {
  0%,100% { box-shadow: 0 0 0 rgba(142,228,204,0); }
  50%     { box-shadow: 0 0 20px rgba(142,228,204,0.25); }
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c4); box-shadow: 0 0 8px var(--c4);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.4); opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800; line-height: 1.05;
  margin-bottom: 26px;
  max-width: 900px;
}
.hero h1 .grad {
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  background-size: 200% 200%;
  animation: gradShift 4s ease-in-out infinite;
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.hero .sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--dim);
  max-width: 720px;
  margin-bottom: 38px;
}
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  border: none; cursor: pointer;
  font-family: inherit;
  position: relative; overflow: hidden;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--grad-1);
  color: var(--c1);
  box-shadow: 0 10px 30px rgba(142,228,204,0.30);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s;
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(142,228,204,0.50);
  color: var(--c1);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--c4);
  color: var(--c4);
  transform: translateY(-2px);
}

/* =========================================================
   SECTIONS
   ========================================================= */
section {
  padding: 90px 0;
  position: relative;
}
section h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.15;
}
section h2 .grad {
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow-small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--c4); margin-bottom: 14px; display: block;
}
.lead { color: var(--dim); font-size: 17px; max-width: 720px; margin-bottom: 54px; line-height: 1.65; }

/* =========================================================
   GRIDS + FEATURE CARDS
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 24px; }

.feature {
  background: linear-gradient(180deg, var(--panel) 0%, rgba(18,23,45,0.6) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 28px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-1);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(142,228,204,0.30);
  box-shadow: 0 20px 44px rgba(0,0,0,0.35), 0 0 30px rgba(142,228,204,0.10);
}
.feature:hover::before { transform: scaleX(1); }
.feature .ic-wrap {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(142,228,204,0.15) 0%, rgba(0,100,138,0.20) 100%);
  border: 1px solid rgba(142,228,204,0.25);
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--c4);
  margin-bottom: 20px;
  transition: transform .35s, background .35s;
}
.feature:hover .ic-wrap {
  transform: rotate(-8deg) scale(1.08);
  background: linear-gradient(135deg, rgba(142,228,204,0.30) 0%, rgba(100,240,224,0.15) 100%);
}
.feature .ic-wrap svg { width: 26px; height: 26px; stroke-width: 2; }
.feature h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; color: var(--text-strong); }
.feature p { color: var(--dim); font-size: 14px; line-height: 1.65; }
.feature .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px; font-weight: 800;
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px; display: block;
}

/* =========================================================
   CHECKLIST
   ========================================================= */
.checklist {
  background: linear-gradient(180deg, var(--panel) 0%, rgba(18,23,45,0.6) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
  list-style: none;
  position: relative;
  overflow: hidden;
}
.checklist::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--grad-1);
}
.checklist li {
  padding: 15px 0 15px 38px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
  transition: padding-left .2s, color .2s;
}
.checklist li:last-child { border-bottom: none; }
.checklist li:hover { padding-left: 42px; color: var(--text-strong); }
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 18px;
  width: 22px; height: 22px;
  background: var(--grad-1);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 0 12px rgba(142,228,204,0.35);
}
.checklist li::after {
  content: '';
  position: absolute; left: 6px; top: 22px;
  width: 10px; height: 5px;
  border-left: 2px solid var(--c1);
  border-bottom: 2px solid var(--c1);
  transform: rotate(-45deg);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 26px;
  margin-bottom: 14px;
  transition: border-color .25s, background .25s;
}
.faq details[open] {
  border-color: rgba(142,228,204,0.35);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(18,23,45,0.85) 100%);
}
.faq summary {
  font-weight: 600; font-size: 16px; cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; color: var(--text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(142,228,204,0.12);
  border: 1px solid rgba(142,228,204,0.25);
  color: var(--c4);
  display: grid; place-items: center;
  transition: transform .3s, background .3s;
}
.faq details[open] summary .plus {
  transform: rotate(135deg);
  background: rgba(142,228,204,0.25);
}
.faq summary .plus svg { width: 14px; height: 14px; stroke-width: 2.5; }
.faq details p {
  color: var(--dim); font-size: 15px;
  margin-top: 16px; line-height: 1.75;
}
.faq details strong, .faq details em { color: var(--text); }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background:
    linear-gradient(135deg, rgba(0,100,138,0.18) 0%, rgba(142,228,204,0.14) 100%),
    var(--panel);
  border: 1px solid rgba(142,228,204,0.22);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.cta-band::before {
  width: 300px; height: 300px;
  background: var(--c4);
  top: -120px; left: -60px;
}
.cta-band::after {
  width: 250px; height: 250px;
  background: var(--c2);
  bottom: -100px; right: -60px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p {
  color: var(--dim);
  max-width: 580px;
  margin: 0 auto 34px;
  font-size: 16px;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--panel);
  padding: 60px 0 28px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
footer .container {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 44px;
}
footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--c4); margin-bottom: 18px;
}
footer p, footer li { color: var(--dim); font-size: 13px; line-height: 1.9; }
footer ul { list-style: none; }
footer a { color: var(--dim); transition: color .18s; }
footer a:hover { color: var(--c4); }
.foot-bottom {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center; color: var(--dim); font-size: 12px;
}
@media (max-width: 720px) { footer .container { grid-template-columns: 1fr; gap: 30px; } }

/* =========================================================
   REVEAL-ON-SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.16,.68,.43,.99);
}
.reveal.on {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }
.reveal:nth-child(5) { transition-delay: .24s; }
.reveal:nth-child(6) { transition-delay: .30s; }
.reveal:nth-child(7) { transition-delay: .36s; }
.reveal:nth-child(8) { transition-delay: .42s; }
.reveal:nth-child(9) { transition-delay: .48s; }
