/* =========================================================
   IDENTITYVEIL — Global Design System
   Built on the shared Edgelytix palette (same tokens as Langzapp);
   accent colors sampled directly from the IdentityVeil logo —
   a navy shield with a teal ring/circuit mark and a blue arrow:
     Navy base #1a3252  |  Teal accent #4fc3ce  |  Green #7dc96e
   Fonts: Plus Jakarta Sans (headings) + Source Serif 4 (body) + JetBrains Mono
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  /* ── Brand navy (explicit shorthand used in components) ── */
  --navy:          #1a3252;   /* shared Edgelytix navy — same as --text-dark */

  /* ── Dark backgrounds ── */
  --bg-dark:       #0e1822;   /* deep navy tint */
  --bg-dark-2:     #152030;   /* slightly lighter navy */
  --bg-dark-3:     #1c2d40;   /* card surface on dark */

  /* ── Light backgrounds ── */
  --bg-light:      #f4f7fa;   /* cool white with faint navy tint */
  --bg-light-2:    #e8f0f7;   /* light blue-grey */
  --bg-light-3:    #d9e6f0;   /* slightly deeper */
  --bg-card:       #ffffff;   /* white card surface on light sections */

  /* ── Text ── */
  --text-primary:  #e8edf2;   /* near-white on dark */
  --text-secondary:#8a9bb0;   /* muted on dark */
  --text-dark:     #1a3252;   /* brand navy */
  --text-dark-2:   #3d556e;   /* secondary on light */

  /* ── Brand accent colors (shared Edgelytix family palette) ── */
  --accent:        #4fc3ce;   /* teal — IdentityVeil PRIMARY, sampled from the logo's ring & wordmark gradient */
  --accent-hover:  #74d3dc;   /* lighter teal on hover */
  --accent-green:  #7dc96e;   /* green — SUCCESS / free tier / highlight */
  --accent-teal:   #2bb8c8;   /* teal — shared secondary (Langzapp's own teal token) */
  --accent-warm:   #e8a84c;   /* amber — warm highlights / callouts */
  --accent-blue:   #3ca0d4;   /* sky blue — Langzapp's accent; also the logo's arrow color */
  --accent-purple: #9b7fe8;   /* purple — still reserved for a future product */
  --danger:        #e05a5a;

  /* ── Borders ── */
  --border-dark:   rgba(255,255,255,0.08);
  --border-light:  rgba(26,50,82,0.12);    /* navy-tinted border */

  /* ── Shadows & glow ── */
  --shadow-card:   0 4px 32px rgba(14,24,34,0.40);
  --shadow-glow:   0 0 40px rgba(79,195,206,0.20);

  /* ── Radii ── */
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-pill:   999px;

  /* ── Typography ── */
  --font-head:     'Plus Jakarta Sans', sans-serif;
  --font-body:     'Source Serif 4', serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* ── Layout ── */
  --nav-h:         68px;
  --max-w:         1160px;
  --transition:    .22s cubic-bezier(.4,0,.2,1);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-light);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
/* Ensure .btn classes always override the bare button reset */
button.btn--primary,
button.btn--green {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 13px 28px !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-head) !important;
  font-size: 0.93rem !important;
  font-weight: 700 !important;
  border: none !important;
}
button.btn--primary { background: var(--accent) !important; color: #fff !important; }
button.btn--green   { background: var(--accent-green) !important; color: #fff !important; }
/* Also cover hover states for button elements */
button.btn--primary:hover { background: var(--accent-hover) !important; }
button.btn--green:hover   { background: #6ab85e !important; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-weight: 600; }
p  { font-size: 1.05rem; color: var(--text-dark-2); }
.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.04em; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section--dark  { background: var(--bg-dark);   color: var(--text-primary); }
.section--dark p { color: var(--text-secondary); }
.section--mid   { background: var(--bg-dark-2); color: var(--text-primary); }
.section--light { background: var(--bg-light); }
.section--cream { background: var(--bg-light-2); }

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(14,24,34,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  transition: background var(--transition);
}
.nav__inner {
  display: flex; align-items: center;
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav__logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}
/* Text logo (IdentityVeil has no raster logo asset yet — mark + wordmark) */
.nav__logo-text {
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 9px;
}
.nav__logo-text span { color: var(--accent); }
.nav__logo-mark { height: 26px; width: auto; flex-shrink: 0; }
.footer__logo-mark { height: 24px; width: auto; flex-shrink: 0; }
.footer__logo-text {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.01em; margin-bottom: 6px;
  display: flex; align-items: center; gap: 9px;
}
.footer__logo-text span { color: var(--accent); }
.nav__links {
  display: flex; align-items: center; gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-family: var(--font-head);
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--accent); }
/* Dropdown groups (Product, Support) — keeps the top bar short as pages are added */
.nav__logo { flex-shrink: 0; }
.nav__links { flex-shrink: 0; }
.nav__dd { position: relative; }
.nav__dd-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--text-secondary); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap;
  transition: color var(--transition);
}
.nav__dd-btn:hover, .nav__dd.active > .nav__dd-btn, .nav__dd.is-open > .nav__dd-btn { color: var(--accent); }
.nav__caret {
  width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform var(--transition);
}
.nav__dd:hover .nav__caret, .nav__dd.is-open .nav__caret { transform: rotate(225deg); margin-top: 3px; }
.nav__submenu {
  position: absolute; top: calc(100% + 16px); left: -16px; min-width: 190px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--bg-dark-2); border: 1px solid var(--border-dark); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 950;
}
.nav__submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; } /* hover bridge */
.nav__dd:hover .nav__submenu,
.nav__dd:focus-within .nav__submenu,
.nav__dd.is-open .nav__submenu { opacity: 1; visibility: visible; transform: none; }
.nav__submenu a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); }
.nav__submenu a:hover { background: rgba(255,255,255,0.06); }
.nav__cta {
  margin-left: 24px;
  padding: 9px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-weight: 700 !important;
  font-size: 0.86rem !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav__cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  margin-left: auto; padding: 8px;
}
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__mobile {
  display: none; flex-direction: column; gap: 0;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-dark-2);
  border-bottom: 1px solid var(--border-dark);
  padding: 16px 24px 24px;
}
.nav__mobile a {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
  color: var(--text-secondary); padding: 12px 0;
  border-bottom: 1px solid var(--border-dark);
  transition: color var(--transition);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--accent); }
.nav__mobile.open { display: flex; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 24px rgba(79,195,206,0.35);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 6px 32px rgba(79,195,206,0.50); }
.btn--green  { background: var(--accent-green); color: #fff; }
.btn--green:hover  { background: #6ab85e; transform: translateY(-1px); }
.btn--sm     { padding: 10px 20px; font-size: 0.88rem; }
.btn--outline {
  background: transparent; border: 2px solid var(--border-dark); color: var(--text-primary);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline-dark {
  background: transparent; border: 2px solid var(--border-light); color: var(--text-dark);
}
.btn--outline-dark:hover { border-color: var(--accent); color: var(--accent); }
.btn--warm {
  background: var(--accent-warm); color: var(--bg-dark);
  box-shadow: 0 4px 24px rgba(232,168,76,0.30);
}
.btn--warm:hover { background: #f0bc60; }
.btn--lg { padding: 15px 38px; font-size: 1rem; }

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.73rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.badge--accent { background: rgba(79,195,206,0.15); color: var(--accent); border: 1px solid rgba(79,195,206,0.35); }
.badge--warm   { background: rgba(232,168,76,0.15); color: var(--accent-warm); border: 1px solid rgba(232,168,76,0.3); }
.badge--green  { background: rgba(125,201,110,0.15); color: var(--accent-green); border: 1px solid rgba(125,201,110,0.35); }
.badge--purple { background: rgba(155,127,232,0.15); color: var(--accent-purple); border: 1px solid rgba(155,127,232,0.3); }
.badge--light  { background: rgba(26,50,82,0.07); color: var(--text-dark-2); border: 1px solid var(--border-light); }

/* ─── SECTION HEADING ────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.73rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-header { margin-bottom: 56px; }
.section-header p { max-width: 560px; margin-top: 14px; font-size: 1.08rem; }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--bg-dark-2); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover { border-color: rgba(79,195,206,0.35); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.card--light {
  background: #fff; border: 1px solid var(--border-light);
  box-shadow: 0 2px 16px rgba(26,50,82,0.06);
}
.card--light:hover { border-color: var(--accent); box-shadow: 0 8px 40px rgba(79,195,206,0.14); }

/* ─── ICON BOX ───────────────────────────────────────────── */
.icon-box {
  width: 50px; height: 50px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; background: rgba(79,195,206,0.12); margin-bottom: 18px;
}

/* ─── PAGE HERO (shared) ─────────────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  overflow: hidden;
}
.page-hero__glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(79,195,206,0.12) 0%, transparent 70%);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark); border-top: 1px solid var(--border-dark);
  padding: 60px 0 36px; color: var(--text-secondary);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer__logo { height: 30px; width: auto; margin-bottom: 12px; display: block; }
.footer__brand-name {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.01em; margin-bottom: 6px;
}
.footer__brand-name span { color: var(--accent); }
.footer__brand p { font-size: 0.93rem; line-height: 1.6; color: var(--text-secondary); }
.footer__col h4 {
  font-family: var(--font-head); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-primary); margin-bottom: 14px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.footer__col a { font-size: 0.92rem; color: var(--text-secondary); transition: color var(--transition); }
.footer__col a:hover { color: var(--accent); }
.footer__products {
  display: flex; flex-direction: column; gap: 8px;
}
.footer__product-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--text-secondary);
  transition: color var(--transition);
}
.footer__product-link:hover { color: var(--accent); }
.footer__product-link .prod-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border-dark); font-size: 0.83rem;
}
.footer__bottom a { color: var(--accent); }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 20px rgba(79,195,206,0.18); }
  50%      { box-shadow: 0 0 44px rgba(79,195,206,0.42); }
}
@keyframes progress-pulse { 0%,100% { opacity:1; } 50% { opacity:0.65; } }

.animate-fade-up { animation: fadeUp .65s ease both; }
.animate-fade-in { animation: fadeIn .55s ease both; }
.delay-1 { animation-delay: .10s; }
.delay-2 { animation-delay: .20s; }
.delay-3 { animation-delay: .30s; }
.delay-4 { animation-delay: .42s; }
.delay-5 { animation-delay: .55s; }

/* ─── UTILITIES ──────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-warm   { color: var(--accent-warm); }
.text-green  { color: var(--accent-green); }
.text-center { text-align: center; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }  .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8  { margin-top:  8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ─── GRIDS ──────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
/* Nav is grouped (Product / Support dropdowns): tighten the gaps, then collapse to the menu button */
@media (max-width: 1240px) {
  .nav__links { gap: 22px; }
  .nav__cta { margin-left: 12px; }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section { padding: 68px 0; }
}
