/* ============================================================
   SwiftVTU – Design System
   Palette: Deep Violet on warm cream | Syne × Figtree
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Figtree:wght@300;400;500;600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --primary:         #5B21B6;
  --primary-rgb:     91, 33, 182;
  --primary-hover:   #4C1D95;
  --primary-mid:     #7C3AED;
  --primary-soft:    #EDE9FE;
  --primary-glow:    rgba(91, 33, 182, 0.14);

  --accent:          #F59E0B;
  --accent-hover:    #D97706;
  --accent-soft:     #FEF3C7;

  --success:         #059669;
  --success-soft:    #D1FAE5;
  --error:           #DC2626;
  --error-soft:      #FEE2E2;
  --warning:         #D97706;
  --warning-soft:    #FEF3C7;
  --info:            #2563EB;
  --info-soft:       #DBEAFE;

  --bg:              #F8F6FF;
  --bg-warm:         #FDFCFB;
  --surface:         #FFFFFF;
  --surface-2:       #F5F3FF;
  --surface-3:       #EDE9FE;

  --text:            #0F0A2E;
  --text-2:          #3D3568;
  --text-3:          #6B63A0;
  --text-muted:      #9991C8;
  --text-on-primary: #FFFFFF;

  --border:          #E8E4F6;
  --border-focus:    #7C3AED;
  --border-hover:    #C4B5FD;

  --shadow-xs:  0 1px 2px rgba(var(--primary-rgb), .06);
  --shadow-sm:  0 2px 8px rgba(var(--primary-rgb), .08);
  --shadow:     0 4px 20px rgba(var(--primary-rgb), .11);
  --shadow-md:  0 8px 32px rgba(var(--primary-rgb), .13);
  --shadow-lg:  0 16px 48px rgba(var(--primary-rgb), .16);
  --shadow-xl:  0 24px 64px rgba(var(--primary-rgb), .20);

  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius:     14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill:9999px;

  --ease:       cubic-bezier(.4,0,.2,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);
  --t-fast:     .15s var(--ease);
  --t:          .25s var(--ease);
  --t-slow:     .40s var(--ease);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Figtree', sans-serif;

  --nav-h: 72px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  /* overflow-x removed — use overflow:clip on html instead */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p  { color: var(--text-2); }
.lead { font-size: 1.125rem; color: var(--text-3); }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
}
.navbar.scrolled {
  background: rgba(248, 246, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
}
.nav-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.nav-logo .logo-icon svg { width: 22px; height: 22px; color: #fff; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: .9375rem;
  color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t);
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow-md);
  z-index: 999;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-2);
  transition: var(--t-fast);
}
.mobile-menu a:hover { background: var(--surface-2); color: var(--primary); }
.mobile-menu .btn { text-align: center; margin-top: 8px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), .28);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--primary-soft); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #F97316 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, .3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.4); }

.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }
.btn-xl { padding: 18px 44px; font-size: 1.125rem; }
.btn-block { width: 100%; }

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 64px) 0 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(var(--primary-rgb), .10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(124, 58, 237, .08) 0%, transparent 60%),
    var(--bg);
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  top: -100px; right: -80px;
  background: radial-gradient(circle, rgba(var(--primary-rgb),.18) 0%, transparent 70%);
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 280px; height: 280px;
  bottom: 0; left: 10%;
  background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%);
  animation-delay: -4s;
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(var(--primary-rgb), .15);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: .7; }
}
.hero-title { margin-bottom: 20px; }
.hero-title .highlight {
  position: relative;
  color: var(--primary);
  display: inline-block;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-soft), var(--accent-soft));
  border-radius: 3px;
  z-index: -1;
}
.hero-desc { font-size: 1.0625rem; margin-bottom: 36px; max-width: 480px; color: var(--text-3); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-label { font-size: .8125rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.phone-mockup {
  width: 260px;
  background: var(--surface);
  border-radius: 36px;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
  overflow: hidden;
  position: relative;
  z-index: 2;
  animation: float-phone 6s ease-in-out infinite;
}
@keyframes float-phone {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-16px) rotate(2deg); }
}
.phone-screen-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  padding: 24px 20px 32px;
  color: #fff;
}
.phone-screen-header .ph-label { font-size: .7rem; opacity: .7; text-transform: uppercase; letter-spacing: 1px; }
.phone-screen-header .ph-balance { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin: 4px 0; }
.phone-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
}
.phone-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  gap: 6px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.phone-action:last-child { border-right: none; }
.phone-action .icon-box {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.phone-action span { font-size: .6rem; font-weight: 600; color: var(--text-2); text-align: center; }
.phone-txs { padding: 12px 16px; }
.phone-tx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.phone-tx-item:last-child { border-bottom: none; }
.phone-tx-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
}
.phone-tx-info { flex: 1; min-width: 0; }
.phone-tx-title { font-size: .7rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-tx-sub   { font-size: .6rem; color: var(--text-muted); }
.phone-tx-amount { font-size: .7rem; font-weight: 700; color: var(--success); }

.floating-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.floating-card .fc-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.fc-1 { top: 10%; right: -20px; animation: float-card-1 7s ease-in-out infinite; }
.fc-2 { bottom: 20%; left: -30px; animation: float-card-2 8s ease-in-out infinite; }
@keyframes float-card-1 { 0%,100%{ transform:translateY(0)}50%{transform:translateY(-12px)} }
@keyframes float-card-2 { 0%,100%{ transform:translateY(0)}50%{transform:translateY(10px)} }

/* ── Services Section ────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-header { max-width: 560px; }
.section-header p { margin-top: 12px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-soft), transparent);
  opacity: 0;
  transition: opacity var(--t);
  border-radius: inherit;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.service-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.service-card p {
  font-size: .8125rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.service-card .badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* ── Why Us ──────────────────────────────────────────────── */
.why-us { background: var(--surface); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-visual {
  position: relative;
}
.why-img-wrap {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.why-img-wrap::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.why-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -15%;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.why-stats-inside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.why-stat-box {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(8px);
}
.why-stat-box .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.why-stat-box .label { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 4px; }
.why-features { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.why-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.why-feature h4 { font-size: 1rem; margin-bottom: 4px; }
.why-feature p  { font-size: .875rem; color: var(--text-3); }

/* ── How It Works ─────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-soft), var(--primary), var(--primary-soft));
  z-index: 0;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  z-index: 1;
  text-align: center;
  transition: transform var(--t), box-shadow var(--t);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.step-card h4 { margin-bottom: 10px; }
.step-card p { font-size: .875rem; color: var(--text-3); }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, #9333EA 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before, .cta-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.cta-section::before {
  width: 400px; height: 400px;
  top: -120px; right: -60px;
  background: rgba(255,255,255,.08);
}
.cta-section::after {
  width: 300px; height: 300px;
  bottom: -80px; left: 5%;
  background: rgba(245,158,11,.15);
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta-inner h2, .cta-inner p { color: #fff; }
.cta-inner p { opacity: .85; margin-top: 12px; font-size: 1.0625rem; }
.cta-inner .btn-group { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover { background: var(--primary-soft); transform: translateY(-2px); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { margin-top: 12px; font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer-nav-logo { color: #fff; font-size: 1.25rem; }
.footer-nav-logo .logo-icon { background: rgba(255,255,255,.1); }
.footer h5 {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color var(--t-fast);
}
.footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  flex-wrap: wrap;
  gap: 12px;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.social-link:hover { background: var(--primary); color: #fff; }

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}
.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  min-height: 100vh;
}
.auth-panel-inner {
  width: 100%;
  max-width: 440px;
}
.auth-brand {
  margin-bottom: 36px;
}
.auth-brand .nav-logo { justify-content: flex-start; }
.auth-heading { margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.auth-sub { color: var(--text-3); font-size: .9375rem; margin-bottom: 32px; }
.auth-sub a { color: var(--primary); font-weight: 600; transition: opacity var(--t-fast); }
.auth-sub a:hover { opacity: .75; }

/* Auth Side Panel */
.auth-visual {
  background: linear-gradient(135deg, var(--primary) 0%, #4C1D95 40%, #2E1065 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  top: -150px; right: -150px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.auth-visual::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  bottom: -100px; left: -80px;
  background: rgba(245,158,11,.10);
  border-radius: 50%;
}
.auth-visual-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
  color: #fff;
}
.auth-visual-content h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.auth-visual-content p  { color: rgba(255,255,255,.7); font-size: .9375rem; line-height: 1.7; }
.auth-visual-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
  text-align: left;
}
.auth-visual-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .875rem;
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
}
.auth-visual-feature .avf-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  flex-shrink: 0;
}

/* ── Form Elements ───────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-label span { color: var(--error); margin-left: 2px; }
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  transition: color var(--t-fast);
}
.input-icon svg { width: 18px; height: 18px; }
.input-action {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--t-fast);
}
.input-action:hover { color: var(--primary); }
.input-action svg { width: 18px; height: 18px; }

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9375rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  outline: none;
  appearance: none;
}
.form-control.has-icon   { padding-left: 42px; }
.form-control.has-action { padding-right: 44px; }
.form-control::placeholder { color: var(--text-muted); }
.form-control:hover  { border-color: var(--border-hover); }
.form-control:focus  {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .10);
  background: var(--surface);
}
.form-control:focus + .input-icon { color: var(--primary-mid); }

/* Validation states */
.form-control.is-invalid { border-color: var(--error); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220,38,38,.10); }
.form-control.is-valid   { border-color: var(--success); }
.form-control.is-valid:focus { box-shadow: 0 0 0 4px rgba(5,150,105,.10); }

.form-error {
  font-size: .8125rem;
  color: var(--error);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.form-error svg { width: 13px; height: 13px; flex-shrink: 0; }
.form-hint  { font-size: .8125rem; color: var(--text-muted); margin-top: 5px; }

/* Select */
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239991C8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

/* PIN Input */
.pin-group { display: flex; gap: 10px; justify-content: flex-start; }
.pin-digit {
  width: 54px; height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-text-security: disc;
}
.pin-digit:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .10);
  outline: none;
}

/* OTP Input */
.otp-group { display: flex; gap: 10px; justify-content: flex-start; }
.otp-digit {
  width: 52px; height: 58px;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.otp-digit:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .10);
  outline: none;
}

/* Password strength */
.pw-strength {
  margin-top: 8px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.pw-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background var(--t);
}
.pw-strength-bar.active-1 { background: var(--error); }
.pw-strength-bar.active-2 { background: var(--warning); }
.pw-strength-bar.active-3 { background: var(--accent); }
.pw-strength-bar.active-4 { background: var(--success); }
.pw-strength-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); min-width: 50px; }

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--primary);
  margin-top: 2px;
}
.checkbox-label { font-size: .875rem; color: var(--text-2); }
.checkbox-label a { color: var(--primary); font-weight: 600; }

/* Form divider */
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: .8125rem;
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Steps indicator */
.steps-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  transition: var(--t);
  flex-shrink: 0;
}
.step-dot.active  { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-dot.done    { border-color: var(--success); background: var(--success); color: #fff; }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  transition: background var(--t);
}
.step-line.done { background: var(--success); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid transparent;
  margin-bottom: 20px;
  animation: alert-in .25s var(--ease-spring);
}
@keyframes alert-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.alert-icon { display: flex; flex-shrink: 0; margin-top: 1px; }
.alert-icon svg { width: 18px; height: 18px; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: #A7F3D0; }
.alert-error   { background: var(--error-soft);   color: var(--error);   border-color: #FECACA; }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: #FDE68A; }
.alert-info    { background: var(--info-soft);    color: var(--info);    border-color: #BFDBFE; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-body { padding: 28px; }
.card-header { padding: 20px 28px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 16px 28px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* ── OTP Countdown ───────────────────────────────────────── */
.otp-resend {
  font-size: .875rem;
  color: var(--text-3);
  margin-top: 16px;
}
.otp-resend .countdown { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.otp-resend .resend-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  font-size: .875rem;
  padding: 0;
  display: none;
}
.otp-resend .resend-btn:hover { text-decoration: underline; }

/* ── Page animations ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid  { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid   { gap: 40px; }
}

@media (max-width: 900px) {
  .auth-visual { display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-panel  { padding: 40px 24px; }
  .steps-grid  { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-desc  { margin-left: auto; margin-right: auto; }
  .section-header { max-width: 100%; text-align: center; }
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section    { padding: 64px 0; }
  .auth-panel { padding: 32px 16px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .otp-group, .pin-group { justify-content: center; }
  .otp-digit, .pin-digit { width: 44px; height: 52px; font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}