﻿@font-face {
  font-family: "Dynamo Bold";
  src:
    local("Dynamo Bold"),
    local("Dynamo-Bold"),
    url("/public/fonts/DynamoBold.woff2") format("woff2"),
    url("/public/fonts/DynamoBold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-heading: "Dynamo Bold", "Baloo 2", sans-serif;
  --font-body: "Outfit", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: #e8a7ec;
  color: #191919;
}

.hidden {
  display: none !important;
}

.topbar {
  background: #f1b90b;
  border-bottom: 2px solid #121212;
  animation: slideDown .45s ease-out both;
}

.topbar-inner {
  width: min(1120px, 94vw);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  color: #141414;
}

.logo span {
  color: #ff5d5d;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a,
.menu button {
  border: 2px solid #141414;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  padding: 9px 12px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.menu button,
#logoutBtn {
  background: #111;
  color: #fff;
}

.menu a:hover,
.menu button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.14);
}

.hero-wrap {
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: 34px 0 42px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  animation: fadeUp .6s ease-out .08s both;
}

.hero-left h1,
.hero-left h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(42px, 5.5vw, 74px);
  line-height: 0.92;
  color: #efefef;
  -webkit-text-stroke: 2px #1f1f1f;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.hero-left h2 {
  margin-top: 26px;
}

.hero-left p {
  margin: 0;
  max-width: 500px;
  font-size: clamp(17px, 1.55vw, 28px);
  line-height: 1.42;
  color: #1b1b1b;
}

.platform-row,
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-row {
  margin-top: 20px;
}

.store-row {
  margin-top: 12px;
}

.chip,
.store-btn {
  border: 2px solid #121212;
  border-radius: 10px;
  padding: 9px 13px;
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1;
}

.chip {
  background: #fff;
}

.store-btn {
  background: #111;
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.14);
}

.hero-right {
  text-align: center;
}

.phone {
  width: min(100%, 560px);
  margin: 0 auto;
  background: #2f8bd8;
  border: 4px solid #1d5ea4;
  border-radius: 34px;
  padding: 14px;
  box-shadow: 0 10px 0 #7a5535;
  animation: floatPhone 3.5s ease-in-out infinite;
}

.phone-screen {
  min-height: 260px;
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, #8de0ff, #57b8ff 42%, #54d678);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screen-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 46px);
  line-height: 0.95;
  color: #fff;
  text-align: center;
  -webkit-text-stroke: 1px #1d3d56;
}

.screen-sub {
  margin-top: 8px;
  font-size: clamp(16px, 1.35vw, 24px);
  font-weight: 700;
  color: #153851;
  text-align: center;
}

.watch-btn {
  margin-top: 16px;
  border: 2px solid #111;
  border-radius: 9px;
  background: #f1b90b;
  color: #111;
  padding: 11px 18px;
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.65vw, 28px);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.watch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.14);
}

.wave {
  height: 40px;
  background:
    radial-gradient(circle at 20px -10px, transparent 38px, #fff 40px) 0 0 / 40px 40px repeat-x,
    #9f45f9;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  width: min(430px, 100%);
  background: #fff;
  border: 2px solid #111;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  animation: popIn .18s ease-out both;
}

.modal-close {
  position: absolute;
  right: 8px;
  top: 6px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.modal-card h4 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1;
}

.modal-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.modal-card input {
  width: 100%;
  border: 2px solid #111;
  border-radius: 9px;
  padding: 10px 11px;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.error {
  min-height: 20px;
  color: #d12323;
  font-size: 14px;
}

.submit-btn {
  width: 100%;
  border: 2px solid #111;
  border-radius: 10px;
  background: #111;
  color: #fff;
  padding: 11px;
  font-family: var(--font-heading);
  font-size: 17px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.16);
}

@keyframes slideDown {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes popIn {
  from { transform: scale(.96); opacity: .7; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-left {
    order: 2;
  }

  .hero-right {
    order: 1;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    min-height: 74px;
  }

  .menu a,
  .menu button {
    font-size: 13px;
    padding: 7px 9px;
  }

  .hero-wrap {
    padding-top: 24px;
  }

  .phone-screen {
    min-height: 210px;
  }
}
