/* Huezle Website — matches Midnight theme from app */

:root {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --accent: #6C63FF;
  --accent-glow: rgba(108, 99, 255, 0.25);
  --text: #ffffff;
  --subtext: #888;
  --border: #1e1e30;
  --cyan: #00BCD4;
  --magenta: #E91E63;
  --yellow: #FFC107;
  --black: #555555;
  --white-card: #F5F5F5;
  --radius: 12px;
  --max-width: 720px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Nav ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--subtext);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

/* ── Hero ── */

.hero {
  text-align: center;
  padding: 96px 0 64px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero h1 span {
  color: var(--accent);
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--subtext);
  margin-bottom: 40px;
}

.color-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.color-dot:nth-child(1) { background: var(--cyan); animation-delay: 0s; }
.color-dot:nth-child(2) { background: var(--magenta); animation-delay: 0.5s; }
.color-dot:nth-child(3) { background: var(--yellow); animation-delay: 1s; }
.color-dot:nth-child(4) { background: var(--black); animation-delay: 1.5s; }
.color-dot:nth-child(5) { background: var(--white-card); animation-delay: 2s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--subtext);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 24px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.store-badge:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  text-decoration: none;
}

.store-badge .icon {
  font-size: 1.4rem;
}

/* ── Features ── */

.features {
  border-top: 1px solid var(--border);
}

.features h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--subtext);
  line-height: 1.5;
}

/* ── How It Works ── */

.how-it-works {
  border-top: 1px solid var(--border);
}

.how-it-works h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.steps {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  max-width: 180px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.85rem;
  color: var(--subtext);
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

footer p {
  color: var(--subtext);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--subtext);
  font-size: 0.85rem;
}

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

/* ── Legal pages ── */

.legal {
  padding: 48px 0 80px;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--subtext);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal p, .legal li {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

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

/* ── Support page ── */

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.support-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.support-card p {
  color: var(--subtext);
  font-size: 0.95rem;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero .tagline { font-size: 1rem; }
  .steps { flex-direction: column; align-items: center; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.8rem; }
  section { padding: 48px 0; }
  .hero { padding: 64px 0 48px; }
}
