/* EKO readability & typography — high contrast, larger type, sharp UI fonts */

:root {
  color-scheme: dark;

  --bg: #07090d;
  --surface: #10141c;
  --surface-soft: #171c26;

  --text-main: #f8fafc;
  --text-muted: #dce3ee;
  --text-soft: #b8c2d0;

  --accent: #39ff88;
  --accent-soft: rgba(57, 255, 136, 0.14);
  --accent-strong: #7dffb2;
  --accent-link-hover: #7dffb2;

  --max-text-width: 68ch;
  --layout-max: 100%;

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: var(--font-sans);
  --font-heading: var(--font-display);

  --type-body: clamp(1.1875rem, 1.06rem + 0.48vw, 1.375rem);
  --type-lead: clamp(1.375rem, 1.16rem + 0.8vw, 1.95rem);
  --type-small: clamp(1rem, 0.94rem + 0.24vw, 1.125rem);
  --type-kicker: clamp(1rem, 0.92rem + 0.3vw, 1.125rem);

  /* Legacy aliases used across the codebase */
  --text: var(--text-main);
  --muted: var(--text-muted);
  --soft: #eef2f8;
  --neon: var(--accent);
  --bg-2: var(--surface);
  --bg-3: var(--surface-soft);
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.03);
  --container: min(100% - clamp(1rem, 4vw, 2.5rem), var(--layout-max));
}

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.62;
  letter-spacing: 0.012em;
  font-weight: 500;
  position: relative;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background:
    radial-gradient(140% 90% at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.48) 78%, rgba(0, 0, 0, 0.76) 100%),
    radial-gradient(90% 55% at 50% 0%, rgba(0, 0, 0, 0.28), transparent 72%),
    radial-gradient(90% 55% at 50% 100%, rgba(0, 0, 0, 0.28), transparent 72%);
}

p,
blockquote,
.subtext,
.section-description,
.eko-section-lead,
.eko-pricing-lead,
.eko-hero__lead,
.eko-hero-video__lead,
.eko-cap-cyber__sub,
.booking-copy,
.program-summary,
.panel-header p,
.form-footnote {
  max-width: var(--max-text-width);
  color: var(--text-muted);
  font-weight: 500;
}

li {
  color: var(--text-muted);
  font-weight: 500;
}

strong,
b {
  color: var(--text-main);
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.15rem, 7.25vw, 6.75rem);
}

h2,
.eko-section-title,
.section-title {
  font-size: clamp(2.4rem, 4.75vw, 4.75rem);
}

h3 {
  font-size: clamp(1.75rem, 2.65vw, 2.9rem);
}

h4 {
  font-size: clamp(1.35rem, 1.65vw, 1.9rem);
}

/* Hero & marketing leads — large, scannable */
.hero p,
.lead,
.hero-subtitle,
.hero-lead,
.hero-copy,
.eko-hero__lead,
.eko-hero-video__lead,
.eko-cap-cyber__sub,
.eko-pricing-lead,
.eko-pricing-outcome-lead {
  font-size: var(--type-lead);
  line-height: 1.58;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 62ch;
}

.hero-title,
.eko-hero__title,
.eko-hero-headline,
.eko-cap-cyber__title {
  max-width: min(100%, 20ch);
}

/* Card / UI headings — keep full width of their container (not 14ch measure) */
.eko-pricing-card :is(h3, h4),
.eko-cap-cyber-card :is(h3, h4),
.eko-pricing-custom-copy h3,
.panel-header h2,
.admin-v2-panel h2 {
  max-width: none;
  margin-inline: unset;
  text-align: inherit;
}

/* Centered marketing section headers — narrow measure must stay centered */
:is(.eko-pricing-header, .eko-cap-cyber__header, .eko-hero-video__head, .eko-pricing-compare) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-inline: auto;
}

/* Site-wide symmetry: center key section headings consistently */
:is(
  .hero-content,
  .hero-text,
  .eko-section-header,
  .eko-pricing-header,
  .eko-cap-cyber__header,
  .eko-hero-video__head,
  .eko-pricing-compare,
  .program-header,
  .package-header,
  .panel-header
) {
  text-align: center;
}

:is(
  .hero-content,
  .hero-text,
  .eko-section-header,
  .eko-pricing-header,
  .eko-cap-cyber__header,
  .eko-hero-video__head,
  .eko-pricing-compare,
  .program-header,
  .package-header,
  .panel-header
) :is(h1, h2, h3, h4) {
  margin-inline: auto;
  text-align: center;
}

.eko-section-kicker,
.eko-section-title,
.eko-section-lead,
.eko-pricing-lead,
.eko-cap-cyber__eyebrow,
.eko-cap-cyber__title,
.eko-cap-cyber__sub,
.eko-hero-video__eyebrow,
.eko-hero-video__title,
.eko-hero-video__lead,
.eko-pricing-compare-title,
.eko-pricing-compare-lead {
  margin-inline: auto;
  text-align: center;
}

.eko-section-kicker,
.eko-cap-cyber__eyebrow,
.eko-hero-video__eyebrow {
  max-width: 100%;
}

.eko-section-title {
  max-width: min(100%, 28ch);
}

.eko-cap-cyber__title {
  max-width: min(100%, 22ch);
}

.eko-pricing-compare-title {
  max-width: 100%;
}

.eko-section-lead,
.eko-pricing-lead,
.eko-cap-cyber__sub,
.eko-hero-video__lead,
.eko-pricing-compare-lead {
  max-width: min(100%, 52ch);
}

button,
.btn,
.cta,
a.button,
.hero-button,
.hero-cta-button,
.eko-hero__cta,
.eko-pricing-cta,
.eko-hero-cta {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.04rem + 0.3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.22;
  min-height: 52px;
  letter-spacing: 0.02em;
}

.hero-button,
.hero-cta-button,
.eko-hero__cta,
.eko-pricing-cta,
.eko-hero-cta {
  padding: 1rem 1.45rem;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(203, 254, 28, 0.26),
    0 16px 38px rgba(0, 0, 0, 0.26);
}

.hero-button::after,
.hero-cta-button::after,
.eko-hero__cta::after,
.eko-pricing-cta::after,
.eko-hero-cta::after {
  content: "";
  position: absolute;
  inset: -140% -45%;
  background: linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, 0.26) 50%, transparent 58%);
  transform: translateX(-40%);
  transition: transform 0.55s ease;
}

.hero-button:hover::after,
.hero-cta-button:hover::after,
.eko-hero__cta:hover::after,
.eko-pricing-cta:hover::after,
.eko-hero-cta:hover::after {
  transform: translateX(22%);
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
  font-weight: 600;
}

a:hover {
  color: var(--accent-link-hover);
}

/* Keep UI chrome & button links on their own colors */
.site-chrome a,
.site-brand,
.site-brand:hover,
.hero-button,
.hero-button:hover,
.hero-button-solid,
.hero-button-ghost,
.hero-cta-button,
.eko-hero__cta,
.eko-pricing-cta,
.eko-pricing-cta:hover,
.eko-hero-cta,
.google-glass-button,
.login-glass-wordmark,
.eko-pricing-slider__arrow {
  color: inherit;
  text-decoration: none;
}

.card,
.service-card,
.pricing-card,
.feature-card,
.eko-cap-cyber-card,
.value-card,
.app-panel,
.booking-panel {
  color: var(--text-main);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 46px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(203, 254, 28, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.service-card:hover,
.pricing-card:hover,
.feature-card:hover,
.eko-cap-cyber-card:hover,
.value-card:hover,
.app-panel:hover,
.booking-panel:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 58px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(203, 254, 28, 0.12);
}

.consultation-panel,
.consultation-panel:hover {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.card p,
.service-card p,
.pricing-card p,
.feature-card p,
.eko-pricing-card p,
.eko-pricing-outcome-list li,
.eko-pricing-group-list li {
  color: var(--text-muted);
  font-size: clamp(1.125rem, 1.04rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  font-weight: 500;
}

main > section,
.page-shell > section,
.eko-section,
.home-marketing-band,
.hero-stage {
  padding-block: clamp(4rem, 8vw, 8rem);
  width: 100%;
}

main,
.page-shell,
.app-shell {
  width: 100%;
  min-height: 100dvh;
}

.app-page main section,
.admin-page section,
.auth-shell section,
.eko-pricing-slider__track .eko-pricing-card,
.site-chrome {
  padding-block: unset;
}

.consultation-page .consultation-panel {
  padding-block: clamp(2.35rem, 5vw, 3.75rem);
  padding-inline: clamp(1.5rem, 4vw, 2.5rem);
}

.container,
.eko-section-inner,
.eko-pricing-inner,
.home-marketing-inner {
  width: var(--container);
  max-width: none;
  margin-inline: auto;
}

input,
textarea,
select,
.login-glass-field input,
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-main);
  background: #0d1118;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.9rem;
  padding: 0.95rem 1.05rem;
}

input::placeholder,
textarea::placeholder {
  color: #a8b4c4;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

small,
.fine-print,
.caption,
.form-footnote {
  font-size: var(--type-small);
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 500;
}

/* Eyebrows / kickers — legible, not microscopic */
.app-eyebrow,
.hero-kicker,
.section-kicker,
.eko-section-kicker,
.eko-cap-cyber__eyebrow,
.eko-hero-video__eyebrow,
.eko-pricing-tier,
.eko-pricing-group-label,
.eko-pricing-toggle-note,
.program-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--type-kicker);
  line-height: 1.45;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

/* Supporting UI copy floor */
.eko-pricing-price-caption,
.eko-pricing-ribbon,
.roadmap-meta,
.dashboard-card-kicker,
.admin-v2-label {
  font-size: var(--type-small);
  font-weight: 600;
  color: var(--text-soft);
}

.eko-pricing-plan-name,
.eko-pricing-price-figure,
.panel-header h2 {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
}

.eko-pricing-toggle-btn {
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.eko-pricing-toggle-note {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.58;
  color: var(--text-muted);
}

.eko-pricing-toggle-note strong {
  color: var(--text-main);
  font-weight: 800;
}

.eko-pricing-table th,
.eko-pricing-table td {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  font-weight: 500;
  color: var(--text-muted);
}

.eko-pricing-table th {
  color: var(--text-main);
  font-weight: 700;
}

/* Pubzi shell — EKO content uses readable stack, not gaming display fonts */
body.pubzi-theme {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.62;
}

body.pubzi-theme :is(h1, h2, h3, h4, h5, h6):not(.letters-loading) {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
}

body.pubzi-theme .hero-content p,
body.pubzi-theme .hero-text,
body.pubzi-theme .gt-section-title p,
body.pubzi-theme .section-title p,
body.pubzi-theme .game-feature-box-items p,
body.pubzi-theme .gt-pricing-section-2 p {
  color: var(--text-muted);
  font-weight: 500;
}

body.pubzi-theme .gt-section-title span,
body.pubzi-theme .section-title span,
body.pubzi-theme .game-feature-box-items h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
}

@media (max-width: 640px) {
  html {
    font-size: 106.25%;
  }

  body {
    font-size: 1.1rem;
    line-height: 1.62;
  }

  h1,
  h2,
  h3,
  h4 {
    max-width: 100%;
  }

  .hero p,
  .lead,
  .hero-subtitle,
  .eko-hero__lead,
  .eko-section-lead {
    font-size: 1.18rem;
  }

  .container,
  .eko-section-inner,
  .eko-pricing-inner {
    width: min(100% - 1rem, var(--layout-max));
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-main: #ffffff;
    --text-muted: #e8edf5;
    --text-soft: #c8d0dc;
    --line: rgba(255, 255, 255, 0.22);
  }

  body {
    font-weight: 600;
  }

  p,
  li,
  .eko-pricing-lead,
  .eko-section-lead {
    font-weight: 600;
  }
}
