/* ===========================
   Glaze Over — Brand Tokens
   =========================== */
:root {
  --color-primary: #6366F1;
  --color-primary-dark: #4338CA;
  --color-secondary: #00F5D4;
  --color-tertiary: #FF9F1C;
  --color-accent: #F72585;
  --color-bg: #F8FAFC;
  --color-bg-alt: #FFFFFF;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --color-card-bg: #FFFFFF;
  --color-card-shadow: rgba(99,102,241,.08);

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-width: 1120px;
  --radius: 16px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0B0F19;
    --color-bg-alt: #131927;
    --color-text: #F1F5F9;
    --color-text-muted: #94A3B8;
    --color-border: #1E293B;
    --color-card-bg: #1A2033;
    --color-card-shadow: rgba(0,0,0,.3);
  }
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

/* ===========================
   Layout Utilities
   =========================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.page-body {
  flex: 1;
}

/* ===========================
   Sunset Logo (CSS only)
   =========================== */
.logo-sunset {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.logo-sunset__half-circle {
  width: 36px;
  height: 18px;
  border-radius: 36px 36px 0 0;
  background: linear-gradient(180deg, #FF9F1C 0%, #F72585 100%);
}

.logo-sunset__horizon {
  width: 48px;
  height: 2px;
  border-radius: 1px;
  background: #818CF8;
  opacity: .3;
  margin-top: 0;
}

.logo-sunset--lg .logo-sunset__half-circle {
  width: 64px;
  height: 32px;
  border-radius: 64px 64px 0 0;
}

.logo-sunset--lg .logo-sunset__horizon {
  width: 84px;
  height: 3px;
  border-radius: 1.5px;
}

/* ===========================
   Navigation
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.nav__brand:hover { color: var(--color-text); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav__links a:hover { color: var(--color-primary); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

@media (max-width: 640px) {
  .nav__toggle { display: block; }

  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    gap: 16px;
  }

  .nav__links.open { display: flex; }
}

/* ===========================
   Hero
   =========================== */
.hero {
  text-align: center;
  padding: 80px 0 64px;
}

.hero__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero__title {
  font-size: 3rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero__tagline {
  font-size: 1.35rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero__description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.coming-soon {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  padding: 12px 36px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===========================
   Features
   =========================== */
.features {
  padding: 64px 0 80px;
}

.features__heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 2px 12px var(--color-card-shadow);
  transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--color-card-shadow);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card__text {
  font-size: .95rem;
  color: var(--color-text-muted);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  font-size: .875rem;
  color: var(--color-text-muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

.footer__links a { color: var(--color-text-muted); }
.footer__links a:hover { color: var(--color-primary); }

.footer__copy { text-align: right; }

@media (max-width: 640px) {
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__copy { text-align: center; }
}

/* ===========================
   Legal Pages (privacy, terms)
   =========================== */
.legal {
  padding: 48px 0 80px;
  max-width: 740px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.legal .legal__updated {
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal p,
.legal ul {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  word-break: break-all;
}

/* ===========================
   404 Page
   =========================== */
.error-page {
  text-align: center;
  padding: 120px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-tertiary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page__message {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .15s;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ===========================
   Responsive Tweaks
   =========================== */
@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero__title { font-size: 2rem; }
  .hero__tagline { font-size: 1.1rem; }
  .hero__description { font-size: 1rem; }
  .features { padding: 40px 0 56px; }
  .features__heading { font-size: 1.5rem; margin-bottom: 32px; }
  .legal { padding: 32px 24px 56px; }
  .legal h1 { font-size: 1.75rem; }
}
