:root {
  --color-bg: #0d0d0f;
  --color-bg-alt: #141418;
  --color-bg-card: #1c1c22;
  --color-bg-card-hover: #24242c;
  --color-border: #2a2a32;
  --color-text: #f5f5f7;
  --color-text-muted: #9a9aa8;
  --color-accent: #e02424;
  --color-accent-hover: #ff2d2d;
  --color-accent-glow: rgba(224, 36, 36, 0.25);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --header-h: 64px;
  --container: 720px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(224, 36, 36, 0.18);
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  color: #fff;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
}

.page__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(224, 36, 36, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(224, 36, 36, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 45%, var(--color-bg) 100%);
}

.header {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding-top: var(--safe-top);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-h);
}

.header__brand {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 1.5rem;
}

.main__inner {
  width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: hero-enter 0.6s ease forwards;
}

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-size: clamp(1.625rem, 4.5vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}

.hero__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.875rem auto 0;
  background: var(--color-accent);
  border-radius: 2px;
}

.hero__text {
  max-width: 34rem;
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.transition-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 22rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .transition-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(224, 36, 36, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }
}

.transition-card__from {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.transition-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  opacity: 0.85;
}

.transition-card__to {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero__services {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.625rem;
  min-height: 44px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(224, 36, 36, 0.35);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--color-accent-glow);
}

.btn__arrow {
  transition: transform var(--transition);
}

.btn--primary:hover .btn__arrow {
  transform: translateX(3px);
}

.footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 1rem 0 calc(1.25rem + var(--safe-bottom));
  border-top: 1px solid var(--color-border);
  background: rgba(13, 13, 15, 0.6);
  backdrop-filter: blur(8px);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.footer__tagline {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

@media (max-width: 480px) {
  :root {
    --header-h: 56px;
  }

  .main {
    padding: 0.5rem 0 1rem;
  }

  .hero__text br {
    display: none;
  }

  .transition-card {
    padding: 1.125rem 1.25rem;
  }

  .btn {
    width: 100%;
    max-width: 22rem;
  }
}

@media (max-height: 680px) {
  .hero__title {
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    margin-bottom: 0.75rem;
  }

  .hero__title::after {
    margin-top: 0.625rem;
  }

  .hero__text {
    margin-bottom: 1rem;
    line-height: 1.55;
  }

  .transition-card {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
  }

  .hero__services {
    margin-bottom: 1rem;
  }

  .footer {
    padding-top: 0.75rem;
    padding-bottom: calc(0.875rem + var(--safe-bottom));
  }
}
