/* ============================================================
   Daraxis — daraxis.com
   Dark-themed, mobile-first static site for app landing pages.
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #09090b;
  --bg-card:     #18181b;
  --bg-card-alt: #1e1b2e;
  --border:      #27272a;
  --text:        #f4f4f5;
  --text-muted:  #a1a1aa;
  --accent:      #8b5cf6;
  --accent-alt:  #6366f1;
  --gradient:    linear-gradient(135deg, #8b5cf6, #6366f1, #3b82f6);
  --radius:      12px;
  --max-w:       960px;
}

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; }

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

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,9,11,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.nav-brand span { color: var(--text-muted); font-weight: 400; }
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { color: var(--text-muted); font-size: .875rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 5rem 0 3rem;
}
.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 1.5rem;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* --- Store Badges --- */
.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.badge-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  transition: border-color .2s, background .2s;
}
.badge-link:hover {
  border-color: var(--accent);
  background: var(--bg-card-alt);
  text-decoration: none;
}
.badge-link .badge-icon { font-size: 1.25rem; }

/* --- Features --- */
.features {
  padding: 3rem 0;
}
.features h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-card .icon {
  font-size: 1.75rem;
  margin-bottom: .75rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .35rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: .9rem;
}

/* --- Download CTA --- */
.download {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.download h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.download p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .8125rem;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* --- Legal / Content Pages --- */
.legal {
  padding: 3rem 0 4rem;
}
.legal h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .25rem;
}
.legal .updated {
  color: var(--text-muted);
  font-size: .8125rem;
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: .5rem;
}
.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: .35rem;
}
.legal p, .legal li {
  color: var(--text-muted);
  font-size: .9375rem;
  margin-bottom: .5rem;
}
.legal ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.legal a { color: var(--accent); }

/* --- Support Page --- */
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.support-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.support-card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.support-card p { color: var(--text-muted); font-size: .9375rem; margin-bottom: 1rem; }
.support-card .email-link {
  display: inline-block;
  padding: .625rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9375rem;
  transition: opacity .2s;
}
.support-card .email-link:hover { opacity: .85; text-decoration: none; }

/* --- Responsive --- */
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 3.25rem; }
}
