/* KairosEvents.app — Zero-Dependency Static Landing Page Stylesheet */

:root {
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --navy-950: #0b1120;
  --navy-900: #0f172a;
  --navy-800: #16223a;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --emerald-400: #34d399;
  --emerald-500: #10b981;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-lg: 0 24px 64px rgba(2, 6, 23, 0.45);
  --container: 1180px;
}

/* Dark theme (default) */
[data-theme="dark"] {
  --bg: #0b1120;
  --bg-alt: #0f172a;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-solid: #111c33;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(245, 158, 11, 0.35);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --header-bg: rgba(11, 17, 32, 0.82);
  --pill-bg: rgba(30, 41, 59, 0.72);
  --code-bg: rgba(245, 158, 11, 0.12);
  --code-text: #fde68a;
}

/* Light theme */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --border: rgba(15, 37, 68, 0.12);
  --border-strong: rgba(217, 119, 6, 0.4);
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #334155;
  --header-bg: rgba(248, 250, 252, 0.88);
  --pill-bg: rgba(15, 37, 68, 0.06);
  --code-bg: rgba(15, 37, 68, 0.08);
  --code-text: #0f2544;
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--gold-500);
  color: #0b1120;
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Theme logo visibility */
[data-theme="dark"] .brand-mark--light,
[data-theme="light"] .brand-mark--dark,
[data-theme="dark"] .theme-label-light,
[data-theme="light"] .theme-label-dark {
  display: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.brand-tld {
  color: var(--gold-500);
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--lg {
  padding: 0.82rem 1.45rem;
  font-size: 0.96rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #0b1120;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.28);
}

.btn--primary:hover {
  filter: brightness(1.06);
}

.btn--outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn--outline:hover {
  background: var(--pill-bg);
}

.btn--ghost {
  color: var(--text-soft);
  border-color: var(--border);
  background: var(--pill-bg);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.78rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--pill-bg);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.05rem;
  padding: 0.45rem 0.72rem;
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.35rem;
  font-weight: 600;
}

.mobile-nav-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.5rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -120px auto auto 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 460px;
  background: radial-gradient(circle at 35% 40%, rgba(245, 158, 11, 0.16), transparent 60%),
    radial-gradient(circle at 70% 45%, rgba(52, 211, 153, 0.13), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--pill-bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: 1.2rem;
}

[data-theme="light"] .eyebrow {
  color: var(--gold-600);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
}

.hero-title {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-400);
}

[data-theme="light"] .hero-title em {
  color: var(--gold-600);
}

.hero-subtitle {
  margin: 0 0 1.85rem;
  font-size: 1.06rem;
  color: var(--text-soft);
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-pills li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
}

/* Hero Device Composition */
.hero-visual {
  position: relative;
  padding-bottom: 2.2rem;
}

.device-frame {
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.35);
}

[data-theme="light"] .browser-chrome {
  background: #e2e8f0;
}

.browser-chrome .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
}

.chrome-url {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.device-frame--phone {
  position: absolute;
  right: -0.75rem;
  bottom: 0;
  width: 31%;
  min-width: 145px;
  max-width: 190px;
  border-radius: 22px;
  border: 3px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 24px 55px rgba(2, 6, 23, 0.65);
}

.zoomable {
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.zoomable:hover {
  transform: scale(1.015);
}

/* Metrics Strip */
.metrics-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1.6rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  text-align: center;
}

.metric-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-400);
}

[data-theme="light"] .metric-value {
  color: #0f2544;
}

.metric-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 68ch;
  margin-bottom: 2.8rem;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-400);
  margin-bottom: 0.6rem;
}

[data-theme="light"] .section-kicker {
  color: #047857;
}

.section-head h2,
.split-copy h2,
.cta-copy h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
}

.section-head p,
.split-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Feature Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="light"] .card-badge {
  color: var(--gold-600);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.feature-card ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Showcase Tabs */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
}

.tab-btn {
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.tab-btn.is-active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #0b1120;
  border-color: transparent;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 2.2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
}

.showcase-media img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.showcase-media--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.showcase-media--phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
}

.showcase-media--phones img {
  border-radius: 20px;
}

.mono-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 0.6rem;
}

[data-theme="light"] .mono-tag {
  color: var(--gold-600);
}

.showcase-copy h3 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.25;
}

.showcase-copy p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald-400);
  font-weight: 800;
}

[data-theme="light"] .check-list li::before {
  color: #059669;
}

/* Resilience Tiers */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tier-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--emerald-400);
  text-transform: uppercase;
}

[data-theme="light"] .tier-num {
  color: #047857;
}

.tier-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.tier-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
  flex: 1;
}

.tier-pill {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

/* WordPress Split Band */
.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: start;
}

.split-copy .check-list {
  margin-top: 1.35rem;
}

.use-cases-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
}

.use-cases-card h3 {
  margin: 0 0 1.2rem;
  font-size: 1.2rem;
}

.use-case-list {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.use-case-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.use-case-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.use-case-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.use-case-item span {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-wrap {
  max-width: 840px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
}

.faq-item summary {
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--gold-500);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* CTA Band */
.cta-band {
  padding-top: 2rem;
}

.cta-card {
  background: linear-gradient(135deg, rgba(15, 37, 68, 0.96), rgba(11, 17, 32, 0.98));
  color: #f8fafc;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-card p {
  color: #cbd5e1;
  margin: 0;
}

.cta-card .btn--outline {
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.28);
}

.cta-card .btn--ghost {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(248, 250, 252, 0.25);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 250, 252, 0.16);
}

.lightbox-figure figcaption {
  color: #cbd5e1;
  font-size: 0.88rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .showcase-layout,
  .split-band,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .tiers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .device-frame--phone {
    right: 0.5rem;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .header-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero {
    padding: 3rem 0 2.8rem;
  }

  .cards-grid,
  .tiers-grid,
  .showcase-media--pair {
    grid-template-columns: 1fr;
  }

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

  .cta-card {
    padding: 2rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
