@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

@font-face {
  font-family: 'iquost';
  src: url('assets/iquost.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: 'iquost', sans-serif;
  --font-body: 'Inter', sans-serif;
  --purple: #A360FB;
  --dark: #0C162D;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button { cursor: pointer; }

/* ═══════════════════════════════════════
   Body & background
   ═══════════════════════════════════════ */
body {
  font-family: var(--font-body);
  color: #fff;
  background: linear-gradient(180deg, #120128 0%, #0C162D 46.15%, #0C162D 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: color-dodge;
}

body > *:not(.grain-overlay):not(.toast) {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════
   Header
   ═══════════════════════════════════════ */
.header {
  display: flex;
  justify-content: center;
  padding: 28px 24px 12px;
}

.logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* ═══════════════════════════════════════
   Hero
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 56px;
  max-width: 680px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

/* Purple underline on "24/7 Livestreams" */
.purple-underline {
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

/* Decorative dot grid — positioned to the left of hero */
.dot-grid {
  position: absolute;
  left: -60px;
  top: -10px;
  width: 200px;
  height: 240px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.13) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: -1;
}

/* Decorative static/noise shape — right side of hero */
.hero-static {
  position: absolute;
  right: 130px;
  top: 38px;
  width: 140px;
  height: auto;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════
   Email form
   ═══════════════════════════════════════ */
.email-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 440px;
}

.email-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.email-input:focus {
  border-color: var(--purple);
}

.btn-cta {
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: var(--purple);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-cta:hover {
  opacity: 0.88;
}

.btn-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.honeypot {
  display: none;
}

/* ═══════════════════════════════════════
   Toast
   ═══════════════════════════════════════ */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: rgba(20, 24, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  max-width: min(320px, calc(100vw - 40px));
}

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

.toast--success {
  border-color: rgba(106, 229, 120, 0.6);
}

.toast--error {
  border-color: rgba(255, 90, 90, 0.5);
}

/* ═══════════════════════════════════════
   Feature sections
   ═══════════════════════════════════════ */
.feature {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 72px;
}

.feature-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.feature-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-media img {
  width: 100%;
  max-width: 400px;
  object-fit: contain;
}

.feature-media .img-small {
  max-width: 240px;
}

.feature-media canvas {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1;
}

.feature-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Display heading — iquost */
.feature-copy h2.heading-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  color: #fff;
}

/* Regular feature headings — Inter Bold */
.feature-copy h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
}

.feature-copy p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   Footer
   ═══════════════════════════════════════ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

/* ═══════════════════════════════════════
   Responsive — ≤ 640px
   ═══════════════════════════════════════ */
@media (max-width: 640px) {
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 12px; }

  .email-form { flex-direction: column; }

  .feature { padding: 0 20px 56px; }

  .feature-row,
  .feature-row.reverse { flex-direction: column; }

  .feature-copy h2.heading-display { font-size: 24px; }
}

/* ═══════════════════════════════════════
   Responsive — ≥ 900px
   ═══════════════════════════════════════ */
@media (min-width: 900px) {
  .logo { height: 40px; }

  .hero { padding: 48px 24px 64px; }
  .hero-title { font-size: 48px; }
  .hero-sub { font-size: 14px; }

  .email-input, .btn-cta { font-size: 14px; padding: 12px 20px; }
  .btn-cta { padding: 12px 26px; }

  .feature { padding: 0 56px 88px; }
  .feature-row { flex-direction: row; gap: 48px; }
  .feature-row.reverse { flex-direction: row-reverse; }
  .feature-media, .feature-copy { width: 50%; }

  .feature-copy h2 { font-size: 24px; }
  .feature-copy h2.heading-display { font-size: 40px; }
  .feature-copy p { font-size: 14px; }
}
