/* ==========================================================================
   MESL — Official Apple-Style Bento Minimalism (Pure Native CSS)
   Palette: #ffffff Canvas | #f5f7fb Ice-Grey Bento | #0c1e5b Royal Navy | #007bff Electric Blue
   Domain: https://meslv.homes
   ========================================================================== */

:root {
  /* Daylight Mode (Default) */
  --bg-page: #ffffff;
  --bg-bento: #f5f7fb;
  --bg-bento-elevated: #ffffff;
  --bg-navy: #0c1e5b;
  --bg-navy-deep: #091645;
  --bg-header: rgba(255, 255, 255, 0.84);
  --bg-toggle: rgba(245, 247, 251, 0.72);
  --bg-toggle-hover: rgba(255, 255, 255, 0.96);
  --bg-badge: rgba(0, 123, 255, 0.08);
  --bg-navy-soft: rgba(12, 30, 91, 0.05);

  --text-primary: #0c1e5b;
  --text-body: #334155;
  --text-secondary: #52627a;
  --text-muted: #6e7f99;
  --text-inverse: #ffffff;

  --accent: #007bff;
  --accent-hover: #0066d6;
  --accent-soft: rgba(0, 123, 255, 0.12);
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.1);

  --border-subtle: rgba(12, 30, 91, 0.08);
  --border-strong: rgba(12, 30, 91, 0.15);
  --border-accent: #007bff;

  --shadow-bento: 0 2px 10px rgba(12, 30, 91, 0.04);
  --shadow-bento-hover: 0 12px 28px -8px rgba(12, 30, 91, 0.11);
  --shadow-accent: 0 8px 22px -6px rgba(0, 123, 255, 0.42);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --container-max: 1160px;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --theme-transition: background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                      color 0.34s cubic-bezier(0.22, 1, 0.36, 1),
                      border-color 0.34s cubic-bezier(0.22, 1, 0.36, 1),
                      box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg-page: #060d1f;
  --bg-bento: #0d1833;
  --bg-bento-elevated: #111f42;
  --bg-navy: #0c1e5b;
  --bg-navy-deep: #091540;
  --bg-header: rgba(6, 13, 31, 0.8);
  --bg-toggle: rgba(255, 255, 255, 0.07);
  --bg-toggle-hover: rgba(255, 255, 255, 0.15);
  --bg-badge: rgba(0, 123, 255, 0.16);
  --bg-navy-soft: rgba(255, 255, 255, 0.06);

  --text-primary: #f4f7fc;
  --text-body: #cbd5e1;
  --text-secondary: #9fb0cc;
  --text-muted: #788ba8;
  --text-inverse: #ffffff;

  --accent: #1a8cff;
  --accent-hover: #47a3ff;
  --accent-soft: rgba(26, 140, 255, 0.18);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);

  --border-subtle: rgba(148, 174, 218, 0.13);
  --border-strong: rgba(148, 174, 218, 0.24);
  --border-accent: #1a8cff;

  --shadow-bento: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-bento-hover: 0 14px 32px -8px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 10px 26px -6px rgba(0, 123, 255, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  transition: var(--theme-transition);
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: var(--theme-transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Smooth Anchor Target Transition */
@keyframes sectionFocus {
  0% {
    opacity: 0.72;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-anchor-active {
  animation: sectionFocus 0.55s var(--spring);
}

/* Container & Sections */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 84px 0;
  position: relative;
}

.section-compact {
  padding: 56px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--bg-badge);
  border: 1px solid rgba(0, 123, 255, 0.22);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.75rem, 3.1vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.24;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* ==========================================================================
   Trackpad Buoyancy Micro-Interaction (Unified Bento Tile)
   ========================================================================== */
.bento-tile {
  background: var(--bg-bento);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-bento);
  transition: transform 0.32s var(--spring),
              border-color 0.28s var(--spring),
              box-shadow 0.32s var(--spring),
              background-color 0.36s var(--spring);
}

.bento-tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-bento-hover);
}

.bento-navy {
  background: linear-gradient(155deg, #0c1e5b 0%, #102a7a 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.bento-navy h3,
.bento-navy .bento-title {
  color: #ffffff;
}

.bento-navy p {
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   Header (Frosted-White Bar + Logo + Directory + Login/Register + Toggle)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--theme-transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.86;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  transition: filter 0.36s var(--spring);
}

html[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.22s ease, background-color 0.22s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background-color: var(--accent-soft);
}

.nav-links a.nav-insights {
  color: var(--text-primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Refined Glassmorphic Day/Night Toggle */
.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-toggle);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  transition: background-color 0.28s ease, border-color 0.28s ease,
              transform 0.24s var(--spring), box-shadow 0.28s ease;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--bg-toggle-hover);
  border-color: var(--border-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-bento);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  width: 17px;
  height: 17px;
  transition: transform 0.44s var(--spring), opacity 0.32s ease;
}

html[data-theme="light"] .theme-toggle .icon-sun,
html:not([data-theme="dark"]) .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html[data-theme="light"] .theme-toggle .icon-moon,
html:not([data-theme="dark"]) .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-72deg) scale(0.5);
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(72deg) scale(0.5);
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Mobile Nav Drawer Toggle (Hidden on Desktop) */
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  background: var(--bg-toggle);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.mobile-nav-panel {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 18px 18px;
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  margin-bottom: 12px;
}

.mobile-nav-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-bento);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-nav-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Buttons with Quiet Tactile Damping */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 0.94rem;
  min-height: 44px;
  transition: transform 0.2s var(--spring),
              background-color 0.24s ease,
              box-shadow 0.24s ease,
              border-color 0.24s ease,
              color 0.24s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  min-height: 38px;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
  min-height: 50px;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(0, 123, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-soft);
}

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

.btn-navy:hover {
  background: #132c7e;
  transform: translateY(-1px);
}

.btn-white {
  background: #ffffff;
  color: #0c1e5b;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.btn-white:hover {
  background: #f5f7fb;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Hero Section (1:1 Official Split with Isometric 3D Cloud Server SVG)
   ========================================================================== */
.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 44px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-bento);
  border: 1px solid var(--border-subtle);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-title {
  font-size: clamp(2.25rem, 4.4vw, 3.45rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-brand-accent {
  color: var(--accent);
  display: inline-block;
  margin-right: 6px;
}

.hero-subtitle {
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-subtitle strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-item svg {
  color: var(--accent);
}

.hero-visual {
  background: var(--bg-bento);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-bento);
  transition: var(--theme-transition);
}

.hero-svg {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   How It Works + 3 Core Advantage Visual Cards
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--bg-bento-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.step-num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--bg-badge);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.72;
  flex-grow: 1;
  margin-bottom: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-bento-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   5-Card Tech & Infrastructure Bento Grid (Central #0c1e5b Navy Card)
   ========================================================================== */
.infra-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.infra-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.infra-card-center {
  grid-row: span 2;
  padding: 34px 28px;
  justify-content: space-between;
}

.infra-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-badge);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.bento-navy .infra-icon {
  background: rgba(0, 123, 255, 0.24);
  color: #66b2ff;
}

.infra-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

.infra-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.bento-navy .infra-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.bento-navy .infra-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-navy .infra-specs svg {
  color: #4da3ff;
  flex-shrink: 0;
}

/* 4-Column Metrics Bento Row ("3000", "20+", "150+", "2000") */
.metrics-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-tile {
  padding: 26px 22px;
  text-align: center;
}

.metric-num {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.metric-unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 2px;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Pricing Bento Cards ("Premium 50G", "Premium 100G", "Premium 200G") + Table
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 36px;
}

.pricing-card {
  position: relative;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}

.pricing-card.recommended {
  border: 2px solid var(--accent);
  background: var(--bg-bento-elevated);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.plan-tier {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.plan-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.plan-currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-amount {
  font-size: 2.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
}

.pricing-card.recommended .plan-amount {
  color: var(--accent);
}

.plan-cycle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-billing-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex-grow: 1;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.91rem;
  color: var(--text-body);
}

.plan-list svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Comparison Table */
.table-wrap {
  background: var(--bg-bento);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.91rem;
}

.compare-table thead th {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-navy-soft);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.compare-table td {
  color: var(--text-secondary);
}

.compare-table .col-featured {
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   2x3 Tailored Services Bento Grid + Clash Client Carousel
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-tile {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-tile h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text-primary);
}

.service-tile p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

/* Clash Client Carousel */
.carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.carousel-header .section-title {
  margin-bottom: 6px;
  text-align: left;
}

.carousel-header .section-desc {
  text-align: left;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--bg-bento);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.2s var(--spring);
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.client-slide {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  scroll-snap-align: start;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.client-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-os {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-badge);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.client-slide h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.client-slide p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

/* ==========================================================================
   Streaming & AI Support Cards (Zero Generic Bot Icons)
   ========================================================================== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.media-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.media-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.media-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.bg-netflix    { background: #d90429; }
.bg-youtube    { background: #e11d48; }
.bg-disney     { background: #0c1e5b; }
.bg-tiktok     { background: #111827; }
.bg-hbo        { background: #4c1d95; }
.bg-spotify    { background: #15803d; }

.bg-openai     { background: #0d8a6a; }
.bg-claude     { background: #c25e3c; }
.bg-gemini     { background: #007bff; }
.bg-midjourney { background: #0c1e5b; }
.bg-perplexity { background: #0e7490; }
.bg-cursor     { background: #1e293b; }

.media-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.media-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-pill {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.media-desc {
  font-size: 0.89rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   User Reviews
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.74;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-navy);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.review-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.review-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ (Native <details> / <summary>)
   ========================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-bento);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, var(--theme-transition);
}

.faq-item[open] {
  border-color: var(--border-accent);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.faq-chevron {
  width: 19px;
  height: 19px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.28s var(--spring), color 0.25s ease;
}

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

.faq-answer {
  padding: 0 22px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   Full-Width #0c1e5b Royal-Navy Partner / CTA Banner
   ========================================================================== */
.partner-banner {
  background: linear-gradient(135deg, #0c1e5b 0%, #102b82 100%);
  color: #ffffff;
  padding: 68px 0;
}

.partner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.partner-copy {
  max-width: 640px;
}

.partner-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.partner-copy p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.72;
}

.partner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer (Strictly 4 Links Opening New Pages)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-page);
  padding: 36px 0;
  transition: var(--theme-transition);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
}

.footer-nav a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 4px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Subpages (About, Terms, Privacy, Sitemap, Insights)
   ========================================================================== */
.page-hero {
  padding: 56px 0 38px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-bento);
  transition: var(--theme-transition);
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 700px;
}

.doc-body {
  padding: 48px 0 76px;
}

.doc-card {
  background: var(--bg-bento);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px;
  max-width: 900px;
  margin: 0 auto;
  transition: var(--theme-transition);
}

.doc-section + .doc-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.doc-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.doc-section p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.doc-section ul {
  padding-left: 20px;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.94rem;
  line-height: 1.75;
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.node-box {
  background: var(--bg-bento-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.node-box strong {
  display: block;
  font-size: 0.94rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.node-box span {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  padding-left: 0 !important;
}

.sitemap-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--bg-bento-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.22s ease, transform 0.24s var(--spring);
}

.sitemap-list a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.sitemap-list strong {
  color: var(--text-primary);
  font-size: 0.98rem;
}

.sitemap-list span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Insights Articles Grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-tag {
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-badge);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.article-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.article-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex-grow: 1;
}

.article-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--text-body);
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.article-card:hover .article-read-more {
  text-decoration: underline;
}

/* ==========================================================================
   Long-Form SEO Article Pages (Breadcrumb, TOC, Prose, Callout, Related)
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: 90px;
  padding: 22px 20px;
}

.toc-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.toc-list a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.article-main {
  background: var(--bg-bento);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  transition: var(--theme-transition);
}

.prose h2 {
  font-size: 1.42rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 34px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.prose p {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.88;
  margin-bottom: 15px;
}

.prose a.inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-bento-elevated);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--accent);
}

.prose .table-wrap {
  margin: 20px 0 24px;
  background: var(--bg-bento-elevated);
}

.callout-box {
  background: var(--bg-bento-elevated);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 22px 0;
}

.callout-box strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.callout-box p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.article-cta-box {
  margin: 28px 0;
  padding: 26px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0c1e5b 0%, #102b82 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-cta-box h3 {
  color: #ffffff;
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.article-cta-box p {
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
  font-size: 0.9rem;
}

.article-faq {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.article-faq h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-faq .faq-item {
  background: var(--bg-bento-elevated);
}

.related-section {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.related-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-bento-elevated);
}

.related-card strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.related-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Media Queries (@media)
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-grid,
  .article-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc-sidebar {
    position: static;
  }

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

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

  .infra-card-center {
    grid-row: auto;
    grid-column: span 2;
  }

  .steps-grid,
  .pricing-grid,
  .services-grid,
  .showcase-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .section {
    padding: 58px 0;
  }

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

  .header-inner {
    height: 62px;
  }

  .brand-logo {
    height: 29px;
  }

  .header-login {
    display: none;
  }

  .hero {
    padding: 44px 0 42px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  /* Strict Single-Column Mobile Layout */
  .steps-grid,
  .infra-bento,
  .pricing-grid,
  .services-grid,
  .showcase-grid,
  .reviews-grid,
  .node-grid,
  .sitemap-list,
  .insights-grid,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-main {
    padding: 24px 18px;
  }

  .article-cta-box .btn {
    width: 100%;
  }

  .infra-card-center {
    grid-column: auto;
  }

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

  .carousel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-slide {
    flex: 0 0 88%;
    min-width: 260px;
  }

  .pricing-card .btn,
  .partner-actions,
  .partner-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .partner-banner {
    padding: 48px 0;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .footer-nav {
    gap: 16px 22px;
  }

  .footer-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .doc-card {
    padding: 24px 18px;
  }
}
