/* Syntergy marketing site — aligned with app design system */

:root {
  --primary: #5a62b5;
  --primary-deep: #4a52a0;
  --accent: #52a4b8;
  --bg: #0a0c14;
  --bg-elevated: #0f1220;
  --surface: #141729;
  --surface-muted: #1e2238;
  --text: #eceef7;
  --text-strong: #ffffff;
  --text-muted: #9aa1b8;
  --text-subtle: #6b7290;
  --border: #252a40;
  --cat-reaction: #d06880;
  --cat-memory: #8478c0;
  --cat-focus: #459a90;
  --cat-logic: #c99440;
  --success: #4a9a7e;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 120px rgba(90, 98, 181, 0.22);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --max-width: 1120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ── Background atmosphere ── */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.page-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.page-bg__orb--1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(90, 98, 181, 0.55), transparent 70%);
}

.page-bg__orb--2 {
  width: 420px;
  height: 420px;
  top: 35%;
  right: -100px;
  background: radial-gradient(circle, rgba(82, 164, 184, 0.35), transparent 70%);
}

.page-bg__orb--3 {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: 25%;
  background: radial-gradient(circle, rgba(132, 120, 192, 0.28), transparent 70%);
}

.page-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 100%);
}

/* ── Navigation ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  background: rgba(10, 12, 20, 0.72);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.brand__name {
  font-size: 1.05rem;
}

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

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-strong);
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-strong) !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 8px 28px rgba(90, 98, 181, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(90, 98, 181, 0.45);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  color: var(--text-strong);
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 12px 40px rgba(90, 98, 181, 0.38);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(90, 98, 181, 0.48);
}

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ── Hero ── */

.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 10vw, 7rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(82, 164, 184, 0.35);
  background: rgba(82, 164, 184, 0.08);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, #a8aed8, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.stat {
  min-width: 6.5rem;
}

.stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.stat__label {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mock {
  position: relative;
  width: min(100%, 320px);
  padding: 0.85rem;
  border-radius: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.phone-mock__screen {
  border-radius: 1.65rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.phone-mock__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.phone-mock__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.phone-mock__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong);
}

.phone-mock__subtitle {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.phone-mock__body {
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.mini-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mini-tile__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mini-tile__text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-strong);
}

.mini-tile__text span {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.phone-mock__glow {
  position: absolute;
  inset: 10% -10% -10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 98, 181, 0.35), transparent 65%);
}

.floating-badge {
  position: absolute;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 23, 41, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.floating-badge--top {
  top: 8%;
  right: -4%;
}

.floating-badge--bottom {
  bottom: 12%;
  left: -6%;
}

.floating-badge svg {
  vertical-align: -2px;
  margin-right: 0.35rem;
}

/* ── Sections ── */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section--surface {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
}

.section__header {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__header--center {
  margin-inline: auto;
  text-align: center;
}

.section__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.section__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.section__desc {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Category cards ── */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.category-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-strong);
}

.category-card__body {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.category-card__games {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.category-card__games li {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.category-card__games li::before {
  content: "·";
  margin-right: 0.4rem;
  color: currentColor;
  opacity: 0.6;
}

/* ── Pillars ── */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.pillar-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(90, 98, 181, 0.15);
  border: 1px solid rgba(90, 98, 181, 0.35);
  color: #a8aed8;
}

.pillar-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-strong);
}

.pillar-card__body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Profile preview ── */

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.feature-panel {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-panel__chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.feature-panel__bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.feature-panel__bar {
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  height: 120px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.feature-panel__bar-fill {
  width: 100%;
  border-radius: 999px 999px 0 0;
}

.feature-panel__bar-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feature-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

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

.feature-list li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--success);
}

/* ── CTA band ── */

.cta-band {
  margin: 2rem 0 0;
  padding: clamp(2.5rem, 6vw, 3.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(90, 98, 181, 0.35);
  background:
    radial-gradient(ellipse 80% 100% at 0% 0%, rgba(90, 98, 181, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(82, 164, 184, 0.15), transparent 50%),
    var(--surface);
  text-align: center;
}

.cta-band__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--text-strong);
}

.cta-band__desc {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--text-muted);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.store-badge__label {
  text-align: left;
}

.store-badge__label small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-subtle);
}

.store-badge__label strong {
  display: block;
  font-size: 1rem;
  color: var(--text-strong);
}

/* ── Footer ── */

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--text-strong);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* ── Legal pages ── */

.legal-page {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 5rem);
}

.legal-card {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(20, 23, 41, 0.72);
  backdrop-filter: blur(12px);
}

.legal-card h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-strong);
}

.legal-meta {
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.legal-card h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-strong);
}

.legal-card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.legal-card p,
.legal-card li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.legal-card ul,
.legal-card ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-card li + li {
  margin-top: 0.35rem;
}

.legal-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-summary {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(82, 164, 184, 0.35);
  background: rgba(82, 164, 184, 0.08);
}

.legal-summary p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-strong);
  font-weight: 600;
}

.legal-table td {
  color: var(--text-muted);
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .hero__grid,
  .split-feature {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

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

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

  .floating-badge--top {
    right: 2%;
  }

  .floating-badge--bottom {
    left: 2%;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 12, 20, 0.96);
    backdrop-filter: blur(16px);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

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

  .site-nav a {
    padding: 0.75rem 0.5rem;
  }

  .site-nav__cta {
    margin-top: 0.5rem;
    text-align: center;
  }

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

  .hero__stats {
    gap: 1.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
