/* Tuman VPN - Design System */

/* Custom Fonts */
@font-face {
  font-family: 'Nothing Font';
  src: url('../assets/fonts/NothingFont.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Hide Russian-only elements on non-Russian pages (prevents FOUC) */
html:not([lang="ru"]) [data-ru-only] {
  display: none;
}

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

/* Design Tokens */
:root {
  /* Colors */
  --color-bg: #070709;
  --color-surface: rgba(255, 255, 255, 0.035);
  --color-surface-hover: rgba(255, 255, 255, 0.06);
  --color-text: #e4e2de;
  --color-text-muted: #8b8680;
  --color-text-secondary: rgba(232, 230, 227, 0.55);
  --color-accent: #358d67;
  --color-accent-light: #5cb88a;
  --color-accent-blue: #2d9cdb;
  --color-accent-hover: #3a9d72;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-hover: rgba(255, 255, 255, 0.14);
  --color-link: #5cb88a;

  /* Legacy aliases for content pages */
  --color-bg-card: var(--color-surface);
  --color-bg-card-hover: var(--color-surface-hover);

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, monospace;
  --font-title: 'Nothing Font', var(--font-family);
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Container */
  --container-max: 1100px;
  --container-padding: 1rem;
}

/* Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* Product Page */

body {
  font-family: var(--font-family);
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #0c0e12 0%, var(--color-bg) 60%);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain overlay */
.product-page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  mix-blend-mode: overlay;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 7, 9, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

.header__right {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__left {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
}

/* Product page: header logo hidden by default, animated on scroll */
.product-page .header__left {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-page .header__left.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.product-page .header__left.visible .header__logo {
  opacity: 0.7;
}

.header__left .header__logo {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.header__left .header__logo:hover {
  opacity: 1;
}

.header__left .header__logo img {
  height: 22px;
  width: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.header__logo:hover {
  opacity: 1;
}

.header__logo img {
  height: 22px;
  width: auto;
}

.header__menu {
  display: none;
  position: absolute;
  right: 1rem;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  font-style: normal;
}

.header__nav {
  display: none;
  gap: var(--space-xl);
}

.header__nav a {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--color-text);
}

.header__nav a.active {
  color: var(--color-text);
}

.header__lang {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  transition: background 0.2s;
}

.header__lang:hover {
  background: var(--color-surface-hover);
}

.header__lang svg {
  width: 16px;
  height: 16px;
}

/* Main Content */
main {
  flex: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-3xl) 0;
  padding-top: calc(56px + var(--space-3xl));
  padding-bottom: 120px;
  box-sizing: border-box;
  overflow: hidden;
}

.hero__logo {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto var(--space-xl);
  filter: drop-shadow(0 0 30px rgba(53, 141, 103, 0.3)) drop-shadow(0 0 60px rgba(53, 141, 103, 0.15));
}

.hero__title {
  font-family: var(--font-title);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-xl);
  text-shadow: 0 0 80px rgba(53, 141, 103, 0.2), 0 0 160px rgba(45, 156, 219, 0.08);
}

.hero__tagline {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-xs);
  white-space: nowrap;
}

.hero__subtitle {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-3xl);
  white-space: nowrap;
}

/* ============================================
   HERO DOWNLOAD BUTTON (OS auto-detected)
   ============================================ */

.hero-download {
  margin-bottom: var(--space-xl);
  display: flex;
  justify-content: center;
}

.hero-download__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 2.5rem;
  background: linear-gradient(135deg, rgba(53, 141, 103, 0.18) 0%, rgba(45, 156, 219, 0.08) 100%);
  border: 1px solid rgba(53, 141, 103, 0.35);
  color: var(--color-accent-light);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  transition: all 0.35s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(53, 141, 103, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Shine sweep on hover */
.hero-download__btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.hero-download__btn:hover::after {
  left: 125%;
}

.hero-download__btn:hover {
  background: rgba(53, 141, 103, 0.2);
  border-color: rgba(53, 141, 103, 0.5);
  box-shadow: 0 0 50px rgba(53, 141, 103, 0.15), 0 0 100px rgba(53, 141, 103, 0.05);
  transform: translateY(-1px);
}

.hero-download__btn img {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* "All platforms" label */
.download-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
  text-align: center;
}

/* ============================================
   DOWNLOAD BUTTONS ROW
   ============================================ */

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-xl);
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 44px;
  padding: 0 var(--space-lg);
  min-width: 130px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--color-text);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* Badge buttons removed — all buttons now use unified style */

.download-btn__icon {
  height: 20px;
  width: 20px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ============================================
   WINDOWS DROPDOWN
   ============================================ */

.download-btn--dropdown {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.dropdown-arrow {
  opacity: 0.5;
  transition: transform 0.2s, opacity 0.2s;
}

.download-btn--dropdown:hover .dropdown-arrow {
  opacity: 0.8;
}

.download-btn--dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 0.8;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  background: #16181a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.download-btn--dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: center;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  will-change: transform;
  animation: float 3s ease-in-out infinite;
  z-index: 2;
  opacity: 0.4;
}

.scroll-indicator img {
  width: 44px;
  height: 58px;
}

@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
  position: relative;
  padding: 6rem 0 3rem;
}

/* Ambient glow behind features grid */
.features::before {
  content: '';
  position: absolute;
  width: 1200px;
  height: 800px;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%,
      rgba(53, 141, 103, 0.06) 0%,
      transparent 60%),
    radial-gradient(ellipse 80% 60% at 30% 40%,
      rgba(45, 156, 219, 0.04) 0%,
      transparent 55%),
    radial-gradient(ellipse 60% 50% at 70% 60%,
      rgba(92, 184, 138, 0.03) 0%,
      transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Gradient separator between hero and features */
.features::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(53, 141, 103, 0.2) 30%,
    rgba(45, 156, 219, 0.15) 70%,
    transparent
  );
  pointer-events: none;
}

.features > .container {
  position: relative;
  z-index: 1;
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.features__title {
  font-family: var(--font-family);
  font-size: var(--font-size-3xl);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
  color: #fff;
  text-shadow: 0 0 60px rgba(53, 141, 103, 0.15);
}

.features__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.feature-card {
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.012) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

/* Colored top accent line on each card */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  border-radius: 0 0 1px 1px;
  transition: opacity 0.4s ease;
}

/* Inner colored glow per card — top-left corner */
.feature-card::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* === GREEN card (Battery Saving) === */
.feature-card--green::before {
  background: linear-gradient(90deg, transparent, rgba(53, 141, 103, 0.5), transparent);
}
.feature-card--green::after {
  background: radial-gradient(circle, rgba(53, 141, 103, 0.08) 0%, transparent 70%);
}
.feature-card--green .feature-card__icon {
  background: rgba(110, 231, 160, 0.15);
  box-shadow: 0 0 20px rgba(110, 231, 160, 0.1);
}
.feature-card--green:hover {
  border-color: rgba(53, 141, 103, 0.25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 80px rgba(53, 141, 103, 0.08);
  background: linear-gradient(170deg, rgba(53, 141, 103, 0.06) 0%, rgba(255, 255, 255, 0.012) 50%);
}

/* === GRAY card (Smart Algorithms) === */
.feature-card--gray::before {
  background: linear-gradient(90deg, transparent, rgba(180, 180, 180, 0.35), transparent);
}
.feature-card--gray::after {
  background: radial-gradient(circle, rgba(180, 180, 180, 0.06) 0%, transparent 70%);
}
.feature-card--gray .feature-card__icon {
  background: rgba(180, 180, 180, 0.08);
  box-shadow: 0 0 20px rgba(180, 180, 180, 0.05);
}
.feature-card--gray:hover {
  border-color: rgba(180, 180, 180, 0.18);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 80px rgba(180, 180, 180, 0.05);
  background: linear-gradient(170deg, rgba(180, 180, 180, 0.04) 0%, rgba(255, 255, 255, 0.012) 50%);
}

/* === AMBER card (Strong Encryption) === */
.feature-card--amber::before {
  background: linear-gradient(90deg, transparent, rgba(230, 168, 23, 0.45), transparent);
}
.feature-card--amber::after {
  background: radial-gradient(circle, rgba(230, 168, 23, 0.07) 0%, transparent 70%);
}
.feature-card--amber .feature-card__icon {
  background: rgba(252, 211, 77, 0.14);
  box-shadow: 0 0 20px rgba(252, 211, 77, 0.1);
}
.feature-card--amber:hover {
  border-color: rgba(230, 168, 23, 0.22);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 80px rgba(230, 168, 23, 0.06);
  background: linear-gradient(170deg, rgba(230, 168, 23, 0.05) 0%, rgba(255, 255, 255, 0.012) 50%);
}

/* === BLUE card (One Tap Simplicity) === */
.feature-card--blue::before {
  background: linear-gradient(90deg, transparent, rgba(45, 156, 219, 0.45), transparent);
}
.feature-card--blue::after {
  background: radial-gradient(circle, rgba(45, 156, 219, 0.07) 0%, transparent 70%);
}
.feature-card--blue .feature-card__icon {
  background: rgba(45, 156, 219, 0.1);
  box-shadow: 0 0 20px rgba(45, 156, 219, 0.08);
}
.feature-card--blue:hover {
  border-color: rgba(45, 156, 219, 0.22);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 80px rgba(45, 156, 219, 0.06);
  background: linear-gradient(170deg, rgba(45, 156, 219, 0.05) 0%, rgba(255, 255, 255, 0.012) 50%);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
  position: relative;
  z-index: 1;
}

.feature-card:hover .feature-card__icon {
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

/* Colored icon glow on hover */
.feature-card--green:hover .feature-card__icon {
  box-shadow: 0 0 24px rgba(53, 141, 103, 0.2);
}
.feature-card--gray:hover .feature-card__icon {
  box-shadow: 0 0 24px rgba(180, 180, 180, 0.1);
}
.feature-card--amber:hover .feature-card__icon {
  box-shadow: 0 0 24px rgba(230, 168, 23, 0.18);
}
.feature-card--blue:hover .feature-card__icon {
  box-shadow: 0 0 24px rgba(45, 156, 219, 0.18);
}

.feature-card__icon img,
.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

/* SVG icon colors — inherit per card theme */
.feature-card--green .feature-card__icon { color: #a8f5c8; }
.feature-card--gray .feature-card__icon { color: #d4d4d4; }
.feature-card--amber .feature-card__icon { color: #fde68a; }
.feature-card--blue .feature-card__icon { color: #93d5f5; }

.feature-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: #fff;
  letter-spacing: 0.01em;
}

.feature-card__description {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

/* Footer - Simple (copyright only) */
.footer--simple {
  padding: var(--space-lg) 0;
  margin-top: auto;
}

.footer--simple .footer__copyright {
  margin: 0;
}

/* Footer - Product Page */
.product-page .footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.footer__info {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer__logo {
  height: 28px;
  width: auto;
  margin: 0 auto var(--space-lg);
  opacity: 0.5;
}

.footer__notice {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__links a {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__contact {
  margin-top: var(--space-xl);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.8;
}

.footer__contact a {
  color: var(--color-link);
  transition: color 0.2s;
}

.footer__contact a:hover {
  color: var(--color-text);
}

.footer__copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
}

.footer__payment {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.footer__payment-icon {
  height: 24px;
  width: auto;
  max-width: 80px;
}

/* ============================================
   CONTENT PAGE
   ============================================ */

.content-page {
  padding: var(--space-3xl) 0;
}

.content-page__title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.05em;
}

.content-page__body {
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.content-page__body p {
  margin-bottom: var(--space-lg);
}

.content-page__body a {
  color: var(--color-accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-page__body a:hover {
  opacity: 0.8;
}

.content-page__body h2 {
  font-size: var(--font-size-lg);
  color: var(--color-text);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.content-page__body ul,
.content-page__body ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.content-page__body li {
  margin-bottom: var(--space-sm);
}

/* Social icons in content pages */
.content-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.content-social a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.content-social a:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface);
}

.content-social img {
  width: 24px;
  height: 24px;
}

/* ============================================
   REFERRAL BANNER
   ============================================ */

.referral-banner {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(53, 141, 103, 0.08);
  border: 1px solid rgba(53, 141, 103, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--color-accent-light);
  margin-bottom: var(--space-lg);
  animation: banner-fade-in 0.4s ease-out;
}

@keyframes banner-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile */
@media (max-width: 639px) {
  .hero {
    padding-top: var(--space-3xl);
    padding-bottom: 120px;
  }

  .hero__logo {
    width: 160px;
  }

  .hero__title {
    font-size: 32px;
    letter-spacing: 4px;
  }

  .hero__tagline {
    font-size: 15px;
    line-height: 1.5;
    padding: 0 var(--space-md);
    white-space: normal;
  }

  .hero__subtitle {
    font-size: 13px;
    line-height: 1.5;
    padding: 0 var(--space-md);
    white-space: normal;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .download-btn {
    height: 40px;
    font-size: 13px;
  }

  .hero-download__btn {
    font-size: 14px;
    padding: 0.75rem 1.75rem;
  }

  .download-label {
    font-size: 10px;
  }

  .scroll-indicator {
    bottom: 40px;
  }

  .scroll-indicator img {
    width: 36px;
    height: 48px;
  }

  .features__header {
    margin-bottom: var(--space-xl);
  }

  .feature-card {
    padding: var(--space-lg);
  }
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .header__left {
    position: static;
  }

  .header__menu {
    display: block;
  }

  .header__nav.open {
    display: flex;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #16181a;
    padding: 1rem;
    flex-direction: column;
    gap: 8px;
    z-index: 99;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  .header__nav {
    display: flex;
  }

  .hero__logo {
    width: 210px;
  }

  .hero__title {
    font-size: 56px;
  }

  .features__title {
    font-size: var(--font-size-3xl);
  }

  .cta__title {
    font-size: var(--font-size-2xl);
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 64px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Accessibility - Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hero entrance - emerge from fog */
.hero__logo,
.hero__title,
.hero__tagline,
.hero__subtitle,
.hero-download,
.download-label,
.download-buttons {
  animation: hero-emerge 1s ease-out both;
}

.hero__logo { animation-delay: 0s; }
.hero__title { animation-delay: 0.15s; }
.hero__tagline { animation-delay: 0.3s; }
.hero__subtitle { animation-delay: 0.4s; }
.hero-download { animation-delay: 0.55s; }
.download-label { animation-delay: 0.7s; }
.download-buttons { animation-delay: 0.75s; }

@keyframes hero-emerge {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Logo - Gentle breathing */
.hero__logo {
  will-change: transform;
  animation: hero-emerge 1s ease-out both, logo-breathe 8s ease-in-out 1s infinite;
}

@keyframes logo-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

/* Header Logo - Hover */
.header__logo img {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.header__logo:hover img {
  filter: drop-shadow(0 0 8px rgba(53, 141, 103, 0.3));
  transform: scale(1.05);
}

/* Footer Logo - Hover */
.footer__logo {
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.footer__logo:hover {
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(53, 141, 103, 0.2));
}

/* ============================================
   FOG EFFECT
   ============================================ */

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Primary fog — green drift */
.hero::before {
  background:
    radial-gradient(ellipse 90% 70% at 15% 35%,
      rgba(53, 141, 103, 0.14) 0%,
      transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 60%,
      rgba(45, 156, 219, 0.1) 0%,
      transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%,
      rgba(53, 141, 103, 0.05) 0%,
      transparent 60%);
  animation: fog-drift-1 22s ease-in-out infinite;
}

/* Secondary fog — blue counter-drift */
.hero::after {
  background:
    radial-gradient(ellipse 80% 60% at 75% 25%,
      rgba(53, 141, 103, 0.08) 0%,
      transparent 50%),
    radial-gradient(ellipse 100% 70% at 25% 80%,
      rgba(45, 156, 219, 0.12) 0%,
      transparent 55%),
    radial-gradient(ellipse 60% 50% at 60% 45%,
      rgba(92, 184, 138, 0.04) 0%,
      transparent 50%);
  animation: fog-drift-2 32s ease-in-out infinite;
}

/* Vignette overlay */
.hero > .container::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(7, 7, 9, 0.5) 100%);
}

@keyframes fog-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, -3%) scale(1.02); }
  66% { transform: translate(-2%, 2%) scale(0.98); }
}

@keyframes fog-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 2%) scale(1.03); }
}

/* Hero content above fog */
.hero > .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   FEATURE CARDS - Scroll Reveal
   ============================================ */

.feature-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
