@font-face {
  font-family: "Google Sans";
  src: url("./assets/fonts/GoogleSans-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-04FF;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("./assets/fonts/GoogleSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "DAMN";
  src: url("./assets/fonts/DAMN-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0B0C0E;
  --cobalt: #2F8AF5;
  --emerald: #34D399;
  --white: #FFFFFF;
  --text-sub: rgba(255, 255, 255, 0.58);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--white);
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Studio Backdrop + Fading Architectural Grid */
.studio-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.studio-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 34%, #000 22%, transparent 94%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 34%, #000 22%, transparent 94%);
}

.studio-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 360px at 50% 10%, rgba(47, 138, 245, 0.18), transparent 72%),
    radial-gradient(360px 240px at 50% 0%, rgba(196, 224, 255, 0.08), transparent 70%),
    radial-gradient(440px 280px at 50% 94%, rgba(16, 185, 129, 0.07), transparent 75%);
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(26px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

/* 3-Layer Depth Hero Stage */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hook-line {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(16.5px, 4.5vw, 19px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 8px;
}

.blue-pill {
  display: inline-block;
  padding: 2px 11px 3px;
  border-radius: 10px;
  background: linear-gradient(180deg, #3A96FA 0%, #247AE2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.display-word {
  position: relative;
  z-index: 1;
  font-family: "DAMN", "Google Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(58px, 17vw, 76px);
  line-height: 0.88;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 58%, rgba(196, 219, 250, 0.72) 100%);
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.48));
  user-select: none;
}

.hero-cutout {
  position: relative;
  z-index: 2;
  width: 222px;
  margin-top: -24px;
  margin-bottom: -42px;
  pointer-events: none;
  user-select: none;
}

.hero-cutout img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-fade {
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: 0;
  height: 76px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(11, 12, 14, 0.88) 72%, #0B0C0E 100%);
}

@media (min-width: 400px) {
  .hero-cutout {
    width: 234px;
  }
}

/* True Specular Glass Rim helper */
.glass-card,
.contact-bar {
  position: relative;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

.glass-card::before,
.contact-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.44) 0%,
    rgba(125, 195, 255, 0.20) 26%,
    rgba(255, 255, 255, 0.05) 62%,
    rgba(255, 255, 255, 0.14) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.glass-card::after,
.contact-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.glass-card > *,
.contact-bar > * {
  position: relative;
  z-index: 1;
}

/* Main Foreground Liquid Glass Card */
.glass-card {
  z-index: 4;
  background: linear-gradient(180deg, rgba(34, 38, 46, 0.74) 0%, rgba(16, 18, 24, 0.90) 100%);
  border-radius: 26px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.64);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tg-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.tg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(47, 138, 245, 0.56);
  object-fit: cover;
  flex-shrink: 0;
}

.tg-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tg-name-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tg-name-row strong {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  white-space: nowrap;
}

.verified-icon {
  flex-shrink: 0;
}

.tg-sub {
  font-size: 12px;
  line-height: 1.25;
  color: var(--text-sub);
  white-space: nowrap;
}

.emerald-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.emerald-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
  animation: dot-pulse 2.4s ease-in-out infinite;
}

/* Inset Dark-Blue Telegram Panel with Frosted Mini Icon Tiles */
.tg-panel {
  list-style: none;
  border-radius: 16px;
  background: rgba(14, 22, 36, 0.76);
  border: 1px solid rgba(96, 165, 250, 0.16);
  overflow: hidden;
}

.tg-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
}

.tg-row + .tg-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tg-row-tile {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(47, 138, 245, 0.12);
  border: 1px solid rgba(125, 195, 255, 0.18);
  color: #7CC0FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tg-row-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.tg-row-text strong {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}

.tg-row-text span {
  font-size: 11.8px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.56);
}

.tg-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.30);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Primary Cobalt Glass CTA with Specular Sheen */
.cta-primary {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  padding: 10px 13px;
  border-radius: 15px;
  background: linear-gradient(180deg, #3996F9 0%, #2278E2 100%);
  border: 1px solid rgba(165, 214, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 10px 26px rgba(34, 120, 226, 0.28);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.18s var(--ease-out-expo), filter 0.18s var(--ease-out-expo);
  -webkit-tap-highlight-color: transparent;
}

.cta-sheen {
  position: absolute;
  top: -30%;
  left: 0;
  width: 44%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-180%) skewX(-18deg);
  animation: cta-sheen-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

@media (hover: hover) {
  .cta-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
  }
}

.cta-primary:active {
  transform: scale(0.985);
}

.cta-primary:focus-visible,
.copy-fallback:focus-visible,
.contact-bar:focus-visible {
  outline: 2px solid #93C5FD;
  outline-offset: 2px;
}

.cta-plane {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-title {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cta-circle-arrow {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out-expo);
}

@media (hover: hover) {
  .cta-primary:hover .cta-circle-arrow {
    transform: translate(1.5px, -1.5px);
  }
}

/* Smoked Glass Copy Fallback */
.copy-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copy-fallback {
  appearance: none;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.68);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.18s var(--ease-out-expo),
    border-color 0.18s var(--ease-out-expo),
    color 0.18s var(--ease-out-expo),
    transform 0.16s var(--ease-out-expo);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .copy-fallback:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--white);
  }
}

.copy-fallback:active {
  transform: scale(0.985);
}

.copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.copy-icon-done {
  display: none;
}

.copy-fallback[data-copied="true"] {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(52, 211, 153, 0.42);
  color: var(--emerald);
  font-weight: 700;
}

.copy-fallback[data-copied="true"] .copy-icon-default {
  display: none;
}

.copy-fallback[data-copied="true"] .copy-icon-done {
  display: inline-flex;
}

.copy-manual[hidden] {
  display: none;
}

.copy-manual input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 19, 24, 0.9);
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  text-align: center;
  outline: none;
}

.contact-section {
  margin-top: 10px;
}

/* Personal Contact Pronin Glass Bar */
.contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 34, 42, 0.70) 0%, rgba(16, 18, 24, 0.88) 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.44);
  text-decoration: none;
  color: var(--white);
  transition: transform 0.18s var(--ease-out-expo);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .contact-bar:hover {
    transform: translateY(-1px);
  }
}

.contact-bar:active {
  transform: scale(0.985);
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1px;
}

.contact-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}

.contact-sub {
  font-size: 12.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.56);
}

.contact-circle-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out-expo);
}

@media (hover: hover) {
  .contact-bar:hover .contact-circle-arrow {
    transform: translateX(2px);
  }
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.34);
  letter-spacing: 0.02em;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: fade-rise 0.52s var(--ease-out-expo) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes fade-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dot-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@keyframes cta-sheen-sweep {
  0%, 72% {
    transform: translateX(-180%) skewX(-18deg);
  }
  100% {
    transform: translateX(460%) skewX(-18deg);
  }
}

@media (max-width: 375px) {
  .display-word {
    font-size: 56px;
  }

  .hero-cutout {
    width: 196px;
    margin-top: -20px;
    margin-bottom: -38px;
  }

  .tg-sub {
    font-size: 11px;
  }

  .tg-row-text span {
    font-size: 11px;
  }

  .emerald-pill {
    padding: 4px 8px;
    font-size: 10.5px;
  }

  .glass-card {
    padding: 14px;
  }

  .cta-title {
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .emerald-dot,
  .cta-sheen {
    animation: none;
    display: none;
  }

  .cta-primary,
  .copy-fallback,
  .contact-bar,
  .cta-circle-arrow,
  .contact-circle-arrow {
    transition: none;
  }
}
