/*
  Qubit Value site styles
  -----------------------
  Structure:
  1. Design tokens
  2. Base layout
  3. Header and navigation
  4. Sections and shared components
  5. Section-specific modules
  6. Responsive adjustments

  SEO/accessibility note:
  Content remains visible by default. Animation styles do not gate text behind JavaScript.
*/

:root {
  --color-bg: #060606;
  --color-surface: rgba(18, 18, 18, 0.88);
  --color-surface-soft: rgba(255, 255, 255, 0.05);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-strong: rgba(255, 255, 255, 0.24);
  --color-text: #f5f5f0;
  --color-text-muted: rgba(245, 245, 240, 0.74);
  --color-text-subtle: rgba(245, 245, 240, 0.52);
  --color-accent: #d8d8d2;
  --color-shadow: rgba(0, 0, 0, 0.36);
  --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --transition-base: 220ms ease;
  --header-height: 92px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 45%, #090909 100%);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.65;
  min-width: 320px;
}

body.nav-open {
  overflow: hidden;
}

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

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

p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

address {
  margin: 0;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.skip-link {
  background: #ffffff;
  color: #050505;
  left: 1rem;
  padding: 0.8rem 1rem;
  position: absolute;
  top: -4rem;
  z-index: 30;
}

.skip-link:focus {
  top: 1rem;
}

.page-shell {
  overflow: clip;
  position: relative;
}

.ambient {
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
  position: absolute;
}

.ambient-one {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
  height: 420px;
  right: -120px;
  top: 110px;
  width: 420px;
}

.ambient-two {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  height: 380px;
  left: -120px;
  top: 920px;
  width: 380px;
}

.section-space {
  padding: 104px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.eyebrow {
  color: var(--color-accent);
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 3rem;
  max-width: 820px;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  margin-bottom: 1rem;
}

.section-heading p {
  font-size: 1.05rem;
  max-width: 720px;
}

[data-reveal] {
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.95rem 1.5rem;
}

.btn-light {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #0a0a0a;
}

.btn-light:hover,
.btn-light:focus {
  background: #ffffff;
  border-color: #ffffff;
  color: #000;
}

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

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.site-header {
  left: 0;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 20;
}

.site-header.is-scrolled {
  backdrop-filter: blur(18px);
}

.nav-shell {
  align-items: center;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 18px 54px var(--color-shadow);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
}

.brand {
  display: block;
  flex-shrink: 0;
  max-width: min(52vw, 226px);
}

.brand-logo,
.footer-logo {
  display: block;
  height: auto;
  width: 100%;
}

.brand-logo {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

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

.site-nav a,
.footer-nav a {
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0.7rem 1rem;
  transition:
    background var(--transition-base),
    color var(--transition-base);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.45rem;
}

.nav-toggle span {
  background: var(--color-text);
  border-radius: 999px;
  display: block;
  height: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  width: 24px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero-section {
  padding-top: calc(132px + var(--header-height));
}

.section-intro h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  max-width: 11ch;
}

.hero-copy {
  font-size: 1.12rem;
  margin-top: 1.5rem;
  max-width: 650px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-meta {
  color: var(--color-text-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}

.hero-meta span {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
}

.hero-panel,
.service-card,
.outcome-card,
.podcast-panel,
.approach-step,
.audience-card,
.faq-item,
.contact-panel {
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 70px var(--color-shadow);
}

.hero-panel {
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.panel-label,
.card-kicker {
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.panel-list {
  display: grid;
  gap: 1rem;
  list-style: none;
}

.panel-list li {
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  color: var(--color-text);
  padding-left: 1rem;
}

.panel-divider {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent);
  height: 1px;
  margin: 1.5rem 0;
}

.panel-note {
  color: var(--color-text-subtle);
  font-size: 0.98rem;
}

.service-card,
.outcome-card,
.podcast-panel,
.audience-card,
.faq-item {
  border-radius: var(--radius-md);
  padding: 1.8rem;
}

.service-card,
.outcome-card,
.audience-card,
.faq-item {
  height: 100%;
}

.service-icon {
  align-items: center;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  display: inline-flex;
  font-size: 1.2rem;
  height: 52px;
  justify-content: center;
  margin-bottom: 1.4rem;
  width: 52px;
}

.service-card h3,
.outcome-card h3,
.approach-step h3,
.audience-card h3,
.faq-item h3 {
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
}

.card-list {
  color: var(--color-text-subtle);
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin-top: 1.2rem;
}

.card-list li {
  padding-left: 1.1rem;
  position: relative;
}

.card-list li::before {
  background: rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: 0.72rem;
  width: 6px;
}

.approach-grid,
.faq-list {
  display: grid;
  gap: 1.3rem;
}

.podcast-panel {
  display: grid;
  gap: 1rem;
}

.podcast-copy {
  max-width: 56ch;
}

.podcast-embed {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  min-height: 236px;
  overflow: hidden;
  padding: 0.35rem;
}

.approach-step {
  border-radius: var(--radius-md);
  padding: 1.7rem;
}

.step-index {
  color: var(--color-text-subtle);
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.sticky-copy {
  position: sticky;
  top: 120px;
}

.contact-panel {
  border-radius: 32px;
  padding: 2rem;
}

.contact-panel h2 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  max-width: 12ch;
}

.contact-list {
  display: grid;
  font-style: normal;
  gap: 0.9rem;
}

.contact-list a,
.contact-static {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-base);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.contact-list i {
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0 2rem;
}

.footer-shell {
  align-items: center;
  color: var(--color-text-subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 1rem 1.3rem;
  justify-content: space-between;
}

.footer-summary {
  max-width: 360px;
}

.footer-logo {
  margin-bottom: 0.65rem;
  max-width: 220px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .sticky-copy {
    position: static;
  }

  .site-header {
    padding: 1rem 0;
  }

  .nav-shell {
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .brand {
    max-width: min(60vw, 194px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.75rem;
  }

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

  .site-nav a {
    text-align: left;
    width: 100%;
  }

  .hero-section {
    padding-top: calc(96px + var(--header-height));
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: 84px 0;
  }

  .section-intro h1 {
    max-width: 12ch;
  }

  .brand {
    max-width: min(58vw, 168px);
  }

  .hero-copy,
  .section-heading p {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-panel,
  .service-card,
  .outcome-card,
  .approach-step,
  .audience-card,
  .faq-item,
  .contact-panel {
    padding: 1.4rem;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}
