@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Outfit:wght@300;400;500&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:        #07080f;
  --surface:   #0f1120;
  --surface2:  #161829;
  --border:    rgba(255,255,255,0.07);

  --purple:    #a78bfa;
  --blue:      #38bdf8;
  --pink:      #f472b6;

  --text:      #f0f0f8;
  --muted:     #6b7280;
  --faint:     #2a2d3e;

  --font-head: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;

  --r-sm:  10px;
  --r-md:  18px;
  --r-lg:  28px;
  --r-xl:  40px;
  --r-pill: 999px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow: hidden;
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

#wave-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(167,139,250,0.18) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: orb-drift 9s ease-in-out infinite alternate;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, transparent 70%);
  top: 30%;
  right: -80px;
  animation: orb-drift 12s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(244,114,182,0.12) 0%, transparent 70%);
  bottom: 10%;
  left: 20%;
  animation: orb-drift 7s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(30px, 20px); }
}

.wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 38px;
  height: 24px;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skip-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}

.skip-link:hover { color: var(--text); }

.slides-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 12px 0 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.slide.leaving {
  opacity: 0;
  transform: translateX(-40px);
}

.slide-visual {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.phone-frame {
  width: 200px;
  height: 310px;
  background: var(--surface);
  border-radius: 32px;
  border: 1.5px solid rgba(255,255,255,0.1);
  padding: 14px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 0 0 4px 4px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1040 0%, #0d1428 50%, #0a1a10 100%);
}

.mock-video {
  width: 100%;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  position: relative;
}

.mock-v1 {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7) 0%,
    transparent 50%
  );
}

.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  margin-bottom: 4px;
}

.mock-bar {
  height: 7px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.25);
}

.mock-bar.short  { width: 55%; }
.mock-bar.medium { width: 75%; }

.mock-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.mock-action-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.08);
}

.float-chip {
  position: absolute;
  background: rgba(15,17,32,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.chip-1 {
  top: 18px;
  right: -8px;
  animation: chip-float 4s ease-in-out infinite;
  color: var(--blue);
}

.chip-2 {
  bottom: 30px;
  left: -8px;
  animation: chip-float 5s ease-in-out infinite 1s;
  color: var(--pink);
}

.chip-3 {
  bottom: 20px;
  right: 0;
  animation: chip-float 4.5s ease-in-out infinite 0.5s;
  color: var(--purple);
}

.chip-4 {
  top: 20px;
  left: 0;
  animation: chip-float 4s ease-in-out infinite 1.5s;
  color: var(--blue);
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.creators-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.creator-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  animation: card-in 0.5s ease both;
}

.cc-1 { animation-delay: 0.05s; }
.cc-2 { animation-delay: 0.15s; }
.cc-3 { animation-delay: 0.25s; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.creator-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cc-1 .creator-thumb { background: linear-gradient(135deg, var(--purple), #818cf8); }
.cc-2 .creator-thumb { background: linear-gradient(135deg, var(--blue), #06b6d4); }
.cc-3 .creator-thumb { background: linear-gradient(135deg, var(--pink), #fb923c); }

.creator-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.creator-name-bar {
  height: 8px;
  width: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--r-pill);
}

.creator-subs {
  height: 6px;
  width: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-pill);
}

.follow-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  white-space: nowrap;
}

.follow-btn.seguindo {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.record-ui {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.record-preview {
  width: 180px;
  height: 240px;
  border-radius: 24px;
  background: linear-gradient(160deg, #1c1033, #0d2030, #111a0f);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.record-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec-btn-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--pink);
  animation: rec-ring-pulse 1.8s ease-in-out infinite;
}

@keyframes rec-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.18); opacity: 0.2; }
}

.rec-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(244,114,182,0.5);
}

.rec-button svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.rec-chips {
  display: flex;
  gap: 8px;
}

.rec-chip {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.rec-chip.active-chip {
  background: rgba(167,139,250,0.15);
  border-color: rgba(167,139,250,0.4);
  color: var(--purple);
}

.slide-text {
  padding-bottom: 8px;
}

.slide-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.slide-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 12px;
}

.slide-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
}

.bottom-area {
  padding: 20px 0 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--faint);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot.active {
  width: 24px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.cta-area,
.auth-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.3s ease;
}

.hidden {
  display: none !important;
}

.btn-next {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 28px;
  border-radius: var(--r-xl);
  border: none;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 32px rgba(167,139,250,0.3);
}

.btn-next svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-next:active {
  transform: scale(0.97);
  box-shadow: 0 4px 16px rgba(167,139,250,0.2);
}

.btn-signup {
  width: 100%;
  padding: 17px 28px;
  border-radius: var(--r-xl);
  border: none;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(167,139,250,0.3);
  transition: transform 0.18s ease;
}

.btn-signup:active { transform: scale(0.97); }

.btn-login {
  width: 100%;
  padding: 16px 28px;
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-login:hover {
  background: var(--surface);
  border-color: rgba(255,255,255,0.15);
}

.terms {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  padding: 0 8px;
}

.terms a {
  color: var(--purple);
  text-decoration: none;
}

.terms a:hover { text-decoration: underline; }

@media (min-height: 750px) {
  .phone-frame {
    width: 220px;
    height: 340px;
  }
}

@media (max-height: 650px) {
  .top-bar { padding-top: 28px; }
  .phone-frame { width: 160px; height: 240px; }
  .slide { gap: 18px; }
  .slide-title { font-size: 22px; }
  .creators-grid { gap: 7px; }
  .record-preview { width: 140px; height: 180px; }
}

@media (min-width: 480px) {
  .scene {
    background: #04050a;
  }

  .wrapper {
    margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}