/* Footer styles */
.site-footer {
  background: #f4f6ff;
  border-top: 1px solid #e0e4f2;
  padding: 24px 0 16px 0;
  color: #3c435b;
  font-size: 15px;
  margin-top: 32px;
}
.footer-content {
  width: min(1012px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.footer-company a {
  color: #3849a5;
  text-decoration: underline;
}
@media (max-width: 640px) {
  .footer-content {
    font-size: 13px;
    padding-left: 2px;
    padding-right: 2px;
  }
}
:root {
  --primary: #3849a5;
  --primary-dark: #283982;
  --primary-soft: #eef1ff;
  --accent: #ef5350;
  --border: #cfd8f0;
  --text: #3c435b;
  --muted: #6c7288;
  --surface: #ffffff;
  --shadow: 0 28px 60px rgba(28, 42, 93, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--text);
  background: #f4f6ff url("img/bg.png") center top / cover no-repeat fixed;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--primary);
  box-shadow: 0 10px 30px rgba(15, 26, 70, 0.18);
}

.header-wrap {
  width: min(1012px, calc(100% - 24px));
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-slogan {
  height: 34px;
  max-width: 220px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.header-field {
  min-width: 146px;
}

.header-field-wide {
  min-width: 235px;
}

.header-input-wrap {
  display: flex;
  align-items: center;
}

.header-icon {
  height: 28px;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  color: #fff;
}

.header-input {
  width: 100%;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 0 3px 3px 0;
  background: transparent;
  color: #fff;
  padding: 0 9px;
  outline: none;
}

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

.header-meta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 10px;
}

.header-link {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.header-link:hover {
  text-decoration: underline;
}

.header-btn {
  height: 28px;
  min-width: 88px;
  margin-top: 1px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.header-btn-primary,
.header-btn-secondary,
.mobile-action {
  background: #273b9f;
}

.header-btn:hover,
.mobile-action:hover,
.signup-submit:hover,
.otp-primary:hover,
.otp-secondary:hover,
.play-btn:hover,
.mobile-menu:hover {
  filter: brightness(1.04);
}

.mobile-menu {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  border-radius: 3px;
  padding: 8px 14px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  background: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-panel.open {
  display: block;
}

.mobile-grid {
  width: min(1012px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  gap: 10px;
}

.mobile-input,
.mobile-action,
.mobile-link {
  min-height: 42px;
  border-radius: 12px;
}

.mobile-input {
  border: 1px solid var(--border);
  padding: 0 14px;
}

.mobile-action,
.mobile-link {
  border: 0;
  color: #fff;
}

.mobile-link {
  background: #6f7bc6;
}

.hero-page {
  min-height: calc(100vh - 52px);
  display: flex;
  align-items: center;
}

.hero-shell {
  width: min(1012px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
  align-items: center;
  gap: 26px;
  padding: 38px 0 48px;
}

.hero-visual img {
  width: 100%;
  max-width: 450px;
  display: block;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-title-row h1 {
  margin: 0;
  color: #5c6277;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 0.98;
}

.play-btn {
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 7px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--muted);
}

.signup-form {
  display: grid;
  grid-template-columns: 250px 138px;
  gap: 7px;
  align-items: stretch;
}

.channel-chip,
.signup-input,
.signup-submit {
  min-height: 38px;
  border-radius: 2px;
  border: 1px solid #98a0bf;
}

.channel-chip {
  background: #eeeeda;
  color: #50556c;
  text-align: left;
  padding: 0 10px;
}

.signup-input {
  width: 100%;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.97);
  color: #2c3553;
}

.signup-submit {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.free-copy {
  margin-top: 2px;
  color: #4f566e;
  font-size: 12px;
}

.hero-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 216px;
  font-size: 17px;
}

.hero-links a {
  color: #3b48a2;
  text-decoration: none;
}

.hero-links a:hover {
  text-decoration: underline;
}

.social-row {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.social-label {
  margin-bottom: 8px;
  font-size: 14px;
  color: #454c65;
}

.social-icons,
.store-icons {
  display: flex;
  gap: 8px;
}

.social-icon,
.store-icon {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 24px;
}

.social-icon-fb {
  background: #4267b2;
}

.social-icon-gg {
  background: #db4437;
}

.social-icon-li {
  background: #0a66c2;
}

.store-icon {
  background: #6b86c8;
}

.store-icon-play {
  background: #6fc04f;
}

.otp-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.otp-modal.open {
  display: block;
}

.otp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 39, 0.58);
  backdrop-filter: blur(4px);
}

.otp-dialog {
  position: relative;
  width: min(520px, calc(100% - 24px));
  margin: 8vh auto 0;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.otp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #6d7388;
  font-size: 20px;
  cursor: pointer;
}

.otp-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.otp-dialog h2 {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.15;
  color: #222c4c;
}

.otp-description {
  margin: 0;
  color: #5e6680;
  line-height: 1.5;
}

.otp-inputs {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.otp-digit {
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #26335c;
  outline: none;
}

.otp-digit:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(56, 73, 165, 0.12);
}

.otp-actions {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.otp-primary,
.otp-secondary {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}

.otp-primary {
  flex: 1;
  background: var(--primary);
  color: #fff;
}

.otp-secondary {
  background: #e9edff;
  color: var(--primary);
}

.otp-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: #2d6a4f;
  font-size: 14px;
}

.otp-status.is-error {
  color: #b42318;
}

@media (max-width: 920px) {
  .desktop-only {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .hero-page {
    min-height: auto;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

  .hero-visual img {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-copy {
    gap: 16px;
  }

  .signup-form,
  .hero-meta-row,
  .social-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .otp-dialog {
    padding: 24px 18px;
  }
}

@media (max-width: 640px) {
  .header-wrap {
    min-height: 64px;
  }

  .brand-slogan {
    max-width: 180px;
    height: 28px;
  }

  .hero-title-row {
    align-items: flex-start;
  }

  .hero-title-row h1 {
    font-size: 32px;
  }

  .hero-links {
    min-width: 0;
    font-size: 15px;
  }

  .social-label {
    font-size: 18px;
  }

  .otp-inputs {
    gap: 8px;
  }

  .otp-digit {
    height: 48px;
    font-size: 24px;
    border-radius: 12px;
  }

  .otp-actions {
    flex-direction: column;
  }
}
