/* Reelio Design System */

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

:root {
  --bg: #07070b;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --surface-3: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #b9b9c8;
  --soft: #e9e9ef;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #ff3d6e;
  --accent-2: #7c4dff;
  --accent-glow: rgba(255, 61, 110, 0.28);
  --purple-glow: rgba(124, 77, 255, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-sm: 0 12px 40px rgba(0, 0, 0, 0.22);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-full: 999px;
  --container: 1120px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, var(--accent-glow), transparent 32rem),
    radial-gradient(circle at 88% 18%, var(--purple-glow), transparent 34rem),
    radial-gradient(circle at 50% 100%, rgba(124, 77, 255, 0.12), transparent 40rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

/* ── Layout ── */

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: clamp(48px, 8vw, 80px) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── Typography ── */

.eyebrow {
  margin: 0 0 12px;
  color: #ff85a3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(28px, 4.5vw, 44px);
}

h3 {
  font-size: clamp(18px, 2.5vw, 22px);
}

.lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2.5vw, 19px);
  max-width: 640px;
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Header / Nav ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 7, 11, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 28px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.18s ease;
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 99;
  background: rgba(7, 7, 11, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.18s ease, color 0.18s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--text);
  background: var(--surface-2);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 16px 40px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 20px 48px rgba(255, 61, 110, 0.36);
}

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

.btn-secondary:hover {
  background: var(--surface-3);
}

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

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-sm {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 13px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ── Cards ── */

.glass-card {
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 32px);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 61, 110, 0.3);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 61, 110, 0.2), rgba(124, 77, 255, 0.2));
  border: 1px solid var(--border);
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.policy-card {
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 32px);
}

.policy-card h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.policy-card p,
.policy-card li {
  color: var(--muted);
  font-size: 15px;
}

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

.policy-card li + li {
  margin-top: 8px;
}

.step-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-number {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 900;
  font-size: 18px;
}

.step-card h3 {
  margin-bottom: 6px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ── Grids ── */

.grid {
  display: grid;
  gap: 20px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── Hero ── */

.hero {
  padding: clamp(56px, 10vw, 100px) 0 clamp(48px, 8vw, 72px);
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero-visual {
  position: relative;
}

.hero-mockup {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 36px;
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, var(--accent-glow), transparent 50%),
    radial-gradient(circle at 70% 80%, var(--purple-glow), transparent 50%);
}

.mockup-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.mockup-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.mockup-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mockup-title {
  font-size: 22px;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: -0.03em;
}

.floating-badge {
  position: absolute;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: rgba(7, 7, 11, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.floating-badge.top-right {
  top: 16%;
  right: -8%;
  animation: float 4s ease-in-out infinite;
}

.floating-badge.bottom-left {
  bottom: 20%;
  left: -10%;
  animation: float 4s ease-in-out infinite 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── Safety / CTA banners ── */

.safety-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 56px);
  background:
    linear-gradient(135deg, rgba(255, 61, 110, 0.14), rgba(124, 77, 255, 0.14)),
    var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.safety-banner::before {
  content: "";
  position: absolute;
  inset: -100px auto auto 50%;
  width: 400px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.safety-banner h2,
.safety-banner p {
  position: relative;
}

.safety-banner p {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.safety-banner .btn {
  position: relative;
  margin-top: 28px;
}

/* ── Page header (inner pages) ── */

.page-hero {
  padding: clamp(48px, 8vw, 72px) 0 clamp(32px, 5vw, 48px);
  text-align: center;
}

.page-hero .lead {
  margin-left: auto;
  margin-right: auto;
}

.page-content {
  padding-bottom: clamp(48px, 8vw, 80px);
}

/* ── Legal / policy content ── */

.legal-meta {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 61, 110, 0.12);
  color: #ffb1c3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.legal-section + .legal-section {
  margin-top: 20px;
}

.contact-box {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 61, 110, 0.1), rgba(124, 77, 255, 0.1));
  border: 1px solid var(--border);
  text-align: center;
}

.contact-box a {
  color: var(--accent);
  font-weight: 800;
  font-size: clamp(16px, 3vw, 20px);
  word-break: break-all;
}

.contact-box a:hover {
  text-decoration: underline;
}

.path-box {
  margin: 14px 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 15px;
}

/* ── 404 Page ── */

body.error-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.error-page {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vw, 80px) 0;
}

.error-card {
  width: min(720px, 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(36px, 7vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.error-card::before {
  content: "";
  position: absolute;
  inset: -120px auto auto 50%;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
  pointer-events: none;
}

.error-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 48px var(--accent-glow);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.error-icon svg {
  width: 44px;
  height: 44px;
  color: white;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 16px 48px var(--accent-glow);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 56px rgba(255, 61, 110, 0.42);
  }
}

.error-code {
  position: relative;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 61, 110, 0.14);
  color: #ffb1c3;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 16px;
}

.error-card h1 {
  position: relative;
  font-size: clamp(32px, 6vw, 52px);
}

.error-card .lead {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.error-card .btn-group {
  position: relative;
  justify-content: center;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 7, 11, 0.6);
  padding: clamp(40px, 6vw, 56px) 0 clamp(28px, 4vw, 36px);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: clamp(28px, 5vw, 48px);
  margin-bottom: 36px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 800;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s ease;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ── Utilities ── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mockup {
    max-width: 300px;
  }

  .floating-badge {
    display: none;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
