@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #07060f;
  --bg-2: #0d0b1a;
  --bg-card: rgba(18, 16, 32, 0.85);
  --bg-card-hover: rgba(26, 22, 48, 0.95);
  --text: #eceaf6;
  --text-muted: #8b88a8;
  --text-dim: #5a5775;
  --accent: #7b5ea7;
  --accent-2: #a78bfa;
  --accent-3: #c4b5fd;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --glow: rgba(123, 94, 167, 0.35);
  --glow-2: rgba(167, 139, 250, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── Ambient background ─────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(123,94,167,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(79,55,139,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 55% 50%, rgba(167,139,250,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Layout ─────────────────────────────────────────── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  position: relative;
  z-index: 1;
}

/* ─── Navigation ─────────────────────────────────────── */
nav {
  background: rgba(7, 6, 15, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(123, 94, 167, 0.15);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  padding: 0;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  height: 64px;
}

nav a.brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}

nav a.brand .brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--gold));
  box-shadow: 0 0 8px var(--accent-2);
  flex-shrink: 0;
}

nav a.brand:hover { color: var(--accent-3); }

nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

nav ul a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

nav ul a:hover {
  color: var(--text);
  background: rgba(167, 139, 250, 0.08);
}

nav ul a[aria-current="page"] {
  color: var(--accent-3);
  background: rgba(123, 94, 167, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.25);
  font-weight: 600;
}

/* ─── Hero (Home) ────────────────────────────────────── */
.hero-home {
  position: relative;
  text-align: center;
  padding: 90px 20px 80px;
  overflow: hidden;
}

.hero-home::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(123,94,167,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123, 94, 167, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 6px var(--gold-light);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-home h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  position: relative;
}

.hero-home h1 .line-plain {
  display: block;
  color: var(--text);
}

.hero-home h1 .line-gradient {
  display: block;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 40%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent) 0%, #9b79cc 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(123, 94, 167, 0.45);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(123, 94, 167, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: rgba(167,139,250,0.08);
  border-color: rgba(167,139,250,0.3);
  transform: translateY(-2px);
}

/* App mockup strip */
.hero-app-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-app-strip svg {
  opacity: 0.6;
}

/* ─── Feature grid ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,94,167,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(167,139,250,0.2);
  transform: translateY(-3px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(123, 94, 167, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Section divider ────────────────────────────────── */
.section-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

/* ─── Quick links (home) ─────────────────────────────── */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.links a .arrow {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: transform 0.2s, color 0.2s;
}

.links a:hover {
  border-color: rgba(167,139,250,0.3);
  background: rgba(123, 94, 167, 0.08);
  transform: translateY(-2px);
}

.links a:hover .arrow {
  transform: translateX(3px);
  color: var(--accent-2);
}

/* ─── Hero (inner pages) ─────────────────────────────── */
.hero {
  text-align: center;
  padding: 56px 0 44px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.legal-meta {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ─── Cards ──────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.2), transparent);
}

.card h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent-3);
  margin-bottom: 12px;
}

.card h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 20px 0 8px;
}

.card h3:first-of-type { margin-top: 16px; }

.card p, .card li {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.card p:last-child { margin-bottom: 0; }

.card ul, .card ol {
  padding-left: 20px;
  margin-bottom: 10px;
}

.card li { margin-bottom: 6px; }

.card a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(167,139,250,0.25);
  transition: color 0.2s, border-color 0.2s;
}

.card a:hover {
  color: var(--accent-3);
  border-bottom-color: rgba(196,181,253,0.5);
}

.card strong { color: var(--text); font-weight: 600; }

/* ─── Support forms ──────────────────────────────────── */
.support-form label {
  display: block;
  margin: 16px 0 6px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.support-form label:first-of-type { margin-top: 0; }

.support-form .required { color: var(--accent-2); }
.support-form .optional { color: var(--text-dim); font-weight: 400; }

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.support-form input::placeholder,
.support-form textarea::placeholder { color: var(--text-dim); }

.support-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b88a8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  background-color: rgba(0,0,0,0.25);
}

.support-form select option { background: #1a1830; }

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 94, 167, 0.2);
}

.support-form textarea {
  resize: vertical;
  min-height: 100px;
}

.support-form button[type="submit"] {
  margin-top: 18px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), #9b79cc);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(123, 94, 167, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.support-form button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(123, 94, 167, 0.55);
}

.support-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 12px;
  font-size: 0.875rem;
  border-radius: 8px;
  padding: 0;
  min-height: 0;
}

.form-status:not(:empty) {
  padding: 10px 14px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.form-status-success { color: #86efac; }
.form-status-error   { color: #fca5a5; }

/* ─── Info pill ──────────────────────────────────────── */
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ─── Stat row ───────────────────────────────────────── */
.stat-row {
  display: flex;
  gap: 1px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.stat-item {
  flex: 1;
  background: var(--bg-card);
  padding: 20px;
  text-align: center;
}

.stat-item:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stat-item:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }

.stat-value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-2), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ─── FAQ accordion feel ─────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 16px 0;
}

.faq-item:first-of-type { padding-top: 4px; }
.faq-item:last-of-type  { border-bottom: none; padding-bottom: 4px; }

.faq-q {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

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

.faq-a a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(167,139,250,0.25);
  transition: color 0.2s, border-color 0.2s;
}

.faq-a a:hover {
  color: var(--accent-3);
  border-bottom-color: rgba(196,181,253,0.5);
}

.faq-a strong { color: var(--text); font-weight: 600; }

/* ─── Privacy numbered sections ─────────────────────── */
.legal-page .card + .card { margin-top: 0; }
.legal-page .card h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.legal-page .card h2 .section-num {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(123,94,167,0.2);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--accent-2);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 36px 24px;
  color: var(--text-dim);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--accent-3); }

footer .footer-sep {
  margin: 0 8px;
  opacity: 0.3;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
  nav .container { height: auto; padding: 12px 0; }
  .hero-home { padding: 60px 16px 50px; }
  .hero-home h1 { font-size: 2.4rem; }
  .features-grid { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; gap: 0; }
  .stat-item { border-radius: 0 !important; }
  .stat-item:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .stat-item:last-child  { border-radius: 0 0 var(--radius) var(--radius) !important; }
  .links { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
