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

:root {
  --bg:        #09090f;
  --bg2:       #0f0f1a;
  --surface:   #14142a;
  --border:    rgba(255,255,255,0.07);
  --accent:    #c084fc;    /* violet */
  --accent2:   #818cf8;    /* indigo */
  --accent3:   #fb7185;    /* rose */
  --text:      #e2e8f0;
  --muted:     #64748b;
  --font-serif: 'DM Serif Display', serif;
  --font-sans:  'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Stars canvas ──────────────────────────────────────────────── */
#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Layout ─────────────────────────────────────────────────────── */
main { position: relative; z-index: 1; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192,132,252,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -60%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -60%) scale(1.1); }
}

.hero-inner {
  animation: fadeUp 1s ease both;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.name {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1.2;
  padding-bottom: 0.1em;
  background: linear-gradient(135deg, #e879f9 0%, #a78bfa 45%, #fb7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(232, 121, 249, 0.55));
  margin-bottom: 1.5rem;
}

.dot {
  color: var(--accent3);
  -webkit-text-fill-color: var(--accent3);
}

.tagline {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.75;
}

.tagline em {
  color: var(--text);
  font-style: italic;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── Sections ───────────────────────────────────────────────────── */
.section {
  padding: 4.5rem 0;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.section-sub {
  color: #64748b;
  margin-bottom: 3rem;
  max-width: 440px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.section.visible .section-label,
.section.visible .section-title,
.section.visible .section-sub {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Day grid ───────────────────────────────────────────────────── */
.day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.day-btn {
  padding: 0.65rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.day-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.day-btn span { position: relative; z-index: 1; }

.day-btn:hover {
  border-color: rgba(192,132,252,0.4);
  color: var(--text);
  transform: translateY(-2px);
}

.day-btn.selected {
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(135deg, rgba(192,132,252,0.25), rgba(129,140,248,0.25));
  box-shadow: 0 0 20px rgba(192,132,252,0.2);
}

/* ─── Time options ───────────────────────────────────────────────── */
.time-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.time-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.time-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-btn:hover {
  border-color: rgba(251,113,133,0.4);
  color: var(--text);
  transform: translateY(-2px);
}

.time-btn.selected {
  border-color: var(--accent3);
  color: #fff;
  background: linear-gradient(135deg, rgba(251,113,133,0.25), rgba(251,113,133,0.1));
  box-shadow: 0 0 20px rgba(251,113,133,0.15);
}

/* ─── Activity grid ──────────────────────────────────────────────── */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.activity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.6rem 0.75rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.activity-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,132,252,0.15), rgba(129,140,248,0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
}

.activity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192,132,252,0.35);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.activity-card:hover::after { opacity: 1; }

.activity-card.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(192,132,252,0.18), rgba(129,140,248,0.12));
  box-shadow: 0 0 30px rgba(192,132,252,0.2), 0 8px 30px rgba(0,0,0,0.3);
}

.activity-card.selected::after { opacity: 1; }

.activity-icon {
  font-size: 1.75rem;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.activity-card:hover .activity-icon,
.activity-card.selected .activity-icon {
  transform: scale(1.15);
}

.activity-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

/* ─── Note input ─────────────────────────────────────────────────── */
.note-input {
  width: 100%;
  min-height: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.note-input::placeholder { color: var(--muted); }

.note-input:focus {
  border-color: rgba(192,132,252,0.5);
  box-shadow: 0 0 20px rgba(192,132,252,0.08);
}

/* ─── Phone input ────────────────────────────────────────────────── */
.phone-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.phone-label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.phone-label em {
  color: var(--accent3);
  font-style: normal;
}

.phone-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-align: center;
  outline: none;
  width: 220px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input::placeholder { color: var(--muted); }

.phone-input:focus {
  border-color: rgba(251,113,133,0.5);
  box-shadow: 0 0 20px rgba(251,113,133,0.08);
}

/* ─── Submit ─────────────────────────────────────────────────────── */
.submit-section {
  text-align: center;
  padding-bottom: 10rem;
}

.submit-btn {
  position: relative;
  padding: 1.1rem 3.5rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 30px rgba(192,132,252,0.3);
}

.submit-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 50px rgba(192,132,252,0.5);
}

.submit-btn:active {
  transform: translateY(0) scale(0.98);
}

.submit-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  animation: rotateGlow 3s linear infinite;
}

.submit-btn:hover .submit-glow { opacity: 1; }

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.submit-text { position: relative; z-index: 1; }

.submit-hint {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Success overlay ────────────────────────────────────────────── */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,9,15,0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.success-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.success-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 60px rgba(192,132,252,0.2);
}

.success-overlay.active .success-box {
  transform: scale(1);
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: wiggle 1s ease 0.4s both;
}

@keyframes wiggle {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-10deg); }
  50%  { transform: rotate(10deg); }
  75%  { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.success-box h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.success-box p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.success-close {
  padding: 0.65rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.success-close:hover {
  background: var(--surface);
  border-color: var(--accent);
}

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

/* ─── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 2px; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .submit-btn {
    width: 100%;
  }
}
