/* Dose Doubler — site styles. Cosmic theme matches the in-app aesthetic. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #e6ecff;
  background: #050818;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(89, 53, 200, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 102, 41, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #0a0e2a 0%, #050818 60%, #02030c 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Subtle starfield */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.7) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 87% 22%, rgba(255,255,255,0.55) 50%, transparent 100%),
    radial-gradient(1px 1px at 33% 67%, rgba(255,255,255,0.5) 50%, transparent 100%),
    radial-gradient(2px 2px at 73% 81%, rgba(255,255,255,0.6) 50%, transparent 100%),
    radial-gradient(1px 1px at 50% 35%, rgba(255,255,255,0.4) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 8% 82%, rgba(255,255,255,0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 95% 50%, rgba(255,255,255,0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 22% 92%, rgba(255,255,255,0.45) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

header.brand {
  text-align: center;
  margin-bottom: 48px;
}

header.brand .icon {
  width: 144px;
  height: 144px;
  border-radius: 32px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 12px 40px rgba(80, 130, 255, 0.4);
}

header.brand h1 {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #c8defc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

header.brand h1 .accent {
  background: linear-gradient(180deg, #ffe966 0%, #ffae1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

header.brand .tagline {
  margin-top: 12px;
  font-size: 16px;
  color: #8ed0ff;
  letter-spacing: 0.04em;
}

/* Page hero (landing) */
.hero {
  text-align: center;
  padding: 24px 0 36px;
}

.hero p {
  font-size: 18px;
  color: #b9c7ee;
  max-width: 540px;
  margin: 0 auto 28px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease;
}

.cta:active { transform: scale(0.98); }

.cta.primary {
  background: linear-gradient(180deg, #ffc82e 0%, #ff8019 100%);
  color: #2a1404;
  box-shadow: 0 8px 24px rgba(255, 130, 30, 0.4);
}

.cta.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #cde0ff;
  border: 1px solid rgba(140, 200, 255, 0.4);
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 40px 0;
}

.feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(140, 200, 255, 0.18);
  border-radius: 16px;
  padding: 20px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #ffffff;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: #9fb1da;
}

/* Article (privacy / support) */
article {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(140, 200, 255, 0.18);
  border-radius: 20px;
  padding: 36px;
  margin-top: 12px;
}

article h2 {
  font-size: 26px;
  margin: 32px 0 12px;
  color: #ffffff;
  font-weight: 700;
}

article h2:first-child { margin-top: 0; }

article p, article li {
  color: #c1cfee;
  font-size: 15px;
  line-height: 1.65;
}

article a {
  color: #66c8ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

article a:hover { color: #aedeff; }

article .muted {
  color: #7d8db5;
  font-size: 14px;
}

/* Nav */
nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 32px 0 0;
  font-size: 14px;
}

nav a {
  color: #8ea4d4;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

nav a:hover { color: #cfdcff; }

/* Footer */
footer {
  text-align: center;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(140, 200, 255, 0.14);
  color: #6c7da4;
  font-size: 13px;
}

footer a { color: #8ea4d4; text-decoration: none; }

@media (max-width: 540px) {
  main { padding: 40px 18px 60px; }
  header.brand h1 { font-size: 44px; }
  header.brand .icon { width: 112px; height: 112px; border-radius: 26px; }
  article { padding: 24px; border-radius: 16px; }
  .hero p { font-size: 16px; }
}
