/* ==========================================================================
   AF STORE ECOSYSTEM PORTAL — Clean White x Crimson Brand Design System (v2.0)
   Supports Light (default) & Dark scheme via color-scheme + light-dark()
   ========================================================================== */

:root {
  /* Light & Dark raw palette tokens */
  --bg-light: #FFFFFF;
  --bg-dark: #0B0D13;
  --bg-alt-light: #F8FAFC;
  --bg-alt-dark: #10131C;
  --surface-light: #FFFFFF;
  --surface-dark: #141824;
  --surface-hover-light: #FCFDFE;
  --surface-hover-dark: #191E2D;
  --border-light: #E5E9F0;
  --border-dark: #23293A;
  --border-strong-light: #CBD5E1;
  --border-strong-dark: #333C54;
  --input-border-light: #64748B;
  --input-border-dark: #64748B;

  --text-light: #0F172A;
  --text-dark: #F8FAFC;
  --text-muted-light: #475569;
  --text-muted-dark: #94A3B8;
  --text-subtle-light: #64748B;
  --text-subtle-dark: #78849B;
  --num-watermark-light: #CBD5E1;
  --num-watermark-dark: #2D3548;
  --emblem-cloud-start-light: #FFF1F2;
  --emblem-cloud-mid-light: #F8FAFC;
  --emblem-cloud-end-light: #FFE4E6;
  --emblem-cloud-start-dark: #1E1622;
  --emblem-cloud-mid-dark: #151925;
  --emblem-cloud-end-dark: #25141D;
  --emblem-blob-light: #FFFFFF;
  --emblem-blob-dark: #181D2B;
  --emblem-blob-opacity-light: 0.65;
  --emblem-blob-opacity-dark: 0.55;

  /* Crimson brand tokens (WCAG AA >= 4.5:1 on white with #DC2626) */
  --brand: #DC2626;
  --brand-hover: #B91C1C;
  --brand-display: #EF233C;
  --brand-soft-light: #FFF1F2;
  --brand-soft-dark: rgba(239, 35, 60, 0.14);
  --brand-border-light: #FECDD3;
  --brand-border-dark: rgba(239, 35, 60, 0.38);

  --dark-pill-bg-light: #0F172A;
  --dark-pill-bg-dark: #F8FAFC;
  --dark-pill-text-light: #FFFFFF;
  --dark-pill-text-dark: #0F172A;

  --success: #16A34A;
  --success-text-light: #15803D;
  --success-text-dark: #4ADE80;

  /* Default (Light) fallback assignments */
  --bg: var(--bg-light);
  --bg-alt: var(--bg-alt-light);
  --surface: var(--surface-light);
  --surface-hover: var(--surface-hover-light);
  --border: var(--border-light);
  --border-strong: var(--border-strong-light);
  --input-border: var(--input-border-light);
  --text: var(--text-light);
  --text-muted: var(--text-muted-light);
  --text-subtle: var(--text-subtle-light);
  --num-watermark: var(--num-watermark-light);
  --emblem-cloud-start: var(--emblem-cloud-start-light);
  --emblem-cloud-mid: var(--emblem-cloud-mid-light);
  --emblem-cloud-end: var(--emblem-cloud-end-light);
  --emblem-blob: var(--emblem-blob-light);
  --emblem-blob-opacity: var(--emblem-blob-opacity-light);
  --brand-soft: var(--brand-soft-light);
  --brand-border: var(--brand-border-light);
  --dark-pill-bg: var(--dark-pill-bg-light);
  --dark-pill-text: var(--dark-pill-text-light);
  --success-text: var(--success-text-light);
  --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
  --card-shadow-hover: 0 18px 42px rgba(220, 38, 38, 0.085);
  --header-bg: rgba(255, 255, 255, 0.9);
  --scrollbar-track: #F1F5F9;
  --scrollbar-thumb: #64748B;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container-max: 1160px;

  /* Base color-scheme: supports both light and dark, synced to <meta name="color-scheme"> */
  color-scheme: light dark;
  accent-color: var(--brand);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);

  &:has(> head > meta[name="color-scheme"][content="light"]) {
    color-scheme: light;
  }

  &:has(> head > meta[name="color-scheme"][content="dark"]) {
    color-scheme: dark;
    --bg: var(--bg-dark);
    --bg-alt: var(--bg-alt-dark);
    --surface: var(--surface-dark);
    --surface-hover: var(--surface-hover-dark);
    --border: var(--border-dark);
    --border-strong: var(--border-strong-dark);
    --input-border: var(--input-border-dark);
    --text: var(--text-dark);
    --text-muted: var(--text-muted-dark);
    --text-subtle: var(--text-subtle-dark);
    --num-watermark: var(--num-watermark-dark);
    --emblem-cloud-start: var(--emblem-cloud-start-dark);
    --emblem-cloud-mid: var(--emblem-cloud-mid-dark);
    --emblem-cloud-end: var(--emblem-cloud-end-dark);
    --emblem-blob: var(--emblem-blob-dark);
    --emblem-blob-opacity: var(--emblem-blob-opacity-dark);
    --brand-soft: var(--brand-soft-dark);
    --brand-border: var(--brand-border-dark);
    --dark-pill-bg: var(--dark-pill-bg-dark);
    --dark-pill-text: var(--dark-pill-text-dark);
    --success-text: var(--success-text-dark);
    --card-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 18px 42px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(11, 13, 19, 0.88);
    --scrollbar-track: #10131C;
    --scrollbar-thumb: #64748B;
  }

  @media (prefers-color-scheme: dark) {
    &:not(:has(> head > meta[name="color-scheme"][content="light"])) {
      --bg: var(--bg-dark);
      --bg-alt: var(--bg-alt-dark);
      --surface: var(--surface-dark);
      --surface-hover: var(--surface-hover-dark);
      --border: var(--border-dark);
      --border-strong: var(--border-strong-dark);
      --input-border: var(--input-border-dark);
      --text: var(--text-dark);
      --text-muted: var(--text-muted-dark);
      --text-subtle: var(--text-subtle-dark);
      --num-watermark: var(--num-watermark-dark);
      --emblem-cloud-start: var(--emblem-cloud-start-dark);
      --emblem-cloud-mid: var(--emblem-cloud-mid-dark);
      --emblem-cloud-end: var(--emblem-cloud-end-dark);
      --emblem-blob: var(--emblem-blob-dark);
      --emblem-blob-opacity: var(--emblem-blob-opacity-dark);
      --brand-soft: var(--brand-soft-dark);
      --brand-border: var(--brand-border-dark);
      --dark-pill-bg: var(--dark-pill-bg-dark);
      --dark-pill-text: var(--dark-pill-text-dark);
      --success-text: var(--success-text-dark);
      --card-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
      --card-shadow-hover: 0 18px 42px rgba(0, 0, 0, 0.5);
      --header-bg: rgba(11, 13, 19, 0.88);
      --scrollbar-track: #10131C;
      --scrollbar-thumb: #64748B;
    }
  }

  @supports (color: light-dark(white, black)) {
    --bg: light-dark(var(--bg-light), var(--bg-dark));
    --bg-alt: light-dark(var(--bg-alt-light), var(--bg-alt-dark));
    --surface: light-dark(var(--surface-light), var(--surface-dark));
    --surface-hover: light-dark(var(--surface-hover-light), var(--surface-hover-dark));
    --border: light-dark(var(--border-light), var(--border-dark));
    --border-strong: light-dark(var(--border-strong-light), var(--border-strong-dark));
    --input-border: light-dark(var(--input-border-light), var(--input-border-dark));
    --text: light-dark(var(--text-light), var(--text-dark));
    --text-muted: light-dark(var(--text-muted-light), var(--text-muted-dark));
    --text-subtle: light-dark(var(--text-subtle-light), var(--text-subtle-dark));
    --num-watermark: light-dark(var(--num-watermark-light), var(--num-watermark-dark));
    --emblem-cloud-start: light-dark(var(--emblem-cloud-start-light), var(--emblem-cloud-start-dark));
    --emblem-cloud-mid: light-dark(var(--emblem-cloud-mid-light), var(--emblem-cloud-mid-dark));
    --emblem-cloud-end: light-dark(var(--emblem-cloud-end-light), var(--emblem-cloud-end-dark));
    --emblem-blob: light-dark(var(--emblem-blob-light), var(--emblem-blob-dark));
    --emblem-blob-opacity: var(--emblem-blob-opacity-light);
    --brand-soft: light-dark(var(--brand-soft-light), var(--brand-soft-dark));
    --brand-border: light-dark(var(--brand-border-light), var(--brand-border-dark));
    --dark-pill-bg: light-dark(var(--dark-pill-bg-light), var(--dark-pill-bg-dark));
    --dark-pill-text: light-dark(var(--dark-pill-text-light), var(--dark-pill-text-dark));
    --success-text: light-dark(var(--success-text-light), var(--success-text-dark));
    --header-bg: light-dark(rgba(255, 255, 255, 0.92), rgba(11, 13, 19, 0.88));
    --scrollbar-track: light-dark(#F1F5F9, #10131C);
    --scrollbar-thumb: light-dark(#64748B, #8A94A6);
  }
}

/* Cross-Document View Transitions */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: 0.18s ease-out both af-page-out;
  }

  ::view-transition-new(root) {
    animation: 0.24s ease-out both af-page-in;
  }

  @keyframes af-page-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-4px); }
  }

  @keyframes af-page-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: clip;
}

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

:not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--brand);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- HEADER / NAVBAR (Mockup Style) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  view-transition-name: site-header;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.scroll-progress-bar {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  block-size: 2px;
  background: var(--brand);
  transform-origin: 0% 50%;
  scale: 0 1;
  pointer-events: none;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes af-scroll-progress {
      from { scale: 0 1; }
      to { scale: 1 1; }
    }

    .scroll-progress-bar {
      opacity: 1;
      animation: af-scroll-progress auto linear;
      animation-timeline: scroll(root block);
    }
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-block-size: 70px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 17px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark-svg {
  inline-size: 34px;
  block-size: 24px;
  flex-shrink: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.brand-af {
  position: relative;
}

.brand-dot {
  color: var(--brand);
}

.header-divider {
  inline-size: 1px;
  block-size: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 23px 13px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.nav-link svg:first-child {
  color: var(--text-subtle);
  transition: color 0.16s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link.is-active,
.nav-link[aria-expanded="true"] {
  color: var(--text);
}

.nav-link:hover svg:first-child,
.nav-link[aria-expanded="true"] svg:first-child {
  color: var(--brand);
}

.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--brand);
  font-weight: 700;
}

.nav-link[aria-current="page"] svg:first-child,
.nav-link.is-active svg:first-child {
  color: var(--brand);
}

.nav-link[aria-current="page"]::after,
.nav-link.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 10px;
  inset-block-end: -1px;
  block-size: 2.5px;
  border-radius: 999px;
  background: var(--brand);
}

.nav-caret {
  opacity: 0.7;
}

@media (prefers-reduced-motion: no-preference) {
  .nav-caret {
    transition: rotate 0.16s ease;
  }
}

.nav-link[aria-expanded="true"] .nav-caret {
  rotate: 180deg;
}

/* Native Popover Submenu for Layanan */
.nav-dropdown-menu {
  margin: 0;
  padding: 8px;
  inline-size: min(348px, calc(100dvw - 2rem));
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
  color: var(--text);
  overflow: visible;
}

.nav-dropdown-menu[popover] {
  position: absolute;
  position-area: block-end span-inline-end;
  position-try-fallbacks: flip-block, flip-inline;
  inset: auto;
  block-size: auto;
  margin-block-start: 0.35rem;
}

/* Only add pointer hover bridge while popover is actively open */
.nav-dropdown-menu[popover]:is(:popover-open, .\:popover-open)::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 100%;
  block-size: 0.6rem;
}

@supports not (position-area: block-end) {
  .nav-dropdown-menu[popover] {
    position: fixed;
    margin: 0;
  }
}

@supports not selector(:popover-open) {
  .nav-dropdown-menu[popover]:not(.\:popover-open) {
    display: none;
  }
}

.nav-dropdown-menu[popover]:not(:is(:popover-open, .\:popover-open)) {
  display: none;
}

.nav-dropdown-menu[popover]:is(:popover-open, .\:popover-open) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .nav-dropdown-menu[popover] {
    opacity: 0;
    translate: 0 -4px;
    transition:
      opacity 0.16s ease-out,
      translate 0.16s ease-out,
      display 0.16s,
      overlay 0.16s;
    transition-behavior: allow-discrete;
  }

  .nav-dropdown-menu[popover]:is(:popover-open, .\:popover-open) {
    opacity: 1;
    translate: 0 0;
  }

  @starting-style {
    .nav-dropdown-menu[popover]:is(:popover-open, .\:popover-open) {
      opacity: 0;
      translate: 0 -4px;
    }
  }
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-dropdown-item:hover {
  background: var(--bg-alt);
  border-color: var(--border);
}

.nav-dropdown-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-inline-size: 0;
}

.nav-dropdown-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.nav-dropdown-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.nav-dropdown-footer {
  margin-block-start: 4px;
  padding: 8px 12px 4px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
}

/* Soft Rose Icon Circles (Consistent across all items, matching Mockup) */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 46px;
  block-size: 46px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover .icon-box {
    transform: scale(1.05);
  }
}

.icon-box-sm {
  inline-size: 34px;
  block-size: 34px;
  border-radius: 10px;
  margin-block-start: 1px;
}

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

/* Theme Toggle Button (Sun / Moon) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-alt);
}

/* Show moon icon in light mode ("Switch to dark"), sun icon in dark mode ("Switch to light") */
.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: block;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-icon-sun {
  display: block;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-icon-sun {
    display: block;
  }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-icon-moon {
    display: none;
  }
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: max(16px, env(safe-area-inset-right));
  z-index: 90;
  inline-size: min(264px, calc(100vw - 32px));
  max-block-size: calc(100dvh - 88px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
  padding: 8px;
}

.mobile-drawer.open {
  display: block;
}

@media (min-width: 861px) {
  .mobile-drawer {
    display: none !important;
  }
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.mobile-drawer-links a[aria-current="page"],
.mobile-drawer-links a:hover {
  background: var(--bg-alt);
  color: var(--brand);
}

.mobile-drawer-divider {
  block-size: 1px;
  background: var(--border);
  margin: 6px 8px;
}

.mobile-drawer-group-label {
  padding: 4px 12px 2px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.mobile-drawer-sublink {
  font-size: 13.5px;
  font-weight: 600;
}

.mobile-drawer-sublink .eco-pill-arrow {
  margin-inline-start: auto;
  font-size: 12px;
}

.mobile-eco-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 26px;
  block-size: 26px;
  border-radius: 7px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  flex-shrink: 0;
}

/* ---------- PILL BUTTONS (Mockup Style) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.2s ease, translate 0.16s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    translate: 0 -1px;
  }
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.24);
}

.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.32);
}

.btn-dark {
  background: var(--dark-pill-bg);
  color: var(--dark-pill-text);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.btn-dark:hover {
  opacity: 0.92;
}

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

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

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-alt);
}

/* ---------- HERO SECTION (2-Column Editorial + Orbit AF Emblem) ---------- */
.hero {
  position: relative;
  padding: 58px 0 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(620px 380px at 82% 38%, rgba(239, 35, 60, 0.065), transparent 70%),
    radial-gradient(500px 320px at 65% 75%, rgba(148, 163, 184, 0.08), transparent 70%),
    var(--bg);
}

.hero-compact {
  padding: 46px 0 42px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: center;
  padding-block-end: 48px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-subtle);
  margin-block-end: 16px;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-block-end: 20px;
}

.pill-red-dot {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  flex-shrink: 0;
}

.status-dot {
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero-title-red {
  display: block;
  color: var(--brand-display);
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--text-muted);
  max-inline-size: 560px;
  line-height: 1.65;
}

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

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Right Column: 3D-Styled Vector AF Orbit Illustration */
.hero-emblem-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 320px;
}

.hero-emblem-svg {
  inline-size: 100%;
  max-inline-size: 430px;
  block-size: auto;
  filter: drop-shadow(0 22px 36px rgba(15, 23, 42, 0.08));
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes af-float-gentle {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -7px; }
  }
  .hero-emblem-svg {
    animation: af-float-gentle 5.5s ease-in-out infinite;
  }
}

.hero-floating-badge {
  position: absolute;
  inset-inline-end: 4%;
  inset-block-end: 10%;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
  rotate: -3deg;
}

.hero-floating-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  block-size: 18px;
}

.hero-floating-bars span {
  inline-size: 4px;
  border-radius: 2px;
  background: var(--brand-display);
}

.hero-floating-bars span:nth-child(1) { block-size: 8px; opacity: 0.55; }
.hero-floating-bars span:nth-child(2) { block-size: 13px; opacity: 0.8; }
.hero-floating-bars span:nth-child(3) { block-size: 18px; }

.hero-floating-text {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.hero-floating-text small {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 11px;
}

/* ---------- HORIZONTAL DIVIDER STATS BAR (Mockup Style) ---------- */
.hero-stats-band {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 24px 0;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 22px;
  border-inline-end: 1px solid var(--border);
}

.stat-item:first-child {
  padding-inline-start: 0;
}

.stat-item:last-child {
  border-inline-end: 0;
  padding-inline-end: 0;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  flex-shrink: 0;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-block-start: 2px;
}

/* Live Subdomain Status Strip */
.live-domains-wrap {
  margin-block-start: 20px;
  padding-block-start: 18px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-domains-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-subtle);
}

.live-domains-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.live-domain-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.live-domain-pill:hover {
  border-color: var(--brand-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.live-domain-host {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-domain-state {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--success-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.live-domain-pill[data-online="false"] .status-dot {
  background: #D97706;
}

.live-domain-pill[data-online="false"] .live-domain-state {
  color: #D97706;
}

/* ---------- SECTIONS & EYEBROWS (With Short Red Dash) ---------- */
.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-alt);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-block-end: 10px;
}

.section-eyebrow::before {
  content: "";
  inline-size: 20px;
  block-size: 2px;
  border-radius: 999px;
  background: var(--brand);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.22;
  color: var(--text);
}

.section-title-red {
  color: var(--brand-display);
}

.section-desc {
  margin: 0 0 34px;
  color: var(--text-muted);
  max-inline-size: 640px;
  font-size: 15.5px;
}

/* Split Section Layout (Bottom of Mockup: Intro Left + Cards Right) */
.split-section-grid {
  display: grid;
  grid-template-columns: 0.85fr 2.15fr;
  gap: 32px;
  align-items: start;
}

.split-intro .section-desc {
  margin-block-end: 24px;
}

/* Scroll Entry Reveal */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes af-reveal-up {
      from {
        opacity: 0;
        translate: 0 16px;
      }
      to {
        opacity: 1;
        translate: 0 0;
      }
    }

    .reveal-item {
      animation: af-reveal-up auto linear backwards;
      animation-timeline: view(block);
      animation-range: entry 0% entry 30%;
    }
  }

  .reveal-item.is-reveal-pending {
    opacity: 0;
    translate: 0 16px;
    transition: opacity 0.42s ease-out, translate 0.42s ease-out;
  }

  .reveal-item.is-reveal-pending.is-visible {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- CARDS & GRIDS (Mockup White Numbered Cards) ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 861px) {
  .services-grid > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease, box-shadow 0.22s ease, translate 0.2s ease;
}

.card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--card-shadow-hover);
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    translate: 0 -3px;
  }
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 18px;
}

.card-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--num-watermark);
  line-height: 1;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 10px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-inline-size: 0;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-alt);
  white-space: nowrap;
}

.card-price {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand);
  margin-block-end: 10px;
}

.card-summary {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.62;
}

.feature-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 8px;
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-block-start: 16px;
  border-top: 1px solid var(--border);
}

/* Mockup-style Red Action Link ("Selengkapnya ->" / "Buka AF Store ->") */
.card-link-red {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  transition: gap 0.16s ease, color 0.16s ease;
}

.card-link-red:hover {
  color: var(--brand-hover);
  gap: 9px;
}

.card-host-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  margin-inline-start: auto;
}

.card-host-dot {
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.card-host-status[data-online="false"] .card-host-dot {
  background: #D97706;
}

.eco-pill-arrow {
  color: var(--text-subtle);
  font-size: 12px;
}

/* Payment Methods Strip */
.payment-strip {
  margin-block-start: 26px;
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-strip-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.payment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-chip {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- STEP CARDS ---------- */
.step-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: border-color 0.18s ease, box-shadow 0.2s ease, translate 0.18s ease;
}

.step-card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--card-shadow-hover);
}

@media (prefers-reduced-motion: no-preference) {
  .step-card:hover {
    translate: 0 -2px;
  }
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  margin-block-end: 16px;
}

.step-title {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
}

.step-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- INTERACTIVE TABS & PRICING TABLES ---------- */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 22px;
}

.tab-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.tab-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes af-tab-fade {
    from { opacity: 0; translate: 0 4px; }
    to { opacity: 1; translate: 0 0; }
  }
  .tab-panel.active {
    animation: af-tab-fade 0.2s ease-out;
  }
}

.table-wrap {
  inline-size: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

table.data-table {
  inline-size: 100%;
  border-collapse: collapse;
  min-inline-size: 540px;
  font-size: 14px;
}

table.data-table th,
table.data-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}

table.data-table th {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  background: var(--bg-alt);
}

table.data-table tr:last-child td {
  border-bottom: 0;
}

table.data-table td.mono {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ---------- REKBER CALCULATOR WIDGET ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.calc-box {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.field-group {
  margin-block-end: 16px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-block-end: 8px;
}

.input-text {
  inline-size: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
}

.input-text:focus {
  border-color: var(--brand);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-btn {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.mode-btn small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--text-subtle);
  margin-block-start: 2px;
}

.mode-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--text);
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.calc-result-row:last-of-type {
  border-bottom: 0;
}

.calc-result-row strong {
  font-family: var(--font-mono);
  font-size: 15px;
}

.calc-note {
  margin-block-start: 12px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- CODE SNIPPET BLOCK (REST API) ---------- */
.code-card {
  border-radius: var(--radius-lg);
  border: 1px solid #1E293B;
  background: #0F172A;
  color-scheme: dark;
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #1E293B;
  border-bottom: 1px solid #334155;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #CBD5E1;
}

.code-body {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #F8FAFC;
}

/* ---------- MODERN ANIMATED FAQ ACCORDION ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-inline-size: 840px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.025);
  overflow: hidden;
  transition: border-color 0.16s ease;
}

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

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition: background-color 0.15s ease;
}

.faq-item > summary:hover {
  background: var(--bg-alt);
}

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

.faq-item > summary::before {
  content: "";
  inline-size: 16px;
  block-size: 16px;
  flex-shrink: 0;
  background-color: var(--brand);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.faq-item[open] > summary::before {
  rotate: 0deg;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item > summary::before {
    transition: rotate 0.18s ease;
  }
}

.faq-item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.faq-item:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.faq-answer {
  padding: 14px 20px 18px 48px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

/* ---------- FINAL CTA BANNER ---------- */
.cta-banner {
  padding: 36px 34px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.cta-banner p {
  margin: 0;
  color: var(--text-muted);
  max-inline-size: 540px;
  font-size: 15px;
}

/* ---------- FOOTER (Mockup Clean Bar + Links) ---------- */
.site-footer {
  padding: 44px 0 30px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-block-end: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-desc {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
  max-inline-size: 320px;
}

.footer-heading {
  margin: 0 0 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-subtle);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block-start: 22px;
  font-size: 13px;
  color: var(--text-subtle);
}

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

.social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.social-circle:hover {
  background: var(--brand-soft);
  border-color: var(--brand-border);
  color: var(--brand);
}

@media (forced-colors: active) {
  .card,
  .step-card,
  .btn {
    border: 1px solid CanvasText;
  }
  .nav-link[aria-current="page"]::after,
  .nav-link.is-active::after {
    background: Highlight;
  }
}

/* ---------- RESPONSIVE (MOBILE ANDROID) ---------- */
@media (max-width: 980px) {
  .hero-split,
  .split-section-grid {
    grid-template-columns: 1fr;
  }
  .hero-emblem-stage {
    min-block-size: 250px;
  }
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .stat-item {
    padding-inline: 0;
    border-inline-end: 0;
  }
  .grid-4,
  .live-domains-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3,
  .calc-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-desktop,
  .header-divider {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .header-cta-desktop {
    padding: 8px 13px;
    font-size: 12.5px;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 36px 0 0;
  }
  .section {
    padding: 48px 0;
  }
  .cta-banner {
    padding: 26px 22px;
  }
  .card {
    padding: 22px;
  }
  .faq-answer {
    padding-inline-start: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 18px;
  }
  .header-cta-desktop {
    padding: 7px 12px;
    font-size: 12px;
  }
  .header-cta-desktop svg {
    display: none;
  }
  .theme-toggle-btn,
  .mobile-menu-btn {
    inline-size: 34px;
    block-size: 34px;
  }
  .stats-strip,
  .grid-4,
  .live-domains-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mode-switch {
    grid-template-columns: 1fr;
  }
  .hero-floating-badge {
    inset-inline-end: 0;
    inset-block-end: 4%;
  }
}

/* ---------- VIDEO TUTORIAL CARD (/info-update) ---------- */
.tutorial-featured-card {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

@media (max-width: 860px) {
  .tutorial-featured-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.tutorial-video-frame {
  inline-size: 100%;
  max-inline-size: 290px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0B0D13;
  box-shadow: var(--shadow-sm);
}

.tutorial-video-player {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  background: #0B0D13;
}

.tutorial-video-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tutorial-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tutorial-duration {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}
