/* ═══════════════════════════════════════════════
   m3kko — Component Styles
   ═══════════════════════════════════════════════ */

/* ── Loading Screen ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__terminal {
  width: 620px;
  max-width: 90vw;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--accent);
  position: relative;
}

.loader__header {
  color: var(--text-muted);
  font-size: var(--text-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.loader__line {
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
}

.loader__line.show {
  opacity: 1;
  animation: loaderLineIn 0.15s ease forwards;
}

.loader__line .status {
  color: var(--text-muted);
}

.loader__line .status.ok {
  color: var(--accent);
}

.loader__line .status.fail {
  color: #ff4444;
}

.loader__line .label {
  color: var(--text-secondary);
}

.loader__line .val {
  color: var(--accent);
}

.loader__progress {
  margin-top: 16px;
  opacity: 0;
}

.loader__progress.show {
  opacity: 1;
}

.loader__bar-track {
  width: 100%;
  height: 2px;
  background: var(--border);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.loader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: var(--glow-sm);
  transition: width 0.3s linear;
}

.loader__logo {
  margin-top: 28px;
  opacity: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow:
    0 0 4px rgba(0, 255, 136, 0.7),
    0 0 10px rgba(0, 255, 136, 0.3);
}

.loader__logo.show {
  opacity: 1;
  animation: logoReveal 0.6s ease forwards;
}

@keyframes loaderLineIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes logoReveal {
  0%   { opacity: 0; transform: scale(0.95); filter: blur(4px); }
  100% { opacity: 1; transform: scale(1);    filter: blur(0); }
}

/* ── Navbar ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--margin-desk);
  display: flex;
  align-items: center;
  height: 56px;
}

.nav__logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  margin-right: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 18px 24px;
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__cta {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 24px;
  padding: 18px 0;
  transition: color 0.3s ease;
}

.nav__cta:hover {
  color: var(--text-primary);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__canvas canvas {
  display: block;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .page {
  position: relative;
  z-index: 3;
}

.hero__tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.95) 0%,
      rgba(10, 10, 10, 0.8) 35%,
      rgba(10, 10, 10, 0.35) 60%,
      rgba(10, 10, 10, 0) 80%
    ),
    linear-gradient(
      0deg,
      rgba(10, 10, 10, 1) 0%,
      rgba(10, 10, 10, 0.7) 8%,
      rgba(10, 10, 10, 0) 18%
    );
  z-index: 2;
  pointer-events: none;
}

/* ── Hero Label ── */
.hero__label {
  font-family: var(--font-display);
  font-size: var(--text-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.hero__label.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero Headline ── */
.hero__headline {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  max-width: 800px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.hero__headline.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__accent {
  color: var(--accent);
  text-shadow:
    0 0 4px rgba(0, 255, 136, 0.6),
    0 0 8px rgba(0, 255, 136, 0.3);
}

/* ── Hero Description ── */
.hero__description {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.7;
  color: #aaaaaa;
  max-width: 580px;
  margin-top: 4px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.hero__description.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero Cards (GA-style side-by-side) ── */
.hero__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bento-gap);
  max-width: 900px;
  width: 100%;
  margin-top: 36px;
  transform: translateY(16px);
  clip-path: inset(100% 0 0 0);
  transition: transform 0.6s ease 0.6s, clip-path 0.6s ease 0.6s;
}

.hero__cards.visible {
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}

.hero__cards .bento-card {
  text-align: left;
  background: rgba(14, 14, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 1;
  transform: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.hero__cards .bento-card:hover {
  background: rgba(14, 14, 14, 0.55);
}

.hero__cards .bento-card .bento-card__text {
  font-size: 12px;
}

/* ── Hero CTA Buttons ── */
.hero__cta-row {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
}

.hero__cta-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__btn {
  font-family: var(--font-display);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__btn--primary {
  color: var(--accent);
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__btn--primary:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.12);
}

.hero__btn--secondary {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__btn--secondary:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 10, 0.85);
}

/* ── Section Content ── */
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  color: var(--text-primary);
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.08);
}

.section__body {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 720px;
}

.section__body p {
  margin-bottom: 20px;
}

.section__body p:last-child {
  margin-bottom: 0;
}

.section__body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.section__emphasis {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 0 4px rgba(0, 255, 136, 0.5);
}

/* ── Stat Blocks ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--grid-gap);
  margin-top: 48px;
}

.stat-block {
  border: 1px solid var(--border);
  padding: 28px 24px;
  background: var(--bg-secondary);
  transition: border-color 0.3s ease;
}

.stat-block:hover {
  border-color: var(--accent-dim);
}

.stat-block__value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: var(--glow-text);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-block__label {
  font-size: var(--text-label);
  font-weight: 300;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* ── Traction / Logo Bar ── */
.traction__label {
  font-size: var(--text-micro);
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}

.logo-bar {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.logo-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 36px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  border-right: 1px solid var(--border);
  height: 80px;
}

.logo-bar__item:last-child {
  border-right: none;
}

.logo-bar__item:first-child {
  padding-left: 0;
}

.logo-bar__item:hover {
  opacity: 0.8;
}

.logo-bar__placeholder {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.section--contact {
  padding: 80px 0 120px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Contact ── */
.contact__block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  width: 100%;
}

.contact__heading {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact__sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 48px;
}

.contact__btn {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.25);
  background: rgba(0, 255, 136, 0.06);
  padding: 20px 56px;
  border-radius: var(--card-radius);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.contact__btn:hover {
  background: rgba(0, 255, 136, 0.12);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.contact__email-line {
  font-size: var(--text-label);
  color: var(--text-muted);
  margin-top: 20px;
  letter-spacing: 0.02em;
}

.contact__email-link {
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 0 4px rgba(0, 255, 136, 0.4);
}

.contact__email-link:hover {
  text-decoration: underline;
}

/* ── Footer ── */
.footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Giant logo ── */
.footer__hero {
  text-align: center;
  padding: 120px 0;
}

.footer__logo {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.08);
  display: block;
  line-height: 1;
}

/* ── Divider ── */
.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Mid section: nav left, statement right ── */
.footer__mid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 0 80px;
  gap: 60px;
}

.footer__nav {
  display: flex;
  gap: 80px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--text-primary);
}

/* ── Statement (right side) ── */
.footer__statement {
  text-align: right;
  max-width: 360px;
}

.footer__statement-line {
  width: 80px;
  height: 2px;
  background: var(--accent);
  margin-left: auto;
  margin-bottom: 24px;
  box-shadow: 0 0 4px rgba(0, 255, 136, 0.4);
}

.footer__statement-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ── Bottom bar ── */
.footer__bottom {
  padding: 24px 0;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Link Styles ── */
a {
  color: var(--accent);
  text-decoration: none;
  position: relative;
}

.inline-link {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.inline-link:hover {
  border-bottom-color: var(--accent);
}

/* ── Bento Grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bento-gap);
  margin-top: 40px;
}

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

.bento-card--wide {
  grid-column: span 2;
}

.bento-card--full {
  grid-column: 1 / -1;
}

/* ── Glass Card ── */
.bento-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: var(--bento-padding);
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
  box-shadow: var(--halo-idle);
}

@supports (backdrop-filter: blur(1px)) {
  .bento-card {
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
  }
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/noise.svg');
  background-repeat: repeat;
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: inherit;
}

.bento-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--halo-hover);
}

/* ── Card Internals ── */
.bento-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.bento-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
  flex-shrink: 0;
}

.bento-card__dot--cyan {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.bento-card__label {
  font-family: var(--font-display);
  font-size: var(--text-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bento-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.bento-card__text {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Stat Card Variant ── */
.bento-card--stat {
  text-align: center;
  padding: 28px 16px;
}

.bento-card--stat .bento-card__value {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.bento-card--stat .bento-card__value sup {
  font-size: 0.55em;
  vertical-align: super;
  line-height: 0;
}

.bento-card--stat .bento-card__label {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

/* ── Emphasis Card ── */
.bento-card--emphasis {
  grid-column: 1 / -1;
  background: var(--accent-subtle);
  border-color: rgba(0, 255, 136, 0.08);
  padding: 36px var(--bento-padding);
  text-align: center;
}

.bento-card--emphasis:hover {
  border-color: rgba(0, 255, 136, 0.2);
  background: rgba(0, 255, 136, 0.08);
}

.bento-card--emphasis .bento-card__text {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  color: var(--accent);
  text-shadow: 0 0 14px rgba(0, 255, 136, 0.25);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ── Bento Reveal Stagger ── */
.bento-grid.reveal .bento-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.bento-grid.reveal.visible .bento-card {
  opacity: 1;
  transform: translateY(0);
}

.bento-grid.reveal.visible .bento-card:nth-child(1) { transition-delay: 0s; }
.bento-grid.reveal.visible .bento-card:nth-child(2) { transition-delay: 0.07s; }
.bento-grid.reveal.visible .bento-card:nth-child(3) { transition-delay: 0.14s; }
.bento-grid.reveal.visible .bento-card:nth-child(4) { transition-delay: 0.21s; }
.bento-grid.reveal.visible .bento-card:nth-child(5) { transition-delay: 0.28s; }
.bento-grid.reveal.visible .bento-card:nth-child(6) { transition-delay: 0.35s; }

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Mobile Adjustments ── */
@media (max-width: 768px) {
  .nav__links {
    gap: 16px;
  }

  .nav__link {
    display: none;
  }

  .hero__headline {
    font-size: 32px;
  }

  .hero__cards {
    grid-template-columns: 1fr;
  }

  .hero__cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero__btn {
    justify-content: center;
  }

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

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

  .bento-card--wide {
    grid-column: span 2;
  }

  .logo-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-bar__item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    height: auto;
  }

  .logo-bar__item:last-child {
    border-bottom: none;
  }

  .footer__hero {
    padding: 80px 0;
  }

  .footer__mid {
    flex-direction: column;
    gap: 48px;
  }

  .footer__nav {
    gap: 48px;
  }

  .footer__statement {
    text-align: left;
  }

  .footer__statement-line {
    margin-left: 0;
  }

  .footer__statement-text {
    font-size: 22px;
  }

  .loader__terminal {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .bento-grid,
  .bento-grid--stats {
    grid-template-columns: 1fr;
  }

  .bento-card--wide {
    grid-column: span 1;
  }
}
