/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette — whites, near-whites, and a single deep blue accent */
  --white: #FFFFFF;
  --snow: #FAFBFC;
  --ash: #F2F3F5;
  --mist: #E8EAED;
  --smoke: #C4C8CF;
  --slate: #8A8F98;
  --graphite: #5C6370;
  --ink: #1A1D23;
  --blue-pale: #EDF2FF;
  --blue-light: #B4C6FC;
  --blue: #4A6CF7;
  --blue-deep: #2A4AD4;
  --blue-ink: #1B2F80;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-lg: 1.125rem;
  --fs-hero: clamp(3rem, 7vw, 5.5rem);

  /* Spacing */
  --sp-xs: 0.375rem;
  --sp-sm: 0.75rem;
  --sp-md: 1.25rem;
  --sp-lg: 2rem;
  --sp-xl: 3.5rem;
  --sp-2xl: 6rem;

  /* Curves & Motion */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.15, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 600ms;
}



/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--white);
  overflow: hidden;
  overscroll-behavior: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  line-height: 1.6;
}

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


/* ============================================================
   CANVAS BACKGROUND
   ============================================================ */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}


/* ============================================================
   FILM GRAIN OVERLAY — Adds tactile depth
   ============================================================ */
.grain-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}


/* ============================================================
   CONTENT LAYER
   ============================================================ */
.content-layer {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: none; /* Let taps and clicks pass through to the background */
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-xl);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 450;
  color: var(--graphite);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-2xl) var(--sp-xl);
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 0.35rem 0.9rem 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: var(--sp-lg);
  border: 1px solid rgba(74, 108, 247, 0.1);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2.4s var(--ease) infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.hero-title {
  font-family: "Russo One", sans-serif;
  font-size: clamp(3.8rem, 9.5vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

.text-red {
  color: #E22D2D;
  /* Premium accent red */
}

.hero-subtitle {
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 500;
  color: #1a44ff;
  /* Saturated, vibrant royal blue */
  line-height: 1.5;
  margin-bottom: var(--sp-xl);
  max-width: 680px;
  /* Expanded for longer Russian subtitle */
}

.hero-actions {
  display: flex;
  gap: var(--sp-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow:
    0 1px 2px rgba(74, 108, 247, 0.25),
    0 4px 12px rgba(74, 108, 247, 0.15);
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(42, 74, 212, 0.3),
    0 8px 24px rgba(42, 74, 212, 0.18);
}

.btn-secondary {
  background: transparent;
  color: var(--graphite);
  border: 1px solid var(--mist);
}

.btn-secondary:hover {
  background: var(--ash);
  color: var(--ink);
  border-color: var(--smoke);
  transform: translateY(-1px);
}


/* ============================================================
   BOTTOM BAR / TRUST STRIP
   ============================================================ */
.bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-xl) var(--sp-xl) var(--sp-lg);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  pointer-events: auto; /* Restore interaction for navigation/contact links */
}

.footer-link {
  font-size: var(--fs-sm);
  font-weight: 450;
  color: var(--slate);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.footer-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.russo-one-regular {
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */
.nav,
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-actions,
.bottom-bar {
  opacity: 0;
  transform: translateY(16px);
}

.nav {
  animation: fade-up 0.8s var(--ease-out) 0.1s forwards;
}

.hero-badge {
  animation: fade-up 0.8s var(--ease-out) 0.25s forwards;
}

.hero-title {
  animation: fade-up 0.9s var(--ease-out) 0.35s forwards;
}

.hero-subtitle {
  animation: fade-up 0.8s var(--ease-out) 0.5s forwards;
}

.hero-actions {
  animation: fade-up 0.8s var(--ease-out) 0.6s forwards;
}

.bottom-bar {
  animation: fade-up 0.8s var(--ease-out) 0.8s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.25rem 1.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 9.5vw, 3.5rem);
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem) !important;
    margin-bottom: 2rem;
  }

  .bottom-bar {
    padding: 1.5rem 1rem;
  }

  .footer-links {
    gap: 1.25rem;
  }
}

/* Fix vertical scroll on small heights (e.g. mobile landscape) */
@media (max-height: 520px) {
  .hero {
    padding: 1.5rem 1rem 1rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 9vh, 3.2rem);
    margin-bottom: 0.25rem;
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 5vh, 1.15rem) !important;
    margin-bottom: 1.25rem;
  }

  .bottom-bar {
    padding: 0.75rem 1rem;
  }
}