/* ===== TunlyVPN — Design System ===== */

:root {
  color-scheme: dark;

  /* Brand */
  --red: #d92d3a;
  --red-dark: #c92d38;
  --red-light: #ff7780;
  --white: #f8fafc;
  --off-white: #151923;
  --dark: #f7f8fb;
  --dark-light: #202736;
  --gray: #aab3c2;
  --gray-light: #717b8f;
  --gray-border: rgba(255, 255, 255, 0.12);
  --bg: #0f1117;
  --bg-elevated: #121722;
  --surface: #171d28;
  --surface-2: #1f2734;
  --surface-3: #252f3f;
  --text: #f7f8fb;
  --text-strong: #ffffff;
  --muted: #aab3c2;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent-soft: rgba(230, 57, 70, 0.13);
  --focus: #ff8a93;

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

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.38);
  --shadow-red: 0 14px 32px rgba(230, 57, 70, 0.26);

  /* Transition */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.24, 1.12);
  --motion-fast: 160ms;
  --motion: 240ms;
  --motion-slow: 520ms;
  --t-fast: var(--motion-fast) var(--ease-out);
  --t-normal: var(--motion) var(--ease-out);
  --t-slow: var(--motion-slow) var(--ease-out);

  /* Semantic aliases for new UI work */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-surface-raised: var(--surface-2);
  --color-text: var(--text);
  --color-text-muted: var(--muted);
  --color-primary: var(--red);
  --color-primary-hover: var(--red-dark);
  --color-border: var(--border);
}

:root[data-theme="light"] {
  color-scheme: light;
  --white: #ffffff;
  --off-white: #f6f7f9;
  --dark: #171724;
  --dark-light: #2d2d44;
  --gray: #667085;
  --gray-light: #98a2b3;
  --gray-border: #e3e7ee;
  --bg: #ffffff;
  --bg-elevated: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef1f5;
  --text: #171724;
  --text-strong: #0f1020;
  --muted: #667085;
  --border: #e3e7ee;
  --border-strong: #d0d7e2;
  --accent-soft: rgba(230, 57, 70, 0.09);
  --focus: #b91f2b;
  --shadow-sm: 0 6px 22px rgba(21, 21, 36, 0.07);
  --shadow-md: 0 14px 34px rgba(21, 21, 36, 0.1);
  --shadow-lg: 0 20px 56px rgba(21, 21, 36, 0.16);
  --shadow-red: 0 10px 26px rgba(230, 57, 70, 0.24);
}

/* ===== Reset ===== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(230, 57, 70, 0.12),
      transparent 30rem
    ),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: var(--red-dark);
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform var(--t-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ===== Typography ===== */

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

/* ===== Layout ===== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-lg);
}

section {
  padding: var(--s-4xl) 0;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: all var(--t-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(230, 57, 70, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--red);
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== Header / Nav ===== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--t-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo span {
  color: var(--red);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
  transition: color var(--t-fast);
}

.nav-links a:hover {
  color: var(--dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

/* Language Toggle */

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--off-white);
  border-radius: var(--r-full);
  padding: 3px;
  border: 1px solid var(--gray-border);
}

.lang-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-btn.active {
  background: var(--red);
  color: var(--white);
}

/* Mobile burger */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--off-white);
  border: 1px solid var(--gray-border);
  transition: all var(--t-fast);
  position: relative;
  z-index: 1001;
}

.burger:hover {
  background: var(--gray-border);
}

.burger.open {
  background: var(--red);
  border-color: var(--red);
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--t-normal);
  transform-origin: center;
}

.burger.open span {
  background: var(--white);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - 72px);
  background: #ffffff !important;
  z-index: 999;
  padding: var(--s-xl);
  flex-direction: column;
  gap: var(--s-lg);
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  padding: var(--s-md) 0;
  border-bottom: 1px solid var(--gray-border);
  color: var(--dark);
}

.mobile-nav a.btn {
  border-bottom: none;
  justify-content: center;
  color: #ffffff !important;
}

.mobile-nav a:not(.btn):hover {
  color: var(--red);
}

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    #16213e 50%,
    var(--dark-light) 100%
  );
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(230, 57, 70, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(230, 57, 70, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid rgba(230, 57, 70, 0.3);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red-light);
  margin-bottom: var(--s-lg);
  line-height: 1;
}

.hero-badge svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.hero-badge span {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
}

.hero h1 {
  margin-bottom: var(--s-lg);
}

.hero h1 .accent {
  color: var(--red);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--s-2xl);
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--s-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--s-2xl);
  margin-top: var(--s-3xl);
}

.stat {
  text-align: left;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--s-xs);
}

/* Hero Visual */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.shield-container {
  position: relative;
  width: 320px;
  height: 360px;
}

.shield-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    circle,
    rgba(230, 57, 70, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.shield-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 60px rgba(230, 57, 70, 0.3));
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(230, 57, 70, 0.4);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.particle:nth-child(1) {
  left: 10%;
  animation-duration: 8s;
  animation-delay: 0s;
  width: 3px;
  height: 3px;
}

.particle:nth-child(2) {
  left: 25%;
  animation-duration: 12s;
  animation-delay: 2s;
  width: 5px;
  height: 5px;
}

.particle:nth-child(3) {
  left: 40%;
  animation-duration: 10s;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  left: 60%;
  animation-duration: 9s;
  animation-delay: 1s;
  width: 6px;
  height: 6px;
}

.particle:nth-child(5) {
  left: 75%;
  animation-duration: 11s;
  animation-delay: 3s;
  width: 3px;
  height: 3px;
}

.particle:nth-child(6) {
  left: 90%;
  animation-duration: 7s;
  animation-delay: 5s;
}

/* ===== Features ===== */

.features {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--s-3xl);
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-sm);
}

.section-header h2 {
  margin-bottom: var(--s-md);
}

.section-header p {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-lg);
}

.feature-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--s-2xl) var(--s-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-normal);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s-lg);
  background: rgba(230, 57, 70, 0.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-normal);
}

.feature-card:hover .feature-icon {
  background: var(--red);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--red);
  transition: color var(--t-normal);
}

.feature-card:hover .feature-icon svg {
  color: var(--white);
}

.feature-card h3 {
  margin-bottom: var(--s-sm);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== Why WireGuard ===== */

.wireguard {
  background: var(--white);
}

.wg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3xl);
  align-items: center;
}

.wg-content h2 {
  margin-bottom: var(--s-lg);
}

.wg-content > p {
  color: var(--gray);
  margin-bottom: var(--s-xl);
}

.wg-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.wg-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--s-md);
}

.wg-benefit-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.wg-benefit-icon svg {
  width: 16px;
  height: 16px;
  color: var(--red);
}

.wg-benefit h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.wg-benefit p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* WireGuard visual card */

.wg-visual {
  position: relative;
}

.wg-card {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  border-radius: var(--r-lg);
  padding: var(--s-2xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.wg-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(230, 57, 70, 0.2) 0%,
    transparent 60%
  );
  border-radius: 50%;
}

.wg-card-header {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  margin-bottom: var(--s-xl);
  position: relative;
}

.wg-card-header svg {
  width: 40px;
  height: 40px;
  color: var(--red);
}

.wg-card-header h3 {
  font-size: 1.3rem;
  color: var(--white);
}

.wg-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-lg);
  position: relative;
}

.wg-metric {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
  padding: var(--s-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wg-metric-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--s-sm);
}

.wg-metric-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

.wg-card [data-i18n] {
  background: transparent;
}

.wg-metric-value .unit {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Pricing ===== */

.pricing {
  background: var(--off-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-xl);
  max-width: 1080px;
  margin: 0 auto;
}

.price-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s-2xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all var(--t-normal);
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card.popular {
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

.price-badge {
  position: absolute;
  top: 18px;
  right: -38px;
  background: var(--red);
  color: var(--white);
  width: 140px;
  padding: 6px 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(45deg);
  z-index: 5;
}

.price-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--s-sm);
}

.price-card .period {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: var(--s-xl);
}

.price-amount {
  margin-bottom: var(--s-md);
}

.price-amount .amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark);
}

.price-amount .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray);
}

.price-converted {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: var(--s-xl);
  min-height: 24px;
  transition: opacity var(--t-normal);
}

.price-per-month {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: var(--s-lg);
}

.price-features {
  text-align: left;
  margin-bottom: var(--s-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

.price-features li {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 0.9rem;
  color: var(--dark-light);
}

.price-features li svg {
  width: 18px;
  height: 18px;
  color: var(--red);
  flex-shrink: 0;
}

.price-card .btn {
  width: 100%;
  justify-content: center;
}

/* ===== How It Works / FAQ ===== */

.how-it-works,
.faq-section {
  background: var(--surface);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-xl);
  max-width: 1080px;
  margin: 0 auto;
}

.how-card,
.faq-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-sm);
}

.how-card {
  position: relative;
  min-height: 220px;
  padding: var(--s-2xl);
  border-radius: var(--r-lg);
}

.how-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: var(--s-lg);
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  font-weight: 800;
}

.how-card h3 {
  margin-bottom: var(--s-sm);
  color: var(--text);
  font-size: 1.25rem;
}

.how-card p {
  color: var(--muted);
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: var(--s-md);
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--r-md);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: var(--s-md);
  padding: var(--s-lg);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.35rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 var(--s-lg) var(--s-lg);
  color: var(--muted);
  line-height: 1.7;
}

/* ===== CTA Section ===== */

.cta-section {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%
  );
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  margin-bottom: var(--s-md);
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: var(--s-2xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--s-2xl) 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo span {
  color: var(--red);
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  gap: var(--s-lg);
}

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.85rem;
}

/* ===== Animations ===== */

.fade-in {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-spring);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

.fade-in-delay-4 {
  transition-delay: 0.4s;
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wg-grid {
    grid-template-columns: 1fr;
    gap: var(--s-xl);
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--s-3xl) 0;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: var(--s-3xl);
  }

  .hero-stats {
    gap: var(--s-xl);
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--s-md);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--s-md);
    align-items: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .wg-metrics {
    grid-template-columns: 1fr;
  }

  .nav-right .btn,
  .nav-right .lang-toggle {
    display: none;
  }
}

/* ===== Premium Theme & QA Polish ===== */

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
}

.btn {
  min-height: 48px;
  border-radius: var(--r-md);
  font-weight: 700;
}

.btn-primary,
.lang-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.btn-outline {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: transparent;
}

.btn-white {
  color: var(--red-light);
  background: var(--surface);
  border: 1px solid var(--border);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.header {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom-color: var(--border);
}

.logo {
  color: var(--text-strong);
  letter-spacing: 0;
}

.nav-links a,
.section-header p,
.feature-card p,
.wg-desc,
.wg-benefit p,
.price-period,
.price-features,
.price-converted,
.footer {
  color: var(--muted);
}

.nav-links a:hover,
.mobile-nav a:not(.btn):hover,
.footer-links a:hover {
  color: var(--text-strong);
}

.lang-toggle,
.burger,
.theme-toggle {
  background: var(--surface-2);
  border-color: var(--border);
}

.lang-btn {
  color: var(--muted);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition:
    transform var(--t-fast),
    border-color var(--t-fast),
    background var(--t-fast);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 57, 70, 0.38);
}

.theme-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme="dark"] .theme-icon-sun,
:root[data-theme="light"] .theme-icon-moon {
  display: none;
}

.burger span {
  background: var(--text);
}

.burger:hover {
  background: var(--surface-3);
}

.mobile-nav {
  background: color-mix(in srgb, var(--bg) 96%, transparent) !important;
  border-top: 1px solid var(--border);
}

.mobile-nav a {
  color: var(--text);
  border-bottom-color: var(--border);
}

.mobile-nav a.btn {
  color: #fff !important;
}

.mobile-controls {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}

.hero {
  min-height: min(780px, 86vh);
  background:
    radial-gradient(
      circle at 74% 16%,
      rgba(230, 57, 70, 0.22),
      transparent 24rem
    ),
    linear-gradient(145deg, #10141f 0%, #171d28 54%, #11141c 100%);
}

.hero::before,
.hero::after {
  opacity: 0.55;
}

.hero-subtitle,
.stat-label {
  color: rgba(255, 255, 255, 0.74);
}

.hero-badge {
  margin-top: clamp(2rem, 5vh, 3.5rem);
}

.hero-cta .btn-outline {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.24);
}

.features,
.pricing {
  background: var(--bg-elevated);
}

.wireguard {
  background: var(--bg);
}

.feature-card,
.wg-visual-card,
.price-card {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover,
.price-card:hover {
  border-color: rgba(230, 57, 70, 0.24);
  box-shadow: var(--shadow-md);
}

.feature-icon,
.wg-icon {
  background: var(--accent-soft);
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card .btn {
  margin-top: auto;
}

.price-card.featured {
  border-color: rgba(230, 57, 70, 0.48);
}

.price-badge {
  border-radius: var(--r-full);
  box-shadow: var(--shadow-red);
}

.cta-section {
  background:
    radial-gradient(
      circle at 72% 0%,
      rgba(255, 255, 255, 0.16),
      transparent 20rem
    ),
    linear-gradient(135deg, var(--red), var(--red-dark));
}

.footer {
  background: #0b0d12;
  border-top: 1px solid var(--border);
}

.fade-in:not(.visible) {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
}

@media (max-width: 768px) {
  .hero {
    padding-top: 104px;
  }

  .hero-badge {
    margin-top: 0;
    margin-bottom: var(--s-md);
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-sm);
  }

  .stat {
    padding: 0.75rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-md);
  }
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .price-badge {
    position: static;
    display: inline-flex;
    width: auto;
    margin: 0 auto var(--s-md);
    padding: 0.35rem 0.75rem;
    transform: none;
  }
}

/* ===== 2026 Motion & Dark Mode Refinement ===== */

::selection {
  color: #fff;
  background: rgba(217, 45, 58, 0.72);
}

.btn,
.lang-btn,
.theme-toggle,
.burger,
.feature-card,
.price-card,
.wg-card,
.footer-links a {
  transition:
    color var(--t-fast),
    background var(--t-fast),
    border-color var(--t-fast),
    box-shadow var(--t-normal),
    opacity var(--t-fast),
    transform var(--t-normal);
}

.btn,
.theme-toggle,
.burger,
.feature-card,
.price-card,
.wg-card {
  transform: translateZ(0);
}

.btn:active,
.theme-toggle:active,
.burger:active,
.lang-btn:active {
  transform: translateY(0) scale(0.98);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  box-shadow:
    0 0 0 1px var(--bg),
    0 0 0 6px rgba(255, 138, 147, 0.18);
}

:root[data-theme="light"] a:focus-visible,
:root[data-theme="light"] button:focus-visible,
:root[data-theme="light"] input:focus-visible {
  box-shadow:
    0 0 0 1px var(--bg),
    0 0 0 6px rgba(185, 31, 43, 0.14);
}

.header.scrolled {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.hero {
  background:
    radial-gradient(
      circle at 72% 14%,
      rgba(217, 45, 58, 0.2),
      transparent 24rem
    ),
    radial-gradient(
      circle at 22% 84%,
      rgba(120, 132, 255, 0.1),
      transparent 22rem
    ),
    linear-gradient(145deg, #101114 0%, #151a24 54%, #101219 100%);
}

.particle {
  opacity: 0.46;
  filter: blur(0.2px);
}

.shield-glow {
  animation: premium-pulse 5.8s var(--ease-in-out) infinite;
}

@keyframes premium-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.04);
  }
}

.feature-card,
.wg-card,
.price-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--surface);
}

:root[data-theme="light"] .feature-card,
:root[data-theme="light"] .wg-card,
:root[data-theme="light"] .price-card {
  background: var(--surface);
}

:root[data-theme="light"] .wg-card {
  color: #fff;
  background: linear-gradient(135deg, #171724 0%, #202736 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .wg-card-header h3,
:root[data-theme="light"] .wg-metric-value {
  color: #fff;
}

:root[data-theme="light"] .wg-metric {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .wg-metric-label,
:root[data-theme="light"] .wg-metric-value .unit {
  color: rgba(255, 255, 255, 0.64);
}

.feature-card:hover,
.price-card:hover,
.wg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 119, 128, 0.34);
}

.price-features li,
.price-card .period,
.price-converted,
.wg-metric-label,
.wg-metric-value .unit {
  color: var(--muted);
}

.price-amount .amount,
.price-card h3 {
  color: var(--text-strong);
}

.price-features li svg {
  color: #ff7780;
}

.price-card.popular {
  border-color: rgba(255, 119, 128, 0.58);
  box-shadow:
    0 0 0 1px rgba(255, 119, 128, 0.1),
    0 24px 64px rgba(217, 45, 58, 0.18);
}

:root[data-theme="light"] .price-card.popular {
  box-shadow: var(--shadow-red);
}

.section-tag,
.price-per-month {
  color: #ff7780;
}

:root[data-theme="light"] .section-tag,
:root[data-theme="light"] .price-per-month {
  color: var(--red-dark);
}

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