/* ==========================================================================
   QuantumSphere — Aurora on Dark
   ========================================================================== */

/* Reset
   ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Theme
   ----- */
:root {
  /* Brand */
  --brand-magenta: #d91869;
  --brand-blue: #008afc;
  --brand-purple: #8b3bff;

  /* Surfaces */
  --bg: #0a0a0f;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.5);

  /* Type scale */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 3vw, 2rem);
  --radius: 14px;
  --radius-sm: 8px;
}

/* Base
   ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
  overflow-x: hidden;
}

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

::selection {
  background: rgba(217, 24, 105, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Aurora background
   ----------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
}

.aurora::before {
  width: 60vw;
  height: 60vw;
  top: -10vw;
  right: -15vw;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(217, 24, 105, 0.55),
    transparent 60%
  );
}

.aurora::after {
  width: 70vw;
  height: 70vw;
  bottom: -25vw;
  left: -20vw;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(0, 138, 252, 0.45),
    rgba(139, 59, 255, 0.35) 40%,
    transparent 70%
  );
}

.aurora-mid {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: 50vw;
  height: 50vw;
  top: 30%;
  left: 35%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 59, 255, 0.35),
    transparent 60%
  );
  filter: blur(100px);
  opacity: 0.6;
}

/* Skip link
   --------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--bg);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  top: 1rem;
}

/* Container
   --------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header / nav
   ------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.65);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-text {
  font-weight: 600;
  font-feature-settings: "ss01", "cv11";
}

.brand-text-q,
.brand-text-s {
  background: linear-gradient(
    100deg,
    var(--brand-blue),
    var(--brand-purple) 50%,
    var(--brand-magenta)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.brand-text-s {
  background: linear-gradient(
    100deg,
    var(--brand-magenta),
    var(--brand-purple) 50%,
    var(--brand-blue)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand:hover .brand-text-q,
.brand:hover .brand-text-s {
  filter: brightness(1.15);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.18s ease;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.nav-cta:hover {
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Buttons
   ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--brand-magenta),
    var(--brand-purple) 60%,
    var(--brand-blue)
  );
  box-shadow: 0 8px 30px rgba(217, 24, 105, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(217, 24, 105, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-arrow {
  transition: transform 0.18s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(2px);
}

/* Sections
   -------- */
.section {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  position: relative;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.section-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

/* Hero
   ---- */
.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-magenta), var(--brand-blue));
  box-shadow: 0 0 8px rgba(217, 24, 105, 0.6);
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin-bottom: 1.4rem;
}

.gradient-text {
  background: linear-gradient(
    100deg,
    var(--brand-magenta),
    var(--brand-purple) 45%,
    var(--brand-blue)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* What we do — capability cards */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.capability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.capability-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.capability-card .label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.capability-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.capability-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.capability-card .more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.capability-card .more::after {
  content: "→";
  transition: transform 0.18s ease;
}
.capability-card:hover .more::after {
  transform: translateX(3px);
}

/* Product / studio detail sections */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.detail-text h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.detail-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.2rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.8rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brand-magenta), var(--brand-blue));
  box-shadow: 0 0 8px rgba(217, 24, 105, 0.5);
}

/* Visual panel for product detail (FluentSphere) */
.visual-panel {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 90deg,
    rgba(217, 24, 105, 0.25),
    rgba(139, 59, 255, 0.2),
    rgba(0, 138, 252, 0.25),
    rgba(217, 24, 105, 0.25)
  );
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}

.device {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 440px;
  border-radius: 36px;
  background: linear-gradient(180deg, #1a1a22, #0e0e14);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: linear-gradient(160deg, #0d0d14, #161620);
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1rem;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}
.device-screen::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 100%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(217, 24, 105, 0.35),
    transparent 70%
  );
  filter: blur(20px);
}
.device-row {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  z-index: 1;
}
.device-row.you {
  background: linear-gradient(
    135deg,
    rgba(217, 24, 105, 0.4),
    rgba(139, 59, 255, 0.3)
  );
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  align-self: flex-end;
  max-width: 80%;
}
.device-row.coach {
  align-self: flex-start;
  max-width: 90%;
}
.device-row.label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0.2rem;
}

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.process-step {
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.process-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brand-magenta), var(--brand-purple));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.process-step h4 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-render {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-render::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
}
.gallery-render svg {
  width: 60%;
  height: 60%;
  opacity: 0.85;
  filter: drop-shadow(0 8px 24px rgba(0, 138, 252, 0.45));
}

/* About / company */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}
.about-text p:last-child {
  margin-bottom: 0;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.meta-card {
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.meta-card .label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
  display: block;
}

.meta-card .value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

/* Contact */
.contact {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(217, 24, 105, 0.04) 50%,
    transparent
  );
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-block {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-block h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  letter-spacing: -0.005em;
}

.contact-block address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.96rem;
}
.contact-list li {
  display: flex;
  gap: 0.6rem;
  color: var(--text-muted);
}
.contact-list strong {
  color: var(--text);
  font-weight: 500;
  min-width: 6.5rem;
}
.contact-list a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}
.contact-list a:hover {
  border-color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.4rem;
  margin-top: 2rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.18s ease;
}
.footer-links a:hover {
  color: var(--text);
}

/* Responsive
   ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .detail,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 320px;
    order: -1;
  }

  .device {
    width: 200px;
    height: 400px;
  }

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

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

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

@media (max-width: 540px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    justify-content: center;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
