/* Quorix — brand site */
:root {
  --midnight: #0d1117;
  --surface: #151b2b;
  --surface-elevated: #1c2438;
  --cyan: #00e5ff;
  --purple: #7c3aed;
  --magenta: #d500f9;
  --pink: #f06292;
  --text: #e8ecf4;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --gradient: linear-gradient(135deg, var(--cyan), var(--purple), var(--magenta));
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Syne", var(--font);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--midnight);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0, 229, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(124, 58, 237, 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(213, 0, 249, 0.08), transparent);
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #fff;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.85rem 0;
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--text);
  opacity: 0.95;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-sub {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.92em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--midnight) !important;
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-cta:hover {
  opacity: 0.92;
  color: var(--midnight) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

/* —— Hero —— */
.hero {
  padding: 8.5rem 0 5rem;
  text-align: center;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.75rem;
  border-radius: 28px;
  box-shadow: var(--shadow), 0 0 60px rgba(0, 229, 255, 0.2);
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
  margin-inline: auto;
}

.hero-lead {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: var(--midnight);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.45);
  color: var(--midnight);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 0.2s, transform 0.2s;
}

.store-badge:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
  color: var(--text);
}

.store-badge--soon {
  cursor: default;
  opacity: 0.85;
}

.store-badge--soon:hover {
  transform: none;
  border-color: var(--border);
}

.store-badge strong {
  display: block;
  font-size: 1rem;
}

.store-badges--live .store-badge {
  cursor: pointer;
}

.store-badges--live .store-badge:hover {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.2);
}

.smart-link-hint {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.smart-link-hint a {
  color: var(--cyan);
  font-weight: 600;
}

/* —— Download page —— */
.download-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 0 4rem;
}

.download-card {
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(21, 27, 43, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.download-logo {
  margin: 0 auto 1.25rem;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.download-card h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 0.75rem;
}

.download-lead {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.download-card .store-badges {
  flex-direction: column;
  align-items: stretch;
}

.download-card .store-badge {
  justify-content: center;
}

.download-note {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}

.download-note code {
  font-size: 0.7rem;
  color: var(--cyan);
}

.download-back {
  margin-top: 1.5rem;
  display: inline-flex;
}

/* —— Stats band —— */
.stats-band {
  padding: 0 0 3rem;
  margin-top: -2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-card {
  text-align: center;
  padding: 1.35rem 1rem;
  background: rgba(21, 27, 43, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}

/* —— App tabs —— */
.app-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.app-tab {
  padding: 1.25rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s, transform 0.2s;
}

.app-tab:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-2px);
}

.app-tab--active {
  border-color: rgba(240, 98, 146, 0.45);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(240, 98, 146, 0.08));
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.app-tab-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.app-tab-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.app-tab-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.app-quiz-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(0, 229, 255, 0.06);
  border: 1px dashed rgba(0, 229, 255, 0.25);
}

.app-quiz-note strong {
  color: var(--cyan);
}

/* —— Sections —— */
section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 2.5rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  background: rgba(21, 27, 43, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--gradient);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.category-pill {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.category-pill span {
  font-weight: 600;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 3rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
}

.step h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(124, 58, 237, 0.12));
  border: 1px solid var(--border);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* —— Inner pages (privacy, contact) —— */
.page-hero {
  padding: 7rem 0 2.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
}

.page-hero .meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.prose {
  max-width: 68ch;
  padding-bottom: 4rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose strong {
  color: var(--text);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  align-items: start;
}

.contact-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--midnight);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info h3 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(13, 17, 23, 0.98);
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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