/* ========================================
   VESTIGE — Landing Page Styles
   Dark premium, serif/italic editorial
   Matching Landio's color/tone direction
   ======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #0D0D0F;
  color: #909090;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: rgba(13, 13, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: #D8D8D8;
  letter-spacing: 0.02em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: transparent;
  color: #D8D8D8;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-bg {
  flex: 1;
  background-image: url('hero_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  display: none;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 64px 80px;
  gap: 32px;
  max-width: 50%;
}

/* --- Scroll Arrow --- */
.scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #666666;
  text-decoration: none;
  animation: bounceDown 2s ease-in-out infinite;
  transition: color 0.2s ease;
}

.scroll-arrow:hover {
  color: #D8D8D8;
}

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

/* --- Section Divider --- */
.section-divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto 48px;
}

/* --- Headline --- */
.headline {
  font-family: 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  background: radial-gradient(ellipse at center, #E0E0E0 0%, #6B6B6B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.headline-rotating {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  display: inline-block;
  width: 160px;
  text-align: right;
  -webkit-text-fill-color: #D8D8D8;
  color: #D8D8D8;
  margin-right: 4px;
}

.headline-static {
  /* regular weight, not italic */
}

.headline-bottom {
  letter-spacing: -0.04em;
}

/* --- Beat 1 Section --- */
.beat1-section {
  padding: 40px 24px;
  text-align: center;
}

.beat1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: #B0B0B0;
  font-weight: 400;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.beat1.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Signup Form --- */
.signup-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 500px;
  padding: 6px 6px 6px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 60px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.6s ease-out 1.1s forwards;
  transition: border-color 0.2s ease;
}

.signup-form:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
}

.signup-input {
  flex: 1;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  color: #D8D8D8;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
}

.signup-input::placeholder {
  color: #666666;
}

.signup-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  background: #D8D8D8;
  color: #0D0D0F;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.signup-btn:hover {
  background: #E8E8E8;
}

.signup-btn:active {
  transform: scale(0.98);
}

.btn-arrow {
  flex-shrink: 0;
}

/* --- Social Proof --- */
.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1.4s forwards;
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #0D0D0F;
  margin-right: -10px;
  object-fit: cover;
}

.avatar:last-child {
  margin-right: 0;
}

.social-proof-text {
  font-size: 14px;
  color: #888888;
}

.social-proof-text strong {
  color: #B0B0B0;
  font-weight: 500;
}

/* --- Stat Section --- */
.stat-section {
  padding: 40px 24px;
  text-align: center;
}

.stat-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stat-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 80px;
  font-weight: 400;
  color: #D8D8D8;
  line-height: 1;
  margin-bottom: 16px;
}

.stat-text {
  font-size: 20px;
  color: #909090;
  max-width: 480px;
  margin: 0 auto 12px;
  line-height: 1.5;
}

.stat-source {
  font-size: 14px;
  color: #666666;
}

/* --- Bridge Section --- */
.bridge-section {
  padding: 40px 24px 80px;
  text-align: center;
}

.bridge-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: #909090;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.bridge-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.vestige-name {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: #D8D8D8;
  font-size: 22px;
}

/* --- Footer --- */
.footer {
  padding: 40px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: #666666;
}

.footer-copy {
  font-size: 14px;
  color: #666666;
}

/* --- Questionnaire --- */
.questionnaire {
  display: none;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 64px 80px;
  max-width: 50%;
}

.questionnaire.active {
  display: flex;
}

.q-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.q-progress-bar {
  height: 100%;
  width: 0%;
  background: #D8D8D8;
  transition: width 0.4s ease;
}

.q-inner {
  width: 100%;
  max-width: 460px;
}

.q-step {
  display: none;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.q-step.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.q-step.fade-out {
  opacity: 0;
  transform: translateY(-16px);
}

.q-intro-text {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  color: #D8D8D8;
  line-height: 1.4;
}

.q-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: #D8D8D8;
  line-height: 1.5;
  text-align: left;
}

.q-text-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #D8D8D8;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.q-text-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.q-text-input::placeholder {
  color: #555555;
}

.q-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #D8D8D8;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.q-textarea:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.q-option {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #B0B0B0;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.q-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #D8D8D8;
}

.q-option.selected {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #D8D8D8;
}

.q-next-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 28px;
  background: #D8D8D8;
  color: #0D0D0F;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.q-next-btn:hover {
  background: #E8E8E8;
}

.q-thankyou-text {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  color: #D8D8D8;
  line-height: 1.3;
}

.q-thankyou-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  color: #888888;
  line-height: 1.5;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav {
    padding: 16px 24px;
  }

  .nav-logo {
    font-size: 18px;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    padding: 100px 24px 60px;
    text-align: center;
    align-items: center;
  }

  .hero-bg {
    min-height: 50vh;
  }

  .questionnaire {
    max-width: 100%;
    padding: 100px 24px 60px;
  }

  .q-label {
    font-size: 18px;
    text-align: center;
  }

  .q-next-btn {
    align-self: center;
  }

  .headline {
    font-size: 36px;
    text-align: center;
  }

  .headline-rotating {
    width: 90px;
  }

  .beat1 {
    font-size: 16px;
  }

  .signup-form {
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    border-radius: 16px;
    padding: 12px;
  }

  .signup-input {
    height: 44px;
    padding: 0 12px;
    margin-bottom: 8px;
  }

  .signup-btn {
    border-radius: 50px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    justify-content: center;
    width: 100%;
  }

  .stat-number {
    font-size: 56px;
  }

  .stat-text {
    font-size: 18px;
  }

  .bridge-text {
    font-size: 18px;
  }

  .footer {
    padding: 32px 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .headline {
    font-size: 30px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
