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

:root {
  --page-bg: #111214;
  --text-main: #f2f2ee;
  --text-soft: rgba(226, 221, 214, 0.92);
  --accent-a: #2c2f35;
  --accent-b: #ff7a1a;
  --accent-c: #ffd0a8;
  --footer-line: rgba(255, 122, 26, 0.28);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-main);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0.18) 100%),
    url("./hero.png") center center / cover no-repeat,
    var(--page-bg);
}

.main { min-height: 100vh; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 180px;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-container {
  position: relative;
  z-index: 1;
  padding-left: clamp(220px, 30vw, 390px);
  padding-right: clamp(40px, 6vw, 100px);
}

.hero-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-title {
  margin-bottom: 22px;
  color: var(--text-main);
  font-size: clamp(3rem, 5.4vw, 5.1rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.72), 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-title-main,
.hero-title-accent {
  display: block;
}

.hero-title-accent {
  width: fit-content;
  margin-top: 0.08em;
  background: linear-gradient(110deg, #f2f2ee 0%, #8d939c 18%, #2c2f35 36%, #ff7a1a 56%, #ffd0a8 76%, #f2f2ee 100%);
  background-size: 360% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: premiumFlow 8s ease-in-out infinite alternate;
}

.hero-sub {
  display: block;
  max-width: 610px;
  margin-top: 48px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: clamp(1.04rem, 1.5vw, 1.26rem);
  line-height: 1.58;
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72), 0 0 18px rgba(0, 0, 0, 0.18);
}

.hero-wrapper {
  width: 100%;
  margin-top: 130px;
  display: flex;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  padding: 21px 52px;
  border-radius: 40px;
  border: 1px solid rgba(255, 122, 26, 0.5);
  background: linear-gradient(120deg, #17191d 0%, #2c2f35 28%, #ff7a1a 52%, #ffd0a8 72%, #3a3e46 100%);
  background-size: 260% 100%;
  color: #fff8f0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 42px rgba(255, 122, 26, 0.34), 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: premiumFlow 7s ease-in-out infinite alternate;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.45) 45%, transparent 62%);
  transform: translateX(-120%) skewX(-18deg);
  animation: premiumShine 3.8s ease-in-out infinite;
}

@keyframes premiumFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes premiumShine {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  22% { opacity: 0.65; }
  48% { transform: translateX(130%) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(130%) skewX(-18deg); opacity: 0; }
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 24px 54px rgba(255, 122, 26, 0.46), 0 8px 20px rgba(0, 0, 0, 0.24);
}

.site-footer {
  padding: 20px 24px 28px;
  background: rgba(17, 18, 20, 0.84);
  border-top: 1px solid var(--footer-line);
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  color: rgba(255, 246, 222, 0.78);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-footer-inn {
  color: rgba(255, 246, 222, 0.9);
  white-space: nowrap;
}

@media (max-width: 768px) {
  body {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.72) 100%),
      url("./mob.png") right top / cover no-repeat,
      var(--page-bg);
  }

  .main,
  .hero { min-height: 100svh; }

  .hero {
    padding-top: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    padding: 0 10px;
  }

  .hero-container {
    padding-left: 16px;
    padding-right: clamp(16px, 5vw, 32px);
  }

  .hero-content {
    flex: 1;
    max-width: 100%;
    padding-top: calc(25vh + env(safe-area-inset-top, 0px));
    padding-bottom: max(20px, env(safe-area-inset-bottom) + 8px);
  }

  .hero-title {
    width: 100%;
    font-size: 36px;
    line-height: 1.06;
    margin-bottom: clamp(14px, 3.6vh, 28px);
  }

  .hero-sub {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    font-size: 0.9375rem;
    line-height: 1.48;
  }

  .hero-wrapper { margin-top: auto; }

  .btn-primary {
    width: 100%;
    max-width: 340px;
    padding: 19px 30px;
    font-size: 17px;
  }

  .site-footer {
    padding: 16px 16px max(20px, env(safe-area-inset-bottom) + 12px);
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
