/* ============================================================
   FreeSSL — Design System matching menporulcs.com
   Brand: Menporul Consultancy Services (MCS)
   Primary: Orange/Gold (#f59e0b → #f97316)
   Footer: Dark Navy (#0d1b4b)
   Fonts: Inter, Poppins
   ============================================================ */
/* Google Fonts loaded via HTML link tags with font-display: swap */

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* ── Brand Colors (MCS Orange/Gold) ── */
  --gold-50:   #fffbeb;
  --gold-100:  #fef3c7;
  --gold-200:  #fde68a;
  --gold-300:  #fcd34d;
  --gold-400:  #fbbf24;
  --gold-500:  #f59e0b;
  --gold-600:  #d97706;
  --gold-700:  #b45309;
  --gold-800:  #92400e;

  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;

  --crimson-500: #dc2626;
  --crimson-600: #b91c1c;

  /* Primary = Gold/Orange */
  --primary:        var(--gold-500);
  --primary-hover:  var(--gold-600);
  --primary-light:  var(--gold-50);
  --primary-glow:   rgba(245, 158, 11, 0.25);

  /* ── Navy (logo text, footer) ── */
  --navy-800: #1e3a8a;
  --navy-900: #1e2d78;
  --footer-bg: #0d1b4b;

  /* ── Backgrounds ── */
  --bg:               #f8fafc;
  --bg-warm:          #fdf8f0;
  --bg-alt:           #f1f5f9;
  --surface:          #ffffff;
  --surface-elevated: #ffffff;
  --surface-glass:    rgba(255,255,255,0.85);

  /* ── Text ── */
  --text:       #111827;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  /* ── Borders ── */
  --border:        #e5e7eb;
  --border-strong: #d1d5db;
  --border-gold:   #fde68a;

  /* ── Semantic ── */
  --success:        #16a34a;
  --success-bg:     #f0fdf4;
  --success-border: #bbf7d0;
  --warning:        var(--gold-500);
  --warning-bg:     var(--gold-50);
  --warning-border: var(--gold-200);
  --danger:         #dc2626;
  --danger-bg:      #fef2f2;
  --danger-border:  #fecaca;
  --info:           #2563eb;
  --info-bg:        #eff6ff;
  --info-border:    #bfdbfe;

  /* ── Focus ── */
  --focus: rgba(245, 158, 11, 0.4);

  /* ── Shadows ── */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:      0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-xl:   0 24px 64px rgba(0,0,0,0.14), 0 12px 24px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 0 3px var(--primary-glow);
  --shadow-gold: 0 8px 24px rgba(245,158,11,0.3);

  /* ── Radius ── */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* ── Spacing ── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  18px;
  --space-6:  22px;
  --space-8:  26px;
  --space-10: 32px;
  --space-12: 38px;
  --space-16: 46px;
  --space-20: 54px;

  /* ── Transitions ── */
  --transition:      all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Gradients ── */
  --gradient-brand:  linear-gradient(135deg, var(--gold-500) 0%, var(--orange-500) 60%, var(--crimson-500) 100%);
  --gradient-warm:   linear-gradient(135deg, #f97316 0%, #f59e0b 50%, #ea580c 100%);
  --gradient-hero:   linear-gradient(135deg, #f59e0b 0%, #f97316 40%, #dc2626 100%);
  --gradient-gold:   linear-gradient(135deg, var(--gold-500), var(--orange-500));
  --gradient-section:linear-gradient(180deg, var(--gold-50) 0%, #ffffff 100%);

  /* ── Typography ── */
  --font-sans:  'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
  --font-head:  'Poppins', 'Inter', system-ui, sans-serif;
  --font-mono:  'Fira Code', 'Cascadia Code', ui-monospace, monospace;
}

/* ── Dark mode (minimal, keeps warm brand) ── */
[data-theme="dark"] {
  --bg:               #0f172a;
  --bg-warm:          #111827;
  --bg-alt:           #1e293b;
  --surface:          #1e293b;
  --surface-elevated: #253347;
  --surface-glass:    rgba(30, 41, 59, 0.85);
  --text:             #f1f5f9;
  --text-muted:       #94a3b8;
  --text-faint:       #64748b;
  --border:           #334155;
  --border-strong:    #475569;
  --border-gold:      rgba(245,158,11,0.3);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow:     0 4px 12px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.4);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.45);
  --success-bg:     rgba(22,163,74,0.12);
  --success-border: rgba(22,163,74,0.3);
  --warning-bg:     rgba(245,158,11,0.1);
  --warning-border: rgba(245,158,11,0.3);
  --danger-bg:      rgba(220,38,38,0.1);
  --danger-border:  rgba(220,38,38,0.3);
  --info-bg:        rgba(37,99,235,0.1);
  --info-border:    rgba(37,99,235,0.3);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

a { color: var(--gold-600); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--orange-600); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container--narrow { max-width: 900px; }

.section {
  padding: var(--space-12) 0;
}

/* ============================================================
   Navigation — MCS style (white sticky, orange active)
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-nav.scrolled {
  box-shadow: var(--shadow);
}
[data-theme="dark"] .site-nav {
  background: rgba(15,23,42,0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--space-4);
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo__icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.nav-logo:hover .nav-logo__icon {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(245,158,11,0.4);
}
.nav-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.nav-logo__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy-800);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-logo__sub {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-logo:hover .nav-logo__name { color: var(--gold-600); }

/* ── Nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transition: width 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-links a.active {
  color: var(--gold-600);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after,
.nav-links a.active::after {
  width: 60%;
  opacity: 0.8;
}

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  background: none;
}
.nav-dropdown__trigger:hover { color: var(--gold-600); }
.nav-dropdown__trigger svg { transition: transform 0.25s ease; }
.nav-dropdown.open .nav-dropdown__trigger svg { transform: rotate(180deg); }
.nav-dropdown__trigger:hover svg { color: var(--gold-600); }

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown__menu a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-muted);
  width: 100%;
  transition: var(--transition-fast);
}
.nav-dropdown__menu a:hover {
  background: var(--gold-50);
  color: var(--gold-700);
}

/* ── Nav CTA ── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 22px;
  background: var(--gradient-brand);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.nav-cta:hover::before { transform: translateX(100%); }
.nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(245,158,11,0.4);
  color: #fff !important;
}

/* ── Theme toggle ── */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--gold-600);
  border-color: var(--gold-200);
  background: var(--gold-50);
}

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  background: none;
}
.nav-hamburger:hover { background: var(--gold-50); }
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ── */
.nav-mobile {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-4) var(--space-6) var(--space-6);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: var(--transition-fast);
}
.nav-mobile a:hover { background: var(--gold-50); color: var(--gold-700); }
.nav-mobile .nav-cta {
  display: inline-flex;
  margin-top: var(--space-4);
  padding: 12px 24px;
}

/* Progress bar */
.nav-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 200;
  transition: transform 0.1s linear;
}

/* ============================================================
   Hero — MCS warm gradient
   ============================================================ */
.hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: var(--space-10) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 16c0-1.1-.9-2-2-2h-8c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  backdrop-filter: blur(8px);
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-5);
  letter-spacing: -0.03em;
}
.hero__title .accent {
  color: var(--gold-200);
}
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-8);
  line-height: 1.7;
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

/* Hero form card */
.hero__card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: 0 32px 80px rgba(0,0,0,0.2);
  color: var(--text);
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .hero__card {
  background: var(--surface);
}
.hero__card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero__card-title svg { color: var(--gold-500); }

/* Tool hero (inner pages) */
.tool-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 28px 0 20px;
  position: relative;
  overflow: hidden;
}
.tool-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 16c0-1.1-.9-2-2-2h-8c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tool-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  background: linear-gradient(to top, var(--bg), transparent);
}
.tool-hero .container { position: relative; z-index: 1; }
.tool-hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-2);
}
.tool-hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  line-height: 1.55;
}
.tool-hero code {
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
}

.tool-body {
  padding: 20px 0 32px;
}

/* ============================================================
   Buttons
   ============================================================ */

/* Primary — orange gradient pill (matches MCS CTA) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}
.btn:hover::before { transform: translateX(100%); }
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover {
  box-shadow: 0 12px 30px rgba(245,158,11,0.45);
  color: #fff;
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  border-color: var(--gold-200);
  color: var(--gold-700);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn--outline:hover {
  background: #fff;
  color: var(--gold-700);
  border-color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--gold-50);
  color: var(--gold-700);
}

.btn--danger {
  background: var(--danger);
  color: #fff;
  border-color: transparent;
}
.btn--danger:hover { background: #b91c1c; box-shadow: 0 6px 16px rgba(220,38,38,0.35); }

/* Size variants */
.btn--sm  { padding: 7px 16px; font-size: 0.8125rem; }
.btn--lg  { padding: 14px 32px; font-size: 1rem; }
.btn--xl  { padding: 16px 36px; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* Loading */
.btn.loading { pointer-events: none; opacity: 0.8; }
.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.loading .btn__spinner { display: inline-block; }
.btn.loading .btn__text { opacity: 0.7; }

/* ============================================================
   Cards — MCS style (white, rounded-2xl, hover-lift)
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.card--elevated {
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}
.card--elevated:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  gap: var(--space-3);
}
.card__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.card__body { padding: var(--space-5); }
.card__footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

/* Feature cards (MCS style) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,158,11,0) 0%, rgba(245,158,11,0.04) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-200);
  transform: translateY(-4px);
}
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient-gold);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--space-5);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-gold);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(3deg); }
.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   Section badges (MCS pill style)
   ============================================================ */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 18px;
  background: linear-gradient(135deg, var(--gold-100), var(--orange-100));
  color: var(--gold-800);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
  box-shadow: 0 2px 8px rgba(245,158,11,0.15);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--gold-100), var(--orange-100));
  color: var(--gold-800);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   Forms — MCS style
   ============================================================ */
.tool-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.form-control::placeholder { color: var(--text-faint); }
select.form-control { cursor: pointer; }
[data-theme="dark"] .form-control {
  background: var(--bg-alt);
  color: var(--text);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: var(--space-1);
}
.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-error::before { content: '⚠ '; }
.required { color: var(--danger); margin-left: 2px; }

/* ── Radio/Checkbox method tabs ── */
.method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.method-tab {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface);
}
.method-tab input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.method-tab:hover {
  border-color: var(--gold-300, #fcd34d);
  background: var(--gold-50);
}
.method-tab.active {
  border-color: var(--gold-500);
  background: var(--gold-50);
}
.method-tab__icon {
  width: 36px; height: 36px;
  background: var(--gradient-gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: var(--space-2);
}
.method-tab__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.method-tab__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Checkbox ── */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--gold-500);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

/* ── Toggle switches ── */
.toggle-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-fast);
}
.toggle-item:hover {
  border-color: var(--gold-200);
  background: var(--gold-50);
}
.toggle-label { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.toggle-switch { position: relative; flex-shrink: 0; }
.toggle-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0; width: 0; height: 0;
}
.toggle-track {
  width: 42px; height: 24px;
  background: var(--border-strong);
  border-radius: var(--radius-full);
  transition: background 0.25s ease;
  position: relative;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked ~ .toggle-track {
  background: var(--gold-500);
}
.toggle-switch input:checked ~ .toggle-track::after {
  transform: translateX(18px);
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid;
  font-size: 0.875rem;
  line-height: 1.6;
}
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert--success { background: var(--success-bg); border-color: var(--success-border); color: #166534; }
.alert--warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--gold-800); }
.alert--danger  { background: var(--danger-bg);  border-color: var(--danger-border);  color: #991b1b; }
.alert--info    { background: var(--info-bg);    border-color: var(--info-border);    color: #1e40af; }
[data-theme="dark"] .alert--success { color: #86efac; }
[data-theme="dark"] .alert--warning { color: var(--gold-200); }
[data-theme="dark"] .alert--danger  { color: #fca5a5; }
[data-theme="dark"] .alert--info    { color: #93c5fd; }

/* Warning banner for private key */
.key-warning {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: #991b1b;
  line-height: 1.6;
}
.key-warning svg { flex-shrink: 0; color: var(--danger); margin-top: 2px; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.badge--success { background: var(--success-bg); color: #166534; border: 1px solid var(--success-border); }
.badge--warning { background: var(--gold-100);   color: var(--gold-800); border: 1px solid var(--gold-200); }
.badge--danger  { background: var(--danger-bg);  color: #991b1b; border: 1px solid var(--danger-border); }
.badge--info    { background: var(--info-bg);    color: #1e40af; border: 1px solid var(--info-border); }
.badge--neutral { background: var(--bg-alt);     color: var(--text-muted); border: 1px solid var(--border); }
.badge--gold    { background: var(--gold-100);   color: var(--gold-800); border: 1px solid var(--gold-200); }
[data-theme="dark"] .badge--neutral { background: var(--bg-alt); color: var(--text-muted); }

/* ============================================================
   Copy button
   ============================================================ */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.copy-btn:hover {
  background: var(--gold-50);
  border-color: var(--gold-200);
  color: var(--gold-700);
}
.copy-btn.copied {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

/* ============================================================
   Results display
   ============================================================ */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}
.result-item {
  padding: var(--space-4);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.result-item__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  margin-bottom: var(--space-1);
}
.result-item__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.result-item__value--mono { font-family: var(--font-mono); font-size: 0.8rem; }

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gold-50); color: var(--text); }

/* ============================================================
   Challenge / DNS record cards
   ============================================================ */
.challenge-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.challenge-key {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  min-width: 80px;
  flex-shrink: 0;
}
.challenge-val {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  word-break: break-all;
}
.dns-record-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dns-record-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.dns-record-row:last-child { border-bottom: none; }
.dns-record-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  min-width: 110px;
  flex-shrink: 0;
}
.dns-record-value {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  word-break: break-all;
}

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: var(--gold-200); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  background: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.faq-question:hover { color: var(--gold-700); background: var(--gold-50); }
.faq-item.open .faq-question { color: var(--gold-700); }
.faq-question svg { flex-shrink: 0; transition: transform 0.3s ease; color: var(--text-faint); }
.faq-item.open .faq-question svg { transform: rotate(180deg); color: var(--gold-500); }
.faq-answer {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   Password generator specific
   ============================================================ */
.password-output {
  position: relative;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5);
  transition: border-color 0.2s ease;
}
.password-output:has(.password-display:not(:empty)) { border-color: var(--gold-200); }
.password-display {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
  letter-spacing: 0.04em;
  min-height: 28px;
  transition: opacity 0.2s ease;
}
.strength-bar {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}
.strength-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease, background 0.4s ease;
}
.strength-fill[data-level="1"] { width: 25%; }
.strength-fill[data-level="2"] { width: 50%; }
.strength-fill[data-level="3"] { width: 75%; }
.strength-fill[data-level="4"] { width: 100%; }
.strength-label {
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.length-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.length-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-600);
  font-variant-numeric: tabular-nums;
  min-width: 2.5ch;
  text-align: right;
}
.length-slider-wrapper { position: relative; }
input[type="range"] {
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--gold-500) var(--pct, 11%), var(--border) var(--pct, 11%));
  border-radius: var(--radius-full);
  cursor: pointer;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--gradient-gold);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  transition: transform 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

/* ============================================================
   Compat items (stack badge row)
   ============================================================ */
.compat-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.compat-item:hover {
  border-color: var(--gold-200);
  color: var(--gold-700);
  background: var(--gold-50);
}
.compat-icon { font-size: 1.1rem; }

/* ============================================================
   Skeleton loading
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-alt) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite ease-in-out;
  border-radius: var(--radius);
}
.skeleton-text { height: 14px; width: 100%; border-radius: 4px; }
.skeleton-text--sm { height: 10px; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ============================================================
   Install tabs (installation guide)
   ============================================================ */
.install-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-4);
}
.install-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.install-tab:hover { color: var(--gold-600); }
.install-tab.active {
  color: var(--gold-600);
  border-bottom-color: var(--gold-500);
}
.install-panel { display: none; }
.install-panel.active { display: block; }

/* Code blocks */
.code-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.code-block pre {
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-block__copy {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold-700);
}

/* ============================================================
   How-it-works steps (MCS numbered style)
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  position: relative;
}
.step-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.step-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-200);
  transform: translateY(-4px);
}
.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold-100);
  line-height: 1;
  margin-bottom: var(--space-3);
  font-family: var(--font-head);
  transition: color 0.3s ease;
}
.step-card:hover .step-number { color: var(--gold-200); }
.step-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-gold);
  transition: transform 0.3s ease;
}
.step-card:hover .step-icon { transform: scale(1.1) rotate(3deg); }
.step-icon--1 { background: var(--gradient-gold); }
.step-icon--2 { background: linear-gradient(135deg, var(--orange-500), var(--crimson-500)); }
.step-icon--3 { background: linear-gradient(135deg, var(--crimson-500), #b91c1c); }
.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text);
  transition: color 0.2s;
}
.step-card:hover .step-title { color: var(--gold-600); }
.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   Stats row
   ============================================================ */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.stat-item__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-300, #fcd34d);
}

/* ============================================================
   CTA Banner Section (warm gradient)
   ============================================================ */
.cta-banner {
  background: var(--gradient-hero);
  padding: var(--space-16) 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 16c0-1.1-.9-2-2-2h-8c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-4);
  position: relative;
}
.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-banner__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-200);
  transform: translateY(-3px);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--gold-400);
  margin-bottom: var(--space-3);
  font-size: 0.9rem;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.testimonial-role { font-size: 0.78rem; color: var(--text-faint); }

/* ============================================================
   Footer — MCS dark navy
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.75);
  padding: var(--space-10) 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  text-decoration: none;
}
.footer-logo__icon {
  width: 48px; height: 48px;
  background: var(--gradient-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}
.footer-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.footer-logo__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.04em;
}
.footer-logo__sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: #fff;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
  position: relative;
  padding-left: var(--space-4);
}
.footer-heading::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 14px;
  background: var(--gradient-gold);
  border-radius: 2px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold-400); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.footer-contact-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius);
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.footer-contact-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.footer-contact-text strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}
.footer-contact-text a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-text a:hover { color: var(--gold-400); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal {
  display: flex;
  gap: var(--space-5);
}
.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--gold-400); }

/* ============================================================
   Privacy banner
   ============================================================ */
.privacy-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  margin-bottom: var(--space-6);
}
.privacy-banner svg { flex-shrink: 0; color: var(--success); margin-top: 2px; }

/* ============================================================
   Utilities
   ============================================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-fade-in { animation: fadeIn 0.5s ease both; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-float-delayed { animation: float 3s ease-in-out 1.5s infinite; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: var(--space-12) 0; }
  .tool-hero { padding: var(--space-12) 0 var(--space-8); }
  .section { padding: var(--space-12) 0; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .result-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .method-tabs {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .hero__card { padding: var(--space-5); }
  .tool-form-card { padding: var(--space-5); }
  .result-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Legacy / Compat Classes
   Maps old HTML class names to new MCS design system
   ============================================================ */

/* Section variants */
.section--alt {
  background: linear-gradient(180deg, var(--gold-50) 0%, #f8fafc 100%);
}
[data-theme="dark"] .section--alt {
  background: var(--bg-alt);
}

/* Section headers */
.section-header {
  margin-bottom: var(--space-6);
}
.section-header--center {
  text-align: center;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Steps (How it works) */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  position: relative;
}
.step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-5);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-200);
  transform: translateY(-3px);
}
.step__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-100);
  line-height: 1;
  font-family: var(--font-head);
  flex-shrink: 0;
  letter-spacing: -0.04em;
  transition: color 0.3s;
}
.step:hover .step__num { color: var(--gold-200); }
.step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  transition: color 0.2s;
}
.step:hover .step__title { color: var(--gold-600); }
.step__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Compat grid */
.compat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* Tab buttons (installation tabs) */
.tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-4);
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover { color: var(--gold-600); }
.tab-btn.active {
  color: var(--gold-600);
  border-bottom-color: var(--gold-500);
  background: var(--gold-50);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Code block header */
.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.code-block__content {
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* CTA section */
.cta-section {
  background: var(--gradient-hero);
  padding: var(--space-10) 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 16c0-1.1-.9-2-2-2h-8c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .section-title { color: #fff; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.85); }
.cta-section .btn--secondary {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  backdrop-filter: blur(8px);
}
.cta-section .btn--secondary:hover {
  background: #fff;
  color: var(--gold-700);
  border-color: #fff;
}

/* Testimonial grid (old class) */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

/* form-group with inline layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* Legal body (terms, privacy policy) */
.legal-body {
  max-width: 800px;
  margin: 0 auto;
}
.legal-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--text);
}
.legal-body h2:first-of-type {
  margin-top: 0;
}
.legal-body p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.legal-body ul {
  padding-left: 20px;
  margin-bottom: 14px;
}
.legal-body li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 4px;
}

