
  /* === Hero === */
  .features-hero {
    position: relative;
    padding: var(--space-24) 0 var(--space-16);
    text-align: center;
    overflow: hidden;
  }

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

  .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
  }

  .orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -150px;
    right: -100px;
  }

  .orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
  }

  @keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-10px, 10px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
  }

  .grid-lines {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  }

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

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-extrabold);
    letter-spacing: var(--tracking-tighter);
    margin: var(--space-4) 0;
    line-height: 1.1;
  }

  .title-line {
    display: block;
    color: var(--text-primary);
  }

  .title-gradient {
    display: block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
  }

  @keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  .hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
  }

  /* === Feature Showcase === */
  .feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    margin-bottom: var(--space-24);
  }

  .feature-row.reverse {
    direction: rtl;
  }

  .feature-row.reverse > * {
    direction: ltr;
  }

  @media (max-width: 1024px) {
    .feature-row,
    .feature-row.reverse {
      grid-template-columns: 1fr;
      direction: ltr;
      gap: var(--space-10);
    }
  }

  .feature-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--brand-gradient-subtle);
    color: var(--brand-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
  }

  .feature-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
  }

  .feature-desc {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
  }

  .feature-list {
    list-style: none;
  }

  .feature-list li {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .feature-check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: var(--success-muted);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
  }

  .feature-check::after {
    content: '✓';
    font-size: 14px;
    color: var(--success);
  }

  .feature-list li strong {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
  }

  .feature-list li span {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
  }

  /* === Visual Previews === */
  .feature-visual {
    display: flex;
    justify-content: center;
  }

  /* Code Preview */
  .code-preview {
    width: 100%;
    max-width: 480px;
    background: var(--surface-1);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
  }

  .code-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border-subtle);
  }

  .code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
  }

  .code-dot.red { background: #EF4444; }
  .code-dot.yellow { background: #F59E0B; }
  .code-dot.green { background: #22C55E; }

  .code-title {
    margin-left: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
  }

  .code-body {
    padding: var(--space-6);
    margin: 0;
    overflow-x: auto;
  }

  .code-body code {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.8;
  }

  /* Domains Preview */
  .domains-preview {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .domain-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--surface-1);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    transition: all var(--duration-fast);
  }

  .domain-card.active {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
  }

  .domain-card.inactive {
    opacity: 0.6;
  }

  .domain-status {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
  }

  .domain-card.inactive .domain-status {
    background: var(--text-quaternary);
  }

  .domain-info {
    flex: 1;
  }

  .domain-name {
    display: block;
    font-weight: var(--font-medium);
    color: var(--text-primary);
    font-size: var(--text-sm);
  }

  .domain-meta {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }

  .domain-badge {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    background: var(--surface-3);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
  }

  .domain-badge.success {
    background: var(--success-muted);
    color: var(--success);
  }

  .domain-badge.warning {
    background: var(--warning-muted);
    color: var(--warning);
  }

  /* Globe Preview */
  .globe-preview {
    width: 320px;
    height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .globe-ring {
    position: absolute;
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse-ring 3s infinite;
  }

  .globe-ring:nth-child(1) {
    width: 200px;
    height: 200px;
  }

  .globe-ring:nth-child(2) {
    width: 260px;
    height: 260px;
    animation-delay: 0.5s;
  }

  .globe-ring:nth-child(3) {
    width: 320px;
    height: 320px;
    animation-delay: 1s;
  }

  @keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.4; }
  }

  .globe-center {
    width: 120px;
    height: 120px;
    background: var(--brand-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-lg);
    z-index: 1;
  }

  .globe-latency {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: white;
  }

  .globe-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.8);
  }

  .globe-stat {
    position: absolute;
    text-align: center;
    padding: var(--space-3) var(--space-4);
    background: var(--surface-1);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
  }

  .globe-stat .stat-value {
    display: block;
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
  }

  .globe-stat .stat-label {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }

  .globe-stat.top-left { top: 20px; left: 0; }
  .globe-stat.top-right { top: 20px; right: 0; }
  .globe-stat.bottom-left { bottom: 20px; left: 0; }
  .globe-stat.bottom-right { bottom: 20px; right: 0; }

  /* === Feature Grid === */
  .section-header {
    text-align: center;
    margin-bottom: var(--space-16);
  }

  .section-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
  }

  .section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
  }

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

  @media (max-width: 1280px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
  }

  .grid-feature {
    padding: var(--space-6);
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal);
  }

  .grid-feature:hover {
    border-color: var(--border-default);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }

  .grid-feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient-subtle);
    border-radius: var(--radius-lg);
    color: var(--brand-primary);
    margin-bottom: var(--space-4);
  }

  .grid-feature-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
  }

  .grid-feature-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
  }

  /* === CTA === */
  .cta-section {
    padding-bottom: var(--space-24);
  }

  .cta-card {
    text-align: center;
    padding: var(--space-16);
    background: var(--brand-gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-3xl);
  }

  .cta-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
  }

  .cta-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
  }

  .cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ═══════════════════════════════════════════════════════════════════════════════
     LIGHT MODE OVERRIDES — Showcase elements stay dark for contrast
     ═══════════════════════════════════════════════════════════════════════════════ */
  html.light-mode .code-preview {
    background: #0F0F12 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  html.light-mode .code-header {
    background: #141418 !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  }

  html.light-mode .code-title {
    color: rgba(255, 255, 255, 0.6) !important;
  }

  html.light-mode .code-body code {
    color: rgba(255, 255, 255, 0.72) !important;
  }

  html.light-mode .domain-card {
    background: #0F0F12 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  html.light-mode .domain-name {
    color: rgba(255, 255, 255, 0.95) !important;
  }

  html.light-mode .domain-meta {
    color: rgba(255, 255, 255, 0.6) !important;
  }

  html.light-mode .domain-badge {
    background: #1A1A1F !important;
    color: rgba(255, 255, 255, 0.72) !important;
  }

  html.light-mode .domain-card.inactive .domain-status {
    background: rgba(255, 255, 255, 0.5) !important;
  }

  html.light-mode .globe-stat {
    background: #0F0F12 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  html.light-mode .globe-stat .stat-value {
    color: rgba(255, 255, 255, 0.95) !important;
  }

  html.light-mode .globe-stat .stat-label {
    color: rgba(255, 255, 255, 0.6) !important;
  }

  html.light-mode .grid-feature {
    background: #0F0F12 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  html.light-mode .grid-feature:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
  }

  html.light-mode .grid-feature-title {
    color: rgba(255, 255, 255, 0.95) !important;
  }

  html.light-mode .grid-feature-desc {
    color: rgba(255, 255, 255, 0.72) !important;
  }

  html.light-mode .grid-feature-icon {
    color: var(--brand-primary-hover) !important;
  }

  /* ═══ MICRO-ANIMATIONS ═══ */

  /* Grid Card Hover Shine Sweep */
  .grid-feature {
    position: relative;
    overflow: hidden;
  }
  .grid-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      transparent 40%,
      rgba(255,255,255,0.03) 45%,
      rgba(255,255,255,0.06) 50%,
      rgba(255,255,255,0.03) 55%,
      transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
  }
  .grid-feature:hover::before {
    transform: translateX(100%);
  }

  /* Icon Glow on Card Hover */
  .grid-feature:hover .grid-feature-icon {
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
    transform: scale(1.08);
    transition: all 0.3s ease;
  }

  /* Feature Row Visual Hover Polish */
  .feature-visual .code-preview,
  .feature-visual .domains-preview,
  .feature-visual .globe-preview {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  .feature-row:hover .code-preview {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(99,102,241,0.08);
  }
  .feature-row:hover .domains-preview {
    transform: translateY(-2px);
  }

  /* Domain Card Active Status Pulse */
  .domain-card.active .domain-status {
    animation: statusPulse 2s ease-in-out infinite;
  }
  @keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  }

  /* Globe Stat Float Animation */
  .globe-stat {
    animation: statFloat 4s ease-in-out infinite;
  }
  .globe-stat.top-left { animation-delay: 0s; }
  .globe-stat.top-right { animation-delay: 1s; }
  .globe-stat.bottom-left { animation-delay: 2s; }
  .globe-stat.bottom-right { animation-delay: 3s; }
  @keyframes statFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  /* Feature Badge Subtle Shimmer */
  .feature-badge {
    position: relative;
    overflow: hidden;
  }
  .feature-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
      105deg,
      transparent 0%,
      rgba(255,255,255,0.15) 40%,
      rgba(255,255,255,0.25) 50%,
      rgba(255,255,255,0.15) 60%,
      transparent 100%
    );
    animation: badgeShimmer 5s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes badgeShimmer {
    0%, 100% { left: -75%; }
    50% { left: 125%; }
  }

  /* CTA Button Shimmer */
  .cta-card .btn-primary {
    position: relative;
    overflow: hidden;
  }
  .cta-card .btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
      105deg,
      transparent 0%,
      rgba(255,255,255,0.1) 40%,
      rgba(255,255,255,0.2) 50%,
      rgba(255,255,255,0.1) 60%,
      transparent 100%
    );
    animation: btnShimmer 4s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes btnShimmer {
    0%, 100% { left: -75%; }
    50% { left: 125%; }
  }

  /* CTA Card Gradient Shift */
  .cta-card {
    background-size: 200% 200%;
    animation: ctaGradientShift 6s ease infinite;
  }
  @keyframes ctaGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
