/* ==========================================================================
   Lingually - Design System & Master Stylesheet
   Pure CSS3 · Zero External Frameworks · Fast, Responsive, Accessible
   ========================================================================== */

/* Self-Hosted Fallback Fonts (Self-Contained · Zero Third-Party CSP Dependency) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* -------------------------------------------------------------------------
     Brand Primary & Button Colors (Tweak buttons, accents, & popouts here)
     ------------------------------------------------------------------------- */
  --primary: #2563eb;          /* Main Button & Accent Brand Blue */
  --primary-hover: #1d4ed8;    /* Button Hover State */
  --primary-subtle: #eff6ff;   /* Soft Button & Callout Background */
  --primary-text: #1e40af;     /* Primary Text on subtle backgrounds */
  --primary-border: #bfdbfe;   /* Highlight & Popout Border */

  /* -------------------------------------------------------------------------
     Panels, Popouts & Surfaces
     ------------------------------------------------------------------------- */
  --bg-canvas: #f8fafc;        /* Overall Page Background (Slate 50) */
  --bg-surface: #ffffff;       /* Cards, Modals, Dropdowns & Header Panels */
  --bg-subtle: #f1f5f9;        /* Secondary Inset Panels & Preview Wrappers */
  --bg-muted: #e2e8f0;         /* Subtle Inset Bars & Dividers */
  --panel-highlight: #eff6ff;  /* Featured Popouts & Active Callout Panels */

  /* -------------------------------------------------------------------------
     Text Colors
     ------------------------------------------------------------------------- */
  --text-main: #0f172a;        /* Headings & High Contrast Text (Slate 900) */
  --text-body: #334155;        /* Body Paragraphs (Slate 700) */
  --text-muted: #64748b;       /* Captions, Meta & Subtitles (Slate 500) */
  --text-light: #94a3b8;       /* Placeholders & Inactive States (Slate 400) */

  /* Borders & Accents */
  --border-light: #e2e8f0;     /* Default Panel & Card Borders */
  --border-strong: #cbd5e1;    /* Hover Border */
  --border-focus: #2563eb;     /* Input Focus Ring */

  --accent-teal: #0d9488;
  --accent-teal-subtle: #f0fdfa;
  --accent-amber: #d97706;

  /* Typography */
  --font-system: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Spacing & Radii */
  --container-max: 1140px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-dropdown: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
  --shadow-elevated: 0 20px 40px -15px rgba(15, 23, 42, 0.15);

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

html {
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 4.25rem; /* Fixed top header offset */
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
  color: var(--text-body);
  font-size: 1rem;
  max-width: 68ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* Common Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Top Bar Navigation (Contract: Zone 1 Wordmark, Zone 2 Links, Zone 3 Action)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

/* Zone 1: Wordmark */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 205px;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .brand-logo-img {
    height: 48px;
    max-width: 230px;
  }
}

/* Zone 2: Navigation Links */
.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 1px;
}

/* Zone 3: Primary Action */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  min-height: 42px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

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

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

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

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary-subtle);
  border-color: var(--primary-hover);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  min-height: 36px;
}

.btn-lg {
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
  min-height: 48px;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-main);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 4.25rem;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: var(--shadow-dropdown);
  z-index: 49;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer .nav-link {
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 5rem 0 4.25rem;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.12) 0%, rgba(99, 102, 241, 0.05) 45%, rgba(248, 250, 252, 0) 80%),
              linear-gradient(180deg, #f0f7ff 0%, #ffffff 55%, var(--bg-canvas) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.hero-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: var(--primary-subtle);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
}

.hero-title {
  color: var(--text-main);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-body);
}

.hero-ctas {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.625rem;
  margin-top: 0.75rem;
  width: 100%;
}

.hero-ctas .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.75rem 0.5rem;
  font-size: 0.9375rem;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .hero-ctas {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: auto;
  }
  .hero-ctas .btn {
    flex: 0 0 auto;
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
  }
}

/* Focus selector 1 & checklist standard */
main:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(2),
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1.125rem;
  width: 100%;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-body);
  font-weight: 500;
  line-height: 1.4;
}

.hero-meta-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  main:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(2),
  .hero-meta {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.65rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .hero-meta-item {
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  main:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(2),
  .hero-meta {
    gap: 0.85rem;
    font-size: 0.825rem;
  }
}

.hero-preview {
  position: relative;
  width: 100%;
}

/* App Screenshot Mockup Frame */
.app-screenshot-wrapper {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px var(--border-light);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.app-screenshot-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px var(--border-strong);
}

.app-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Bridge Banner (Center of Page Stack - Vibrant Gradient) */
.features-bridge-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 3.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: 0 20px 45px -12px rgba(37, 99, 235, 0.35);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.features-bridge-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, rgba(96, 165, 250, 0) 70%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .features-bridge-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.75rem 3rem;
  }
}

.features-bridge-content {
  max-width: 620px;
}

.bridge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93C5FD;
  margin-bottom: 0.5rem;
}

.bridge-title {
  color: #FFFFFF;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.bridge-text {
  color: #94A3B8;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* Beta Login Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 460px;
  padding: 2rem;
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition-fast);
}

.modal-card-lg {
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 2.25rem;
}

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

@media (min-width: 540px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-legal-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.85rem;
  line-height: 1.45;
}

.form-legal-note a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Callout Banner in Contact Section */
.contact-waitlist-callout {
  background: var(--primary-subtle);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-waitlist-callout-text {
  font-size: 0.875rem;
  color: var(--primary-text);
  font-weight: 500;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

/* ==========================================================================
   Section Common Standards
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 25%, #e0f2fe 65%, #f8fafc 100%);
  border-top: 1px solid rgba(191, 219, 254, 0.6);
  border-bottom: 1px solid rgba(191, 219, 254, 0.6);
  position: relative;
}

/* Bento Step Cards in How It Works */
#how-it-works .bento-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(191, 219, 254, 0.7);
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.08);
  position: relative;
}

#how-it-works .bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 14px 34px -8px rgba(37, 99, 235, 0.15);
}

.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.step-badge-1 { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.step-badge-2 { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.step-badge-3 { background: linear-gradient(135deg, #0d9488, #0f766e); }
.step-badge-4 { background: linear-gradient(135deg, #7c3aed, #6d28d9); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.section-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin: 0 auto;
}

/* ==========================================================================
   Bento Capabilities Grid (Asymmetric layout)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.bento-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 100%;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.bento-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.bento-card-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  max-width: 100%;
  width: 100%;
}

.bento-card-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.bento-card-title {
  color: var(--text-main);
  font-size: 1.25rem;
}

.bento-card-desc {
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==========================================================================
   Three Pillars: Personal, Education, Work
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pillar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.09);
}

.pillar-card:nth-child(1):hover { border-color: #93c5fd; }
.pillar-card:nth-child(2):hover { border-color: #99f6e4; }
.pillar-card:nth-child(3):hover { border-color: #c7d2fe; }

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-card:nth-child(1) .pillar-icon {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -2px rgba(37, 99, 235, 0.35);
}

.pillar-card:nth-child(2) .pillar-icon {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -2px rgba(13, 148, 136, 0.35);
}

.pillar-card:nth-child(3) .pillar-icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -2px rgba(99, 102, 241, 0.35);
}

.pillar-card h3 {
  font-size: 1.15rem;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-body);
}

.check-icon {
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   Editorial Blog Cards System
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.blog-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

/* Zero-Pill Metadata Rule: Unboxed text with subtle typographic separators */
.meta-unboxed {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.meta-separator {
  color: var(--text-light);
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.55;
}

.blog-card-cta {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   Article Page Specifics
   ========================================================================== */
article.section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.article-header {
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.75rem;
}

.article-title {
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.article-featured-image {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  article.section {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }
  .article-header {
    padding: 0.5rem 0 0.85rem;
    margin-bottom: 1rem;
  }
  .article-title {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }
  .article-featured-image {
    margin-bottom: 0.85rem;
    border-radius: var(--radius-md);
  }
  .article-tags-wrap {
    margin-bottom: 1.25rem;
    gap: 0.4rem;
  }
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-body);
}

.article-body p {
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.article-body h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
}

.article-body h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.25rem;
  margin: 1.75rem 0;
  background-color: var(--bg-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-main);
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Contact Us Form (Posts to Google Apps Script endpoint)
   ========================================================================== */
.contact-section {
  padding: 5.5rem 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(37, 99, 235, 0.08) 0%, rgba(240, 249, 255, 0.5) 40%, var(--bg-canvas) 85%);
  border-top: 1px solid var(--border-light);
}

.contact-box {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 12px 36px -8px rgba(37, 99, 235, 0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* Anti-spam honeypot (OWASP Top 10 Form Protection) */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form status alerts */
.form-alert {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.form-alert.success {
  display: block;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-alert.error {
  display: block;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-alert.info {
  display: block;
  background-color: var(--primary-subtle);
  border: 1px solid #bfdbfe;
  color: var(--primary-text);
}

/* ==========================================================================
   Footer (Dark Charcoal with Crisp White Typography)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #0b1120; /* Deep slate 950 */
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 2.5rem;
}

.site-footer .brand {
  color: #ffffff;
}

.site-footer .brand-logo-img {
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 9999px;
  height: 48px;
  max-width: 200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .site-footer .brand-logo-img {
    height: 52px;
    max-width: 220px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 340px;
}

.footer-brand-col p {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
}

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

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 1rem;
}

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

.footer-nav a,
.footer-nav button {
  font-size: 0.875rem;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: #60a5fa; /* Crisp vibrant sky blue */
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #64748b;
}

/* Features CTA Section & Card */
.features-cta-section {
  padding: 5rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, rgba(240, 249, 255, 0.6) 45%, var(--bg-canvas) 85%);
}

.features-cta-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: 0 20px 45px -12px rgba(37, 99, 235, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.features-cta-card h2 {
  color: #ffffff;
}

.features-cta-card p {
  color: #dbeafe;
}

/* ==========================================================================
   Language Selector & Floating Translation Pill
   ========================================================================== */
.lang-selector-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

/* Focus selector 2 & language toggle */
header:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > button:nth-of-type(1),
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 36px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.lang-toggle-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
}

header:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > button:nth-of-type(1):hover,
.lang-toggle-btn:hover,
.lang-toggle-btn[aria-expanded="true"] {
  border-color: var(--primary);
  background-color: var(--primary-subtle);
  color: var(--primary-text);
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 295px;
  max-width: calc(100vw - 20px);
  max-height: 400px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  z-index: 60;
  overflow: hidden;
  flex-direction: column;
}

@media (max-width: 640px) {
  /* Prevent going off the left edge on mobile viewports */
  .header-actions .lang-dropdown-menu {
    right: -48px;
    width: min(290px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }
}

.lang-dropdown-menu.open {
  display: flex;
}

.lang-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.lang-dropdown-header-title {
  color: var(--text-main);
  font-weight: 700;
}

.lang-ticker-box {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 135px;
  overflow: hidden;
  white-space: nowrap;
}

.lang-ticker-text {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 200ms ease, transform 200ms ease;
}

.lang-ticker-text.fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

.lang-ticker-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.lang-search-box {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border-light);
}

.lang-search-input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  font-size: 0.8125rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.lang-options-list {
  overflow-y: auto;
  max-height: 260px;
  padding: 0.35rem 0;
}

.lang-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.lang-option-btn:hover {
  background-color: var(--primary-subtle);
  color: var(--primary-text);
}

.lang-option-btn.active {
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-subtle);
}

.lang-check-icon {
  display: none;
  font-weight: 700;
  color: var(--primary);
}

.lang-option-btn.active .lang-check-icon {
  display: inline-block;
}

.translation-active-pill {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: auto;
  background-color: var(--text-main);
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
  z-index: 95;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 2.5rem);
  opacity: 1;
  transform: translateY(0);
}

.translation-active-pill.pill-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.translation-active-pill button#btn-revert-translation,
.translation-active-pill .pill-revert-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--transition-fast);
}

.translation-active-pill button#btn-revert-translation:hover,
.translation-active-pill .pill-revert-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.translation-active-pill button#btn-dismiss-pill,
.translation-active-pill .pill-dismiss-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.translation-active-pill button#btn-dismiss-pill:hover,
.translation-active-pill .pill-dismiss-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   Back to Top Floating Button
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  left: auto;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  color: var(--primary);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary-hover);
}

/* ==========================================================================
   Article Hero Image & Footer Actions
   ========================================================================== */
.article-hero-image-frame {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.article-hero-image-frame img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.article-footer-nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.article-footer-nav .btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .article-hero-image-frame {
    margin-bottom: 1.75rem;
  }

  .article-footer-nav {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    gap: 0.5rem;
    width: 100%;
  }

  .article-footer-nav .btn {
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    text-align: center;
    gap: 0.25rem;
  }

  .article-footer-nav .btn svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
  }

  /* Header & Action Bar mobile protection */
  .brand-logo-img {
    height: 30px;
    width: auto;
    max-width: 110px;
    flex-shrink: 0;
  }

  .header-actions {
    gap: 0.35rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .header-actions .lang-selector-wrap {
    flex-shrink: 0;
  }

  .header-actions .lang-toggle-btn {
    padding: 0.35rem 0.5rem;
    min-height: 34px;
    flex-shrink: 0;
    gap: 0.25rem;
  }

  .header-actions .lang-toggle-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
  }

  .header-actions .btn-sm {
    padding: 0.35rem 0.55rem;
    font-size: 0.775rem;
    min-height: 34px;
    flex-shrink: 1;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions .mobile-toggle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    padding: 0;
  }

  .translation-active-pill {
    bottom: 0.85rem;
    left: 0.85rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.4rem;
    max-width: calc(100vw - 1.7rem);
  }

  .translation-active-pill button#btn-revert-translation,
  .translation-active-pill .pill-revert-btn {
    padding: 0.18rem 0.45rem;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
/* ==========================================================================
   Responsive Breakpoints & Layout Utility Classes
   ========================================================================== */
.btn-full {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link-footer {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.btn-link-footer:hover {
  color: var(--primary);
}

.btn-white {
  background: #ffffff !important;
  color: #1e3a8a !important;
  border: none !important;
  font-weight: 700 !important;
}

.btn-white:hover {
  background: #f1f5f9 !important;
}

.btn-white-outline {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  font-weight: 600 !important;
}

.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

.drawer-cta-btn {
  margin-top: 0.5rem;
  width: 100%;
}

.d-none, .hidden {
  display: none !important;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

.container-narrow {
  max-width: 760px;
}

.container-medium {
  max-width: 800px;
}

.container-reading {
  max-width: 720px;
}

.modal-heading-group {
  margin-bottom: 1.25rem;
}

.modal-tag {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-title {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.35rem;
  color: var(--text-main);
  font-weight: 700;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.modal-footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.required-star {
  color: var(--primary);
}

.section-pb-sm {
  padding-bottom: 2rem;
}

.section-pt-sm {
  padding-top: 1rem;
}

.meta-unboxed-tight {
  margin-bottom: 0.75rem;
}

.legal-footer-bar {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Margins */
.mb-xs { margin-bottom: 0.25rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.25rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2.5rem; }

/* Received Success Cycle Styles (replacing inline styles) */
.received-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.75rem 1rem;
  text-align: center;
}

.received-checkmark-bubble {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 3px solid #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px -4px rgba(22, 163, 74, 0.25);
}

.received-animated-text-wrap {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.received-animated-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.02em;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.received-animated-text.fading {
  opacity: 0;
  transform: scale(0.95);
}

.received-lang-indicator {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
  min-height: 1.25rem;
}

.received-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  max-width: 340px;
}

/* Translator Picker CSS Helpers */
.lang-native-sub {
  color: var(--text-muted);
  margin-left: 0.25rem;
  font-size: 0.8em;
}

.lang-option-btn .lang-check-icon {
  font-weight: 700;
  color: var(--primary);
  display: none;
  margin-left: auto;
}

.lang-option-btn.active .lang-check-icon {
  display: inline-block;
}

/* Footer Social Icons & Direct Contact Stack */
.footer-social-section {
  margin-top: 1.25rem;
}

.footer-social-links {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  max-width: fit-content;
}

#contact {
  scroll-margin-top: 5rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-social-btn:hover {
  color: var(--primary);
  background: var(--primary-subtle);
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.footer-social-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-direct-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #ffffff; /* Ultra bright clean white for optimal readability */
  text-decoration: none;
  font-weight: 500;
  font-size: 0.925rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.footer-contact-link:hover {
  color: #93c5fd; /* Soft luminous sky blue */
  text-decoration: underline;
}

.footer-contact-link svg {
  width: 16px;
  height: 16px;
  color: #93c5fd;
  flex-shrink: 0;
}

.copy-success-text {
  color: #4ade80 !important; /* Vivid mint green */
  font-weight: 700 !important;
}

/* Blog Uniform Grid, Search & Hashtagging System */
.blog-hero-section {
  padding: 3.5rem 0 1.5rem;
}

.blog-search-box {
  max-width: 900px;
  width: 100%;
  margin: 2.25rem auto 1.25rem auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.blog-search-input {
  max-width: 290px;
  width: 100%;
  flex-shrink: 0;
  height: 38px;
  font-size: 0.875rem;
}

.blog-filter-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.blog-filter-bar .btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  font-size: 0.825rem;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .blog-hero-section {
    padding: 2.5rem 0 1rem;
  }

  .blog-search-box {
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem auto 0.75rem auto;
  }

  .blog-search-input {
    max-width: 360px;
    width: 100%;
  }

  .blog-filter-bar {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}

.blog-search-wrap {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.blog-tags-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.5rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.tag-pill:hover,
.tag-pill.active {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary-border);
}

.article-tags-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-tags-footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* FAQ Page Styling */
.faq-section {
  padding: 2.5rem 0 5rem;
}

.faq-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-hero h1 {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  text-align: center;
  width: 100%;
}

.faq-hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: center;
  max-width: 530px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.faq-contact-card {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
}

.faq-contact-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item,
details.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.faq-item.active,
details.faq-item[open] {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.faq-question,
summary.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
  list-style: none;
  user-select: none;
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover,
summary.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-chevron,
details.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem 1.35rem;
  font-size: 0.965rem;
  color: var(--text-body);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

@media (min-width: 640px) {
  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .mobile-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card-wide {
    grid-column: span 2;
  }

  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 2fr;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 6rem 0 4.5rem;
  }
}
