/* ========================================
   Taytr — Landing Page
   Aesthetic: Cinema-noir editorial
   ======================================== */

:root {
  --bg: #08080a;
  --surface: #111114;
  --surface-raised: #1a1a1e;
  --border: #222228;
  --text: #eeeee8;
  --text-secondary: #8a8a84;
  --text-muted: #4a4a48;
  --amber: #d4a054;
  --amber-dim: #a07030;
  --amber-glow: rgba(212, 160, 84, 0.08);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---- Film grain overlay ---- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---- Nav ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(to bottom, rgba(8,8,10,0.9) 0%, transparent 100%);
}

.nav-wordmark {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--amber);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: #e0b06a;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(212, 160, 84, 0.2);
}

/* ---- Hero ---- */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 120px 24px 80px;
  gap: 48px;
  position: relative;
}

/* Ambient glow */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(212, 160, 84, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 600px;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
  color: var(--amber);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Primary button */

.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--amber);
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 10px;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #e0b06a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 160, 84, 0.2);
}

.btn-primary--large {
  font-size: 16px;
  padding: 20px 48px;
}

/* Hero visual — screen mockup */

.hero-visual {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.screen-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.3),
    0 16px 64px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.04);
  max-width: 640px;
}

.screen-topbar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

.screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.screen-dot--red { background: #ff5f57; }
.screen-dot--amber { background: #febc2e; }
.screen-dot--green { background: #28c840; }

.screen-content {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 200px;
}

.screen-film {
  position: relative;
  background: #0a0a0f;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.screen-film-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.screen-film-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(212, 160, 84, 0.1) 0%, transparent 60%),
    linear-gradient(to top, rgba(8, 8, 10, 0.3) 0%, transparent 40%);
}

@keyframes filmShimmer {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.screen-live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #e02020;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
}

.screen-live-dot {
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: dotBlink 1.5s ease-in-out infinite;
}

.screen-sidebar {
  display: none;
}

.screen-pip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

.screen-pip-icon {
  width: 20px;
  height: 20px;
  color: var(--amber);
}

.screen-pip-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
}

.screen-chat {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screen-msg {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.screen-msg-name {
  font-weight: 600;
  margin-right: 4px;
}

/* ---- Section divider ---- */

.section-rule {
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.rule-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* ---- How it works ---- */

.how-section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.how-inner {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.step {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  border-color: var(--amber-dim);
  box-shadow: 0 0 40px var(--amber-glow);
}

.step-number {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--amber-dim);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.5;
}

.step-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ---- Value props ---- */

.value-section {
  padding: 60px 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.value-block {
  margin-bottom: 64px;
}

.value-heading {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
}

.value-heading em {
  font-style: italic;
  color: var(--amber);
}

.value-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
}

.props-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.prop {
  padding: 32px;
  background: var(--surface);
  transition: background 0.3s ease;
}

.prop:hover {
  background: var(--surface-raised);
}

.prop-icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--amber-dim);
  border-radius: 10px;
  margin-bottom: 16px;
  background: rgba(212, 160, 84, 0.05);
}

.prop-icon {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

.prop-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.prop-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ---- Pull quote ---- */

.quote-section {
  padding: 80px 24px;
  position: relative;
}

.quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--amber-glow), transparent 70%);
  pointer-events: none;
}

.quote-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 36px);
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ---- Fans section ---- */

.fans-section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.fans-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.fans-heading {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}

.fans-heading em {
  font-style: italic;
  color: var(--amber);
}

.fans-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 24px;
}

.fans-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fans-list li {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
  padding-left: 20px;
  position: relative;
}

.fans-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

/* Phone mockup */

.fans-visual {
  display: flex;
  justify-content: center;
}

.phone-mock {
  width: 220px;
  background: #000;
  border-radius: 32px;
  border: 3px solid #2a2a2e;
  padding: 12px;
  position: relative;
  box-shadow:
    0 8px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.phone-notch {
  width: 80px;
  height: 6px;
  background: #2a2a2e;
  border-radius: 4px;
  margin: 0 auto 12px;
}

.phone-screen {
  background: linear-gradient(160deg, #1a1520, #0d1a2a);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  position: relative;
}

.phone-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.phone-video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.phone-overlay {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 12px;
}

.phone-pip-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-dim), var(--amber));
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(212, 160, 84, 0.3);
}

.phone-chat-bubble {
  font-size: 10px;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  display: inline-block;
}

.phone-chat-bubble--alt {
  margin-left: 16px;
  background: rgba(212, 160, 84, 0.12);
}

/* ---- CTA ---- */

.cta-section {
  padding: 100px 24px 120px;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 60%;
  background: radial-gradient(ellipse at center bottom, rgba(212, 160, 84, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
}

.cta-heading {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ---- Footer ---- */

.landing-footer {
  padding: 40px 24px 48px;
  border-top: 1px solid var(--border);
}

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

.landing-footer-wordmark {
  opacity: 0.3;
  font-size: 18px;
}

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

/* ---- Contact Modal ---- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay--open .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--text);
}

.modal-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 28px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-input:focus {
  border-color: var(--amber-dim);
}

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

.modal-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.modal-submit {
  margin-top: 4px;
  width: 100%;
  text-align: center;
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success state */

.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.modal-success-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  margin-bottom: 20px;
}

.modal-success-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
}

.modal-success-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ---- Animations ---- */

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

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---- Responsive: Tablet+ ---- */

@media (min-width: 640px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .props-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .nav {
    padding: 24px 48px;
  }

  .hero {
    padding: 0 48px;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .screen-content {
    grid-template-columns: 1fr 180px;
  }

  .screen-sidebar {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
  }

  .screen-chat {
    flex: 1;
  }

  .how-section,
  .value-section,
  .fans-section {
    padding-left: 48px;
    padding-right: 48px;
  }

  .section-rule {
    padding: 0 48px;
  }

  .fans-inner {
    grid-template-columns: 1fr 280px;
    gap: 64px;
  }
}

@media (min-width: 1024px) {
  .nav {
    padding: 28px 64px;
  }

  .hero {
    padding: 0 64px;
    gap: 64px;
  }

  .how-section,
  .value-section,
  .fans-section {
    padding-left: 64px;
    padding-right: 64px;
  }

  .section-rule {
    padding: 0 64px;
  }

  .props-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .fans-inner {
    grid-template-columns: 1fr 300px;
    gap: 80px;
  }
}

/* ---- Scroll-triggered reveals ---- */

@supports (animation-timeline: view()) {
  .step,
  .prop,
  .fans-content,
  .fans-visual,
  .quote-inner {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }
}
