/* ==========================================================================
   FISCALIS DESIGN SYSTEM
   Modern FinTech Dark Theme (Quantiflow Minimalist Aesthetic)
   Target: DGI RDC Compliance Middleware (MCF & e-MCF)
   ========================================================================== */

:root {
  /* Vertical Dark Gradient: Deep Slate-Teal (#14242A) -> Dark Slate (#081318) -> Near-Black (#01070E) */
  --bg-top: #14242A;
  --bg-mid: #081318;
  --bg-bottom: #01070E;
  --bg-primary: #01070E;
  --bg-secondary: #081318;
  --bg-tertiary: #14242A;
  --bg-card: rgba(8, 19, 24, 0.7);
  --bg-card-hover: rgba(20, 36, 42, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-strong: rgba(255, 255, 255, 0.06);

  /* Primary Accents */
  --accent-white: #FFFFFF;
  --accent-dark: #01070E;

  --emerald-500: #38BDF8;
  --emerald-400: #7DD3FC;
  --emerald-600: #0284C7;
  --emerald-glow: rgba(56, 189, 248, 0.15);
  --emerald-glow-strong: rgba(56, 189, 248, 0.3);

  --cyan-500: #38BDF8;
  --cyan-400: #7DD3FC;
  --cyan-600: #0284C7;
  --cyan-glow: rgba(56, 189, 248, 0.15);

  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --amber-glow: rgba(245, 158, 11, 0.15);

  --blue-500: #38BDF8;
  --blue-600: #0284C7;

  /* Typography Colors: Crisp White & Muted Light Gray */
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
  /* Muted light gray */
  --text-muted: #718096;
  --text-highlight: #F7FAFC;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(255, 255, 255, 0.22);
  --border-cyan: rgba(56, 189, 248, 0.25);

  /* Typography families: Inter & SF Pro Display */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow-emerald: 0 0 35px rgba(255, 255, 255, 0.06);
  --shadow-glow-cyan: 0 0 35px rgba(56, 189, 248, 0.12);

  /* Pill & Refined Corners */
  --radius-pill: 9999px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1240px;
  --header-height: 76px;
}

/* Base Reset & Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height, 72px) + 16px);
  color-scheme: dark;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

section[id] {
  scroll-margin-top: calc(var(--header-height, 72px) + 16px);
}

/* Pure CSS Minimalist Vertical Dark Gradient (#14242A -> #081318 -> #01070E) */
body {
  font-family: var(--font-sans);
  background-color: #01070E;
  background-image:
    linear-gradient(180deg,
      #14242A 0%,
      #0E1B21 25%,
      #081318 50%,
      #040D13 75%,
      #01070E 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Clean Background without noise, patterns, texture, or particles */
.ambient-bg {
  display: none;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(20, 36, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 19, 24, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: var(--border-light);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(3, 140, 216, 0.45));
}

.logo-symbol {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  position: relative;
  transition: all 0.25s ease;
}

.brand-logo:hover .logo-symbol {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

.logo-symbol svg {
  width: 20px;
  height: 20px;
  fill: #FFFFFF;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.mobile-drawer-cta {
  display: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  letter-spacing: -0.01em;
}

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

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

/* Language Switcher (Segmented Glass Pill) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  user-select: none;
}

.lang-switcher:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  outline: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  color: #FFFFFF;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), 0 0 10px rgba(56, 189, 248, 0.2);
}

.mobile-lang-row {
  display: none !important;
}

/* Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 24px;
  border-radius: 9999px;
  /* Pill button */
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  outline: none;
  letter-spacing: -0.01em;
}

.btn:active {
  transform: scale(0.97);
}

/* White Pill Button with Dark Text */
.btn-primary {
  background: #FFFFFF;
  color: #01070E;
  border: 1px solid #FFFFFF;
  border-radius: 9999px;
  /* Pill */
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.12), 0 0 20px rgba(255, 255, 255, 0.05);
}

.btn-primary:hover,
.btn-primary:active {
  background: #F7FAFC;
  color: #000000;
  border-color: #FFFFFF;
  box-shadow: 0 6px 26px rgba(255, 255, 255, 0.25), 0 0 35px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
  background: #e2e8f0;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.18);
}

/* Outlined Pill Button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  /* Pill */
  backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: scale(0.97) translateY(0);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-cyan {
  background: #FFFFFF;
  color: #01070E;
  border: 1px solid #FFFFFF;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.btn-cyan:hover,
.btn-cyan:active {
  background: #F7FAFC;
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-cyan:active {
  transform: scale(0.97) translateY(0);
  background: #e2e8f0;
}

.btn-sm {
  padding: 7px 18px;
  font-size: 0.84rem;
  border-radius: 9999px;
  /* Pill */
}

.btn-lg {
  padding: 13px 32px;
  font-size: 1rem;
  border-radius: 9999px;
  /* Pill */
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Hero Section */
.hero-section {
  padding: 70px 0 90px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: #ffffff;
  text-align: left;
}

.hero-title .gradient-text {
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .gradient-cyan {
  background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 34px;
  line-height: 1.65;
  max-width: 580px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: left;
}

.hero-description strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

/* Underlined Tutorial Link */
.hero-tutorial-row {
  margin-bottom: 36px;
  text-align: left;
}

.hero-link-tutorial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}

.hero-link-tutorial:hover,
.hero-link-tutorial:active {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.metric-value span {
  color: var(--text-secondary);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Hero Visual / Live Card */
.hero-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
  text-align: left;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), rgba(56, 189, 248, 0.25), transparent);
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.card-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.card-dot.red {
  background: #ef4444;
}

.card-dot.yellow {
  background: #f59e0b;
}

.card-dot.green {
  background: #22c55e;
}

.card-status-pill {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hero Visual Receipt (Facture Normalisée DGI Illustration) */
.hero-receipt-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 0;
}

.hero-receipt {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  color: #0f172a;
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  font-size: 0.67rem;
  line-height: 1.28;
  padding: 14px 16px;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  letter-spacing: -0.01em;
}

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

.rcpt-bold {
  font-weight: 700;
  color: #000000;
}

.rcpt-brand {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.rcpt-doc-title {
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.rcpt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.rcpt-label {
  color: #334155;
}

.rcpt-val {
  color: #000000;
  text-align: right;
  white-space: nowrap;
}

.rcpt-divider-solid {
  border-bottom: 1px solid #0f172a;
  margin: 5px 0 6px 0;
}

.rcpt-divider-dashed {
  border-bottom: 1px dashed #64748b;
  margin: 5px 0;
}

.rcpt-table-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  color: #000000;
  padding-bottom: 1px;
}

.rcpt-col-name {
  flex: 1.6;
  text-align: left;
}

.rcpt-col-qty {
  flex: 1;
  text-align: center;
}

.rcpt-col-ttc {
  flex: 0.8;
  text-align: right;
}

.rcpt-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.rcpt-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.rcpt-total-ttc {
  font-size: 0.82rem;
  padding: 3px 0;
  border-top: 1px dashed #0f172a;
  border-bottom: 1px dashed #0f172a;
  margin: 4px 0;
}

.rcpt-fiscal-block {
  padding-top: 2px;
}

.rcpt-code-def {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  word-break: break-all;
  margin: 1px 0 3px;
}

.rcpt-qr-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 5px;
}

.rcpt-qr {
  display: inline-flex;
  padding: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.rcpt-qr canvas,
.rcpt-qr img,
.rcpt-qr svg {
  display: block;
  width: 76px;
  height: 76px;
}

.rcpt-mt-xs {
  margin-top: 2px;
}

.rcpt-mt-sm {
  margin-top: 4px;
}

.rcpt-mt-md {
  margin-top: 8px;
}

/* Logos Strip */
.logos-strip-section {
  padding: 34px 0 36px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 12, 20, 0.5);
  overflow: hidden;
  position: relative;
}

.logos-title {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  font-weight: 600;
}

.logos-marquee-wrapper {
  overflow: hidden;
  display: flex;
  user-select: none;
  gap: 0;
  position: relative;
  width: 100%;
  padding: 12px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logos-track {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  padding: 4px 24px 4px 0;
  animation: scrollLogosLeft 55s linear infinite;
  will-change: transform;
}

.logos-marquee-wrapper:hover .logos-track {
  animation-play-state: paused;
}

@keyframes scrollLogosLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.erp-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.erp-logo-pill:hover {
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.erp-logo-img {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.erp-odoo {
  height: 20px;
  border-radius: 3px;
}

.erp-sap {
  height: 20px;
}

.erp-qb {
  height: 22px;
  width: 22px;
}

.erp-sage {
  height: 18px;
}

.erp-logo-svg {
  color: var(--emerald-400);
  flex-shrink: 0;
}

/* Section Header Shared */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-tag.cyan {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.arch-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  max-width: 1040px;
  margin: 0 auto 40px;
}

.arch-pipeline::after {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
  z-index: 0;
}

.arch-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.arch-step-card:hover,
.arch-step-card.selected {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.04);
  background: var(--bg-card-hover);
}

.arch-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.arch-step-card.selected .arch-step-num {
  background: #ffffff;
  color: #080c14;
  border-color: #ffffff;
}

.arch-step-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.arch-step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.arch-inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.arch-inspector-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.arch-inspector-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}

.arch-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.arch-features-list li svg {
  color: #ffffff;
  flex-shrink: 0;
  margin-top: 3px;
}

.arch-code-preview {
  background: #060911;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: #e2e8f0;
  overflow: auto;
  max-height: 430px;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.55), 0 4px 20px rgba(0, 0, 0, 0.25);
}

.arch-code-preview::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.arch-code-preview::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}

.arch-code-preview::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}

.arch-code-preview::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
}

/* JSON / Code Syntax Highlighting */
.json-key {
  color: #38bdf8;
  font-weight: 600;
}

.json-str {
  color: #fbbf24;
}

.json-num {
  color: #fb923c;
  font-weight: 500;
}

.json-bool {
  color: #c084fc;
  font-weight: 600;
}

.json-null {
  color: #94a3b8;
  font-style: italic;
}

.json-punct {
  color: #94a3b8;
}

.sim-input-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.sim-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.sim-form-group {
  margin-bottom: 18px;
}

.sim-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-highlight);
  margin-bottom: 6px;
}

.sim-input,
.sim-select {
  width: 100%;
  background: rgba(6, 9, 15, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sim-input:focus,
.sim-select:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}

.sim-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sim-action-bar {
  margin-top: 24px;
  display: flex;
  gap: 14px;
}

.sim-receipt {
  background: #ffffff;
  color: #111827;
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

.receipt-header {
  text-align: center;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.receipt-header h5 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.receipt-header p {
  color: #64748b;
  font-size: 0.72rem;
}

.receipt-meta {
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 0.75rem;
}

.receipt-items {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.receipt-items th {
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  padding: 4px 0;
  font-size: 0.7rem;
  color: #64748b;
}

.receipt-items td {
  padding: 6px 0;
  font-size: 0.75rem;
}

.receipt-totals {
  border-top: 1px dashed #cbd5e1;
  padding-top: 10px;
  margin-bottom: 16px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.receipt-row.bold {
  font-weight: 800;
  font-size: 0.95rem;
  color: #047857;
}

.receipt-qr-block {
  text-align: center;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.receipt-qr-block .qr-canvas-container {
  display: inline-block;
  background: white;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
}

.receipt-qr-block p {
  font-size: 0.65rem;
  color: #475569;
  word-break: break-all;
}

.sim-meta-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sim-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Offline Resilience Banner */
.resilience-section {
  padding: 80px 0;
  background: transparent;
}

.resilience-card {
  background: linear-gradient(135deg, rgba(13, 19, 31, 0.9), rgba(16, 26, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(255, 255, 255, 0.03);
  max-width: 1040px;
  margin: 0 auto;
}

.resilience-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.res-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.res-item:hover,
.res-item:active {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.res-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.res-item-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan-400);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.res-item h5 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.res-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.resilience-badge-card {
  background: rgba(8, 19, 24, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(56, 189, 248, 0.08);
}

.res-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.res-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-400);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.res-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.res-config-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.res-flow-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.res-timeline-node {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.res-timeline-node:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: -10px;
  width: 2px;
  background: rgba(56, 189, 248, 0.2);
}

.res-node-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  z-index: 1;
}

.res-node-circle.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: #fbbf24;
  color: #fbbf24;
}

.res-node-circle.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: #34d399;
  color: #34d399;
}

.res-node-body strong {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.res-node-body span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.res-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.res-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Developer Section */
.dev-section {
  padding: 100px 0;
}

.dev-container {
  background: #05080f;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 1040px;
  margin: 0 auto;
}

.dev-nav-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.dev-nav-tabs::-webkit-scrollbar {
  height: 4px;
}

.dev-nav-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.dev-nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 2px;
}

.dev-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.dev-tab-btn:hover,
.dev-tab-btn:active {
  color: var(--text-primary);
}

.dev-tab-btn.active {
  color: #ffffff;
  border-bottom-color: #38bdf8;
}

.dev-code-body {
  padding: 24px 24px 16px;
  position: relative;
  overflow: hidden;
}

.copy-code-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(8, 19, 24, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.copy-code-btn:hover,
.copy-code-btn:active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #ffffff;
}

.copy-code-btn:active {
  transform: scale(0.96);
}

.code-pre {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #e2e8f0;
  max-height: 430px;
  /* Vertical scrollbar kicks in here */
  overflow-x: auto;
  /* Horizontal scrollbar for long lines */
  overflow-y: auto;
  /* Vertical scrollbar for tall code */
  white-space: pre;
  word-break: normal;
  word-wrap: normal;
  tab-size: 4;
  padding: 12px 14px 18px 4px;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #38bdf8 rgba(255, 255, 255, 0.05);
}

.code-pre code {
  display: block;
  width: max-content;
  min-width: 100%;
  white-space: pre;
}

/* Custom Scrollbars: Horizontal & Vertical */
.code-pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: rgba(5, 8, 15, 0.85);
}

.code-pre::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.code-pre::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border-radius: 6px;
  border: 2px solid #05080f;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.code-pre::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #38bdf8, #7dd3fc);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
}

.code-pre::-webkit-scrollbar-corner {
  background: #05080f;
}

/* Dev Code Footer Status Bar */
.dev-code-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.dev-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dev-status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  display: inline-block;
}

.dev-endpoint-code {
  font-family: var(--font-mono);
  color: var(--emerald-400);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

.dev-footer-center {
  display: flex;
  align-items: center;
}

.dev-scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--emerald-400);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.02em;
}

.dev-footer-right {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Code Syntax Highlighting */
.hl-keyword {
  color: #c084fc;
  font-weight: 600;
}

.hl-type {
  color: #38bdf8;
  font-weight: 500;
}

.hl-method {
  color: #34d399;
  font-weight: 500;
}

.hl-string {
  color: #fbbf24;
}

.hl-comment {
  color: #64748b;
  font-style: italic;
}

.hl-variable {
  color: #e2e8f0;
}

.hl-property {
  color: #7dd3fc;
}

/* Sectors Section */
.sectors-section {
  padding: 100px 0;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.sector-card:hover,
.sector-card:active {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.sector-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.sector-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.sector-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #101b29;
  border: none;
  padding: 20px 24px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question svg {
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  background: #19212b;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 24px;
}

/* Contact / Demo Modal & Section */
.cta-banner-section {
  padding: 100px 0;
}

.cta-banner {
  background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(22, 36, 56, 0.5) 0%, rgba(10, 15, 25, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 255, 255, 0.03);
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #ffffff;
}

.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #05080e;
  padding: 60px 0 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
}

.footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-bottom-copy {
  text-align: left;
  color: var(--text-secondary);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--text-primary);
}

.footer-sep {
  color: var(--text-muted);
  opacity: 0.6;
  user-select: none;
}

.footer-made-by {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-made-by a {
  color: #038cd8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-made-by a:hover {
  color: var(--text-primary);
}

/* Social Media Icons */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.footer-socials-sm {
  margin-top: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-socials-sm .social-link {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.social-link:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--text-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.social-link:active {
  transform: scale(0.92);
}

/* Scroll to Top Floating Button */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 27, 33, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.88);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.scroll-to-top svg {
  transition: transform 0.25s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover,
.scroll-to-top:active {
  background: rgba(20, 36, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.6);
  color: #38bdf8;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.35);
  transform: translateY(-3px) scale(1.04);
}

.scroll-to-top:hover svg,
.scroll-to-top:active svg {
  transform: translateY(-2px);
}

.scroll-to-top:active {
  transform: scale(0.92);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 18px;
    width: 42px;
    height: 42px;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: #0d131f;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  padding: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.04);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-card.modal-lg {
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-scrollable-content {
  overflow-y: auto;
  padding-right: 12px;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}

.modal-scrollable-content::-webkit-scrollbar {
  width: 6px;
}

.modal-scrollable-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.modal-scrollable-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}

.modal-scrollable-content::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-400);
}

.modal-scrollable-content h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 18px 0 6px;
  letter-spacing: -0.01em;
}

.modal-scrollable-content h4:first-child {
  margin-top: 0;
}

.modal-scrollable-content p {
  margin-bottom: 12px;
}

.modal-scrollable-content ul {
  margin: 6px 0 14px 18px;
  padding: 0;
}

.modal-scrollable-content li {
  margin-bottom: 5px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-erp-other-group {
  animation: modalFadeIn 0.25s ease-out forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Tarifs / Pricing Section (Forfaits Annuels)
   ========================================================================== */
.pricing-section {
  padding: 100px 0 80px;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.pricing-card:hover,
.pricing-card:active,
.pricing-card.touch-active {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.pricing-card.popular {
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(10, 24, 32, 0.85);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.12), 0 20px 45px rgba(0, 0, 0, 0.6);
}

.pricing-card.popular:hover,
.pricing-card.popular:active,
.pricing-card.popular.touch-active {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 45px rgba(56, 189, 248, 0.22), 0 24px 50px rgba(0, 0, 0, 0.7);
}

.popular-badge {
  position: absolute;
  top: 0px;
  right: 24px;
  background: #FFFFFF;
  color: #01070E;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.pricing-card-top {
  display: flex;
  flex-direction: column;
}

.pricing-plan-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.pricing-amount {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.pricing-amount.on-quote {
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.pricing-setup-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(56, 189, 248, 0.08);
  color: var(--cyan-400);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 26px;
  align-self: flex-start;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.4;
}

.pricing-check {
  color: var(--cyan-400);
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.btn-pricing {
  width: 100%;
  justify-content: center;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* Info Box Frais d'installation */
.pricing-info-box {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.info-box-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--cyan-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box-title {
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.info-box-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   Covers Desktops (>1024px), Tablets (769px-1024px), Phones (<=768px), and Compact Phones (<=480px)
   ========================================================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .main-nav {
    gap: 20px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-receipt-wrapper {
    justify-content: center;
    width: 100%;
  }

  .arch-pipeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .arch-pipeline::after {
    display: none;
  }

  .pipeline-packet {
    display: none;
  }

  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .arch-inspector-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .resilience-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 28px;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   Apple-Style Mobile Drawer Animations (Fluid Slide Down & Slide Up)
   ========================================================================== */
@keyframes appleDrawerSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appleDrawerSlideUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-100%);
    opacity: 1;
  }
}

@keyframes appleLinkCascadeIn {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {

  /* Smooth performance on mobile devices */
  body {
    background-attachment: scroll;
  }

  /* Compact section vertical paddings */
  .hero-section {
    padding: 36px 0 44px;
  }

  .resilience-section,
  .dev-section,
  .sectors-section,
  .pricing-section,
  .faq-section,
  .cta-banner-section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-title {
    font-size: clamp(1.7rem, 5.5vw, 2.15rem);
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  html {
    scroll-padding-top: 74px;
  }

  section[id] {
    scroll-margin-top: 74px;
  }

  /* Bloquage strict du défilement uniquement lorsque le drawer est actif et non en cours de fermeture */
  html.menu-open:not(.menu-closing),
  body.menu-open:not(.menu-closing),
  html:has(.mobile-open:not(.mobile-closing)),
  body:has(.mobile-open:not(.mobile-closing)) {
    overflow: hidden !important;
    height: 100% !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
  }

  /* Header & Mobile Navigation Drawer */
  .site-header {
    height: 64px;
    z-index: 1000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(20, 36, 42, 0.95);
    transition: background 0.3s ease, border-color 0.3s ease;
  }

  .site-header.menu-open,
  .site-header.menu-closing,
  .site-header:has(.mobile-open) {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  #btn-header-demo {
    display: none;
    /* Displayed prominently inside mobile drawer & hero */
  }

  /* Masquage fluide du logo et du sélecteur de langue lorsque le drawer est ouvert */
  .brand-logo {
    font-size: 1.2rem;
    gap: 10px;
    position: relative;
    z-index: 1002;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  }

  .site-header .lang-switcher {
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  }

  .site-header.menu-open .brand-logo,
  .site-header.menu-closing .brand-logo,
  .site-header:has(.mobile-open) .brand-logo,
  body.menu-open .brand-logo,
  body.menu-closing .brand-logo,
  .site-header.menu-open .lang-switcher,
  .site-header.menu-closing .lang-switcher,
  .site-header:has(.mobile-open) .lang-switcher,
  body.menu-open .lang-switcher,
  body.menu-closing .lang-switcher {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .logo-symbol {
    width: 32px;
    height: 32px;
  }

  .logo-symbol svg {
    width: 18px;
    height: 18px;
  }

  .nav-actions {
    position: relative;
    z-index: 1002;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
    z-index: 1002;
  }

  .mobile-menu-btn:hover,
  .mobile-menu-btn:active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
  }

  /* Morphing hamburger lines into 'X' like Apple */
  .mobile-menu-btn.active .line-1 {
    transform: translateY(4px) rotate(45deg);
  }

  .mobile-menu-btn.active .line-2 {
    transform: translateY(-4px) rotate(-45deg);
  }

  /* Fullscreen mobile navigation drawer with fluid Apple animation & frosted glass blur */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(8, 19, 24, 0.82);
    background: linear-gradient(180deg,
        rgba(20, 36, 42, 0.80) 0%,
        rgba(14, 27, 33, 0.84) 30%,
        rgba(8, 19, 24, 0.88) 65%,
        rgba(1, 7, 14, 0.92) 100%);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(64px + 14px) 24px 30px;
    gap: 6px;
    overflow: hidden;
    /* Empêche tout défilement */
    touch-action: none;
    overscroll-behavior: none;
    z-index: 1001;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    pointer-events: none;
    will-change: transform, opacity;
  }

  /* Apparition fluide style Apple */
  .main-nav.mobile-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: appleDrawerSlideDown 0.44s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  /* Disparition fluide vers le haut (style Apple soyeux - 0.35s) */
  .main-nav.mobile-closing {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    animation: appleDrawerSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  /* Liens de navigation orientés à gauche (style typographique Apple) */
  .main-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-size: 1.25rem;
    font-weight: 600;
    color: #F8FAFC;
    padding: 13px 14px;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
    width: 100%;
    letter-spacing: -0.015em;
    opacity: 0;
    transform: translateY(-16px);
  }

  /* Désactivation de la flèche à droite pour alignement pur à gauche */
  .main-nav .nav-link::after {
    display: none;
  }

  .main-nav .nav-link:hover {
    color: #ffffff;
    opacity: 0.8;
  }

  /* Entrée en cascade décalée des liens (Signature Apple) */
  .main-nav.mobile-open .nav-link {
    animation: appleLinkCascadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .main-nav.mobile-open .nav-link:nth-child(1) {
    animation-delay: 0.16s;
  }

  .main-nav.mobile-open .nav-link:nth-child(2) {
    animation-delay: 0.21s;
  }

  .main-nav.mobile-open .nav-link:nth-child(3) {
    animation-delay: 0.26s;
  }

  .main-nav.mobile-open .nav-link:nth-child(4) {
    animation-delay: 0.31s;
  }

  .main-nav.mobile-open .nav-link:nth-child(5) {
    animation-delay: 0.36s;
  }

  .main-nav.mobile-open .nav-link:nth-child(6) {
    animation-delay: 0.41s;
  }

  /* Bouton d'action dans le drawer (positionné directement après le lien FAQ) */
  .mobile-drawer-cta {
    display: flex;
    margin-top: 14px;
    padding-top: 0;
    border-top: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    opacity: 0;
    transform: translateY(-16px);
  }

  .main-nav.mobile-open .mobile-drawer-cta {
    animation: appleLinkCascadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.46s forwards;
  }

  .mobile-drawer-cta .btn {
    width: 100%;
    padding: 13px;
    font-size: 0.95rem;
    font-weight: 700;
  }

  /* Les liens accompagnent le tiroir dans son mouvement vers le haut */
  .main-nav.mobile-closing .nav-link,
  .main-nav.mobile-closing .mobile-drawer-cta {
    opacity: 0.95;
    transform: translateY(-24px);
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease 0.15s;
  }

  /* Hero Section */
  .hero-content {
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 14px;
    text-align: center;
  }

  .hero-description {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 22px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-tutorial-row {
    text-align: center;
    margin-bottom: 24px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 18px;
  }

  .metric-item {
    align-items: center;
    text-align: center;
  }

  .metric-value {
    font-size: clamp(1.15rem, 3.8vw, 1.45rem);
  }

  .metric-label {
    font-size: clamp(0.6rem, 1.8vw, 0.7rem);
    line-height: 1.3;
  }

  /* Hero Receipt (Facture Normalisée DGI) */
  .hero-receipt-wrapper {
    justify-content: center;
    width: 100%;
  }

  .hero-receipt {
    width: 100%;
    max-width: 370px;
    font-size: clamp(0.58rem, 2.5vw, 0.66rem);
    padding: 12px 10px;
  }

  .rcpt-qr canvas,
  .rcpt-qr img,
  .rcpt-qr svg {
    width: 68px;
    height: 68px;
  }

  /* Logos Strip Section */
  .logos-strip-section {
    padding: 28px 0;
  }

  .logos-title {
    font-size: 0.75rem;
    margin-bottom: 16px;
    padding: 0 14px;
  }

  .sim-input-card {
    padding: 18px 14px;
  }

  .sim-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sim-action-bar {
    flex-direction: column;
    gap: 10px;
  }

  .sim-action-bar .btn {
    width: 100%;
  }

  /* Offline Resilience Section */
  .resilience-card {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 20px;
  }

  .resilience-card h3 {
    font-size: 1.35rem;
  }

  .resilience-card p {
    font-size: 0.86rem;
  }

  .resilience-features {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  .res-item {
    padding: 12px 14px;
  }

  .res-item h5 {
    font-size: 0.9rem;
  }

  .res-item p {
    font-size: 0.78rem;
  }

  .resilience-badge-card {
    padding: 20px 16px;
  }

  /* Developer Code Block */
  .dev-container {
    border-radius: var(--radius-md);
  }

  .dev-nav-tabs {
    padding: 6px 8px 0;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .dev-tab-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .dev-code-body {
    padding: 12px 10px 10px;
  }

  .copy-code-btn {
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .code-pre {
    font-size: 0.76rem;
    line-height: 1.55;
    max-height: 340px;
    padding: 8px 6px;
  }

  .dev-code-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 12px;
    font-size: 0.72rem;
  }

  .dev-footer-center {
    width: 100%;
    justify-content: flex-start;
  }

  .dev-scroll-indicator {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  /* Sectors */
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sector-card {
    padding: 20px 16px;
  }

  .sector-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }

  .sector-card h4 {
    font-size: 1.05rem;
  }

  .sector-card p {
    font-size: 0.82rem;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pricing-card {
    padding: 24px 18px 20px;
  }

  .pricing-amount {
    font-size: 2.1rem;
  }

  .popular-badge {
    top: 0px;
    right: 14px;
    font-size: 0.68rem;
    padding: 3px 10px;
  }

  .pricing-info-box {
    flex-direction: column;
    gap: 10px;
    padding: 16px 14px;
  }

  .info-box-desc {
    font-size: 0.84rem;
  }

  /* FAQ */
  .faq-question {
    padding: 14px 16px;
    font-size: 0.92rem;
    gap: 10px;
  }

  .faq-answer {
    font-size: 0.84rem;
    padding: 0 16px;
  }

  .faq-item.open .faq-answer {
    padding: 0 16px 16px;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 32px 16px;
  }

  .cta-banner h2 {
    font-size: clamp(1.5rem, 5vw, 1.9rem);
  }

  .cta-banner p {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .cta-banner .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Site Footer */
  .site-footer {
    padding: 36px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  .footer-brand p {
    max-width: 100%;
    font-size: 0.84rem;
  }

  .footer-col h5 {
    margin-bottom: 12px;
    font-size: 0.9rem;
  }

  .footer-links {
    gap: 8px;
    font-size: 0.84rem;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    font-size: 0.76rem;
  }

  .footer-bottom-copy,
  .footer-made-by {
    text-align: center;
  }

  .footer-bottom-right {
    align-items: center;
  }

  .footer-socials {
    justify-content: center;
  }

  /* Modal Dialog */
  .modal-overlay {
    padding: 12px;
  }

  .modal-card {
    padding: 22px 16px;
    max-width: 100%;
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
    font-size: 1.5rem;
  }

  #modal-title {
    font-size: 1.22rem;
  }
}

@media (max-width: 480px) {

  /* Extra Small Devices (320px - 480px) */
  .container {
    padding: 0 16px;
  }

  .top-banner {
    font-size: 0.7rem;
    padding: 6px 8px;
  }

  .top-banner-badge {
    font-size: 0.6rem;
    padding: 1px 6px;
  }

  .brand-logo {
    font-size: 1.1rem;
    gap: 8px;
  }

  .logo-symbol {
    width: 30px;
    height: 30px;
  }

  .logo-symbol svg {
    width: 16px;
    height: 16px;
  }

  .main-nav .nav-link {
    font-size: 1.15rem;
    padding: 12px 10px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .metric-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  .metric-value {
    font-size: 1.25rem;
    order: 2;
  }

  .metric-label {
    order: 1;
    margin-top: 0;
    text-align: left;
    font-size: 0.72rem;
  }

  .hero-receipt {
    font-size: 0.58rem;
    padding: 10px 8px;
    letter-spacing: -0.02em;
  }

  .rcpt-qr canvas,
  .rcpt-qr img,
  .rcpt-qr svg {
    width: 60px;
    height: 60px;
  }

  .modal-card {
    padding: 18px 12px;
  }

  .sim-input,
  .sim-select {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}