:root {
  --bg: #0d0d0f;
  --surface: #1c1c1f;
  --surface-elevated: #29292e;
  --accent: #e60a14;
  --accent-secondary: #a640f2;
  --text-primary: #ffffff;
  --text-secondary: #a6a6a6;
  --text-tertiary: #737373;
  --radius: 12px;
  --radius-lg: 24px;
  --max-width: 720px;
  --max-width-wide: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2rem, var(--max-width-wide));
}

.site-footer {
  padding: 2rem 1rem 2.5rem;
  border-top: 1px solid var(--surface-elevated);
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.site-footer__links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--coming-soon {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent));
}

.badge--early-access {
  color: #fff;
  background: var(--accent-secondary);
}

/* Landing */

.landing {
  position: relative;
  overflow: hidden;
}

.landing__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(230, 10, 20, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(166, 64, 242, 0.12), transparent 55%);
}

.landing__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 640px);
  padding: 4rem 1rem 3rem;
  text-align: center;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(140px, 28vw, 180px);
  height: clamp(140px, 28vw, 180px);
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.logo {
  height: clamp(80px, 16vw, 104px);
  width: auto;
  margin-left: -4px;
}

.landing__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing__tagline {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.5;
}

.landing__cta {
  margin: 2rem auto 0;
  max-width: 22rem;
}

.landing__cta-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

.features {
  padding: 2rem 1rem 4rem;
}

.features__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-elevated);
  border-radius: var(--radius);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  background: var(--surface-elevated);
  border-radius: 10px;
  color: var(--accent);
  font-size: 1.25rem;
}

.feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Legal pages */

.legal-header {
  padding: 3rem 1rem 1.5rem;
  border-bottom: 1px solid var(--surface-elevated);
}

.legal-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-header__back:hover {
  color: var(--accent);
}

.legal-header__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-header__updated {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.legal-content {
  padding: 2.5rem 1rem 4rem;
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #ff4d55;
}
