/*
 * Y3Data V1 Styling - Premium Design System
 * Focus: Premium, Minimalist, Elegant, Fast
 * Font: Inter Only
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Dynamic CSS Theme Variables */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Color Palette - Light Mode Default */
  --primary-hue: 224;
  --primary-sat: 76%;
  --primary-light: 48%; /* Deep Royal Blue */
  --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
  --primary-hover: hsl(var(--primary-hue), var(--primary-sat), 38%);
  --primary-light-bg: hsl(214, 95%, 93%);
  --primary-glow: rgba(30, 58, 138, 0.12);
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(226, 232, 240, 0.6);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  
  /* 8-Point Grid Spacing System (Design System 2.0) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;

  /* Standardized Corner Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Multi-Tier Elevation System */
  --elevation-0: none;
  --elevation-1: 0 2px 4px rgba(15, 23, 42, 0.04);
  --elevation-2: 0 4px 12px rgba(15, 23, 42, 0.08);
  --elevation-3: 0 8px 20px rgba(0, 0, 0, 0.12);
  --elevation-4: 0 12px 28px rgba(0, 0, 0, 0.18);

  /* Accessibility Minimum Touch Target */
  --min-touch-target: 48px;

  --nav-height: 80px;
}

/* Dark Mode Variables - Toggled via class on HTML element */
html.dark {
  --bg-primary: #070b13;
  --bg-secondary: #0e1422;
  --bg-tertiary: #172033;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: #1e293b;
  --border-hover: #334155;
  --glass-bg: rgba(7, 11, 19, 0.75);
  --glass-border: rgba(30, 41, 59, 0.7);
  --primary-light-bg: rgba(59, 130, 246, 0.08);
  --primary-glow: rgba(59, 130, 246, 0.25);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* selection style */
::selection {
  background-color: var(--primary);
  color: white;
}

/* Screen reader skip link - hidden to prevent top border bleeding */
.skip-link {
  display: none !important;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  min-height: var(--min-touch-target);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 var(--primary-glow);
}

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

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

.btn:active {
  transform: translateY(0);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 7rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4.5rem 0;
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
  background-color: var(--primary-light-bg);
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 1.25rem;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-right {
  animation: slideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* 1. STICKY NAVIGATION */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

/* Glassmorphism Sticky Header active status */
.site-header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  height: 70px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  user-select: none;
}

.logo-icon {
  color: var(--primary);
  display: flex;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-actions-mobile {
  display: none;
}

/* Sidebar Toggle Button (Left Hand Positioned) */
.sidebar-toggle-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.55rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-hover);
}

/* Dark Mode Icon Switch System */
.dark-mode-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.dark-mode-toggle:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-hover);
}

/* Moon visible by default, Sun hidden */
.sun-icon { display: none; }
.moon-icon { display: block; }

html.dark .sun-icon { display: block; }
html.dark .moon-icon { display: none; }

/* Hamburger Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsive Navigation Styles */
@media (max-width: 900px) {
  .nav-cta-btn {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2.5rem 2rem 2.5rem;
    gap: 1.75rem;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    box-shadow: var(--shadow-xl);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-actions-mobile .btn {
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* Hamburger transform when menu is open */
  .mobile-menu-btn[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-btn[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}


/* 2. HERO SECTION */
.hero-section {
  position: relative;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 6rem;
  overflow: hidden;
}

/* Ambient glow accents */
.hero-glow-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

html.dark .hero-glow-1 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  width: fit-content;
}

.avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
  background-color: #3b82f6;
}

.avatar:nth-child(2) {
  background-color: #10b981;
}

.avatar:nth-child(3) {
  background-color: #f59e0b;
}

.trust-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trust-text strong {
  color: var(--text-primary);
}

/* Premium Dashboard Mockup styling */
.hero-visual {
  display: flex;
  justify-content: center;
}

.dashboard-mockup {
  width: 100%;
  max-width: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.dashboard-mockup:hover {
  transform: translateY(-4px);
}

.mockup-header-bar {
  background-color: var(--bg-tertiary);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
  display: flex;
  gap: 0.35rem;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
}

.mockup-dots span:nth-child(1) { background-color: #ef4444; }
.mockup-dots span:nth-child(2) { background-color: #eab308; }
.mockup-dots span:nth-child(3) { background-color: #22c55e; }

.mockup-url {
  font-size: 0.7rem;
  color: var(--text-muted);
  background-color: var(--bg-primary);
  padding: 0.2rem 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 250px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-body {
  display: grid;
  grid-template-columns: 60px 1fr;
  height: 320px;
}

.mockup-sidebar {
  background-color: var(--bg-tertiary);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.sidebar-item {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: var(--border-color);
}

.sidebar-item.active {
  background-color: var(--primary-light-bg);
  border: 1px dashed var(--primary);
}

.mockup-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 700;
}

.user-status {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.panel-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  background-color: var(--success-bg);
  color: var(--success);
  font-weight: 700;
  border-radius: 9999px;
}

.panel-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.widget-card {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.widget-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.widget-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.widget-action {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 0.25rem;
  cursor: pointer;
}

.widget-sub {
  font-size: 0.65rem;
  font-weight: 600;
}

.text-success { color: var(--success); }

.mockup-chart-box {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  background-color: var(--bg-primary);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chart-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mockup-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 60px;
  padding-top: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.bar {
  width: 20px;
  background-color: var(--primary-light-bg);
  border: 1px solid var(--primary);
  border-bottom: none;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  position: relative;
  display: flex;
  justify-content: center;
}

.bar span {
  position: absolute;
  bottom: -20px;
  font-size: 0.55rem;
  color: var(--text-muted);
}

.bar:nth-child(even) {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-trust {
    border-top: none;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
}


/* 3. TRUSTED FEATURES SECTION */
.trusted-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 3rem 0;
}

.trusted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  list-style: none;
}

.trusted-item {
  display: flex;
  gap: 1rem;
}

.trusted-icon {
  color: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  margin-top: 0.15rem;
}

.trusted-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.trusted-info p {
  font-size: 0.875rem;
  line-height: 1.5;
}


/* 4. SERVICES SECTION */
.services-section {
  background-color: var(--bg-primary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  border-radius: 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.service-icon-bg {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: var(--primary-light-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-bg {
  transform: scale(1.05) rotate(3deg);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-rate {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .service-card {
    padding: 1.75rem;
  }
}


/* 5. WHY CHOOSE Y3DATA */
.why-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.why-visual {
  position: relative;
  display: flex;
  justify-content: center;
  height: 380px;
}

.visual-stack {
  position: relative;
  width: 320px;
  height: 100%;
}

.card-glass {
  position: absolute;
  padding: 1.25rem;
  border-radius: 12px;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.mini-stats {
  top: 10%;
  left: -20px;
  width: 140px;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--success);
}

.stat-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.speed-indicator {
  bottom: 10%;
  right: -20px;
  width: 180px;
}

.speed-graph {
  width: 100%;
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.graph-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Credit card placeholder */
.financial-card-vibe {
  position: absolute;
  left: 20px;
  top: 80px;
  width: 280px;
  height: 176px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fin-brand {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.card-chip {
  width: 32px;
  height: 24px;
  background-color: #f59e0b;
  border-radius: 4px;
  opacity: 0.8;
}

.card-number {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.card-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  opacity: 0.85;
}

.fin-logo {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  position: relative;
}

.fin-logo::before {
  content: '';
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.why-content h2 {
  margin-bottom: 1.5rem;
}

.why-intro {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.why-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  list-style: none;
}

.why-features-list li {
  display: flex;
  gap: 1rem;
}

.icon-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-light-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.why-features-list h4 {
  margin-bottom: 0.25rem;
}

.why-features-list p {
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .why-visual {
    order: 2;
    height: 320px;
  }
  
  .visual-stack {
    width: 280px;
  }
  
  .financial-card-vibe {
    width: 240px;
    height: 151px;
    left: 20px;
    top: 50px;
  }
  
  .speed-indicator {
    bottom: 5%;
    right: -30px;
  }
}


/* 6. HOW IT WORKS */
.how-section {
  background-color: var(--bg-primary);
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.step-card {
  padding: 3rem 2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  background-color: var(--primary-light-bg);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
}


/* 7. TESTIMONIALS SECTION */
.testimonials-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2.5rem;
  border-radius: 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-style: normal;
}

.stars {
  color: #fbbf24;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.author-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.author-details strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-style: normal;
}

.author-details span {
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* 8. FAQ SECTION */
.faq-section {
  background-color: var(--bg-primary);
}

.faq-container-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.faq-intro {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  height: fit-content;
  max-width: 400px;
}

.faq-intro h2 {
  margin-bottom: 1rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--bg-secondary);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.active {
  border-color: var(--primary);
  background-color: var(--bg-primary);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  padding: 0 1.5rem 1.55rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .faq-container-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .faq-intro {
    max-width: 100%;
    position: relative;
    top: 0;
  }
}


/* 9. FINAL CTA SECTION */
.final-cta-section {
  position: relative;
  background-color: var(--bg-secondary);
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.04) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

html.dark .cta-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
}

.cta-container-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-container-inner h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.cta-container-inner p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cta-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 480px) {
  .cta-btns {
    flex-direction: column;
    width: 100%;
  }
  .cta-btns .btn {
    width: 100%;
  }
}


/* 10. FOOTER SECTION */
.site-footer {
  background-color: #030712;
  color: #9ca3af;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem 0;
  font-size: 0.9rem;
}

html.dark .site-footer {
  background-color: #03060a;
}

.site-footer a {
  color: #9ca3af;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 320px;
}

.footer-logo {
  color: #ffffff;
}

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

.footer-brand-box p {
  color: #9ca3af;
  line-height: 1.6;
}

.social-links-row {
  display: flex;
  gap: 1rem;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-links-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

html.dark .footer-bottom {
  border-top-color: #111827;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* 11. AUTHENTICATION PAGES (LOGIN / REGISTER) */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.auth-glow-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.auth-glow-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

html.dark .auth-glow-1 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
}

.auth-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeIn 0.4s ease forwards, slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

.auth-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.auth-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .auth-card {
    padding: 2rem 1.5rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.form-control, .form-select {
  width: 100%;
  padding: var(--space-2) var(--space-4);
  min-height: var(--min-touch-target);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Input validation status styling */
.form-control.is-valid {
  border-color: var(--success);
}

.form-control.is-valid:focus {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.form-control.is-invalid {
  border-color: var(--danger);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* Password Toggle Icon placement */
.password-toggle-btn {
  position: absolute;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--text-primary);
}

/* Password Strength Indicator */
.password-strength-box {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  height: 4px;
}

.strength-bar {
  background-color: var(--border-color);
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.password-strength-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Custom indicator color styles */
.strength-weak .strength-bar:nth-child(1) { background-color: var(--danger); }
.strength-weak .password-strength-text { color: var(--danger); }

.strength-fair .strength-bar:nth-child(1),
.strength-fair .strength-bar:nth-child(2) { background-color: var(--warning); }
.strength-fair .password-strength-text { color: var(--warning); }

.strength-good .strength-bar:nth-child(1),
.strength-good .strength-bar:nth-child(2),
.strength-good .strength-bar:nth-child(3) { background-color: #3b82f6; }
.strength-good .password-strength-text { color: #3b82f6; }

.strength-strong .strength-bar:nth-child(1),
.strength-strong .strength-bar:nth-child(2),
.strength-strong .strength-bar:nth-child(3),
.strength-strong .strength-bar:nth-child(4) { background-color: var(--success); }
.strength-strong .password-strength-text { color: var(--success); }

/* Form Error Message accessibility text */
.field-error-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--danger);
  margin-top: 0.15rem;
  display: none;
}

.form-control.is-invalid + .field-error-text,
.input-wrapper + .field-error-text {
  display: block;
}

/* Terms Checkbox styling */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.4;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--primary);
  font-weight: 600;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Submit Section CTAs */
.auth-submit-btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.auth-switch-prompt {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.auth-switch-prompt a {
  color: var(--primary);
  font-weight: 700;
}

.auth-switch-prompt a:hover {
  text-decoration: underline;
}
