/* AstroDaily marketing site — tokens from the Flutter redesign. */
:root {
  --purple: #140f30;
  --mid-purple: #2d2175;
  --lavender: #e9e3fa;
  --lavender-soft: #f4f0fc;
  --lavender-track: #d6d4e6;
  --yellow: #ffc73c;
  --yellow-hover: #ffd56a;
  --off-white: #fff7e6;
  --ink: #140f30;
  --muted: #5c5678;
  --border: rgba(20, 15, 48, 0.1);
  --surface: #ffffff;
  --danger: #dc1114;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 18px 50px rgba(20, 15, 48, 0.08);
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--lavender-soft);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--mid-purple);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 252, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--purple);
}

.nav-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--purple);
  box-shadow: 0 8px 24px rgba(255, 199, 60, 0.35);
}

.btn-primary:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid rgba(20, 15, 48, 0.18);
}

.btn-outline:hover {
  border-color: var(--mid-purple);
  color: var(--mid-purple);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-xl {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* Hero — one composition */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, #ffffff 0%, transparent 55%),
    linear-gradient(180deg, var(--lavender) 0%, var(--lavender-soft) 55%, #ffffff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -160px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(255, 199, 60, 0.18), transparent 68%);
  pointer-events: none;
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-mark {
  width: 104px;
  height: 106px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 12px 28px rgba(20, 15, 48, 0.12));
  animation: rise-in 0.8s ease both;
}

.hero-brand {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--purple);
  margin-bottom: 18px;
  animation: rise-in 0.85s ease 0.08s both;
}

.hero-title {
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 500;
  color: var(--mid-purple);
  margin-bottom: 14px;
  animation: rise-in 0.85s ease 0.14s both;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 30px;
  line-height: 1.7;
  animation: rise-in 0.85s ease 0.2s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  animation: rise-in 0.85s ease 0.28s both;
}

/* Sections */
.section {
  padding: 88px 0;
  background: var(--surface);
}

.section-muted {
  background: var(--lavender-soft);
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  color: var(--purple);
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
}

.feature {
  padding-top: 8px;
}

.feature-mark {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--yellow);
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step {
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--lavender);
  color: var(--mid-purple);
  font-weight: 700;
  border-radius: 12px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.cta {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(233, 227, 250, 0.9), transparent 60%),
    var(--purple);
  color: var(--off-white);
}

.cta .section-title {
  color: var(--off-white);
}

.cta .section-subtitle {
  color: rgba(255, 247, 230, 0.72);
}

.cta-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(255, 247, 230, 0.62);
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 300px;
  margin-top: 10px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--mid-purple);
}

.footer-contact {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Policy / content pages */
.page {
  padding: 48px 0 88px;
  min-height: calc(100vh - var(--header-h) - 80px);
  background: var(--surface);
}

.page-header {
  margin-bottom: 36px;
}

.page-title {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.page-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.page-content {
  max-width: 720px;
}

.page-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--purple);
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--mid-purple);
  margin-top: 22px;
  margin-bottom: 8px;
}

.page-content p,
.page-content li {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.75;
}

.page-content ul {
  margin: 12px 0 12px 22px;
}

.page-content a {
  color: var(--mid-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mid-purple);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.back-link:hover {
  text-decoration: underline;
}

/* Delete / success */
.delete-page,
.success-page,
.not-found-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--lavender), transparent 70%),
    var(--lavender-soft);
}

.delete-card,
.success-card,
.not-found-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-soft);
}

.delete-card h1,
.success-card h1,
.not-found-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.delete-card p,
.success-card p,
.not-found-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.delete-card label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 8px;
}

.phone-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.phone-prefix {
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--lavender-soft);
  color: var(--muted);
}

.phone-input {
  flex: 1;
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
}

.phone-input:focus {
  outline: none;
  border-color: var(--mid-purple);
  box-shadow: 0 0 0 3px rgba(45, 33, 117, 0.12);
}

.delete-card button {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--purple);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, transform 0.2s;
}

.delete-card button:hover:not(:disabled) {
  background: var(--yellow-hover);
  transform: translateY(-1px);
}

.delete-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: -8px 0 16px;
}

.btn-home {
  display: inline-flex;
  margin-top: 8px;
}

.contact-block {
  display: grid;
  gap: 28px;
  max-width: 560px;
}

.contact-item h2 {
  margin-top: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-40px, -24px);
  }
}

@media (max-width: 900px) {
  .features-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--purple);
    border-radius: var(--radius);
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0 12px;
  }

  .nav.is-open {
    display: flex;
  }

  .header .btn {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 64px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }
}
