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

:root {
  --bg: #0a0a0f;
  --bg-2: #111118;
  --bg-3: #1a1a28;
  --border: rgba(255,255,255,0.08);
  --text: #e8e8f0;
  --text-muted: #7878a0;
  --accent-1: #7c3aed;
  --accent-2: #a855f7;
  --accent-3: #06b6d4;
  --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-muted); }

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

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}
.btn--primary:hover { box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5); }

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

.btn--sm { padding: 8px 18px; font-size: 0.85rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,0.8);
}
.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: auto;
}
.nav__links {
  display: flex;
  list-style: none;
  gap: 28px;
}
.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text); }

/* ── Lang toggle ── */
.lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: inherit;
}
.lang-btn:hover { color: var(--text); }
.lang-btn--active {
  background: var(--gradient);
  color: #fff;
}

@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero__title { margin-bottom: 24px; }

.hero__sub {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  line-height: 1.7;
}

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

/* ── Mockup ── */
.mockup {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}
.mockup__bar {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.mockup__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.mockup__body {
  padding: 48px 32px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.mockup__label { font-size: 0.85rem; color: var(--text-muted); }

/* ── Waveform animation ── */
.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
}
.waveform span {
  width: 4px;
  border-radius: 2px;
  background: var(--gradient);
  animation: wave 1.2s ease-in-out infinite;
}
.waveform span:nth-child(1)  { height: 20px; animation-delay: 0s; }
.waveform span:nth-child(2)  { height: 35px; animation-delay: 0.1s; }
.waveform span:nth-child(3)  { height: 48px; animation-delay: 0.2s; }
.waveform span:nth-child(4)  { height: 28px; animation-delay: 0.3s; }
.waveform span:nth-child(5)  { height: 40px; animation-delay: 0.4s; }
.waveform span:nth-child(6)  { height: 22px; animation-delay: 0.5s; }
.waveform span:nth-child(7)  { height: 44px; animation-delay: 0.6s; }
.waveform span:nth-child(8)  { height: 30px; animation-delay: 0.7s; }
.waveform span:nth-child(9)  { height: 38px; animation-delay: 0.8s; }
.waveform span:nth-child(10) { height: 18px; animation-delay: 0.9s; }
.waveform span:nth-child(11) { height: 46px; animation-delay: 1.0s; }
.waveform span:nth-child(12) { height: 24px; animation-delay: 1.1s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50%       { transform: scaleY(0.4); opacity: 1; }
}

/* ── Stats ── */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__num { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.stat__label { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

/* ── Features ── */
.features { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header p {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-4px);
}
.feature-card--accent {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(6,182,212,0.06));
  border-color: rgba(124,58,237,0.25);
}
.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; line-height: 1.65; }

/* ── About ── */
.about {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) {
  .about__inner { grid-template-columns: 1fr; }
}
.about__text p { margin-bottom: 16px; font-size: 1rem; }
.about__text h2 { margin-bottom: 24px; }

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(124,58,237,0.2);
  color: var(--accent-2);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.about__card {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-3);
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.06));
}
.about__quote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin-bottom: 28px;
}
.about__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.about__author strong { display: block; font-size: 0.95rem; }
.about__author span { font-size: 0.82rem; color: var(--text-muted); }

/* ── Contact ── */
.contact { padding: 100px 0; }
.contact__inner {
  max-width: 580px;
  margin: 0 auto;
}
.contact .section-header { margin-bottom: 48px; }

.contact__form { display: flex; flex-direction: column; gap: 16px; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.required { color: var(--accent-2); }

.form__group input,
.form__group select {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form__group input::placeholder { color: var(--text-muted); }
.form__group input:focus,
.form__group select:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form__group select option { background: var(--bg-3); }

.cf-turnstile {
  display: flex;
  justify-content: center;
}

.form__error {
  color: #f87171;
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.form__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Success ── */
.contact__success {
  text-align: center;
  padding: 60px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.08);
}
.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 auto 20px;
}
.contact__success h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--text); }

/* ── Footer ── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer p { font-size: 0.85rem; }
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--text); }

/* ── Legal pages ── */
.legal {
  padding: 140px 0 100px;
}
.legal__header {
  max-width: 760px;
  margin: 0 auto 56px;
}
.legal__header h1 {
  margin-bottom: 12px;
}
.legal__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.legal__meta a {
  color: var(--accent-2);
  text-decoration: none;
}
.legal__content {
  max-width: 760px;
  margin: 0 auto;
}
.legal__content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal__content h2:first-child {
  margin-top: 0;
}
.legal__content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}
.legal__content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal__content p strong {
  color: var(--text);
  font-weight: 600;
}
.legal__content a {
  color: var(--accent-2);
  text-decoration: none;
}
.legal__content a:hover {
  text-decoration: underline;
}
.legal__content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding-left: 4px;
}
.legal__content ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.legal__content ul li::before {
  content: '–';
  color: var(--accent-2);
  flex-shrink: 0;
  margin-top: 1px;
}
.legal__callout {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.07);
  margin-bottom: 14px;
}
.legal__callout p {
  margin-bottom: 8px;
}
.legal__callout p:last-child {
  margin-bottom: 0;
}

/* ── Cookie consent modal ── */
.cookie-modal[hidden] { display: none; }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.cookie-modal__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.cookie-modal__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.cookie-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.cookie-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-3);
}

.cookie-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cookie-group__label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-group__label strong {
  font-size: 0.95rem;
  color: var(--text);
}

.cookie-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
  color: var(--accent-2);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.cookie-group__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.cookie-details {
  font-size: 0.82rem;
}

.cookie-details summary {
  cursor: pointer;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 500;
  user-select: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cookie-details summary::-webkit-details-marker { display: none; }
.cookie-details summary::after {
  content: '›';
  display: inline-block;
  transition: transform 0.15s ease;
}
.cookie-details[open] summary::after {
  transform: rotate(90deg);
}

.cookie-detail-item {
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.cookie-detail-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 6px;
}
.cookie-detail-item p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Toggle switch */
.cookie-toggle {
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s ease;
}
.cookie-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cookie-toggle input:checked + .cookie-toggle__track {
  background: var(--accent-1);
  border-color: var(--accent-1);
}
.cookie-toggle input:checked + .cookie-toggle__track::after {
  transform: translateX(20px);
  background: #fff;
}
.cookie-toggle--disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-modal__actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 140px;
}

@media (max-width: 400px) {
  .cookie-modal__box { padding: 24px; }
  .cookie-modal__actions { flex-direction: column; }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
