/* Husha landing — premium, dark, brand-consistent. Mobile-first. */

:root {
  --night-deep: #0B0A1F;
  --night-deep-2: #12102E;
  --violet-night: #1C1640;
  --violet-night-2: #241A4D;
  --gradient-top: #1B1145;
  --gradient-mid: #4A3A8C;
  --gradient-warm: #C97B9E;
  --gradient-peach: #E8A07A;
  --lavender: #9D8DF1;
  --lavender-bright: #B3A4FF;
  --rose: #E08BB0;
  --peach: #F0B189;
  --text: #F2F0FA;
  --text-muted: #A9A3C7;
  --border: rgba(242, 240, 250, 0.14);
  --hairline: rgba(242, 240, 250, 0.06);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--night-deep);
  line-height: 1.6;
  overflow-x: hidden;
}

/* The signature "nocturnal ASMR sky" gradient — fills behind sections. */
.hero, .footer-cta {
  background:
    radial-gradient(ellipse at top, rgba(157, 141, 241, 0.15) 0%, transparent 60%),
    linear-gradient(180deg,
      var(--gradient-top) 0%,
      var(--gradient-mid) 45%,
      var(--gradient-warm) 78%,
      var(--gradient-peach) 100%
    );
}

.section-dark { background: var(--night-deep); }
.section-darker { background: linear-gradient(180deg, var(--night-deep) 0%, #050410 100%); }

a { color: inherit; text-decoration: none; }

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

.serif { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 500; }

/* --- Navigation --- */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 24px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 28px; width: auto; display: block; }

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

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* --- Hero --- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 14%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 28% 22%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 48% 8%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 72% 18%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 86% 28%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1.5px 1.5px at 35% 35%, rgba(255,255,255,0.6), transparent);
  background-size: 100% 50%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Mascot is the brand anchor — make it large and let it glow softly. */
.hero-mascot-wrap {
  position: relative;
  width: clamp(280px, 38vw, 380px);
  height: clamp(280px, 38vw, 380px);
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mascot-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    circle at 50% 55%,
    rgba(240, 177, 137, 0.55) 0%,
    rgba(232, 160, 122, 0.25) 28%,
    transparent 60%
  );
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 4.2s ease-in-out infinite;
}

.hero-mascot {
  position: relative;
  width: 100%;
  height: 100%;
  animation: float 4s ease-in-out infinite;
  z-index: 1;
}

.hero-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(11, 10, 31, 0.55));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

/* Allow keyword emphasis inside H1/H2 to stay Fraunces italic without a colour break. */
.hero h1 em,
.section-title em,
.section-title-left em,
.footer-cta h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--peach);
  background: linear-gradient(180deg, var(--gradient-peach) 0%, var(--rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-overline {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text);
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 999px;
  background: var(--lavender-bright);
  color: var(--night-deep);
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 8px 30px rgba(157, 141, 241, 0.55);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(157, 141, 241, 0.7);
}

.cta-secondary {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Sections --- */

section { padding: 100px 0; }

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 64px;
}

/* --- How it works --- */

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

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: linear-gradient(180deg, var(--violet-night) 0%, var(--violet-night-2) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}

.step-mascot {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}

.step-mascot img { width: 100%; height: 100%; object-fit: contain; }

.step-number {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--peach);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Features grid + side mascot --- */

.section-title-left {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-lead-left {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 40px;
}

.features-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}

.features-aside {
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-mascot {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  position: relative;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(157, 141, 241, 0.35));
}

.features-mascot::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 50% 55%, rgba(157, 141, 241, 0.3) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

.features-mascot img { width: 100%; height: 100%; object-fit: contain; }

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .features-container { grid-template-columns: 1fr; gap: 32px; }
  .features-aside { order: -1; }
  .features-mascot { max-width: 220px; }
  .section-title-left, .section-lead-left { text-align: center; margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  background: var(--hairline);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(157, 141, 241, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lavender);
  font-weight: 700;
}

.feature h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Footer CTA --- */

.footer-cta {
  text-align: center;
  padding: 100px 0;
}

.footer-cta-mascot {
  width: clamp(150px, 22vw, 200px);
  height: clamp(150px, 22vw, 200px);
  margin: 0 auto 24px;
  animation: float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgba(11, 10, 31, 0.45));
}

.footer-cta-mascot img { width: 100%; height: 100%; object-fit: contain; }

.footer-cta h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
  line-height: 1.1;
}

.footer-cta p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* --- Footer --- */

.footer {
  background: #050410;
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo img { height: 22px; opacity: 0.9; }

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* --- Legal pages (privacy, terms, support) --- */

.legal {
  background: var(--night-deep);
  padding: 140px 0 80px;
  min-height: 100vh;
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 8px;
  line-height: 1.1;
}

.legal .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 48px;
}

.legal h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin: 40px 0 12px;
  color: var(--text);
}

.legal h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--text);
}

.legal p, .legal li {
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(242, 240, 250, 0.85);
  margin-bottom: 14px;
}

.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 6px; }

.legal a { color: var(--lavender-bright); text-decoration: underline; }
