/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

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

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background: #0a0a0a;
  color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Header ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.header-code-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 4px 4px 4px 20px;
  transition: border-color 0.2s, background 0.2s;
}

.header-code-form:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.header-code-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.875rem;
  width: 160px;
  letter-spacing: 0.15em;
  text-align: center;
}

.header-code-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.header-join-btn {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
}

.header-join-btn.active {
  background: #fff;
  color: #000;
}

.header-join-btn.active:hover {
  background: rgba(255, 255, 255, 0.9);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-login {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.header-login:hover {
  color: #fff;
}

.header-signup {
  font-size: 0.875rem;
  font-weight: 500;
  background: #fff;
  color: #000;
  padding: 6px 16px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.header-signup:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ── Hero Section ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 16px 80px;
  overflow: hidden;
}

/* Video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transform: scale(1.1);
}

/* Ambient glow */
.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 768px;
  height: 500px;
  background: rgba(99, 102, 241, 0.1);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1024px;
  width: 100%;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(to right, #818cf8, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  padding-right: 16px;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 768px;
  margin: 0 auto 48px;
}

/* ── Code Input (hero) ───────────────────────────── */
.hero-code-form {
  position: relative;
  max-width: 448px;
  width: 100%;
  margin: 0 auto 64px;
  display: flex;
  align-items: center;
}

.hero-code-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 16px 96px 16px 24px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  text-align: center;
  outline: none;
  transition: all 0.2s;
}

.hero-code-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  font-family: "Inter", sans-serif;
}

.hero-code-input:focus {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
}

.hero-join-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  padding: 0 24px;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
}

.hero-join-btn.active {
  background: #fff;
  color: #000;
}

.hero-join-btn.active:hover {
  background: rgba(236, 254, 255, 1);
}

/* ── Feedback Icons ──────────────────────────────── */
.feedback-icons {
  display: flex;
  justify-content: center;
  gap: 32px;
  opacity: 0.8;
  margin-bottom: 64px;
}

.feedback-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feedback-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.feedback-circle.helpful {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.feedback-circle.insightful {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.feedback-circle.unclear {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.feedback-label {
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Presenter CTA ───────────────────────────────── */
.presenter-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 672px;
  margin: 0 auto;
  width: 100%;
}

.presenter-cta-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.presenter-cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-create {
  padding: 12px 32px;
  background: #6366f1;
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
  box-shadow: 0 0 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-create:hover {
  background: #4f46e5;
}

.btn-login {
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.875rem;
  text-align: center;
  padding-bottom: 40px;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 896px;
  width: 100%;
  margin: 24px auto 32px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-links .sep {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  font-size: 1.125rem;
  max-width: 512px;
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  .header-code-form {
    display: none;
  }

  .feedback-icons {
    gap: 16px;
  }

  .presenter-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-create, .btn-login {
    width: 100%;
    text-align: center;
  }

  .footer-links .sep {
    display: none;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}
