/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #07071a;
  --bg-mid:       #0d0d2b;
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-hover:  rgba(255, 255, 255, 0.07);
  --text:         #f0eeff;
  --text-muted:   rgba(240, 238, 255, 0.50);
  --accent:       #c9b8ff;
  --star-gold:    #f5e28a;
  --transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── STARRY CANVAS ── */
.star-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(7, 7, 26, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { text-decoration: none; }

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}

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

.nav-links { display: flex; gap: 36px; }

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: var(--transition);
}

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

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  flex-shrink: 0;
}

.lang-toggle:hover {
  background: var(--glass-hover);
  border-color: rgba(201, 184, 255, 0.25);
  color: var(--text);
}

.lang-divider { opacity: 0.3; }

.lang-active { color: var(--accent); }

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 28px 80px;
}

.hero-content { max-width: 680px; }

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0.85;
  animation: fadeUp 0.8s ease-out both;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 10vw, 100px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
  animation: fadeUp 0.8s ease-out 0.1s both;
}

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

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.7;
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 64px;
  animation: fadeUp 0.8s ease-out 0.4s both;
}

.btn-primary {
  display: inline-block;
  transition: var(--transition);
}

.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.appstore-badge {
  height: 50px;
  width: auto;
  display: block;
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeUp 0.8s ease-out 0.5s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}

.stat-key {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
}

/* ── SHARED SECTION STYLES ── */
.features, .testimonials, .download, .galaxy {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.85;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.section-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 520px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ── FEATURES ── */
.features {
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, transparent 0%, rgba(201, 184, 255, 0.03) 100%);
}

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

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 28px;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--glass-hover);
  border-color: rgba(201, 184, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 184, 255, 0.08);
}

.feature-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
  opacity: 0.8;
}

.feature-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

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

/* ── GALAXY SECTION ── */
.galaxy {
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, transparent 0%, rgba(201, 184, 255, 0.025) 50%, transparent 100%);
}

.galaxy-layout {
  max-width: 600px;
  margin: 0 auto;
}

/* ── STAR COUNT DISPLAY ── */
.star-count-display {
  text-align: center;
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.star-count-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.star-count-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ── STAR FORM ── */
.star-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 44px;
  transition: var(--transition);
}

.star-form:focus-within {
  border-color: rgba(201, 184, 255, 0.18);
  box-shadow: 0 0 60px rgba(201, 184, 255, 0.04);
}

.honeypot-field { display: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-input::placeholder {
  color: rgba(240, 238, 255, 0.2);
}

.form-input:focus {
  border-color: rgba(201, 184, 255, 0.35);
  background: rgba(201, 184, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(201, 184, 255, 0.06);
}

.btn-star {
  width: 100%;
  background: linear-gradient(135deg, rgba(201, 184, 255, 0.16), rgba(201, 184, 255, 0.07));
  border: 1px solid rgba(201, 184, 255, 0.28);
  border-radius: 14px;
  padding: 16px 32px;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
  margin-top: 8px;
}

.btn-star:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(201, 184, 255, 0.24), rgba(201, 184, 255, 0.12));
  border-color: rgba(201, 184, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 184, 255, 0.14);
}

.btn-star:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-star-loading {
  display: inline-block;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

/* ── SHAPE / ICON PICKER ── */
.shape-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.shape-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.shape-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: scale(1.12);
}

.shape-btn.selected {
  border-color: rgba(201, 184, 255, 0.55);
  background: rgba(201, 184, 255, 0.1);
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(201, 184, 255, 0.2);
}

/* ── COLOUR SWATCHES ── */
.color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  outline: none;
  flex-shrink: 0;
}

.color-swatch:hover {
  transform: scale(1.18);
}

.color-swatch.selected {
  border-color: rgba(255, 255, 255, 0.75);
  transform: scale(1.15);
  box-shadow: 0 0 14px 2px currentColor, 0 0 0 3px rgba(255,255,255,0.08);
}

/* ── FORM NOTE ── */
.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.65;
}

/* ── SUCCESS STATE ── */
.star-success {
  text-align: center;
  padding: 64px 40px;
  background: var(--glass);
  border: 1px solid rgba(201, 184, 255, 0.18);
  border-radius: 24px;
  animation: fadeUp 0.6s ease-out both;
}

.success-icon {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
  animation: successGlow 2.4s ease-in-out infinite;
}

@keyframes successGlow {
  0%, 100% { opacity: 0.5; transform: scale(1);    text-shadow: none; }
  50%       { opacity: 1;   transform: scale(1.08); text-shadow: 0 0 20px rgba(201, 184, 255, 0.5); }
}

.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.success-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── STAR TOOLTIP ── */
.star-tooltip {
  position: fixed;
  z-index: 200;
  background: rgba(10, 10, 35, 0.94);
  border: 1px solid rgba(201, 184, 255, 0.22);
  border-radius: 12px;
  padding: 12px 16px;
  display: none;
  pointer-events: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.tooltip-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.tooltip-dream {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  font-style: italic;
}

/* ── TESTIMONIALS ── */
.testimonials { border-top: 1px solid var(--glass-border); }

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

.testimonial-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
}

.testimonial-card:hover {
  background: var(--glass-hover);
  border-color: rgba(201, 184, 255, 0.2);
}

.t-featured {
  border-color: rgba(201, 184, 255, 0.25);
  background: rgba(201, 184, 255, 0.06);
}

.t-stars {
  font-size: 13px;
  color: var(--star-gold);
  letter-spacing: 3px;
}

.t-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
  opacity: 0.9;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 184, 255, 0.25), rgba(201, 184, 255, 0.08));
  border: 1px solid rgba(201, 184, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.t-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.t-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── DOWNLOAD CTA ── */
.download { border-top: 1px solid var(--glass-border); }

.download-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 80px 60px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201, 184, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.download-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  position: relative;
}

.download-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.65;
  position: relative;
}

.download .btn-primary {
  margin: 0 auto 16px;
  position: relative;
}

.download-note {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  position: relative;
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
}

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

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}

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

.footer-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .features-grid      { grid-template-columns: 1fr; }
  .hero-stats         { gap: 20px; }
  .download-card      { padding: 52px 28px; }
  .star-form          { padding: 36px 24px; }
  .form-row           { grid-template-columns: 1fr; }
  .star-success       { padding: 48px 24px; }
  .footer-inner       { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links       { flex-wrap: wrap; gap: 16px; }
  .nav-links          { display: none; }
  .star-count-number  { font-size: 56px; }
}
