/* =========================================
   Prime Benchmark — Main Stylesheet
   ========================================= */

/* --- CSS Variables --- */
:root {
  --green: #43B048;
  --green-dark: #2d8a35;
  --green-glow: rgba(67, 176, 72, 0.35);
  --green-light: #7dd87f;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --nav-height: 68px;
  --announcement-offset: 0px;
  --brand-logo-size: 40px;
  --brand-company-name-size: 15px;
  --brand-subtitle-size: 10px;

  /* Light theme */
  --bg: #f8f9fa;
  --bg-alt: #ffffff;
  --bg-card: #ffffff;
  --bg-nav: rgba(255,255,255,0.85);
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --border: rgba(0,0,0,0.08);
  --shadow: 0 4px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 16px 50px rgba(0,0,0,0.14);
  --glass: rgba(255,255,255,0.7);
  --hero-bg: linear-gradient(135deg, #f5fff6 0%, #e8f8e9 40%, #f0fff1 100%);
  --nav-shadow: 0 2px 20px rgba(0,0,0,0.08);
  --input-bg: #f0f0f0;
  --btn-text: #ffffff;
  --badge-bg: #f0faf0;
  --badge-text: #43B048;
  --overlay: rgba(255,255,255,0.05);
  --logo-filter: none;
}

[data-theme="dark"] {
  --bg: #0d0d1a;
  --bg-alt: #12122a;
  --bg-card: #1a1a2e;
  --bg-nav: rgba(13,13,26,0.92);
  --text: #f0f0f5;
  --text-muted: #8888aa;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 4px 30px rgba(0,0,0,0.4);
  --shadow-hover: 0 16px 50px rgba(67,176,72,0.25);
  --glass: rgba(26,26,46,0.7);
  --hero-bg: linear-gradient(135deg, #0d1a0d 0%, #0a1a0d 40%, #0d1a10 100%);
  --nav-shadow: 0 2px 20px rgba(0,0,0,0.5);
  --input-bg: #1e1e32;
  --btn-text: #ffffff;
  --badge-bg: rgba(67,176,72,0.15);
  --badge-text: #6ed672;
  --overlay: rgba(0,0,0,0.2);
  --logo-filter: invert(1) brightness(1.5);
}

/* --- Text Selection --- */
::selection {
  background: rgba(67, 176, 72, 0.3);
  color: var(--text);
}

[data-theme="dark"] ::selection {
  background: rgba(67, 176, 72, 0.4);
  color: var(--text);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--green-dark); }

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

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

/* --- Animated Background Particles --- */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: var(--announcement-offset); left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--nav-shadow);
  transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  padding: 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-logo-icon {
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  font-weight: 900;
  box-shadow: 0 4px 15px var(--green-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-logo:hover .nav-logo-icon {
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 6px 20px var(--green-glow);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.nav-logo-title {
  font-size: var(--brand-company-name-size);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-logo-sub {
  font-size: var(--brand-subtitle-size);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-logo-img {
  height: var(--brand-logo-size);
  max-width: 180px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}
.nav-logo:hover .nav-logo-img {
  opacity: 0.85;
}
/* Dark mode: invert logo if it looks better that way */
[data-theme="dark"] .nav-logo-img {
  filter: brightness(1.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--badge-bg);
  color: var(--green);
}

.nav-links a.active {
  color: var(--green);
  font-weight: 600;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  --dropdown-offset: 8px;
  --dropdown-bridge-height: 14px;
}

.nav-dropdown > a::after {
  content: '▾';
  margin-left: 4px;
  font-size: 10px;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 260px;
  min-width: 100%;
  height: calc(var(--dropdown-offset) + var(--dropdown-bridge-height));
  transform: translateX(-50%);
  pointer-events: none;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--dropdown-offset));
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}

.nav-dropdown:hover::after,
.nav-dropdown:focus-within::after {
  pointer-events: auto;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
}

.dropdown-menu a .dd-icon {
  width: 30px;
  height: 30px;
  background: var(--badge-bg);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-actions .btn,
.theme-toggle,
.hamburger {
  min-height: 44px;
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  color: var(--text);
}

.theme-toggle:focus-visible {
  background: var(--badge-bg);
  border-color: var(--green);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    background: var(--badge-bg);
    border-color: var(--green);
    transform: rotate(20deg);
  }
}

.theme-toggle:active {
  background: var(--badge-bg);
  border-color: var(--green);
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.2s;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--nav-height) + var(--announcement-offset));
  left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 999;
  box-shadow: var(--shadow);
  transform: translateY(-20px);
  opacity: 0;
  transition: top 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 4px 20px var(--green-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--green-glow);
  color: white;
}

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

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--badge-bg);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 11px 18px;
}

.btn-ghost:hover { color: var(--green); }

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* --- Layout Utilities --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-sm { padding: 60px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-bg);
  padding-top: calc(var(--nav-height) + var(--announcement-offset) + 16px);
  position: relative;
  overflow: hidden;
}

.hero-bg-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatCircle 8s ease-in-out infinite;
}

.hero-circle:nth-child(1) {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation-delay: 0s;
}

.hero-circle:nth-child(2) {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--green-light) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation-delay: 3s;
}

.hero-circle:nth-child(3) {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
  top: 50%; left: 30%;
  animation-delay: 5s;
}

@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--badge-bg);
  border: 1px solid rgba(67, 176, 72, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--badge-text);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  animation: fadeInUp 0.6s 0.4s ease both;
}

.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.hero-stat-num span {
  color: var(--green);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
  animation: fadeInRight 0.8s 0.2s ease both;
}

.hero-card-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-mockup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.hero-mockup-card:hover { transform: translateX(8px); }

.hmcard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hmcard-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px var(--green-glow);
}

.hmcard-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.hmcard-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.hmcard-progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.hmcard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: 3px;
  animation: progressFill 2s ease forwards;
  animation-delay: 1s;
  width: 0;
}

@keyframes progressFill {
  to { width: var(--target); }
}

.hmcard-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Floating badges on hero */
.hero-float-badge {
  position: absolute;
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-float-badge span {
  font-size: 1.05em;
  line-height: 1;
}

.hero-float-badge.badge-sm {
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.hero-float-badge.badge-md {
  padding: 9px 16px;
  font-size: 12px;
}

.hero-float-badge.badge-lg {
  padding: 11px 18px;
  font-size: 13px;
}

.hero-float-badge.top-left {
  top: 88px;
  left: 2px;
  animation: floatBadge 4.6s 0.3s ease-in-out infinite;
}

.hero-float-badge.top-right {
  top: 118px;
  right: -6px;
  animation: floatBadge 4s ease-in-out infinite;
}

.hero-float-badge.mid-left {
  top: 235px;
  left: -42px;
  animation: floatBadge 5.2s 1.2s ease-in-out infinite;
}

.hero-float-badge.mid-right {
  top: 286px;
  right: -42px;
  animation: floatBadge 4.8s 0.9s ease-in-out infinite;
}

.hero-float-badge.bottom-left {
  bottom: 126px;
  left: -8px;
  animation: floatBadge 4.4s 2s ease-in-out infinite;
}

.hero-float-badge.bottom-right {
  bottom: 142px;
  right: -18px;
  animation: floatBadge 5s 1.5s ease-in-out infinite;
}

.hero-float-badge.lower-center {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  animation: floatBadgeCenter 4.6s 0.8s ease-in-out infinite;
}

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

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

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(67, 176, 72, 0.2);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 6px 20px var(--green-glow);
  transform: scale(1.1) rotate(-5deg);
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Products / Exam Cards --- */
.exam-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow);
}

.exam-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green);
}

.exam-card-top {
  padding: 32px 28px 24px;
  position: relative;
  overflow: hidden;
}

.exam-card-top::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67,176,72,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.exam-card-flag {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.exam-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.exam-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.exam-card-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exam-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.exam-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.exam-card:hover .exam-card-link { gap: 8px; }

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px 24px 20px;
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(67,176,72,0.1), var(--shadow-hover);
  transform: scale(1.03);
}

.pricing-card:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: var(--shadow-hover);
}

.pricing-card.featured:hover { transform: scale(1.03) translateY(-6px); }

.pricing-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 100px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

.pricing-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 2px;
  width: 100%;
  text-align: center;
}

.inline-flag-emoji {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.16em;
  margin: 0 0.08em;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin: 10px 0 12px;
  width: 100%;
}

.pricing-amount {
  font-size: 42px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.pricing-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 4px;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 8px;
}

.pricing-perday {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin-top: -14px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.featured .pricing-perday {
  color: rgba(255,255,255,0.85);
}

.pricing-meta-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 10px;
}

.pricing-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--green) 18%, var(--border));
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 92%, white 8%), color-mix(in srgb, var(--bg-card) 98%, var(--green) 2%));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 10px 24px rgba(15, 23, 42, 0.06);
}

.pricing-meta-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 16%, transparent);
  font-size: 11px;
}

.pricing-meta-pill-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.pricing-features {
  list-style: none;
  width: 100%;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  font-weight: 700;
}

.pricing-features li .check.yes {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
}

.pricing-features li .check.no {
  background: var(--border);
  color: var(--text-muted);
}

/* --- Pricing card buy buttons --- */
.pricing-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.pricing-btn-group .btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

/* WhatsApp: inherits btn-primary / btn-outline — no extra style needed */

/* App button — indigo-violet gradient */
.pricing-btn-app {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.pricing-btn-app:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 7px 22px rgba(99,102,241,0.45);
  transform: translateY(-2px);
  color: #fff !important;
}

/* Website button — teal-cyan gradient */
.pricing-btn-web {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}
.pricing-btn-web:hover {
  background: linear-gradient(135deg, #0284c7, #0891b2);
  box-shadow: 0 7px 22px rgba(14,165,233,0.45);
  transform: translateY(-2px);
  color: #fff !important;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

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

.testimonial-quote {
  font-size: 36px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

.testimonial-stars {
  color: #7dd87f;
  font-size: 13px;
  margin-top: 4px;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-light), var(--green));
  opacity: 0.3;
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  margin: 0 auto 16px;
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover .step-num {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  border-color: var(--green);
  box-shadow: 0 8px 24px var(--green-glow);
  transform: scale(1.1);
}

.step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  margin: 0 24px;
  padding: 80px 60px;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: var(--green-dark);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-white:hover {
  background: var(--off-white);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  color: white;
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 16px 0 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: all 0.25s;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--green-glow);
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 11.5px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 16px;
  background: var(--overlay);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.footer-payments {
  position: relative;
  overflow: hidden;
  margin: 24px 0 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(45, 181, 93, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.45)),
    var(--bg-card);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.footer-payments::before {
  content: "";
  position: absolute;
  inset: auto -10% -55% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 181, 93, 0.16), transparent 65%);
  pointer-events: none;
}

.footer-payments-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.footer-payments-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-payments-copy {
  margin: 0;
  max-width: 580px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-payments-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(45, 181, 93, 0.18);
  border-radius: 999px;
  background: rgba(45, 181, 93, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(45, 181, 93, 0.12);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.footer-payments-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(45, 181, 93, 0.16);
}

.footer-payments-badge:focus-visible {
  outline: 2px solid rgba(45, 181, 93, 0.55);
  outline-offset: 3px;
}

.footer-payments-badge:active {
  transform: translateY(0);
}

.footer-payments-badge-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
}

.footer-payments-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
}

.payment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 92px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  animation: paymentCardFloatIn 0.55s ease both;
  animation-delay: var(--payment-delay, 0ms);
}

.payment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,0.55) 50%, transparent 75%);
  transform: translateX(-140%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.payment-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(45, 181, 93, 0.38);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(232,248,238,0.92));
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(45, 181, 93, 0.08);
}

.payment-card:hover::before {
  transform: translateX(140%);
}

.payment-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}

.payment-card-logo img {
  display: block;
  width: auto;
  height: var(--payment-logo-height, 24px);
  max-width: var(--payment-logo-max-width, 96px);
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.payment-card:hover .payment-card-logo img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.payment-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: center;
}

[data-theme="dark"] .footer-payments {
  background:
    radial-gradient(circle at top left, rgba(67, 176, 72, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(26,26,46,0.94), rgba(18,18,42,0.88)),
    var(--bg-card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .footer-payments-badge {
  background: rgba(67, 176, 72, 0.14);
  border-color: rgba(67, 176, 72, 0.26);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .footer-payments-badge-lock {
  background: rgba(255,255,255,0.08);
}

[data-theme="dark"] .payment-card {
  border-color: rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(32,32,58,0.92), rgba(21,21,42,0.88));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .payment-card::before {
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,0.09) 50%, transparent 75%);
}

[data-theme="dark"] .payment-card:hover {
  background: linear-gradient(180deg, rgba(40,56,51,0.98), rgba(24,32,34,0.94));
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(67, 176, 72, 0.12);
}

@keyframes paymentCardFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .payment-card {
    animation: none;
  }

  .payment-card,
  .payment-card::before,
  .payment-card-logo img {
    transition: none;
  }
}

/* --- Page Header (inner pages) --- */
.page-hero {
  background: var(--hero-bg);
  padding: calc(72px + var(--nav-height) + var(--announcement-offset)) 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
}

.page-hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  justify-content: center;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--green); font-weight: 600; }

.trial-hero {
  text-align: left;
}

.trial-hero .breadcrumb {
  justify-content: flex-start;
}

.trial-hero .page-hero-desc {
  margin: 0;
}

/* --- FAQ Accordion --- */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover { border-color: rgba(67, 176, 72, 0.3); }

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  user-select: none;
  gap: 16px;
}

.faq-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--green);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background: var(--green);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-answer-inner {
  padding: 0 24px 20px;
}

.faq-item.open .faq-answer { max-height: 500px; }

/* --- Documentation Hub --- */
.docs-hero {
  position: relative;
  overflow: hidden;
}

.docs-hero::before,
.docs-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(24px);
  opacity: 0.42;
}

.docs-hero::before {
  width: 360px;
  height: 360px;
  right: min(8vw, 72px);
  top: 110px;
  background: radial-gradient(circle, rgba(67, 176, 72, 0.34), rgba(67, 176, 72, 0));
}

.docs-hero::after {
  width: 280px;
  height: 280px;
  left: min(10vw, 84px);
  bottom: 24px;
  background: radial-gradient(circle, rgba(240, 68, 56, 0.18), rgba(240, 68, 56, 0));
}

.docs-hero .container {
  position: relative;
  z-index: 1;
}

.docs-section {
  padding-top: 72px;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.docs-article-card,
.docs-group,
.docs-empty-state {
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.66)),
    radial-gradient(circle at top right, rgba(67,176,72,0.1), transparent 46%);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .docs-article-card,
[data-theme="dark"] .docs-group,
[data-theme="dark"] .docs-empty-state {
  background:
    linear-gradient(180deg, rgba(15,23,42,0.9), rgba(15,23,42,0.78)),
    radial-gradient(circle at top right, rgba(67,176,72,0.12), transparent 46%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.docs-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

[data-theme="dark"] .docs-search {
  background: rgba(15, 23, 42, 0.84);
}

.docs-search:focus-within {
  border-color: rgba(67, 176, 72, 0.52);
  box-shadow: 0 0 0 4px rgba(67, 176, 72, 0.12);
  transform: translateY(-1px);
}

.docs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.docs-search--compact {
  flex: 1;
}

.docs-search-button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(67, 176, 72, 0.2);
  background: linear-gradient(135deg, rgba(67,176,72,0.18), rgba(59,130,246,0.12));
  color: var(--green);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.docs-search-button:hover {
  border-color: rgba(67, 176, 72, 0.4);
}

.docs-search-icon {
  font-size: 16px;
  color: var(--green);
  line-height: 1;
}

.docs-search input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  outline: none;
}

.docs-search input::placeholder {
  color: var(--text-dim);
}

.docs-result-count {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.docs-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.docs-filter-chip span {
  display: inline-flex;
  min-width: 20px;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(67,176,72,0.12);
  color: var(--green);
  font-size: 11px;
}

.docs-filter-chip:hover,
.docs-filter-chip.is-active {
  transform: translateY(-1px);
  border-color: rgba(67, 176, 72, 0.4);
  background: linear-gradient(135deg, rgba(67,176,72,0.18), rgba(59,130,246,0.12));
}

.docs-filter-chip.is-active {
  color: var(--green-dark);
}

[data-theme="dark"] .docs-filter-chip.is-active {
  color: #d7f8db;
}

.docs-index-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.docs-index-list--landing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.docs-index-list--article {
  max-height: none;
}

.docs-index-link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.docs-index-link[type="button"] {
  width: 100%;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.docs-index-link:hover {
  transform: translateX(2px);
  border-color: rgba(67, 176, 72, 0.25);
  background: rgba(67, 176, 72, 0.06);
}

.docs-index-link.is-current {
  border-color: rgba(67, 176, 72, 0.44);
  background: linear-gradient(135deg, rgba(67,176,72,0.16), rgba(59,130,246,0.08));
}

.docs-index-link.is-featured .docs-index-icon {
  background: linear-gradient(135deg, rgba(67,176,72,0.22), rgba(240,68,56,0.18));
}

.docs-index-icon,
.docs-article-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(67,176,72,0.18), rgba(59,130,246,0.14));
  border: 1px solid rgba(67, 176, 72, 0.14);
  font-size: 18px;
  flex-shrink: 0;
}

.docs-index-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.docs-index-copy strong {
  font-size: 13.5px;
  line-height: 1.45;
}

.docs-index-copy small {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
}

.docs-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.docs-group {
  padding: 26px;
}

.docs-group-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.docs-group-kicker {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.docs-group-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.docs-article-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.docs-article-stack--index .docs-article-card {
  padding-bottom: 22px;
}

.docs-article-card {
  padding: 26px;
  scroll-margin-top: calc(var(--nav-height) + var(--announcement-offset) + 28px);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.docs-article-card--page {
  padding: 30px;
  cursor: default;
}

.docs-article-card.is-featured {
  border-color: rgba(67, 176, 72, 0.26);
  box-shadow: 0 28px 70px rgba(67, 176, 72, 0.12);
}

[data-theme="dark"] .docs-article-card.is-featured {
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(67,176,72,0.18) inset;
}

.docs-article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(67, 176, 72, 0.26);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .docs-article-card:hover {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.docs-article-card--page:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: inherit;
}

.docs-article-card:focus-visible {
  outline: 3px solid rgba(67, 176, 72, 0.28);
  outline-offset: 3px;
}

.docs-article-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.docs-article-title-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.docs-article-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.docs-article-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(67,176,72,0.1);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-article-badge--accent {
  background: rgba(240,68,56,0.1);
  color: var(--red);
}

[data-theme="dark"] .docs-article-badge {
  color: #d7f8db;
}

.docs-article-badge--accent {
  color: var(--red);
}

.docs-article-header h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.docs-anchor-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.docs-anchor-link:hover {
  transform: translateY(-1px);
  border-color: rgba(67, 176, 72, 0.36);
  color: var(--green);
}

.docs-open-btn {
  min-width: 104px;
  box-shadow: 0 10px 24px rgba(67, 176, 72, 0.22);
}

.docs-open-btn:hover {
  color: #fff;
}

.docs-article-excerpt {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.docs-article-hero {
  text-align: left;
  padding-bottom: 56px;
}

.docs-article-hero .breadcrumb {
  justify-content: flex-start;
}

.docs-article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.docs-article-hero-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.docs-article-hero-title .docs-article-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 26px;
}

.docs-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.docs-article-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(148,163,184,0.12);
  color: var(--text-muted);
  font-size: 12px;
}

.docs-article-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 22px;
  border: 1px dashed rgba(67, 176, 72, 0.26);
  background: rgba(67, 176, 72, 0.05);
}

.docs-article-toc-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

[data-theme="dark"] .docs-article-toc-link {
  background: rgba(15,23,42,0.74);
}

.docs-article-toc-link:hover {
  transform: translateY(-1px);
  background: rgba(67,176,72,0.14);
  color: var(--green);
}

.docs-article-toc-link--level-3 {
  padding-left: 16px;
}

.docs-article-toc-link--level-4 {
  padding-left: 20px;
  font-size: 11.5px;
}

.docs-article-body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
}

.docs-article-body > :first-child {
  margin-top: 0;
}

.docs-article-body > :last-child {
  margin-bottom: 0;
}

.docs-article-body h2,
.docs-article-body h3,
.docs-article-body h4 {
  margin: 1.7em 0 0.75em;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.03em;
  scroll-margin-top: calc(var(--nav-height) + var(--announcement-offset) + 34px);
}

.docs-article-body h2 { font-size: clamp(24px, 2.8vw, 32px); }
.docs-article-body h3 { font-size: clamp(20px, 2.3vw, 26px); }
.docs-article-body h4 { font-size: clamp(18px, 2vw, 22px); }

.docs-article-body p,
.docs-article-body ul,
.docs-article-body ol,
.docs-article-body blockquote,
.docs-article-body pre,
.docs-article-body table {
  margin: 0 0 1.15em;
}

.docs-article-body ul,
.docs-article-body ol {
  padding-left: 1.4em;
}

.docs-article-body li + li {
  margin-top: 0.45em;
}

.docs-article-body a {
  color: var(--green);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.docs-article-body a:hover {
  color: var(--red);
}

.docs-article-body blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  border-radius: 0 18px 18px 0;
  background: rgba(67, 176, 72, 0.08);
  color: var(--text);
}

.docs-article-body img {
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.docs-article-body pre,
.docs-article-body code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.docs-article-body pre {
  overflow-x: auto;
  padding: 18px 20px;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
}

.docs-article-body code {
  background: rgba(15, 23, 42, 0.08);
  padding: 2px 6px;
  border-radius: 8px;
  color: var(--text);
}

[data-theme="dark"] .docs-article-body code {
  background: rgba(255,255,255,0.08);
}

.docs-article-body table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.docs-article-body th,
.docs-article-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.docs-article-body th {
  color: var(--text);
  background: rgba(148,163,184,0.1);
}

.docs-empty-state {
  padding: 46px 28px;
  text-align: center;
}

.docs-empty-state--standalone {
  max-width: 760px;
  margin: 0 auto;
}

.docs-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: linear-gradient(135deg, rgba(67,176,72,0.16), rgba(59,130,246,0.12));
}

.docs-empty-state h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.docs-empty-state p {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.8;
}

.docs-empty-state .btn {
  margin-top: 22px;
}

.docs-related-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.docs-related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.docs-related-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.docs-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.docs-related-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.62)),
    radial-gradient(circle at top right, rgba(67,176,72,0.1), transparent 46%);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .docs-related-card {
  background:
    linear-gradient(180deg, rgba(15,23,42,0.88), rgba(15,23,42,0.76)),
    radial-gradient(circle at top right, rgba(67,176,72,0.12), transparent 46%);
}

.docs-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(67, 176, 72, 0.34);
  box-shadow: 0 18px 42px rgba(67, 176, 72, 0.12);
}

.docs-related-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(67,176,72,0.18), rgba(59,130,246,0.14));
  border: 1px solid rgba(67, 176, 72, 0.14);
  font-size: 22px;
}

.docs-related-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.docs-related-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docs-related-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(67,176,72,0.1);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
}

[data-theme="dark"] .docs-related-meta span {
  color: #d7f8db;
}

.docs-related-copy h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
}

.docs-related-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14px;
}

.docs-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 10, 17, 0.74);
  backdrop-filter: blur(12px);
}

.docs-modal-overlay[hidden] {
  display: none;
}

.docs-modal-shell {
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--green) 18%, var(--border));
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.72)),
    radial-gradient(circle at top right, rgba(67,176,72,0.14), transparent 44%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .docs-modal-shell {
  background:
    linear-gradient(180deg, rgba(15,23,42,0.95), rgba(15,23,42,0.86)),
    radial-gradient(circle at top right, rgba(67,176,72,0.14), transparent 44%);
}

.docs-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.82);
}

[data-theme="dark"] .docs-modal-header {
  background: rgba(15,23,42,0.82);
}

.docs-modal-header-copy {
  min-width: 0;
}

.docs-modal-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.docs-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.docs-modal-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
}

.docs-modal-close:hover {
  border-color: rgba(67, 176, 72, 0.4);
  color: var(--green);
}

.docs-modal-body {
  padding: 24px;
}

.docs-modal-meta {
  margin-bottom: 22px;
}

.docs-related-grid--modal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1120px) {
  .docs-related-grid {
    grid-template-columns: 1fr;
  }

  .docs-related-grid--modal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .docs-section {
    padding-top: 60px;
  }

  .docs-group,
  .docs-article-card,
  .docs-empty-state {
    border-radius: 24px;
  }

  .docs-group,
  .docs-article-card {
    padding: 20px;
  }

  .docs-group-header,
  .docs-article-header {
    flex-direction: column;
    align-items: stretch;
  }

  .docs-related-header {
    flex-direction: column;
    align-items: stretch;
  }

  .docs-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .docs-article-title-row {
    gap: 12px;
  }

  .docs-article-hero-title {
    flex-direction: column;
  }

  .docs-anchor-link {
    width: fit-content;
  }

  .docs-article-toc {
    padding: 14px;
  }

  .docs-article-meta {
    gap: 8px;
  }

  .docs-article-meta span {
    width: 100%;
    justify-content: flex-start;
  }

  .docs-search {
    padding: 12px 14px;
  }

  .docs-modal-overlay {
    padding: 12px;
  }

  .docs-modal-shell {
    max-height: calc(100vh - 24px);
    border-radius: 24px;
  }

  .docs-modal-header,
  .docs-modal-body {
    padding: 18px;
  }

  .docs-modal-header {
    flex-direction: column;
  }

  .docs-modal-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* --- Stats Strip --- */
.stats-strip {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 0 24px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* --- Contact Form --- */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.25s ease;
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--green);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(67, 176, 72, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--green-glow); }
  50% { box-shadow: 0 0 0 20px rgba(67, 176, 72, 0); }
}

.pulse { animation: pulse-glow 3s ease infinite; }

/* Marquee */
.marquee-section {
  overflow: hidden;
  padding: 20px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
  align-items: center;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.marquee-item span { font-size: 18px; }

/* --- Tab System --- */
.tab-nav {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: fit-content;
  margin: 0 auto 40px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 4px 12px var(--green-glow);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Pricing Navigator ─────────────────────────────────── */

/* Product-level tab bar */
.pricing-product-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.pricing-product-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.pricing-product-tab:hover {
  border-color: var(--green);
  color: var(--text);
}

.pricing-product-tab.active {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 20px var(--green-glow);
}

.ppt-icon { font-size: 18px; line-height: 1; }
.ppt-label { font-size: 15px; }

/* Product panels */
.pricing-product-panel { display: none; }
.pricing-product-panel.active { display: block; }

.pricing-product-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Category sub-tab bar */
.pricing-cat-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: fit-content;
  margin: 0 auto 36px;
}

.pricing-cat-tab {
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.22s;
  white-space: nowrap;
}

.pricing-cat-tab:hover { color: var(--text); background: var(--overlay); }

.pricing-cat-tab.active {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 3px 10px var(--green-glow);
}

/* Category panels */
.pricing-cat-panel { display: none; }
.pricing-cat-panel.active { display: block; }

/* Narrow grid for 1–2 cards */
.pricing-grid-narrow {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Pricing Filter Bar ── */
.pf-bar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--green) 10%, transparent), transparent 32%),
    var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--border) 82%, white 18%);
  border-radius: 28px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 20px 50px rgba(16, 34, 28, 0.08);
}

.pf-group {
  --pf-accent: var(--green);
  --pf-accent-strong: var(--green-dark);
  --pf-soft: color-mix(in srgb, var(--green) 10%, white 90%);
  --pf-border: color-mix(in srgb, var(--green) 24%, var(--border) 76%);
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--pf-border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--pf-soft) 92%, white 8%), rgba(255,255,255,0.92)),
    var(--bg-card);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 12px 28px color-mix(in srgb, var(--pf-accent) 10%, transparent);
}

.pf-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--pf-accent-strong) 44%, var(--text) 56%);
  white-space: nowrap;
  min-width: 0;
  line-height: 1.1;
}

.pf-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-group-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pf-group-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pf-accent) 14%, white 86%);
  color: color-mix(in srgb, var(--pf-accent-strong) 65%, var(--text) 35%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pf-group-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pf-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent-strong));
  color: white;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--pf-accent) 28%, transparent);
  flex-shrink: 0;
}

.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid color-mix(in srgb, var(--pf-accent) 20%, var(--border) 80%);
  background: color-mix(in srgb, white 84%, var(--pf-soft) 16%);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.pf-chip[hidden] {
  display: none;
}

.pf-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--pf-accent) 52%, transparent);
  color: var(--text);
  background: color-mix(in srgb, white 62%, var(--pf-soft) 38%);
}

.pf-chip.active {
  background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent-strong));
  border-color: transparent;
  color: white;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pf-accent) 32%, transparent);
}

.pf-chip-icon {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.pf-select {
  width: 100%;
  padding: 10px 38px 10px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--pf-accent) 26%, var(--border) 74%);
  background: color-mix(in srgb, white 88%, var(--pf-soft) 12%);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pf-select:focus,
.pf-select:hover {
  border-color: color-mix(in srgb, var(--pf-accent) 56%, transparent);
}

.pf-select:focus {
  border-color: color-mix(in srgb, var(--pf-accent) 60%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pf-accent) 18%, transparent);
}

.pf-sort-wrap {
  width: 100%;
  max-width: 280px;
}

.pf-group-product {
  --pf-accent: #31a24c;
  --pf-accent-strong: #1f7d37;
  --pf-soft: #edf9f0;
}

.pf-group-category {
  --pf-accent: #2f7cf6;
  --pf-accent-strong: #1959c7;
  --pf-soft: #edf4ff;
}

.pf-group-subcategory {
  --pf-accent: #8a5cf6;
  --pf-accent-strong: #653bc3;
  --pf-soft: #f4efff;
}

.pf-group-validity {
  --pf-accent: #f2a33b;
  --pf-accent-strong: #d67c12;
  --pf-soft: #fff4e4;
}

.pf-group-price {
  --pf-accent: #e45f78;
  --pf-accent-strong: #c43b56;
  --pf-soft: #fff0f3;
}

.pf-group-sort {
  --pf-accent: #1e8c88;
  --pf-accent-strong: #146763;
  --pf-soft: #e9f8f6;
}

.pf-group-product,
.pf-group-category,
.pf-group-subcategory {
  grid-column: span 6;
}

.pf-group-validity,
.pf-group-price,
.pf-group-sort {
  grid-column: span 4;
}

[data-theme="dark"] .pf-bar {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--green) 14%, transparent), transparent 34%),
    color-mix(in srgb, var(--bg-card) 92%, #0a1210 8%);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 22px 52px rgba(0,0,0,0.32);
}

[data-theme="dark"] .pf-group {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--pf-soft) 10%, rgba(255,255,255,0.02) 90%), rgba(13,20,23,0.88)),
    var(--bg-card);
  border-color: color-mix(in srgb, var(--pf-accent) 28%, rgba(255,255,255,0.08) 72%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 16px 34px rgba(0,0,0,0.2);
}

[data-theme="dark"] .pf-chip {
  background: rgba(255,255,255,0.04);
}

/* Results meta row */
.pf-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  min-height: 24px;
}

.pf-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.pf-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.pf-clear:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

/* Filter grid — flex for ordering */
.pf-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.pf-grid .pf-card {
  flex: 1 1 260px;
  max-width: 380px;
  transition: opacity 0.3s ease, transform 0.35s ease, max-height 0.4s ease;
}

/* Hidden state — card fades + shrinks */
.pf-card.pf-hidden {
  display: none;
}

/* Pop-in animation on filter change */
@keyframes pfPop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.pf-card.pf-pop {
  animation: pfPop 0.35s cubic-bezier(0.34, 1.36, 0.64, 1) both;
}

/* Empty state */
.pf-empty {
  text-align: center;
  padding: 60px 20px;
}

.pf-empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.pf-empty h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.pf-empty p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* --- Guarantee Strip --- */
.guarantee-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 8px 30px var(--green-glow);
}

.guarantee-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.guarantee-body {
  flex: 1;
}

.guarantee-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.guarantee-desc {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.6;
}

.guarantee-cta {
  flex-shrink: 0;
  border-color: rgba(255,255,255,0.7) !important;
  color: white !important;
  white-space: nowrap;
}

.guarantee-cta:hover {
  background: rgba(255,255,255,0.15) !important;
}

/* --- Activity Toast --- */
.activity-toast {
  position: fixed;
  bottom: 24px;
  right: 150px;
  z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  transform: translateX(calc(100% + 96px + 58px + 28px));
  transition: transform 0.4s cubic-bezier(0.34,1.36,0.64,1);
  pointer-events: none;
}

.activity-toast.show {
  transform: translateX(0);
}

.activity-toast-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  padding-top: 13px;
}

.activity-toast-live {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -62%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card) 88%, white 12%);
  border: 1px solid color-mix(in srgb, var(--green) 26%, var(--border));
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.activity-toast-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-glow);
  animation: activity-live-pulse 1.6s ease-out infinite;
}

.activity-toast-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-toast-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

.activity-toast-text strong {
  font-weight: 700;
}

.activity-toast-text span {
  color: var(--text-muted);
  font-size: 11px;
  display: block;
  margin-top: 2px;
}

@keyframes activity-live-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(67, 176, 72, 0.45);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 9px rgba(67, 176, 72, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(67, 176, 72, 0);
  }
}

/* --- Japan Salary Motivation --- */
.salary-motivation {
  background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%);
  color: white;
  padding: 60px 0;
}

.salary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.salary-headline {
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.salary-headline .highlight {
  color: var(--green-light);
}

.salary-desc {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.salary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.salary-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 18px;
}

.salary-card-role {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}

.salary-card-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-light);
}

.salary-card-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .salary-grid { grid-template-columns: 1fr; gap: 24px; }
  .guarantee-strip { flex-direction: column; text-align: center; }
  .guarantee-cta { width: 100%; }
}

/* --- Highlights / Feature blocks --- */
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.highlight-visual {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-bg);
}

.illustration-inner {
  text-align: center;
  padding: 40px;
}

.illustration-emoji {
  font-size: 80px;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
  animation: floatBadge 4s ease-in-out infinite;
}

.highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.highlight-list li .icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Blog Cards --- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.blog-thumb {
  height: 200px;
  background: var(--hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.2));
}

.blog-content { padding: 24px; }

.blog-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.blog-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Notice Box --- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.notice-info {
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.2);
  color: var(--text);
}

.notice-warn {
  background: rgba(244, 162, 97, 0.1);
  border: 1px solid rgba(244, 162, 97, 0.2);
  color: var(--text);
}

.notice-success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
  color: var(--text);
}

.notice-icon { font-size: 20px; margin-top: 1px; flex-shrink: 0; }

/* App download buttons */
.app-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
}

.app-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: var(--bg);
}

.app-btn-icon { font-size: 24px; }

.app-btn-text { line-height: 1.2; }
.app-btn-small { font-size: 10px; opacity: 0.8; }
.app-btn-big { font-size: 15px; font-weight: 700; }

/* Progress bar */
.skill-bar { margin-bottom: 14px; }
.skill-bar-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.skill-bar-track { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.skill-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  width: 0;
  transition: width 1.5s ease;
}

/* Tag pills */
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 12px;
  background: var(--badge-bg);
  color: var(--text-muted);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
}

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

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-payments-grid { grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
}

@media (max-width: 920px) {
  .nav-container {
    padding: 0 18px;
  }

  .nav-links {
    display: none;
  }

  .nav-logo {
    gap: 8px;
  }

  .nav-logo-img {
    height: calc(var(--brand-logo-size) * 0.9);
    max-width: 160px;
  }

  .nav-logo-title {
    font-size: calc(var(--brand-company-name-size) * 0.93);
  }

  .nav-logo-sub {
    font-size: calc(var(--brand-subtitle-size) * 0.9);
  }

  .nav-actions {
    gap: 8px;
  }

  .hamburger { display: flex; }
  .theme-toggle { display: flex; }
  .nav-actions .btn-sm {
    min-height: 44px;
    padding: 0 14px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 14px;
  }

  .nav-logo {
    max-width: calc(100% - 140px);
  }

  .nav-logo-title {
    font-size: calc(var(--brand-company-name-size) * 0.87);
  }

  .nav-logo-sub {
    font-size: calc(var(--brand-subtitle-size) * 0.8);
    letter-spacing: 0.04em;
  }

  .nav-actions .btn-sm {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .theme-toggle,
  .hamburger {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .hamburger span {
    width: 20px;
  }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-content,
  .hero-visual {
    min-width: 0;
  }
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--announcement-offset) + 32px);
    padding-bottom: 48px;
  }
  .hero-visual {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .hero-phone-slider-wrap {
    width: 100%;
    min-height: 0;
    padding: 44px 22px 74px;
  }
  .hero-phone-mockup {
    width: 100%;
    gap: 14px;
  }
  .phone-frame-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .phone-frame {
    width: min(100%, 220px);
    border-radius: 30px;
    padding: 8px;
  }
  .phone-screen-area { border-radius: 22px; }
  .phone-notch-bar { padding: 7px 0 5px; }
  .phone-speaker { width: 40px; height: 4px; }
  .phone-cam { width: 8px; height: 8px; }
  .phone-slide-overlay {
    transform: translateY(0);
    padding: 16px 10px 8px;
  }
  .pso-title { font-size: 10px; }
  .pso-sub { font-size: 9px; }
  .hero-float-badge {
    max-width: 132px;
    padding: 6px 10px;
    border-radius: 18px;
    font-size: 10px;
    gap: 5px;
    line-height: 1.25;
    white-space: normal;
  }
  .hero-float-badge.badge-sm,
  .hero-float-badge.badge-md,
  .hero-float-badge.badge-lg {
    padding: 6px 10px;
    font-size: 10px;
  }
  .hero-float-badge.top-left {
    top: 0;
    left: 0;
  }
  .hero-float-badge.top-right {
    top: 24px;
    right: 0;
  }
  .hero-float-badge.mid-left {
    top: 184px;
    left: 4px;
  }
  .hero-float-badge.mid-right {
    top: 214px;
    right: 4px;
  }
  .hero-float-badge.bottom-left {
    bottom: 70px;
    left: 0;
  }
  .hero-float-badge.bottom-right {
    bottom: 100px;
    right: 0;
  }
  .hero-float-badge.lower-center {
    bottom: 10px;
    max-width: 150px;
  }
  .phone-slider-dots { gap: 5px; }
  .psd { width: 6px; height: 6px; }
  .psd.active { width: 16px; }
  .hero-stats { gap: 20px; }
  .hero-eyebrow,
  .hero-actions .btn,
  .hero-micro-trust span {
    white-space: normal;
  }

  .features-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .highlight-visual {
    aspect-ratio: auto;
    min-height: 0;
    overflow: visible;
  }
  .highlight-illustration {
    min-height: 0;
    padding: 28px 16px;
  }
  .illustration-inner {
    width: 100%;
    padding: 12px 0 0;
  }
  .illustration-emoji {
    font-size: 64px;
    margin-bottom: 12px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-payments { padding: 20px 18px; border-radius: 20px; }
  .footer-payments-header { flex-direction: column; align-items: stretch; }
  .footer-payments-badge { align-self: flex-start; }
  .footer-payments-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
  .payment-card { min-height: 86px; padding: 12px 10px 11px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(even)::after { display: none; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pf-bar { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .pf-divider { display: none; }
  .pf-group,
  .pf-group-product,
  .pf-group-category,
  .pf-group-subcategory,
  .pf-group-validity,
  .pf-group-price,
  .pf-group-sort { grid-column: span 1; width: 100%; padding: 14px; border-radius: 18px; }
  .pf-group-title-row { gap: 8px; }
  .pf-group-icon { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
  .pf-label { gap: 7px; font-size: 13px; white-space: normal; }
  .pf-group-kicker { padding: 3px 7px; font-size: 8px; }
  .pf-chips { gap: 6px; }
  .pf-chip { font-size: 12px; padding: 5px 11px; }
  .pf-sort-wrap, .pf-select { width: 100%; max-width: none; }
  .pf-grid .pf-card { flex: 1 1 100%; max-width: 100%; }
  .cta-section { margin: 0; border-radius: 0; padding: 60px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .page-hero { padding: calc(52px + var(--nav-height) + var(--announcement-offset)) 0 60px; }
  .contact-form { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .loader-logo {
    gap: 14px;
  }

  .loader-icon,
  .loader-icon img {
    width: 60px;
    height: 60px;
  }

  .loader-bar {
    width: 124px;
    height: 3.5px;
  }

  .nav-container {
    padding: 0 12px;
  }

  .nav-logo {
    max-width: calc(100% - 132px);
  }

  .nav-logo-title {
    font-size: calc(var(--brand-company-name-size) * 0.8);
  }

  .nav-logo-sub {
    font-size: calc(var(--brand-subtitle-size) * 0.7);
    letter-spacing: 0.03em;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn-sm {
    padding: 0 10px;
    font-size: 11px;
  }

  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item::after { display: none !important; }
  .tab-nav { width: 100%; flex-wrap: wrap; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-payments-copy { font-size: 12.5px; }
  .footer-payments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.fw-bold { font-weight: 700; }
.gap-12 { gap: 12px; }
.d-flex { display: flex; }
.align-center { align-items: center; }

/* Floating whatsapp button */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse-green 3s ease infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 6px 40px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--green);
  color: white;
  border-color: var(--green);
  transform: translateY(-3px);
}

/* Loading animation */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeIn 0.3s ease;
}

.loader-icon {
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  animation: pulse-glow 1.5s ease infinite;
}

.loader-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.loader-bar {
  width: 160px; height: 4.5px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: 2px;
  animation: loaderFill 1.2s ease forwards;
}

@keyframes loaderFill {
  from { width: 0; }
  to { width: 100%; }
}

/* =========================================
   Marketing Enhancements
   ========================================= */

/* --- Announcement Banner --- */
.announcement-banner {
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  position: relative;
  z-index: 1100;
  font-size: 14px;
  max-height: 200px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
}
.announcement-banner.is-hidden {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.announcement-pulse {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.announcement-text { flex: 1; min-width: 200px; }
.announcement-text p,
.announcement-text div {
  margin: 0;
}
.announcement-text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}
.announcement-text span,
.announcement-text strong,
.announcement-text em,
.announcement-text b,
.announcement-text i,
.announcement-text u,
.announcement-text small,
.announcement-text mark,
.announcement-text sub,
.announcement-text sup {
  color: inherit;
}
.announcement-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 3px 12px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.4);
  transition: background 0.2s;
}
.announcement-cta:hover { background: rgba(255,255,255,0.35); }
.announcement-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.announcement-close:hover { color: #fff; }

/* --- Hero Trust Strip --- */
.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
  font-size: 13px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.trust-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
}
.trust-label {
  color: var(--text-muted);
  font-size: 12px;
}
.trust-sep { color: var(--border); font-size: 18px; }

/* --- Hero Micro Trust --- */
.hero-micro-trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.hero-micro-trust span { white-space: nowrap; }

/* --- Pulse Button --- */
.pulse-btn {
  animation: btnPulse 2.5s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(67,176,72,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(67,176,72,0); }
}

/* --- Score Improvement Strip --- */
.score-improvement-strip {
  background: var(--bg);
  padding: 56px 0 40px;
}
.si-header { text-align: center; margin-bottom: 32px; }
.si-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.si-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.si-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.si-before { color: var(--text-muted); font-size: 14px; }
.si-before strong { color: var(--text); font-weight: 700; }
.si-arrow { font-size: 22px; color: var(--green); margin: 4px 0; }
.si-after { font-size: 14px; }
.si-after strong { font-size: 24px; font-weight: 900; color: var(--green); }
.si-delta {
  display: inline-block;
  margin: 8px 0 6px;
  background: var(--badge-bg);
  color: var(--green);
  border-radius: 100px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 800;
}
.si-name { font-size: 12px; color: var(--text-muted); }

/* --- Testimonial Score Jump --- */
.testimonial-score-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--badge-bg);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  width: fit-content;
}
.tsj-before { color: var(--text-muted); }
.tsj-arrow { color: var(--green); font-size: 16px; }
.tsj-after { color: var(--green); font-size: 18px; }
.tsj-label { color: var(--text-muted); font-size: 12px; font-weight: 400; }

/* --- Comparison Table --- */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 14px;
}
.comparison-table thead {
  background: var(--green);
  color: #fff;
}
.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
}
.comparison-table th.col-us {
  background: var(--green-dark);
  text-align: center;
  min-width: 160px;
}
.comparison-table th.col-other {
  background: #555;
  text-align: center;
  min-width: 160px;
}
.comparison-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) { background: var(--bg); }
.comparison-table td.yes {
  text-align: center;
  font-size: 18px;
  color: var(--green);
  font-weight: 700;
}
.comparison-table td.no {
  text-align: center;
  font-size: 18px;
  color: #e74c3c;
  font-weight: 700;
}
.comparison-table td.partial {
  text-align: center;
  font-size: 13px;
  color: #f39c12;
  font-weight: 600;
}
@media (max-width: 600px) {
  .comparison-table th, .comparison-table td { padding: 10px 12px; font-size: 12px; }
  .hero-grid { gap: 28px; }
  .hero-eyebrow {
    gap: 6px;
    padding: 6px 12px;
    font-size: 9px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(25px, 8vw, 44px);
    margin-bottom: 14px;
  }
  .hero-subtitle {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .hero-trust-strip {
    gap: 8px;
    margin: 12px 0 6px;
    font-size: 10px;
  }
  .trust-item { gap: 4px; }
  .trust-num { font-size: 13px; }
  .trust-label { font-size: 9px; }
  .trust-sep { font-size: 13px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 11px;
    border-radius: 10px;
    line-height: 1.35;
    text-align: center;
  }
  .hero .app-btns {
    gap: 8px !important;
    margin-top: 12px !important;
  }
  .hero .app-btns img {
    height: 28px !important;
  }
  .hero-micro-trust {
    gap: 8px;
    margin-top: 10px;
    font-size: 9px;
  }
  .hero-stats {
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
  }
  .hero-stat-num { font-size: 20px; }
  .hero-stat-label { font-size: 9px; }
  .hero-visual { max-width: 280px; }
  .hero-phone-slider-wrap { padding: 30px 16px 52px; }
  .hero-phone-mockup { gap: 12px; }
  .phone-frame { width: min(100%, 154px); border-radius: 22px; padding: 7px; }
  .phone-screen-area { border-radius: 16px; }
  .phone-notch-bar { padding: 5px 0 4px; }
  .phone-speaker { width: 28px; height: 3px; }
  .phone-cam { width: 6px; height: 6px; border-width: 1px; }
  .phone-slide-overlay { padding: 12px 8px 6px; }
  .pso-title { font-size: 8px; }
  .pso-sub { font-size: 7px; }
  .phone-home-bar {
    width: 36px;
    height: 3px;
    margin: 4px auto 6px;
  }
  .hero-float-badge {
    max-width: 96px;
    padding: 4px 7px;
    border-radius: 14px;
    font-size: 7px;
    gap: 4px;
    line-height: 1.2;
  }
  .hero-float-badge.badge-sm,
  .hero-float-badge.badge-md,
  .hero-float-badge.badge-lg {
    padding: 4px 7px;
    font-size: 7px;
  }
  .hero-float-badge.top-left { top: 4px; left: 0; }
  .hero-float-badge.top-right { top: 18px; right: 0; }
  .hero-float-badge.mid-left { top: 132px; left: 0; }
  .hero-float-badge.mid-right { top: 152px; right: 0; }
  .hero-float-badge.bottom-left { bottom: 50px; left: 0; }
  .hero-float-badge.bottom-right { bottom: 68px; right: 0; }
  .hero-float-badge.lower-center {
    bottom: 4px;
    max-width: 114px;
  }
  .phone-slider-dots { gap: 4px; }
  .psd { width: 5px; height: 5px; }
  .psd.active { width: 12px; }
  .si-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Homepage Pricing Product Cards ───────────────────────── */
.hp-pricing-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 8px;
}

.hp-pricing-product {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.hp-pricing-product:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.hp-pricing-product-featured {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(67,176,72,0.12), var(--shadow-hover);
}

.hpp-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hpp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hpp-icon { font-size: 28px; line-height: 1; }

.hpp-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.hpp-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hpp-range {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 7px 12px;
  background: var(--overlay);
  border-radius: 8px;
}

.hpp-range strong { color: var(--text); }

.hpp-packages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.hpp-pkg-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--overlay);
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
  white-space: nowrap;
}

.hpp-pkg-chip:hover {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.hpp-pkg-chip-featured {
  background: rgba(67,176,72,0.12);
  color: var(--green);
  border-color: rgba(67,176,72,0.3);
}

.hpp-cta { width: 100%; }

@media (max-width: 900px) {
  .hp-pricing-products { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .pricing-product-tabs { gap: 6px; }
  .pricing-product-tab  { padding: 10px 16px; font-size: 13px; }
  .pricing-cat-tabs     { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .pricing-cat-tab      { font-size: 12px; padding: 7px 14px; }
  .activity-toast {
    bottom: 24px;
    right: 100px;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.15);
    padding: 8px 11px;
    gap: 7px;
    max-width: 150px;
    transform: translateX(calc(100% + 60px + 35px + 17px));
  }
  .activity-toast-avatar-wrap {
    padding-top: 8px;
  }
  .activity-toast-live {
    gap: 3px;
    padding: 1px 3px;
    font-size: 5px;
  }
  .activity-toast-live-dot {
    width: 4px;
    height: 4px;
  }
  .activity-toast-avatar {
    width: 23px;
    height: 23px;
    font-size: 10px;
  }
  .activity-toast-text {
    font-size: 8px;
    line-height: 1.3;
  }
  .activity-toast-text span {
    font-size: 7px;
    margin-top: 1px;
  }
}

@media (max-width: 480px) {
  .hero-visual { max-width: 260px; }
  .hero-phone-slider-wrap { padding: 24px 8px 48px; }
  .phone-frame { width: min(100%, 140px); border-radius: 20px; }
  .phone-screen-area { border-radius: 14px; }
  .hero-float-badge {
    max-width: 88px;
    padding: 4px 6px;
    font-size: 7px;
  }
  .hero-float-badge.mid-left,
  .hero-float-badge.mid-right,
  .hero-float-badge.bottom-right {
    display: none;
  }
  .hero-float-badge.top-right { top: 16px; }
  .hero-float-badge.bottom-left { bottom: 48px; }
  .hero-float-badge.lower-center {
    bottom: 4px;
    max-width: 104px;
  }
}

/* =========================================
   Phone Mockup Slider — Hero
   ========================================= */

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

.hero-phone-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.phone-frame-wrap {
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35));
  transition: transform 0.3s ease;
}

.phone-frame-wrap:hover {
  transform: translateY(-1px) scale(1.04);
}

.phone-frame {
  position: relative;
  width: 320px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 10px;
  border: 2px solid #333;
  box-shadow:
    inset 0 0 0 1px #444,
    0 0 0 1px #111,
    0 20px 60px rgba(0,0,0,0.5);
}

.phone-side-btn {
  position: absolute;
  background: #2a2a2a;
  border-radius: 3px;
}
.phone-vol-up  { width: 3px; height: 28px; left: -5px; top: 80px; }
.phone-vol-down{ width: 3px; height: 28px; left: -5px; top: 116px; }
.phone-power   { width: 3px; height: 38px; right: -5px; top: 100px; }

.phone-screen-area {
  background: #000;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/19.5;
  display: flex;
  flex-direction: column;
}

.phone-notch-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 6px;
  background: #000;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}
.phone-speaker {
  width: 48px; height: 5px;
  background: #222;
  border-radius: 3px;
}
.phone-cam {
  width: 10px; height: 10px;
  background: #1a1a1a;
  border-radius: 50%;
  border: 1.5px solid #333;
}

.phone-slides-track {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
  transform: translateX(40px) scale(0.97);
}
.phone-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.phone-slide.exit {
  opacity: 0;
  transform: translateX(-40px) scale(0.97);
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder screens */
.phone-placeholder-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: #fff;
}
.pps-status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 6px 14px;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}
.pps-icon { font-size: 2.4rem; margin-bottom: 4px; }
.pps-title { font-size: 13px; font-weight: 700; color: #fff; text-align: center; }
.pps-sub   { font-size: 10px; color: rgba(255,255,255,0.6); text-align: center; }
.pps-progress-wrap {
  width: 80%;
  height: 5px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
}
.pps-progress-bar {
  height: 100%;
  width: var(--pw, 70%);
  background: linear-gradient(90deg, #43B048, #7dd87f);
  border-radius: 3px;
  animation: ppsFill 1.2s ease both;
}
@keyframes ppsFill {
  from { width: 0; }
  to   { width: var(--pw, 70%); }
}
.pps-tag {
  font-size: 10px;
  font-weight: 700;
  color: #43B048;
  background: rgba(67,176,72,0.15);
  border-radius: 100px;
  padding: 3px 10px;
}
.pps-items { width: 80%; display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.pps-item {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  width: 100%;
}
.pps-item:nth-child(2) { width: 75%; }
.pps-item:nth-child(3) { width: 55%; }

/* Hover overlay on slides */
.phone-slide-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  padding: 20px 12px 10px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.phone-frame-wrap:hover .phone-slide-overlay {
  transform: translateY(0);
}
.pso-title { font-size: 11px; font-weight: 700; color: #fff; }
.pso-sub   { font-size: 10px; color: rgba(255,255,255,0.7); margin-top: 2px; }

.phone-home-bar {
  height: 4px;
  width: 50px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  margin: 6px auto 8px;
  flex-shrink: 0;
}

/* Slider dots */
.phone-slider-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.psd {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.3s;
}
.psd.active {
  background: var(--green);
  width: 20px;
  border-radius: 4px;
}

/* =========================================
   Phone Fan Gallery — Learners Who Passed
   ========================================= */

.phone-fan-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin: 40px 0 50px;
  height: 320px;
  perspective: 1200px;
  position: relative;
}

.pfg-phone {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), z-index 0s;
  cursor: pointer;
  flex-shrink: 0;
}

/* Fan rotation offsets */
.pfg-phone:nth-child(1) { transform: rotate(-28deg) translateY(40px); z-index: 1; }
.pfg-phone:nth-child(2) { transform: rotate(-14deg) translateY(16px); z-index: 2; }
.pfg-phone:nth-child(3) { transform: rotate(0deg)   translateY(0);    z-index: 5; }
.pfg-phone:nth-child(4) { transform: rotate(14deg)  translateY(16px); z-index: 2; }
.pfg-phone:nth-child(5) { transform: rotate(28deg)  translateY(40px); z-index: 1; }

.pfg-phone:hover,
.pfg-phone.pfg-center {
  transform: rotate(0deg) translateY(-12px) scale(1.04) !important;
  z-index: 10 !important;
}

.pfg-phone:nth-child(1):hover { transform: rotate(-28deg) translateY(24px) scale(1.06) !important; z-index: 10 !important; }
.pfg-phone:nth-child(2):hover { transform: rotate(-14deg) translateY(4px)  scale(1.06) !important; z-index: 10 !important; }
.pfg-phone:nth-child(4):hover { transform: rotate(14deg)  translateY(4px)  scale(1.06) !important; z-index: 10 !important; }
.pfg-phone:nth-child(5):hover { transform: rotate(28deg)  translateY(24px) scale(1.06) !important; z-index: 10 !important; }

.pfg-frame {
  position: relative;
  width: 120px;
  background: #1a1a1a;
  border-radius: 22px;
  padding: 6px;
  border: 1.5px solid #333;
  box-shadow:
    inset 0 0 0 1px #444,
    0 0 0 1px #111,
    0 15px 40px rgba(0,0,0,0.55);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}

.pfg-phone.pfg-center .pfg-frame {
  width: 150px;
  box-shadow:
    inset 0 0 0 1px #555,
    0 0 0 1px #222,
    0 25px 60px rgba(0,0,0,0.6),
    0 0 40px rgba(67,176,72,0.2);
}

.pfg-side-btn {
  position: absolute;
  background: #2a2a2a;
  border-radius: 2px;
}
.pfg-vol   { width: 2px; height: 18px; left: -3px; top: 50px; }
.pfg-power { width: 2px; height: 22px; right: -3px; top: 60px; }

.pfg-screen {
  background: #000;
  border-radius: 17px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pfg-notch-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 0 4px;
  background: #000;
  flex-shrink: 0;
}
.pfg-speaker { width: 28px; height: 3px; background: #222; border-radius: 2px; }
.pfg-cam     { width: 6px; height: 6px; background: #1a1a1a; border-radius: 50%; border: 1px solid #333; }

.pfg-screen img {
  flex: 1;
  width: 100%;
  object-fit: cover;
  display: block;
}

.pfg-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  position: relative;
}
.pfg-ph-status {
  position: absolute; top: 2px; left: 4px; right: 4px;
  display: flex; justify-content: space-between;
  font-size: 7px; color: rgba(255,255,255,0.5);
}
.pfg-ph-icon  { font-size: 1.6rem; }
.pfg-ph-title { font-size: 7px; font-weight: 700; color: #fff; text-align: center; }
.pfg-ph-bar   { width: 70%; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.pfg-ph-fill  { height: 100%; width: var(--fw,70%); background: linear-gradient(90deg,#43B048,#7dd87f); border-radius: 2px; }
.pfg-ph-rows  { width: 70%; display: flex; flex-direction: column; gap: 3px; }
.pfg-ph-rows > div { height: 5px; background: rgba(255,255,255,0.07); border-radius: 2px; }
.pfg-ph-rows > div:nth-child(2) { width: 75%; }
.pfg-ph-rows > div:nth-child(3) { width: 55%; }

.pfg-info-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  padding: 14px 8px 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.pfg-phone:hover .pfg-info-overlay,
.pfg-phone.pfg-center .pfg-info-overlay { opacity: 1; transform: translateY(0); }
.pfg-info-title { font-size: 8px; font-weight: 700; color: #fff; }
.pfg-info-sub   { font-size: 7px; color: rgba(255,255,255,0.65); margin-top: 1px; }

.pfg-home-bar {
  height: 3px; width: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 4px auto 5px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .phone-fan-gallery { height: 220px; }
  .pfg-frame { width: 80px; border-radius: 16px; }
  .pfg-phone.pfg-center .pfg-frame { width: 100px; }
  .pfg-screen { border-radius: 12px; }
  .phone-frame-wrap:hover { transform: none; }
}
