/* css/theme.css — Glassmorphism Focus Theme */

/* Variant: 04-portal-hub-2 — Transparent panels, frosted glass, depth through layering */

/* ─── Body & page background ──────────────────────────────────────────────── */
body {
  background: linear-gradient(
    160deg,
    var(--color-deep-navy) 0%,
    var(--color-bg-secondary) 50%,
    var(--color-deep-navy) 100%
  );
  background-attachment: fixed;
  color: var(--color-text-inverse);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Grid background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgb(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Site header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(10, 22, 40, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgb(0, 229, 255, 0.1);
}

.nav-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: rgb(0, 229, 255, 0.1);
  border: 1px solid rgb(0, 229, 255, 0.2);
  color: var(--color-accent);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.nav-toggle:hover {
  background: rgb(0, 229, 255, 0.15);
  border-color: var(--color-accent);
}

.nav-menu {
  display: flex;
  gap: var(--space-2);
  list-style: none;
}

.nav-menu a {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  color: rgb(232, 244, 253, 0.7);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-glass);
  backdrop-filter: blur(8px);
}

.nav-menu a:hover,
.nav-menu a[aria-current='page'] {
  color: var(--color-accent);
  background: rgb(0, 229, 255, 0.1);
  border-color: rgb(0, 229, 255, 0.2);
  box-shadow: 0 0 20px rgb(0, 229, 255, 0.15);
}

/* ─── Main content ────────────────────────────────────────────────────────── */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  position: relative;
  z-index: 1;
}

/* ─── Hero section ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--space-24) 0;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    ellipse at center,
    rgb(0, 229, 255, 0.12) 0%,
    rgb(0, 229, 255, 0.05) 30%,
    transparent 70%
  );
  pointer-events: none;
  filter: blur(40px);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-4);
  text-shadow: 0 0 30px rgb(0, 229, 255, 0.5);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--color-ice-blue);
  margin-bottom: var(--space-6);
  text-shadow: 0 0 60px rgb(0, 229, 255, 0.3);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgb(232, 244, 253, 0.8);
  max-width: 720px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Page headers ─────────────────────────────────────────────────────────── */
.page-header {
  padding: var(--space-16) 0;
  text-align: center;
  border-bottom: 1px solid rgb(0, 229, 255, 0.08);
  margin-bottom: var(--space-12);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
}

.page-lead {
  font-size: 1.125rem;
  color: rgb(232, 244, 253, 0.75);
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Content sections ────────────────────────────────────────────────────── */
.content-section {
  padding: var(--space-12) 0;
}

.content-section h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-6);
  color: var(--color-ice-blue);
}

.content-section p {
  color: rgb(232, 244, 253, 0.75);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.content-section a {
  color: var(--color-accent);
  transition:
    color var(--transition-fast),
    text-shadow var(--transition-fast);
}

.content-section a:hover {
  color: var(--color-ice-blue);
  text-shadow: 0 0 20px rgb(0, 229, 255, 0.5);
}

.content-grid {
  display: grid;
  gap: var(--space-8);
}

/* ─── Pitch section ────────────────────────────────────────────────────────── */
.pitch {
  padding: var(--space-16) 0;
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgb(0, 229, 255, 0.08);
  border-radius: var(--radius-xl);
  margin: var(--space-12) 0;
}

.pitch-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.pitch h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-8);
  text-align: center;
}

.pitch-bullets {
  display: grid;
  gap: var(--space-4);
}

.pitch-bullets li {
  font-size: 1rem;
  color: rgb(232, 244, 253, 0.8);
  padding-left: var(--space-8);
  position: relative;
  line-height: 1.6;
}

.pitch-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-accent);
}

/* ─── Features overview ────────────────────────────────────────────────────── */
.features-overview {
  padding: var(--space-16) 0;
}

.features-overview h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-8);
  text-align: center;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.feature-card {
  padding: var(--space-8);
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgb(0, 229, 255, 0.1);
  border-radius: var(--radius-xl);
  transition: all var(--transition-glass);
  box-shadow: var(--shadow-glass);
}

.feature-card:hover {
  border-color: rgb(0, 229, 255, 0.25);
  background: var(--color-bg-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass), var(--shadow-glow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgb(0, 229, 255, 0.15) 0%, rgb(0, 229, 255, 0.05) 100%);
  border: 1px solid rgb(0, 229, 255, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  color: var(--color-accent);
  box-shadow: 0 0 30px rgb(0, 229, 255, 0.1);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
  color: var(--color-ice-blue);
}

.feature-card p {
  font-size: 1rem;
  color: rgb(232, 244, 253, 0.7);
  line-height: 1.6;
  margin-bottom: 0;
}

.features-more {
  text-align: center;
}

.features-more a {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 1rem;
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgb(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgb(0, 229, 255, 0.05);
  transition: all var(--transition-glass);
  backdrop-filter: blur(8px);
}

.features-more a:hover {
  background: rgb(0, 229, 255, 0.1);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

/* ─── CTA banner ─────────────────────────────────────────────────────────────── */
.cta-banner {
  padding: var(--space-16) 0;
  text-align: center;
  background: linear-gradient(135deg, rgb(0, 229, 255, 0.08) 0%, rgb(0, 229, 255, 0.03) 100%);
  border: 1px solid rgb(0, 229, 255, 0.12);
  border-radius: var(--radius-xl);
  margin-top: var(--space-12);
  backdrop-filter: blur(20px);
}

.cta-banner h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
}

/* ─── Client cards ─────────────────────────────────────────────────────────── */
.client-cards {
  display: grid;
  gap: var(--space-6);
}

.client-card {
  padding: var(--space-8);
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgb(0, 229, 255, 0.1);
  border-radius: var(--radius-xl);
  transition: all var(--transition-glass);
  box-shadow: var(--shadow-glass);
}

.client-card:hover {
  border-color: rgb(0, 229, 255, 0.25);
  background: var(--color-bg-glass-hover);
  box-shadow: var(--shadow-glass), var(--shadow-glow);
}

.client-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.client-card h2 {
  font-size: 1.5rem;
  margin: 0;
}

.client-status {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
}

.status-stable {
  background: rgb(0, 229, 255, 0.1);
  color: var(--color-accent);
  border-color: rgb(0, 229, 255, 0.3);
}

.status-beta {
  background: rgb(255, 165, 0, 0.1);
  color: #ffa500;
  border-color: rgb(255, 165, 0, 0.3);
}

.client-tagline {
  color: rgb(232, 244, 253, 0.7);
  margin-bottom: var(--space-6);
  font-size: 1rem;
}

.client-highlights {
  margin-bottom: var(--space-6);
}

.client-highlights li {
  font-size: 0.9rem;
  color: rgb(232, 244, 253, 0.7);
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  border-bottom: 1px solid rgb(0, 229, 255, 0.05);
}

.client-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
}

/* ─── Download ─────────────────────────────────────────────────────────────── */
.download-block {
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgb(0, 229, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.download-card {
  padding: var(--space-8);
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgb(0, 229, 255, 0.1);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-glass);
  box-shadow: var(--shadow-glass);
}

.download-card:hover {
  border-color: rgb(0, 229, 255, 0.25);
  background: var(--color-bg-glass-hover);
  transform: translateY(-2px);
}

.download-card h3 {
  margin-bottom: var(--space-2);
  color: var(--color-ice-blue);
}

.download-card p {
  margin-bottom: var(--space-6);
  color: rgb(232, 244, 253, 0.7);
}

.ecosystem-list {
  list-style: none;
}

.ecosystem-list li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgb(0, 229, 255, 0.08);
  color: rgb(232, 244, 253, 0.75);
}

.ecosystem-list li:last-child {
  border-bottom: none;
}

.ecosystem-list a {
  color: var(--color-accent);
  font-weight: 500;
}

/* ─── Docs links ──────────────────────────────────────────────────────────── */
.docs-links {
  list-style: none;
  display: grid;
  gap: var(--space-4);
}

.docs-links li {
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid rgb(0, 229, 255, 0.1);
  transition: all var(--transition-glass);
}

.docs-links li:hover {
  border-color: rgb(0, 229, 255, 0.25);
  background: var(--color-bg-glass-hover);
}

.docs-links a {
  color: var(--color-accent);
  font-weight: 500;
}

/* ─── FAQ ────────────────────────────────────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: var(--space-6);
}

.faq-item {
  padding: var(--space-8);
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgb(0, 229, 255, 0.08);
  border-radius: var(--radius-xl);
  transition: all var(--transition-glass);
  box-shadow: var(--shadow-glass);
}

.faq-item:hover {
  border-color: rgb(0, 229, 255, 0.15);
}

.faq-item dt {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  color: var(--color-ice-blue);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgb(0, 229, 255, 0.1);
}

.faq-item dd {
  color: rgb(232, 244, 253, 0.75);
  line-height: 1.8;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: rgb(6, 16, 24, 0.95);
  border-top: 1px solid rgb(0, 229, 255, 0.1);
  padding: var(--space-16) var(--space-6);
  margin-top: var(--space-16);
  backdrop-filter: blur(20px);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-tagline {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-8);
  text-shadow: 0 0 40px rgb(0, 229, 255, 0.4);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  text-align: left;
}

.footer-col h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-ice-blue);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-3);
}

.footer-col a {
  font-size: 1rem;
  color: rgb(232, 244, 253, 0.85);
  transition:
    color var(--transition-fast),
    text-shadow var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-accent);
  text-shadow: 0 0 20px rgb(0, 229, 255, 0.4);
}

.footer-copy {
  font-size: 0.875rem;
  color: rgb(232, 244, 253, 0.6);
}

/* ─── Code blocks ──────────────────────────────────────────────────────────── */
.code-block {
  background: rgb(0, 0, 0, 0.4);
  border: 1px solid rgb(0, 229, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  backdrop-filter: blur(10px);
}

.code-block code {
  color: var(--color-accent);
}

.code-block a {
  color: var(--color-accent);
}

/* ─── Feature detail ──────────────────────────────────────────────────────── */
.feature-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  padding: var(--space-8);
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgb(0, 229, 255, 0.08);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-glass);
  transition: all var(--transition-glass);
}

.feature-detail:hover {
  border-color: rgb(0, 229, 255, 0.15);
  box-shadow: var(--shadow-glass), var(--shadow-glow);
}

.feature-detail-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgb(0, 229, 255, 0.15) 0%, rgb(0, 229, 255, 0.05) 100%);
  border: 1px solid rgb(0, 229, 255, 0.2);
  border-radius: var(--radius-xl);
  color: var(--color-accent);
  box-shadow: 0 0 40px rgb(0, 229, 255, 0.15);
}

.feature-detail-icon svg {
  width: 36px;
  height: 36px;
}

.feature-detail-text h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.feature-detail-text p {
  color: rgb(232, 244, 253, 0.75);
  line-height: 1.8;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (width <= 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgb(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-4);
    gap: var(--space-2);
    border-bottom: 1px solid rgb(0, 229, 255, 0.15);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: var(--space-3) var(--space-4);
  }

  .hero {
    padding: var(--space-16) 0;
  }

  .pitch-bullets {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-detail {
    grid-template-columns: 1fr;
  }

  .feature-detail-icon {
    width: 56px;
    height: 56px;
  }
}
