@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/open-sans-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/open-sans-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/open-sans-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --royal: #4637CF;
  --graphite: #1C1C1C;
  --black: #0b0b0c;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-mute: rgba(255, 255, 255, 0.55);

  
  --glass-bg: rgba(16, 16, 18, 0.42);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.10);
  --glass-blur: 22px;

  
  --gutter: clamp(20px, 5vw, 96px);
  --max-width: 1440px;

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;               
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;               
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--black);
}

.bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1.06);
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
  animation: drift 70s ease-in-out infinite alternate;
}

.is-loaded .bg__img {
  opacity: 1;
}

.bg__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.36)),
    radial-gradient(60% 50% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 100%),
    radial-gradient(50% 35% at 50% 105%, rgba(70, 55, 207, 0.22) 0%, rgba(70, 55, 207, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.5) 100%);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(-1.2%, -0.8%, 0) scale(1.10); }
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  max-width: calc(var(--max-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding:
    calc(clamp(20px, 4vh, 56px) + env(safe-area-inset-top))
    calc(var(--gutter) + env(safe-area-inset-right))
    calc(clamp(20px, 4vh, 48px) + env(safe-area-inset-bottom))
    calc(var(--gutter) + env(safe-area-inset-left));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  width: clamp(30px, 2.4vw, 42px);
  height: auto;
}

.btn-glass,
.status,
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 20px 50px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease);
}

.btn-instagram__icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  fill: none;
  stroke: var(--white);
  stroke-width: 1.7;
}

.btn-instagram__icon .dot {
  fill: var(--white);
  stroke: none;
}

.btn-instagram:hover {
  border-color: rgba(70, 55, 207, 0.8);
  background: rgba(70, 55, 207, 0.18);
  transform: translateY(-1px);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 6vh, 80px) 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.status__spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.6px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--white);
  animation: spin 2.4s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__logo {
  margin: clamp(22px, 3.2vh, 40px) 0 clamp(26px, 4vh, 48px);
}

.hero__logo img {
  width: clamp(220px, 21vw, 460px);
  height: auto;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.45));
}

.card {
  --mx: 50%;                 
  --my: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(600px, 100%);
  padding: 16px 16px 16px 36px;
  border-radius: 999px;
  text-align: left;
  transition: border-color 0.5s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(70, 55, 207, 0.28), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 40%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card__text {
  position: relative;
}

.card__title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.card__title strong {
  font-weight: 700;
  color: var(--white);
}

.card__tags {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-soft);
}

.card__tags span {
  margin: 0 4px;
  opacity: 0.6;
}

.btn-cta {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}

.btn-cta__arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease);
}

.btn-cta:hover {
  background: var(--royal);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 35px rgba(70, 55, 207, 0.55);
  transform: translateY(-1px);
}

.btn-cta:hover .btn-cta__arrow {
  transform: translateX(4px);
}

.btn-cta:active {
  transform: scale(0.98);
}

a:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 4px;
  border-radius: 999px;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-mute);
}

.footer strong {
  font-weight: 600;
  color: var(--text-soft);
}

.anim {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
}

.is-loaded .anim {
  animation: reveal 1.1s var(--ease) forwards;
}

.is-loaded .anim--1 { animation-delay: 0.35s; }
.is-loaded .anim--2 { animation-delay: 0.50s; }
.is-loaded .anim--3 { animation-delay: 0.75s; }
.is-loaded .anim--4 { animation-delay: 0.95s; }
.is-loaded .anim--5 { animation-delay: 1.20s; }
.is-loaded .anim--6 { animation-delay: 1.45s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 900px) {
  .hero__logo img {
    width: clamp(220px, 44vw, 380px);
  }
}

@media (max-width: 640px) {
  
  .btn-instagram {
    padding: 6px;
  }

  .btn-instagram__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .btn-instagram__icon {
    width: 34px;
    height: 34px;
    background: none;
  }

  .hero__logo img {
    width: min(72vw, 300px);
  }

  
  .card {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 18px 18px;
    border-radius: 28px;
    text-align: center;
  }

  .card::after {
    left: 15%;
    right: 15%;
  }

  .btn-cta {
    width: 100%;
    padding: 16px 20px;
  }

  .footer {
    font-size: 11px;
    line-height: 1.6;
  }

  .footer strong {
    display: block;
  }
}

@media (max-width: 360px) {
  .card__title,
  .card__tags {
    font-size: 12px;
  }

  .btn-cta {
    font-size: 11px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    padding: 12px 0;
  }

  .hero__logo {
    margin: 14px 0 18px;
  }

  .hero__logo img {
    width: clamp(180px, 26vw, 260px);
  }

  .status {
    padding: 6px 16px 6px 12px;
    font-size: 12px;
  }

  .card {
    padding: 10px 10px 10px 26px;
  }

  .btn-cta {
    padding: 12px 20px;
  }
}

@media (min-width: 1800px) {
  .card {
    width: min(660px, 100%);
  }

  .card__title,
  .card__tags {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .anim,
  .bg__img {
    opacity: 1;
    transform: none;
    filter: none;
  }

}
