:root {
  --ty-green-950: #0d332b;
  --ty-green-900: #14483c;
  --ty-green-800: #1c5f4e;
  --ty-green-700: #267560;
  --ty-green-600: #2f8b70;
  --ty-green-100: #e7f4ef;
  --ty-green-50: #f4faf7;
  --ty-gold: #d9a441;
  --ty-gold-soft: #f6e7bd;
  --ty-ink: #18302a;
  --ty-muted: #66756f;
  --ty-surface: rgba(255, 255, 255, 0.92);
  --ty-border: rgba(26, 92, 75, 0.12);
  --ty-shadow-sm: 0 8px 28px rgba(17, 71, 58, 0.08);
  --ty-shadow-md: 0 18px 50px rgba(17, 71, 58, 0.13);
  --ty-radius-lg: 24px;
  --ty-radius-md: 18px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body {
  overflow-x: clip;
  min-width: 320px;
  color: var(--ty-ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(47, 139, 112, 0.08), transparent 26rem),
    radial-gradient(circle at 8% 42%, rgba(217, 164, 65, 0.07), transparent 24rem),
    linear-gradient(180deg, #fbfdfc 0%, #f7fbf9 48%, #ffffff 100%);
}

body > header,
.site-header,
.main-header,
.header-main {
  position: sticky !important;
  top: 0 !important;
  inset-inline: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  transform: none !important;
  translate: none !important;
  animation: none !important;
  background: rgba(255, 255, 255, 0.86) !important;
  border-bottom: 1px solid rgba(26, 92, 75, 0.10);
  box-shadow: 0 7px 28px rgba(17, 71, 58, 0.07);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease !important;
}

body > header.ty-header-scrolled,
.site-header.ty-header-scrolled,
.main-header.ty-header-scrolled,
.header-main.ty-header-scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: rgba(26, 92, 75, 0.16);
  box-shadow: 0 12px 34px rgba(17, 71, 58, 0.11);
}

body > header.ty-reveal,
.site-header.ty-reveal,
.main-header.ty-reveal,
.header-main.ty-reveal,
body > header.ty-from-left,
body > header.ty-from-right,
.site-header.ty-from-left,
.site-header.ty-from-right {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

body > header > *,
.site-header > *,
.main-header > *,
.header-main > * {
  margin-inline: auto;
}

main > section {
  position: relative;
  isolation: isolate;
}

main > section + section {
  margin-top: clamp(28px, 4vw, 72px);
}

.hero,
.hero-section,
.main-hero {
  overflow: hidden;
}

.hero::before,
.hero-section::before,
.main-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  inset-inline-end: -180px;
  top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 139, 112, 0.13), transparent 68%);
  pointer-events: none;
}

.hero::after,
.hero-section::after,
.main-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  inset-inline-start: -170px;
  bottom: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.12), transparent 68%);
  pointer-events: none;
}

.card,
.feature-card,
.service-card,
.info-card,
.contact-card,
.legal-card,
.download-card,
.stat-card,
.step-card {
  border: 1px solid var(--ty-border) !important;
  border-radius: var(--ty-radius-lg) !important;
  background: var(--ty-surface);
  box-shadow: var(--ty-shadow-sm);
  transition:
    transform 280ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 280ms ease,
    border-color 280ms ease !important;
}

@media (hover: hover) {
  .card:hover,
  .feature-card:hover,
  .service-card:hover,
  .info-card:hover,
  .contact-card:hover,
  .legal-card:hover,
  .download-card:hover,
  .stat-card:hover,
  .step-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(47, 139, 112, 0.25) !important;
    box-shadow: var(--ty-shadow-md);
  }
}

.btn,
.button,
a[class*="btn"],
button:not(.menu-toggle):not(.hamburger) {
  border-radius: 14px !important;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease !important;
}

.btn-primary,
.primary-button,
a[class*="primary"] {
  box-shadow: 0 10px 24px rgba(38, 117, 96, 0.22);
}

@media (hover: hover) {
  .btn:hover,
  .button:hover,
  a[class*="btn"]:hover,
  button:not(.menu-toggle):not(.hamburger):hover {
    transform: translateY(-2px);
    filter: saturate(1.05);
  }
}

nav a,
.nav a,
.navbar a,
.site-header a {
  position: relative;
  white-space: nowrap;
  transition: color 180ms ease, opacity 180ms ease !important;
}

nav a::after,
.nav a::after,
.navbar a::after,
.site-header nav a::after {
  content: "";
  position: absolute;
  inset-inline: 15%;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ty-green-600), var(--ty-gold));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

@media (hover: hover) {
  nav a:hover::after,
  .nav a:hover::after,
  .navbar a:hover::after,
  .site-header nav a:hover::after {
    transform: scaleX(1);
  }
}

.hero img,
.app-preview img,
.phone-preview img,
.mockup img {
  filter: drop-shadow(0 24px 42px rgba(18, 70, 57, 0.14));
}

footer,
.site-footer {
  position: relative;
  overflow: hidden;
}

footer a,
.site-footer a {
  transition: opacity 180ms ease, transform 180ms ease;
}

@media (hover: hover) {
  footer a:hover,
  .site-footer a:hover {
    opacity: 0.82;
  }
}

@media (max-width: 768px) {
  html.js-motion .ty-reveal,
  html.js-motion .ty-reveal.ty-from-left,
  html.js-motion .ty-reveal.ty-from-right {
    transform: translate3d(0, 22px, 0) scale(.99);
  }

  html.js-motion .ty-reveal.ty-visible {
    transform: none;
  }

  body > header,
  .site-header,
  .main-header,
  .header-main {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  main > section + section {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
