/* ═══════════════════════ VARIABLES ═══════════════════════ */
:root {
  --bg: #F8FAFB;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --ink: #0F172A;
  --indigo: #3730A3;
  --indigo-light: #4F46E5;
  --indigo-bg: rgba(79, 70, 229, 0.06);
  --amber: #D97706;
  --amber-light: #F59E0B;
  --amber-bg: rgba(217, 119, 6, 0.08);
  --white: #ffffff;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --green: #16A34A;
  --green-bg: rgba(22, 163, 74, 0.08);
  --red-soft: #DC2626;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
}

/* ═══════════════════════ RESET ═══════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ═══════════════════════ ANIMATIONS ═══════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes chatAppear {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════ NAVIGATION ═══════════════════════ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 251, 0.9);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--indigo-light); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--indigo-light); }
.nav-links .btn-gold { color: var(--white); }
.nav-links .btn-gold:hover { color: var(--white); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.nav-user-name {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}
.nav-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo-light), var(--indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
}

/* ═══════════════════════ BUTTONS ═══════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.btn-gold {
  background: var(--indigo-light);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}
.btn-gold:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
  background: var(--indigo);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--indigo-light);
  background: var(--white);
}
.btn-outline:hover:not(:disabled) {
  background: var(--indigo-bg);
  border-color: var(--indigo-light);
}
.btn-dark {
  background: var(--ink);
  color: var(--white);
  border: 1.5px solid var(--ink);
}
.btn-dark:hover:not(:disabled) { background: #1E293B; }
.btn-white {
  background: var(--white);
  color: var(--ink);
}
.btn-white:hover:not(:disabled) { background: var(--surface-alt); }
.btn-danger {
  background: rgba(220, 38, 38, 0.08);
  color: var(--red-soft);
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(232, 93, 93, 0.25);
}
.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
}
.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════ SECTION STYLES ═══════════════════════ */
section {
  padding: 7rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--indigo-light);
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ═══════════════════════ FOOTER ═══════════════════════ */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 3rem 2rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { font-size: 1.5rem; color: var(--white); }
.footer-brand .logo span { color: var(--indigo-light); }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links {
  display: flex;
  gap: 2rem;
}
.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--white); }

/* ═══════════════════════ DISCLAIMER BAR ═══════════════════════ */
.disclaimer-bar {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* ═══════════════════════ STATIC PAGES ═══════════════════════ */
.static-page-body {
  margin-top: 2rem;
  max-width: 800px;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text-primary);
}
.static-page-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 2.5rem 0 0.8rem;
}
.static-page-body h4 {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}
.static-page-body p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.sp-intro {
  font-size: 1.15rem !important;
  color: var(--text-primary) !important;
  margin-bottom: 2rem !important;
  line-height: 1.7 !important;
}
.sp-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}
.sp-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.sp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo-light);
}
.sp-ordered { counter-reset: sp-counter; }
.sp-ordered li { counter-increment: sp-counter; padding-left: 2rem; }
.sp-ordered li::before {
  content: counter(sp-counter);
  width: auto; height: auto;
  border-radius: 0;
  background: none;
  color: var(--indigo-light);
  font-weight: 700;
  font-size: 0.95rem;
  top: 0;
}
.sp-legal-date {
  font-size: 0.85rem !important;
  color: var(--text-secondary) !important;
  margin-bottom: 2rem !important;
  font-style: italic;
}

/* Static page steps */
.sp-steps {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
.sp-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.sp-step-num {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 10px;
  background: var(--indigo-light);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.sp-step h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.sp-step p { margin: 0; }

/* Static page grids */
.sp-case-grid, .sp-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.sp-case-card, .sp-contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.sp-case-card h4, .sp-contact-card h4 {
  color: var(--indigo-light);
  margin-bottom: 0.5rem;
}
.sp-case-card p, .sp-contact-card p {
  font-size: 0.9rem;
}

/* Pricing cards */
.sp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.sp-pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
}
.sp-pricing-featured {
  border-color: var(--indigo-light);
  box-shadow: var(--shadow-md);
}
.sp-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo-light);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sp-pricing-card h3 {
  font-family: 'DM Serif Display', serif;
  margin-bottom: 0.5rem;
}
.sp-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--indigo-light);
  margin-bottom: 0.25rem;
}
.sp-pricing-card .sp-list { text-align: left; }

/* Disclaimer boxes */
.sp-disclaimer-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--indigo-light);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.sp-disclaimer-box h3 { margin-top: 0; }

/* FAQ items */
.sp-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.sp-faq-item:last-child { border-bottom: none; }

/* State limits table */
.sp-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
}
.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.sp-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  background: var(--surface-alt);
  color: var(--indigo-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  border-bottom: 2px solid rgba(79,70,229,0.2);
}
.sp-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.sp-table tr:hover td {
  background: var(--indigo-bg);
  color: var(--text-primary);
}

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  .section-title { font-size: 2.2rem; }
}
