/* Capsuline Landing — palette from AppColors.swift */

:root {
  --bg-deep: #0f0505;
  --bg-elevated: #1a0808;
  --surface: #1f0a0a;
  --surface-border: #2d1010;
  --accent: #ff3131;
  --accent-glow: #ff4a4a;
  --accent-soft: rgba(255, 49, 49, 0.2);
  --burgundy: #3a1212;
  --text-primary: #f2e8e8;
  --text-secondary: #a89090;
  --text-tertiary: #6b5555;
  --success: #4ade80;
  --warning: #f5c542;
  --radius: 16px;
  --radius-sm: 12px;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 72px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-glow);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

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

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

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

.container--narrow {
  width: min(100% - 32px, 760px);
}

/* Ambient glow */
.glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
}

.glow--hero {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 49, 49, 0.14) 0%, transparent 70%);
}

.glow--features {
  width: 400px;
  height: 400px;
  bottom: 30%;
  left: -120px;
  background: radial-gradient(circle, rgba(58, 18, 18, 0.5) 0%, transparent 70%);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 5, 5, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 16, 16, 0.8);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.logo:hover {
  color: var(--text-primary);
  opacity: 0.9;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #cc2020);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 24px rgba(255, 49, 49, 0.35);
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav a.is-active {
  color: var(--accent-glow);
}

.nav__cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #cc2020);
  color: var(--text-primary) !important;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(255, 49, 49, 0.3);
}

.nav__cta:hover {
  color: #fff !important;
  box-shadow: 0 6px 28px rgba(255, 49, 49, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn__icon {
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #cc2020);
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(255, 49, 49, 0.35);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 49, 49, 0.45);
}

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

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 74, 74, 0.4);
  background: rgba(255, 49, 49, 0.06);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 48px) 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 49, 49, 0.25);
  background: rgba(255, 49, 49, 0.08);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--accent-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero__desc {
  max-width: 580px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  max-width: 560px;
}

.stat-card {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.stat-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-glow);
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.3;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.section--about {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 8, 8, 0.6) 50%, transparent 100%);
}

.section--privacy,
.section--contact {
  border-top: 1px solid var(--surface-border);
}

.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  max-width: 720px;
}

.section__lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 48px;
}

.privacy-meta {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 50%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(255, 74, 74, 0.35);
  box-shadow: 0 8px 40px rgba(255, 49, 49, 0.12);
  transform: translateY(-3px);
}

.feature-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 12px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.feature-card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.about-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
}

.about-card--highlight {
  border-color: rgba(255, 74, 74, 0.3);
  background: linear-gradient(145deg, var(--burgundy), var(--surface));
}

.about-card__icon {
  display: block;
  font-size: 1.2rem;
  color: var(--accent-glow);
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-tagline {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-align: center;
  padding-top: 16px;
}

/* Policy */
.policy-blocks {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.policy-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.policy-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.policy-block ul {
  margin: 8px 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.policy-block li {
  margin-bottom: 6px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact-card:hover {
  border-color: rgba(255, 74, 74, 0.35);
  box-shadow: 0 4px 24px rgba(255, 49, 49, 0.1);
}

.contact-card--static {
  cursor: default;
}

.contact-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.contact-card__value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
}

.contact-card:hover .contact-card__value {
  color: var(--accent-glow);
}

.contact-card--static:hover .contact-card__value {
  color: var(--text-primary);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 0 40px;
  border-top: 1px solid var(--surface-border);
  background: var(--bg-elevated);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: rgba(15, 5, 5, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--surface-border);
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-bottom: 64px;
  }

  .stats {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

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

@media (max-width: 400px) {
  .hero__title {
    font-size: 2.6rem;
  }
}

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

  .feature-card:hover,
  .btn--primary:hover {
    transform: none;
  }
}
