/* ============================================================
   Videotec.io - Microsoft Fluent-inspired Design System
   ============================================================ */

/* ---- Variables ---- */
:root {
  /* Brand palette */
  --color-primary:       #004e89;   /* Polynesian Blue */
  --color-primary-hover: #3da5d9;   /* Picton Blue */
  --color-primary-dark:  #003a6b;
  --color-accent:        #fec601;   /* Mikado Yellow */
  --color-verdigris:     #73bfb8;   /* Verdigris */
  --color-pumpkin:       #ea7317;   /* Pumpkin */
  --color-picton:        #3da5d9;   /* Picton Blue */

  --color-dark:          #11100f;
  --color-dark-alt:      #1a2030;
  --color-text:          #323130;
  --color-text-muted:    #605e5c;
  --color-border:        #edebe9;
  --color-surface:       #ffffff;
  --color-surface-alt:   #f3f2f1;
  --color-surface-dark:  #0d1117;

  --font-base: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);

  --max-width: 1200px;
  --header-height: 64px;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* CSS-only lightbox (no JS) */
.lightbox-thumb { display: inline-block; margin: 1rem 0; cursor: zoom-in; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: box-shadow .15s ease; }
.lightbox-thumb:hover { box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.lightbox-thumb img { display: block; max-width: 100%; height: auto; }
.lightbox-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 2rem; background: rgba(0,0,0,.85); opacity: 0; pointer-events: none; cursor: zoom-out; transition: opacity .2s ease; }
.lightbox-overlay:target { opacity: 1; pointer-events: auto; }
.lightbox-overlay img { max-width: 95vw; max-height: 90vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* Utility: visually-hidden (used for noscript/iframe fallbacks) */
.visually-hidden { display: none !important; visibility: hidden !important; height: 0 !important; width: 0 !important; }

.post-header { margin-bottom: 2rem; }
.post-meta { color: var(--color-text-muted); font-size: .9rem; text-align: center; margin-top: .5rem; }

.founder-callout { margin: 1.5rem 0; padding: 1rem 1.25rem; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.founder-bio { margin: 0; flex: 1 1 320px; color: var(--color-text); font-size: 0.98rem; line-height: 1.5; }
.mvp-badge { flex: 0 0 220px; min-height: 88px; display: flex; align-items: center; justify-content: center; }
.mvp-badge img { max-width: 200px; height: auto; display: block; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--color-primary-hover); }

ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-dark-alt);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--color-text); }

/* ---- Utility ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 2.5rem 0; }
.section-alt { background: var(--color-surface-alt); }
.section-dark { background: var(--color-dark-alt); color: #fff; }

/* Why section variant */
.section-why {
  background: linear-gradient(180deg, rgba(61,165,217,0.03) 0%, rgba(115,191,184,0.02) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.section-why .section-header h2 { color: var(--color-dark-alt); }
.section-why .section-header p { color: var(--color-text-muted); }

/* Pre-renewal three-questions section */
.section-prerenewal {
  background: var(--color-dark-alt);
  color: #fff;
  text-align: center;
}
.prerenewal-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.prerenewal-headline {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.prerenewal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
  width: 100%;
  max-width: 420px;
}
.prerenewal-list li {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
}

/* Coming soon specific padding: half the global section padding */
.section-coming-soon { padding: 1.25rem 0; }

/* When coming soon is used as the homepage block, reduce inner banner padding to match other sections */
.section-coming-soon .coming-soon-banner {
  padding: 1.25rem 1.5rem;
  max-width: 720px;
}

/* Founder grid and placeholder */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.25rem;
  align-items: start;
  margin: 1rem 0 2rem;
}
.founder-photo-placeholder .placeholder-box {
  width: 100%;
  height: 320px;
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
/* When an actual photo is present, remove the dashed border and fit the image */
.founder-photo-placeholder .placeholder-box.has-photo {
  border: 0;
  background: transparent;
  padding: 0;
}
.founder-photo-placeholder .placeholder-box.has-photo img.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: block;
}

/* Copilot callout box for About page */
.copilot-callout {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(61,165,217,0.03), rgba(115,191,184,0.02));
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
}
.copilot-callout strong { display: block; font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--color-primary-dark); }
.copilot-callout ul { margin-top: .5rem; }
.copilot-callout li { margin-bottom: .35rem; }
@media (max-width: 840px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo-placeholder .placeholder-box { height: 200px; margin-top: .75rem; }
}

/* Newsletter section specific tweaks */
.newsletter-section { padding: 2rem 0; }
.newsletter-section .section-header { margin-bottom: 1rem; }
.newsletter-section .section-header p { margin-bottom: 0; }
.newsletter-section .footer-newsletter { max-width: 720px; margin: 0 auto; display: block; text-align: center; }
.newsletter-section #convertkit-widget-c0b7597313 { display: block; text-align: center; }

/* Inline the hosted ConvertKit fields on wider screens only (minimal, targeted overrides) */
@media (min-width: 900px) {
  #convertkit-widget-c0b7597313 .formkit-form[data-uid="c0b7597313"] .formkit-fields {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .5rem !important;
  }
  #convertkit-widget-c0b7597313 .formkit-form[data-uid="c0b7597313"] .formkit-field {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  #convertkit-widget-c0b7597313 .formkit-form[data-uid="c0b7597313"] .formkit-input {
    min-width: 220px !important;
    width: auto !important;
  }
  #convertkit-widget-c0b7597313 .formkit-form[data-uid="c0b7597313"] .formkit-submit {
    flex: 0 0 auto !important;
    margin-left: .25rem !important;
    height: 47px !important;
    box-sizing: border-box !important;
    padding: 0 14px !important;
  }
}
.footer-newsletter-noscript { display: inline-block; padding: .75rem 1rem; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--color-border); color: var(--color-text); }

/* Widget layout: keep container centered; do not forcibly override internal widget layout here. If the hosted widget needs inline layout, we can target specific classes after inspecting the runtime DOM. */

/* Reverted targeted ConvertKit UID overrides - using hosted widget defaults. */

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .section-header h2,
.section-dark .section-header p { color: #fff; opacity: .9; }

.section-showcase {
  padding-top: 3rem;
}

.showcase-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 34vw);
  gap: 1rem;
  overflow-x: auto;
  padding: .5rem 0 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 78, 137, .35) transparent;
}

.showcase-card {
  margin: 0;
  scroll-snap-align: start;
}

.showcase-thumb {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 78, 137, .12);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 16px 40px rgba(13, 26, 45, .10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.showcase-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(13, 26, 45, .14);
  border-color: rgba(0, 78, 137, .25);
}

.showcase-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

.showcase-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem .25rem 0;
}

.showcase-card figcaption span {
  color: var(--color-dark-alt);
  font-weight: 600;
  font-size: .95rem;
}

@media (max-width: 900px) {
  .showcase-rail {
    grid-auto-columns: minmax(240px, 78vw);
  }
}

@media (max-width: 640px) {
  .section-showcase {
    padding-top: 2.25rem;
  }

  .showcase-thumb {
    border-radius: 14px;
  }

  .showcase-card figcaption {
    padding-top: .75rem;
  }
}

.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,78,137,.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}

.btn-lg {
  padding: .875rem 2rem;
  font-size: 1.0625rem;
}

.btn-primary-nav {
  background: var(--color-accent);
  color: #004e89 !important;
  padding: .5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background .15s ease, box-shadow .15s ease;
}
.btn-primary-nav:hover {
  background: #e6b201;
  color: #004e89 !important;
  box-shadow: 0 3px 10px rgba(254,198,1,.4);
}

/* ---- Header / Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #004e89;
  border-bottom: 3px solid var(--color-accent);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #fff;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  clip-path: polygon(0 0, 48% 0, 100% 52%, 52% 100%, 0 100%, 0 48%);
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
}

.logo-dot { color: var(--color-accent); }

.site-nav { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-links li a {
  display: block;
  padding: .5rem .75rem;
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-radius: var(--radius-sm);
  transition: background .12s ease, color .12s ease;
}

.nav-submenu-toggle {
  all: unset;
  display: block;
  padding: .5rem .75rem;
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-radius: var(--radius-sm);
  transition: background .12s ease, color .12s ease;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
}

.nav-links li a:hover,
.nav-links li a.active,
.nav-submenu-toggle:hover,
.has-submenu:focus-within .nav-submenu-toggle {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.nav-links li.nav-cta { margin-left: .75rem; }

.nav-links li.has-submenu {
  position: relative;
}

/* Hover bridge keeps submenu open while moving pointer to submenu items. */
.nav-links li.has-submenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  height: 14px;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background: #004e89;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: .35rem;
  z-index: 30;
}

.submenu li a {
  white-space: nowrap;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0d1a2d 0%, #004e89 55%, #003a6b 100%);
  color: #fff;
  padding: 3.5rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 60% 50%, rgba(61,165,217,.28) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 85% 20%, rgba(254,198,1,.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(254,198,1,.15);
  border: 1px solid rgba(254,198,1,.5);
  color: var(--color-accent);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-title span { color: var(--color-accent); }

.hero-description {
  font-size: 1.125rem;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: .75rem;
  color: rgba(255,255,255,.85);
  max-width: 480px;
  margin-left: auto;
  text-align: right;
  padding-left: 1rem;
}

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1rem; }
  .hero-visual { text-align: left; padding-left: 0; margin-top: 1rem; align-items: flex-start; }
  .hero { padding: 2.5rem 0 2.5rem; }
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.hero-card + .hero-card {
  margin-top: .75rem;
}

.hero-card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-picton), var(--color-verdigris));
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-card h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.hero-card p {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  margin-bottom: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .75rem;
  padding: .3rem .75rem;
  background: rgba(115,191,184,.2);
  border: 1px solid rgba(115,191,184,.4);
  border-radius: 100px;
  font-size: .8rem;
  color: var(--color-verdigris);
  font-weight: 600;
}

/* ---- Logos / Trust Bar ---- */
.trust-bar {
  /* Elevated, centered card that slightly overlaps the hero */
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.95));
  padding: 1rem 0.75rem;
  margin: -2rem auto 0;
  position: relative;
  z-index: 20;
  box-shadow: var(--shadow-md);
  border-radius: calc(var(--radius-lg) + 4px);
  width: calc(100% - 3rem);
  max-width: var(--max-width);
  border: 1px solid rgba(0,78,137,.06);
}

.trust-bar-inner {
  max-width: none;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-label {
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-logo-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--color-text-muted);
  font-size: .95rem;
  font-weight: 700;
}

.trust-logo-mark {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-picton));
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,78,137,.08);
}

@media (max-width: 900px) {
  .trust-bar { margin: 0.5rem auto 1.5rem; width: calc(100% - 2rem); border-radius: 8px; }
  .trust-bar-inner { gap: 1rem; padding: 0 0.5rem; }
  .trust-label { font-size: .85rem; }
  .trust-logo-item { font-size: .9rem; gap: .5rem; }
}

/* ---- Feature Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.spotlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(0,78,137,.25);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(0,78,137,.08), rgba(61,165,217,.12));
  border: 1px solid rgba(0,78,137,.18);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: .5rem;
  color: var(--color-dark-alt);
}

.card p {
  font-size: .9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary);
}
.card-link::after { content: " →"; }
.card-link:hover { gap: .55rem; }

/* ---- Product Cards ---- */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card-header {
  padding: 1.75rem 1.75rem 1.25rem;
  background: linear-gradient(135deg, #eaf4fb 0%, #e0f0ee 100%);
  border-bottom: 1px solid var(--color-border);
}

.product-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-picton));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,78,137,.3);
}

.product-card-header h3 {
  font-size: 1.25rem;
  color: var(--color-dark-alt);
  margin-bottom: .25rem;
}

.product-card-header .product-type {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.product-card-body {
  padding: 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body p {
  color: var(--color-text-muted);
  font-size: .9375rem;
  flex: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}

.tag {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .625rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.product-card-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: .75rem;
}

/* ---- Logo Image ---- */
.logo-image {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-image--footer {
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: .9;
}

/* ---- Coming Soon Banner ---- */
.coming-soon-banner {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.coming-soon-banner--page {
  padding: 3rem 0 4rem;
}

.coming-soon-icon {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.coming-soon-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, rgba(254,198,1,.15), rgba(234,115,23,.15));
  border: 1px solid rgba(234,115,23,.4);
  color: #b35c00;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.coming-soon-banner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-dark-alt);
  margin-bottom: 1rem;
}

.coming-soon-banner p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 1rem;
}

.coming-soon-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.coming-soon-banner .btn-primary,
.coming-soon-banner .btn-primary:hover {
  color: #ffffff !important;
  background: #004e89 !important;
  border-color: #004e89 !important;
}

.coming-soon-banner .btn-outline,
.coming-soon-banner .btn-outline:hover {
  color: #004e89 !important;
  border-color: #004e89 !important;
  background: transparent !important;
}

/* ---- Coming Soon Badge ---- */
.badge-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, rgba(254,198,1,.15), rgba(234,115,23,.15));
  border: 1px solid rgba(234,115,23,.4);
  color: #b35c00;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 100px;
}

/* ---- Ecosystem / Links Section ---- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ecosystem-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.ecosystem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(0,78,137,.3);
  color: inherit;
}

.ecosystem-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.ecosystem-card-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.icon-bg-blue   { background: linear-gradient(135deg, #004e89, #3da5d9); }
.icon-bg-green  { background: linear-gradient(135deg, #004e89, #73bfb8); }
.icon-bg-orange { background: linear-gradient(135deg, #ea7317, #fec601); }

.ecosystem-card h3 {
  font-size: 1.125rem;
  color: var(--color-dark-alt);
  margin-bottom: .5rem;
}

.ecosystem-card p {
  font-size: .9375rem;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.ecosystem-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary);
}
.ecosystem-card .card-cta::after { content: " →"; transition: margin .15s ease; }
.ecosystem-card:hover .card-cta::after { margin-left: .3rem; }

/* ---- CTA Band ---- */
.cta-band {
  /* Subtler, trust-focused background with soft overlays */
  background: linear-gradient(180deg, #073763 0%, #004e89 60%, #002b49 100%);
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0;
  text-align: center;
  color: #fff;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 10% 10%, rgba(255,255,255,0.03), transparent 18%), radial-gradient(ellipse at 90% 90%, rgba(0,0,0,0.06), transparent 30%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.cta-band h2 { color: #ffffff; font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.88); font-size: 1.0625rem; margin-bottom: 1.5rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.cta-band .btn-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.cta-band .btn-outline-white { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-band .btn-outline-white:hover { background: rgba(255,255,255,0.06); }

/* ---- Page Layout ---- */
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.page-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: .5rem;
  color: var(--color-dark-alt);
}

.page-title { text-align: center; }

/* page-title-divider removed - visual divider no longer used */

.page-body { max-width: 780px; margin: 0 auto; }
.page-body p, .page-body li { font-size: 1rem; line-height: 1.75; color: var(--color-text); }
.page-body h2 { margin: 2rem 0 .75rem; }
.page-body h3 { margin: 1.5rem 0 .5rem; }
.page-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.page-body a { color: var(--color-primary); font-weight: 500; }

.page-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 10%, #ffffff 90%) 0%, #ffffff 65%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.page-body blockquote p {
  margin-bottom: .45rem;
  line-height: 1.8;
}

.page-body blockquote p:first-child {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-dark-alt);
}

.page-body blockquote p:last-child {
  margin-bottom: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-dark-alt);
  color: rgba(255,255,255,.75);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

.footer-brand .site-logo {
  color: #fff;
  margin-bottom: .75rem;
}

.footer-brand .logo-text { color: #fff; }

.footer-tagline {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  max-width: 260px;
  margin-bottom: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 140px);
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }

.footer-col ul li a {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  transition: color .15s ease;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.footer-bottom p {
  color: rgba(255,255,255,.4);
  font-size: .8125rem;
  margin-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .spotlight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .section { padding: 3.5rem 0; }
  .nav-toggle { display: flex; }

  .card-grid-4 { grid-template-columns: 1fr; }
  .spotlight-grid { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #004e89;
    border-bottom: 3px solid var(--color-accent);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: .25rem;
    box-shadow: var(--shadow-md);
  }

  .nav-links.nav-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a,
  .nav-submenu-toggle {
    width: 100%;
    padding: .65rem .75rem;
  }
  .nav-links li.nav-cta { margin-left: 0; margin-top: .5rem; }
  .nav-links li.nav-cta .btn-primary-nav { width: 100%; justify-content: center; }

  .submenu {
    display: block;
    position: static;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: .2rem 0 .2rem .75rem;
    background: transparent;
  }

  .submenu li a {
    white-space: normal;
    font-size: .9rem;
  }

  .nav-links li.has-submenu::after {
    content: none;
  }

  .hero { padding: 4rem 0 5rem; }
  .hero-actions { flex-direction: column; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-inner { padding: 2.5rem 1.5rem 2rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Docs Layout - sidebar + content
   ============================================================ */

.docs-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: calc(100vh - var(--header-height) - 200px);
}

/* ---- Sidebar ---- */
.docs-sidebar {
  border-right: 1px solid var(--color-border);
  padding: 2rem 1.25rem 2rem 1.5rem;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  background: var(--color-surface);
}

.docs-sidebar-close { display: none; }

.docs-nav-title {
  margin-bottom: 1.5rem;
}

.docs-nav-title a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark-alt);
  text-decoration: none;
}
.docs-nav-title a:hover { color: var(--color-primary); }

.docs-nav-section { margin-bottom: 1.25rem; }

.docs-nav-section h3 {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  margin-bottom: .5rem;
  padding: 0 .5rem;
}

.docs-nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-nav-section ul li a {
  display: block;
  padding: .35rem .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background .12s ease, color .12s ease;
  text-decoration: none;
}

.docs-nav-section ul li a:hover {
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

.docs-nav-section ul li a.active {
  background: rgba(0, 78, 137, .08);
  color: var(--color-primary);
  font-weight: 600;
}

/* ---- Main content area ---- */
.docs-main {
  padding: 2rem 2.5rem 4rem;
  min-width: 0;
}

.docs-menu-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  margin-bottom: 1rem;
}

.docs-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

/* ---- Breadcrumb ---- */
.docs-breadcrumb {
  font-size: .8125rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.docs-breadcrumb a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.docs-breadcrumb a:hover { color: var(--color-primary); }

.docs-breadcrumb-sep {
  margin: 0 .35rem;
  color: var(--color-border);
}

/* ---- Docs content ---- */
.docs-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  color: var(--color-dark-alt);
}

.docs-content {
  max-width: 780px;
}

.docs-content p,
.docs-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}

.docs-content h2 {
  margin: 2.5rem 0 .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--color-border);
}

.docs-content h3 { margin: 1.75rem 0 .5rem; }
.docs-content h4 { margin: 1.25rem 0 .5rem; }

.docs-content ul,
.docs-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.docs-content ol { list-style: decimal; }

.docs-content a {
  color: var(--color-primary);
  font-weight: 500;
}

.docs-content a.btn {
  color: #fff;
  font-weight: 600;
}

.docs-content blockquote {
  border-left: 3px solid var(--color-primary);
  margin: 1rem 0;
  padding: .75rem 1rem;
  background: var(--color-surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text);
  font-size: .95rem;
}

.docs-content blockquote p { margin-bottom: .25rem; }
.docs-content blockquote p:last-child { margin-bottom: 0; }

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .9rem;
}

.docs-content th,
.docs-content td {
  text-align: left;
  padding: .5rem .75rem;
  border: 1px solid var(--color-border);
}

.docs-content th {
  background: var(--color-surface-alt);
  font-weight: 600;
  color: var(--color-dark-alt);
}

.docs-content code {
  background: var(--color-surface-alt);
  padding: .15rem .35rem;
  border-radius: 3px;
  font-size: .875em;
  color: var(--color-dark-alt);
}

.docs-content pre {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: .85rem;
  line-height: 1.6;
}

.docs-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

.docs-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.docs-content img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin: 1rem 0;
}

/* ---- Prev/Next pager ---- */
.docs-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.docs-pager-link {
  display: inline-block;
  padding: .5rem .75rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: background .12s ease, border-color .12s ease;
}

.docs-pager-link:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.docs-pager-next { margin-left: auto; }

/* ---- Responsive: docs ---- */
@media (max-width: 900px) {
  .docs-container {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    height: 100vh;
    border-right: none;
    box-shadow: var(--shadow-lg);
    padding-top: 3.5rem;
  }

  .docs-sidebar--open { display: block; }

  .docs-sidebar-close {
    display: block;
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: .25rem .5rem;
    line-height: 1;
  }

  .docs-menu-toggle { display: inline-flex; }

  .docs-main {
    padding: 1.5rem 1.5rem 3rem;
  }
}

/* ---- Demo two-column layout ---- */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.demo-grid h2 {
  margin-bottom: 1rem;
}

@media (max-width: 840px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}
