/* =========================================
   STOKI.VN - PREMIUM B2B SAAS LANDING PAGE 
   ========================================= */

/* --- VARIABLES & RESET --- */
:root {
  /* Colors */
  --c-primary: #4F46E5;
  --c-primary-light: #818CF8;
  --c-primary-dark: #3730A3;
  --c-accent: #FF5722;
  --c-green: #10B981;
  --c-red: #EF4444;
  --c-orange: #F59E0B;
  --c-blue: #3B82F6;
  
  --c-bg: #F8FAFC;
  --c-surface: #FFFFFF;
  --c-text-main: #0F172A;
  --c-text-muted: #64748B;
  --c-border: #E2E8F0;
  
  /* Layout & Spacing */
  --nav-h: 72px;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.4);
  --shadow-alert: 0 0 15px rgba(239, 68, 68, 0.5);
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--c-bg);
  color: var(--c-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- TYPOGRAPHY & UTILS --- */
.text-gradient {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-center { text-align: center; }
.text-red { color: var(--c-red); }
.text-green { color: var(--c-green); }
.text-orange { color: var(--c-orange); }
.text-blue { color: var(--c-blue); }

.bg-red { background-color: var(--c-red); }
.bg-green { background-color: var(--c-green); }
.bg-red-light { background-color: #FEE2E2; }
.bg-orange-light { background-color: #FEF3C7; }
.bg-blue-light { background-color: #DBEAFE; }
.bg-green-light { background-color: #D1FAE5; }

/* Section Headers */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: #EEF2FF;
  color: var(--c-primary);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--c-accent); /* The primary CTA color */
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(255, 87, 34, 0.39);
}

.btn-primary:hover {
  background-color: #E64A19;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--c-text-main);
  font-weight: 600;
  padding: 8px 16px;
}

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

.btn-cta-giant {
  display: inline-block;
  background: linear-gradient(135deg, var(--c-accent), #FF8A65);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 20px 48px;
  border-radius: 99px;
  margin: 32px 0 16px;
  box-shadow: 0 10px 30px rgba(255, 87, 34, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta-giant:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 87, 34, 0.6);
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: -0.05em;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--c-accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--c-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-text-main);
}

/* --- SECTION 1: HERO --- */
.hero {
  padding-top: calc(var(--nav-h) + 60px);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle background glow effect */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--c-green);
  border-radius: 50%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--c-text-main);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-microcopy {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.hero-microcopy i {
  width: 16px;
  height: 16px;
  color: var(--c-green);
  margin-right: -4px;
}

/* Mock Dashboard Visual */
.hero-visual {
  position: relative;
  z-index: 10;
}

.mock-dashboard {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.mock-dashboard:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mock-header {
  background: #F1F5F9;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.mac-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #CBD5E1;
}
.mac-dots span:nth-child(1) { background-color: #EF4444; }
.mac-dots span:nth-child(2) { background-color: #F59E0B; }
.mac-dots span:nth-child(3) { background-color: #10B981; }

.mock-title {
  margin: 0 auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-text-muted);
  background: white;
  padding: 4px 60px;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.mock-body {
  padding: 24px;
  background: rgba(255,255,255,0.6);
}

.mock-alert {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.alert-icon {
  background-color: #FEE2E2;
  color: var(--c-red);
  padding: 8px;
  border-radius: 50%;
  display: flex;
}

.alert-text {
  display: flex;
  flex-direction: column;
}

.alert-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-red);
  text-transform: uppercase;
}

.alert-desc {
  font-size: 0.9rem;
  color: #7F1D1D;
}
.alert-desc a {
  text-decoration: underline;
  font-weight: 600;
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.mock-stat-card {
  background: white;
  padding: 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: 4px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-bar {
  height: 6px;
  border-radius: 3px;
}

.mock-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton {
  height: 20px;
  background: #E2E8F0;
  border-radius: 4px;
  animation: pulse-bg 2s infinite ease-in-out;
}

/* Floating Shapes */
.floating-shape {
  position: absolute;
  z-index: -1;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
  opacity: 0.1;
  animation: float 6s infinite ease-in-out;
}
.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: -20px;
  transform: rotate(45deg);
}
.shape-2 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: -30px;
  background: linear-gradient(135deg, var(--c-accent), #FF8A65);
  animation-delay: 2s;
  border-radius: 50%;
}

/* --- SECTION 2: VẤN ĐỀ --- */
.problem-section {
  background-color: white;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  position: relative;
}

.comparison-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  height: 100%;
}

.card-old {
  background-color: var(--c-bg);
  border: 1px solid var(--c-border);
}

.card-stoki {
  background: linear-gradient(170deg, var(--c-primary-dark), var(--c-primary));
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Add a subtle highlight to Stoki card */
.card-stoki::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}

.comparison-card .card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.card-stoki .card-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comparison-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.card-old .card-header i {
  color: var(--c-text-muted);
  width: 32px;
  height: 32px;
}

.card-stoki .card-header i {
  color: var(--c-accent);
  width: 32px;
  height: 32px;
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comparison-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.comparison-list li i {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-gray { color: #94A3B8; }
.icon-brand { color: #818CF8; }

.comparison-list strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 4px;
}
.card-old p { color: var(--c-text-muted); }
.card-stoki p { color: #E0E7FF; }

.vs-circle {
  align-self: center;
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--c-text-muted);
  z-index: 10;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* --- SECTION 3: WIDGET TƯƠNG TÁC --- */
.widget-section {
  background-color: var(--c-bg);
  position: relative;
}

.widget-box {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--c-border);
}

.widget-header {
  text-align: center;
  margin-bottom: 40px;
}
.widget-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.widget-header p {
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.calculator-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.slider-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--c-text-main);
}

.slider-display {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--c-primary);
  margin-bottom: 24px;
  text-align: center;
}

input[type=range] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 12px;
  cursor: pointer;
  background: #E2E8F0;
  border-radius: 6px;
}
input[type=range]::-webkit-slider-thumb {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: var(--c-accent);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  margin-top: -10px;
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.4);
  border: 4px solid white;
  transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--c-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.result-card {
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--c-border);
}

.result-card i {
  width: 32px;
  height: 32px;
  padding: 16px;
  border-radius: 50%;
}

.result-card.danger {
  background-color: #FEF2F2;
  border-color: #FECACA;
}
.result-card.danger i {
  background-color: white;
  color: var(--c-red);
}
.result-card.danger h3 { color: var(--c-red); }

.result-card.warning {
  background-color: #FFFBEB;
  border-color: #FDE68A;
}
.result-card.warning i {
  background-color: white;
  color: var(--c-orange);
}
.result-card.warning h3 { color: var(--c-orange); }

.result-info span {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.result-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 4px;
}

.widget-cta { margin-top: 16px; }

/* --- SECTION 4: GIẢI PHÁP --- */
.solutions-section {
  background-color: var(--c-surface);
}

.grid-solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon i {
  width: 28px;
  height: 28px;
}

.solution-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.problem-box, .solution-box {
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.problem-box {
  background-color: #F1F5F9;
  color: var(--c-text-muted);
}
.problem-box strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-text-main);
  margin-bottom: 4px;
}
.problem-box i { width: 16px; height: 16px; }

.solution-box {
  background-color: #EEF2FF;
  color: var(--c-primary-dark);
}
.solution-box strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-primary);
  margin-bottom: 4px;
}
.solution-box i { width: 16px; height: 16px; }

/* --- SECTION 5: HOW IT WORKS --- */
.how-it-works {
  background: linear-gradient(to bottom, var(--c-bg) 0%, white 100%);
}

.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.step-card {
  flex: 1;
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
  position: relative;
  text-align: center;
  z-index: 2;
  transition: transform 0.3s ease;
}

.step-card:hover { transform: translateY(-8px); }

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background-color: var(--c-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
}

.step-icon {
  width: 64px;
  height: 64px;
  background-color: #EEF2FF;
  color: var(--c-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 24px;
}
.step-icon i { width: 32px; height: 32px; }

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.step-content p {
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #CBD5E1;
}
.step-connector i { width: 40px; height: 40px; }

/* --- SECTION 6: SOCIAL PROOF --- */
.trust-section {
  padding: 60px 0 100px;
  background: white;
  overflow: hidden;
}

.trust-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  margin-bottom: 40px;
}

.marquee-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.marquee-content {
  display: flex;
  animation: scroll 30s linear infinite;
}

.partner-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #94A3B8;
  padding: 0 40px;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.partner-logo:hover { color: var(--c-primary-dark); }

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- SECTION 7: BOTTOM CTA --- */
.bottom-cta {
  background: white;
}
.cta-box {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  color: white;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  z-index: 0;
}

.cta-box > * { position: relative; z-index: 1; }

.cta-box h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 24px;
}

.cta-box p {
  font-size: 1.25rem;
  color: #E0E7FF;
  max-width: 700px;
  margin: 0 auto;
}

.cta-micro {
  font-size: 0.85rem !important;
  color: #A5B4FC !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cta-micro i { width: 16px; height: 16px; }

/* --- FOOTER --- */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.block-brand p {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 300px;
}

.f-col h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.f-col a {
  display: block;
  color: var(--c-text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.f-col a:hover { color: var(--c-primary); }

.social-links {
  display: flex;
  gap: 16px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--c-bg);
  border-radius: 50%;
  color: var(--c-text-main);
}
.social-links a:hover { background-color: var(--c-primary); color: white; }

/* --- CUSTOM FORM --- */
.custom-form-container {
  background: white;
  padding: 32px;
  border-radius: 16px;
  margin: 40px auto 24px;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  color: var(--c-text-main);
  text-align: left;
}
.waitlist-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}
.waitlist-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--c-text-main);
}
.waitlist-form .required {
  color: var(--c-red);
}
.waitlist-form input,
.waitlist-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: var(--c-bg);
}
.waitlist-form input:focus,
.waitlist-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background-color: white;
}
.waitlist-form .form-submit-btn {
  width: 100%;
  margin-top: 12px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.waitlist-form .form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.form-message {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}
.form-message.success {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.form-message.error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
.hidden {
  display: none !important;
}
.spinner {
  animation: spin 1s linear infinite;
  width: 20px;
  height: 20px;
}

/* --- ANIMATIONS --- */
.pulse-alert {
  animation: box-pulse 2s infinite;
}

@keyframes box-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulse-bg {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Reveal Animations triggered by JS */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .hero-container, .comparison-grid {
    grid-template-columns: 1fr;
  }
  .hero-content { margin-bottom: 40px; text-align: center; }
  .hero-subtitle { margin: 0 auto 30px; }
  .hero-cta-group { align-items: center; }
  
  .vs-circle {
    position: static;
    transform: none;
    margin: -12px auto;
  }
  
  .grid-solutions { grid-template-columns: 1fr; }
  
  .steps-container {
    flex-direction: column;
    align-items: center;
  }
  .step-card { width: 100%; max-width: 400px; }
  .step-connector { height: 40px; transform: rotate(90deg); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .menu-toggle { display: block; }
  
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  
  .results-grid { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-box { padding: 40px 20px; }
  .cta-box h2 { font-size: 2rem; }
  .hide-mobile { display: none !important; }
}
