/* ============================================================
   AIHE Landing — Light creative theme, mobile-first
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/static/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fafbfe;
  --bg-warm: #f4f0ed;
  --bg-card: #ffffff;
  --surface: #f0f1f5;
  --accent: #e84545;
  --accent-soft: rgba(232, 69, 69, 0.08);
  --accent-hover: #d63030;
  --accent-glow: rgba(232, 69, 69, 0.18);
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --text-dim: #9494a8;
  --border: rgba(0, 0, 0, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.10);
  --transition: 0.25s ease;
}

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

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

.hidden {
  display: none !important;
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 251, 254, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-brand:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* ============ HERO ============ */

.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(232, 69, 69, 0.06) 0%, transparent 70%),
    var(--bg);
}

.hero-top {
  text-align: center;
  padding-top: 24px;
  margin-bottom: 48px;
}

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(232, 69, 69, 0.15);
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-lg {
  padding: 14px 36px;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-glow);
}

/* ============ HERO REEL (video showcase) ============ */

.hero-reel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.reel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.reel-arrow svg {
  width: 20px;
  height: 20px;
}

.reel-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.reel-arrow:active {
  transform: scale(0.93);
}

.reel-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 16px;
  scrollbar-width: none;
}

.reel-scroll::-webkit-scrollbar {
  display: none;
}

.reel-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.reel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.reel-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: opacity var(--transition);
}

.reel-card.playing .reel-overlay {
  opacity: 0;
  pointer-events: none;
}

.reel-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.reel-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.reel-play:hover {
  transform: scale(1.1);
  background: #fff;
}

.reel-label {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.reel-caption {
  flex-basis: 100%;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ============ SECTIONS COMMON ============ */

section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ============ HOW IT WORKS ============ */

.how {
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #ff8a5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
}

.step-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============ FEATURES ============ */

.features {
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feat-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.feat h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feat p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.features-tech {
  padding: 80px 0;
  background: var(--bg);
}

/* ============ SUBSCRIBE ============ */

.subscribe {
  background: var(--bg);
}

.sub-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.sub-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.sub-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.sub-form {
  margin-bottom: 14px;
}

.sub-row {
  display: flex;
  gap: 10px;
}

.sub-row input {
  flex: 1;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.sub-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.sub-row input::placeholder {
  color: var(--text-dim);
}

.sub-row button {
  flex-shrink: 0;
}

.sub-msg {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: left;
}

.sub-msg.is-error {
  background: rgba(232, 69, 69, 0.08);
  color: var(--accent);
  border: 1px solid rgba(232, 69, 69, 0.15);
}

.sub-msg.is-success {
  background: rgba(34, 170, 80, 0.08);
  color: #1a8a42;
  border: 1px solid rgba(34, 170, 80, 0.15);
}

.confirm-hint {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.confirm-hint strong {
  color: var(--text);
}

.sub-done {
  padding: 28px 0;
}

.done-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22aa50, #45e878);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.sub-done p {
  color: var(--text-muted);
  font-size: 1rem;
}

.sub-legal {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 18px;
}

.sub-legal a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ============ FOOTER ============ */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 70px 0 48px;
  }

  .hero-top {
    padding-top: 16px;
    margin-bottom: 32px;
  }

  .reel-arrow {
    display: none;
  }

  .reel-card {
    flex: 0 0 160px;
  }

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

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

  section {
    padding: 56px 0;
  }

  .sub-card {
    padding: 28px 20px;
  }

  .sub-row {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
