:root {
  --bg: #1c1c1e;
  --surface: #2c2c2e;
  --text: #ffffff;
  --muted: #aeaeb2;
  --primary: #7c5cfc;
  --primary-soft: rgba(124, 92, 252, 0.15);
  --accent: #ff6b6b;
  --border: #3a3a3c;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Ubuntu,
    Cantarell,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 36px;
  width: auto;
  max-height: 36px;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #5a3fd4);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

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

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

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

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

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero-logo {
  display: block;
  margin: 0 auto 1.25rem;
  width: clamp(180px, 40vw, 280px);
  height: auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero .tagline {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 92, 252, 0.35);
}

.btn-primary:hover {
  text-decoration: none;
  box-shadow: 0 10px 32px rgba(124, 92, 252, 0.45);
}

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

.btn-secondary:hover {
  text-decoration: none;
  border-color: var(--muted);
}

/* Sections */
section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

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

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

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

.card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

/* TikTok */
.tiktok-section {
  overflow: hidden;
}

.tiktok-section h2 {
  text-align: center;
}

.tiktok-lede {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1rem;
}

.tiktok-lede a {
  font-weight: 600;
}

.tiktok-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: flex-start;
}

.tiktok-embed-wrap {
  flex: 0 0 auto;
  width: 100%;
  max-width: 325px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.tiktok-iframe {
  display: block;
  width: 100%;
  max-width: 325px;
  height: min(740px, 85vh);
  min-height: 520px;
  border: 0;
}

.tiktok-open-native {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.tiktok-open-native:hover {
  color: var(--primary);
  text-decoration: none;
}

.tiktok-fallback {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
}

.tiktok-fallback p {
  margin: 0 0 1.25rem;
}

.tiktok-fallback code {
  font-size: 0.8rem;
  color: var(--text);
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

/* Legal pages */
.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 2.5rem;
}

.legal-content {
  max-width: 44rem;
}

.legal-content h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 2.5rem 0 0.6rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

a.brand {
  color: var(--text);
}

a.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.todo {
  display: inline-block;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.85em;
  padding: 0.1em 0.45em;
  font-weight: 600;
}

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

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

.company {
  opacity: 0.85;
}

.company a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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