:root {
  --bg-night: #080c14;
  --bg-deep: #0f172a;
  --bg-card: #111827;
  --bg-card-soft: rgba(17, 24, 39, 0.82);
  --purple: #7c3aed;
  --purple-soft: rgba(124, 58, 237, 0.28);
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.24);
  --white: #eef2ff;
  --white-dim: #cbd5e1;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 30px 80px rgba(2, 6, 23, 0.48);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, 0.12), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08), transparent 26%),
    linear-gradient(180deg, var(--bg-night), var(--bg-deep));
  min-height: 100vh;
  line-height: 1.6;
}

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

img,
iframe {
  max-width: 100%;
}

img {
  display: block;
  object-fit: contain;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.brand-mark-sm {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}

.brand-mark-sm--center {
  display: block;
  margin: 0 auto 16px;
}

.brand-mark-sm--lg {
  width: 64px;
  height: 64px;
}

.brand-mark-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 12, 20, 0.82);
  border-bottom: 1px solid rgba(124, 58, 237, 0.18);
}

.compliance-banner {
  width: 100%;
  text-align: center;
  padding: 8px 16px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(124, 58, 237, 0.28);
  border-bottom: 1px solid rgba(124, 58, 237, 0.22);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(124, 58, 237, 0.35);
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark strong,
.brand-mark span {
  font-family: "Sora", sans-serif;
}

.brand-mark strong {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(124, 58, 237, 0.16);
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.24);
}

.auth-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-chip,
.auth-chip,
.plain-chip {
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.34);
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.ghost-chip:hover,
.auth-chip:hover,
.plain-chip:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.22);
}

.auth-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-user-row .status-pill {
  margin-right: 4px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(59, 130, 246, 0.22);
}

.btn::after {
  content: "";
  position: absolute;
  inset: -120% auto -120% -40%;
  width: 38%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  transform: rotate(18deg) translateX(-160%);
  transition: transform 0.45s ease;
}

.btn:hover::after {
  transform: rotate(18deg) translateX(420%);
}

.btn.secondary {
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.42);
  box-shadow: none;
}

.btn.inline {
  padding: 12px 18px;
  font-size: 0.8rem;
}

.main-content {
  padding-bottom: 120px;
}

.storm-hero {
  position: relative;
  padding: 78px 0 64px;
  overflow: hidden;
}

.storm-hero::before,
.storm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.storm-hero::before {
  background:
    radial-gradient(circle at 20% 25%, rgba(124, 58, 237, 0.28), transparent 28%),
    radial-gradient(circle at 75% 22%, rgba(59, 130, 246, 0.22), transparent 24%),
    radial-gradient(circle at 55% 75%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 30% 70%, rgba(30, 41, 59, 0.8), transparent 35%);
  animation: stormFloat 18s ease-in-out infinite alternate;
}

.storm-hero::after {
  background: linear-gradient(120deg, transparent 45%, rgba(255, 255, 255, 0.18) 50%, transparent 55%);
  opacity: 0;
  animation: lightningFlash 4s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.card,
.terminal-card,
.panel,
.info-block,
.download-band,
.testimonial,
.library-card,
.faq-item,
.policy-card,
.contact-card,
.iframe-card,
.mini-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.88));
  border: 1px solid var(--border);
  border-top: 3px solid var(--purple);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.section-title h2,
.faq-head h2,
.contact-head h1,
.iframe-head h1 {
  margin: 14px 0 18px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  font-size: clamp(2.9rem, 6vw, 5.2rem);
}

.hero-subline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(8, 12, 20, 0.58);
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 999px;
  color: var(--white-dim);
  font-family: "Sora", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-copy p {
  color: var(--white-dim);
  font-size: 1.05rem;
  margin: 18px 0 28px;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid rgba(124, 58, 237, 0.22);
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-visual {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.hero-visual-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.18), transparent 42%),
    linear-gradient(225deg, rgba(59, 130, 246, 0.18), transparent 38%),
    rgba(8, 12, 20, 0.86);
  border-radius: 22px;
  overflow: hidden;
}

.hero-visual-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(224, 231, 255, 0.12);
  border-radius: 18px;
}

.hero-visual-frame img {
  width: min(280px, 72%);
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 0 28px rgba(124, 58, 237, 0.28));
}

.stat-grid,
.feature-grid,
.testimonial-grid,
.library-grid,
.policy-grid,
.three-col,
.info-grid,
.footer-grid {
  display: grid;
  gap: 20px;
}

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

.mini-card,
.card,
.testimonial {
  padding: 24px;
}

.mini-card strong,
.card h3,
.testimonial strong,
.library-card h3,
.policy-card h2,
.contact-card h2,
.iframe-card h2 {
  font-family: "Sora", sans-serif;
}

.mini-card strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.mini-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 34px 0;
}

.section-title,
.faq-head,
.contact-head,
.iframe-head {
  margin-bottom: 22px;
}

.section-title p,
.faq-head p,
.contact-head p,
.iframe-head p {
  color: var(--white-dim);
  max-width: 72ch;
}

.section-title h2,
.faq-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.terminal-card {
  padding: 30px;
}

.terminal-window {
  padding: 24px;
  border-radius: 20px;
  background: rgba(8, 12, 20, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.14);
  color: var(--white-dim);
  font-family: "IBM Plex Sans", sans-serif;
}

.terminal-window pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.98rem;
  line-height: 1.8;
}

.gallery-shell {
  position: relative;
  padding: 28px;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(8, 12, 20, 0.84);
  border: 1px solid rgba(59, 130, 246, 0.16);
}

.gallery-track {
  display: flex;
  transition: transform 0.55s ease;
}

.gallery-slide {
  min-width: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
}

.gallery-slide img {
  width: 100%;
  max-height: 620px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.72);
}

.gallery-controls {
  position: absolute;
  inset: 50% 18px auto;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.gallery-arrow {
  pointer-events: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.46);
  background: rgba(8, 12, 20, 0.9);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.18);
}

.gallery-progress {
  margin-top: 18px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.gallery-progress > span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transition: width 0.45s ease;
}

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

.card h3,
.library-card h3,
.policy-card h2,
.contact-card h2,
.iframe-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.icon-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 1.2rem;
}

.card p,
.testimonial p,
.library-card p,
.policy-card p,
.contact-card p,
.iframe-card p,
.plain-list li {
  color: var(--white-dim);
}

.testimonial-grid,
.library-grid,
.policy-grid,
.info-grid,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial .stars {
  color: #facc15;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.tag-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag,
.metric-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-card,
.policy-card,
.contact-card,
.iframe-card,
.info-block,
.download-band {
  padding: 28px;
}

.library-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.media-frame {
  border-radius: 20px;
  background: rgba(8, 12, 20, 0.84);
  border: 1px solid rgba(59, 130, 246, 0.14);
  padding: 16px;
}

.media-frame img {
  width: 100%;
  max-height: 420px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.thumb-row img {
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  padding: 8px;
  height: 150px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--white-dim);
}

.faq-item.open .faq-answer {
  max-height: 220px;
}

.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.download-band img {
  height: 64px;
  width: auto;
}

.contact-layout,
.iframe-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 24px;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.plain-list li + li {
  margin-top: 10px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-group input,
.field-group textarea {
  width: 100%;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: rgba(8, 12, 20, 0.88);
  color: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
}

.field-group textarea {
  min-height: 180px;
  resize: vertical;
}

.site-footer {
  border-top: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(8, 12, 20, 0.88);
}

.footer-grid {
  padding: 36px 0 90px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 16px;
}

.footer-brand .brand {
  align-items: center;
}

.footer-copy {
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-nav a {
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-play img {
  height: 56px;
  width: auto;
}

.muted-line {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 99997;
  min-width: min(360px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.32);
  border-top: 3px solid var(--purple);
  background: rgba(8, 12, 20, 0.96);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 99996;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(12px);
}

.auth-modal.open {
  display: flex;
}

.auth-dialog {
  width: min(460px, 100%);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-top: 3px solid var(--purple);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(8, 12, 20, 0.98));
  box-shadow: var(--shadow);
}

.auth-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.auth-top strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
}

.auth-top span {
  color: var(--muted);
  font-size: 0.92rem;
}

.modal-close {
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-switch {
  margin-top: 14px;
  color: var(--white-dim);
  font-size: 0.95rem;
}

.auth-switch button {
  background: transparent;
  border: 0;
  color: var(--blue);
  padding: 0;
  cursor: pointer;
  font-weight: 700;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes stormFloat {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1.5%, 0) scale(1.04);
  }
}

@keyframes lightningFlash {
  0%,
  84%,
  100% {
    opacity: 0;
  }
  86% {
    opacity: 0.12;
  }
  88% {
    opacity: 0.02;
  }
  90% {
    opacity: 0.15;
  }
  92% {
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .contact-layout,
  .iframe-layout,
  .library-card {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .stat-grid,
  .testimonial-grid,
  .library-grid,
  .policy-grid,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual-frame {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .header-bar,
  .nav-wrap {
    align-items: flex-start;
  }

  .header-bar {
    flex-direction: column;
  }

  .hero-copy,
  .hero-visual,
  .gallery-shell,
  .terminal-card,
  .download-band,
  .library-card,
  .policy-card,
  .contact-card,
  .iframe-card {
    padding: 22px;
  }

  .storm-hero {
    padding-top: 42px;
  }

  .gallery-controls {
    inset-inline: 10px;
  }

  .gallery-arrow {
    width: 46px;
    height: 46px;
  }

  .download-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    padding-bottom: 110px;
  }
}
