/* ==========================================================================
   QLOOQ.cfd — Intelligent Digital Engineering & High-Performance Services
   Design System & Styling inspired by example_site
   ========================================================================== */

/* ───────────── Tokens ───────────── */
:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f1f0ec;
  --card: #ffffff;
  --raised: #ffffff;
  --field: #f8f8f6;
  --basket-bg: #f9f8f5;
  --chrome: #f3f2ed;
  --nav-bg: #efeee8;
  --hover: rgba(24, 24, 16, 0.045);
  --border: #e8e6e0;
  --border-strong: #d8d6ce;
  --text: #1b1b18;
  --muted: #6c6b65;
  --faint: #a3a199;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-cyan: #06b6d4;
  --accent-cyan-soft: rgba(6, 182, 212, 0.12);
  --green: #12a46b;
  --amber: #e09412;
  --red: #e0475f;

  --shadow-sm: 0 1px 2px rgba(24, 24, 16, 0.05);
  --shadow: 0 1px 2px rgba(24, 24, 16, 0.04), 0 8px 24px -10px rgba(24, 24, 16, 0.12);
  --shadow-lg: 0 2px 6px rgba(24, 24, 16, 0.04), 0 30px 70px -20px rgba(24, 24, 16, 0.22);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --tip-bg: #ffffff;
  --tip-fg: #1b1b18;
  --tip-border: #e2e0d9;
  --scrim: rgba(24, 24, 16, 0.38);
  --scroll-thumb: rgba(24, 24, 16, 0.16);
  --scroll-thumb-hover: rgba(24, 24, 16, 0.3);

  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  color-scheme: light;
}

/* Dark theme: chosen explicitly via data-theme="dark", or following system preference */
:root[data-theme="dark"] {
  --bg: #0a0a0d;
  --surface: #151519;
  --surface-2: #23232a;
  --card: #1e1e25;
  --raised: #25252d;
  --field: #111115;
  --basket-bg: #1c1c22;
  --chrome: #1d1d24;
  --nav-bg: #111115;
  --hover: rgba(255, 255, 255, 0.07);
  --border: #282832;
  --border-strong: #3e3e4a;
  --text: #f0f0f3;
  --muted: #a6a6b0;
  --faint: #82828e;
  --accent: #8e91f7;
  --accent-soft: rgba(142, 145, 247, 0.17);
  --accent-cyan: #22d3ee;
  --accent-cyan-soft: rgba(34, 211, 238, 0.16);
  --green: #34c98d;
  --amber: #f3b23f;
  --red: #f4727f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 80px -20px rgba(0, 0, 0, 0.75);
  --tip-bg: #2a2a31;
  --tip-fg: #f0f0f3;
  --tip-border: #4a4a56;
  --scrim: rgba(0, 0, 0, 0.65);
  --scroll-thumb: rgba(255, 255, 255, 0.14);
  --scroll-thumb-hover: rgba(255, 255, 255, 0.26);

  --gradient-brand: linear-gradient(135deg, #8e91f7 0%, #a78bfa 50%, #22d3ee 100%);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0d;
    --surface: #151519;
    --surface-2: #23232a;
    --card: #1e1e25;
    --raised: #25252d;
    --field: #111115;
    --basket-bg: #1c1c22;
    --chrome: #1d1d24;
    --nav-bg: #111115;
    --hover: rgba(255, 255, 255, 0.07);
    --border: #282832;
    --border-strong: #3e3e4a;
    --text: #f0f0f3;
    --muted: #a6a6b0;
    --faint: #82828e;
    --accent: #8e91f7;
    --accent-soft: rgba(142, 145, 247, 0.17);
    --accent-cyan: #22d3ee;
    --accent-cyan-soft: rgba(34, 211, 238, 0.16);
    --green: #34c98d;
    --amber: #f3b23f;
    --red: #f4727f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 80px -20px rgba(0, 0, 0, 0.75);
    --tip-bg: #2a2a31;
    --tip-fg: #f0f0f3;
    --tip-border: #4a4a56;
    --scrim: rgba(0, 0, 0, 0.65);
    --scroll-thumb: rgba(255, 255, 255, 0.14);
    --scroll-thumb-hover: rgba(255, 255, 255, 0.26);

    --gradient-brand: linear-gradient(135deg, #8e91f7 0%, #a78bfa 50%, #22d3ee 100%);
    color-scheme: dark;
  }
}

/* View Transitions API (Chrome / Edge / Safari 18+) for cinema-smooth theme morphing */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 2;
  animation: themeCrossFade 0.4s var(--ease);
}
@keyframes themeCrossFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fallback theme fade class with dedicated component surface transitions */
html.theme-fade,
html.theme-fade body,
html.theme-fade .navbar,
html.theme-fade .nav-links,
html.theme-fade .verlogs-showcase,
html.theme-fade .service-card,
html.theme-fade .modal-content,
html.theme-fade .footer,
html.theme-fade .process-card,
html.theme-fade .cta-banner,
html.theme-fade .btn,
html.theme-fade .icon-btn,
html.theme-fade .floating-chip,
html.theme-fade .ticker-section,
html.theme-fade .tip {
  transition:
    background-color 0.45s var(--ease),
    background 0.45s var(--ease),
    color 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease) !important;
}

/* Default subtle smooth transitions on primary surfaces */
body {
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.navbar, .footer, .modal-content, .btn-secondary, .icon-btn {
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.25s var(--ease);
}

/* ───────────── Base Reset ───────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 14.5px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 var(--font);
  letter-spacing: -0.008em;
  font-feature-settings: "ss01", "ss03";
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

/* Themed scrollbars matching example_site */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 99px;
  border: 2.5px solid transparent;
  background-clip: padding-box;
  min-height: 40px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
}

/* Flaticon Icons */
.fi { display: inline-flex; line-height: 1; font-size: 15px; }
.fi::before { line-height: 1; }

/* ───────────── Ambient Canvas & Orbs ───────────── */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orbs span {
  position: absolute;
  width: 48vmax;
  height: 48vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.42;
  animation: drift 22s var(--ease) infinite alternate;
}

.orbs span:nth-child(1) {
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  top: -18vmax;
  left: -10vmax;
}

.orbs span:nth-child(2) {
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-cyan) 18%, transparent), transparent 65%);
  bottom: -22vmax;
  right: -12vmax;
  animation-delay: -7s;
}

.orbs span:nth-child(3) {
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 14%, transparent), transparent 65%);
  top: 35%;
  left: 45%;
  width: 32vmax;
  height: 32vmax;
  animation-delay: -14s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vmax, 3vmax) scale(1.08); }
  100% { transform: translate(-3vmax, 5vmax) scale(0.96); }
}

.cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

/* ───────────── Layout Container ───────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ───────────── Typography & Helpers ───────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--text);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.028em;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-cyan {
  background: linear-gradient(135deg, var(--accent-cyan), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ───────────── Buttons & Micro-Interactions ───────────── */
.icon-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  background: var(--card);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--spring), box-shadow 0.2s;
}
.icon-btn .fi { font-size: 14px; }
.icon-btn:hover { background: var(--hover); color: var(--text); box-shadow: var(--shadow), inset 0 0 0 1px var(--border-strong); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn.danger:hover { color: var(--red); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 7px; }
.icon-btn.sm .fi { font-size: 12px; }

/* Theme toggle button interactive transition */
.theme-btn {
  position: relative;
  overflow: hidden;
}
.theme-btn .fi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--spring), opacity 0.25s var(--ease);
}
.theme-btn.switching .fi {
  transform: rotate(360deg) scale(0.65);
  opacity: 0.35;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--spring), background 0.2s, box-shadow 0.25s, opacity 0.2s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-secondary:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--border-strong); transform: translateY(-1px); }
.btn-secondary:active { transform: scale(0.97); }

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn-lg {
  height: 46px;
  padding: 0 24px;
  font-size: 14.5px;
  border-radius: 12px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.ghost-btn:hover { background: var(--hover); color: var(--text); }

/* Developer Badge (omkarpathak.com) from example_site */
.dev-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--muted);
  background: var(--card);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border);
  transition: color 0.2s, box-shadow 0.25s, transform 0.25s var(--spring), background 0.25s;
}
.dev-mark { font-size: 13px; line-height: 1; display: grid; }
.dev-badge:hover {
  color: #fff;
  transform: translateY(-1px) scale(1.06);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #ec4899));
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.dev-badge:active { transform: scale(0.94); }

/* ───────────── Tooltip System ───────────── */
.tip {
  position: fixed;
  z-index: 95;
  left: 0;
  top: 0;
  width: max-content;
  max-width: min(264px, calc(100vw - 16px));
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--tip-border);
  background: var(--tip-bg);
  color: var(--tip-fg);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
  overflow-wrap: break-word;
  box-shadow: var(--shadow);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  transform-origin: 50% 100%;
  transition: opacity 0.14s var(--ease), transform 0.22s var(--ease);
}
.tip[data-side="bottom"] { transform: translateY(-4px) scale(0.96); transform-origin: 50% 0; }
.tip.show { opacity: 1; transform: none; }

/* ───────────── Status Indicator & Live Heartbeat ───────────── */
.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: heartbeat 2.4s ease-in-out infinite;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: heartbeat-ring 2.4s var(--ease) infinite;
  pointer-events: none;
}

@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  8% { transform: scale(1.25); }
  16% { transform: scale(0.96); }
  24% { transform: scale(1.15); }
}

@keyframes heartbeat-ring {
  0% { transform: scale(1); opacity: 0.6; }
  60%, 100% { transform: scale(2.8); opacity: 0; }
}

/* ───────────── Navigation Bar ───────────── */
.navbar-wrapper {
  position: fixed;
  top: 14px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 12px;
}

.navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px 8px 16px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all var(--ease) 0.3s;
  max-width: 1080px;
  width: 100%;
}

.navbar.scrolled {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 40%, transparent);
  color: #ffffff;
}

.brand-domain {
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
  padding: 2px 6px;
  background: var(--accent-soft);
  border-radius: 6px;
  margin-left: -2px;
}

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

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--hover);
}
.nav-link.active {
  font-weight: 600;
}

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

.mobile-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  place-items: center;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--spring);
}
.mobile-toggle:hover { background: var(--hover); }
.mobile-toggle:active { transform: scale(0.92); }
.mobile-toggle .fi { font-size: 14px; }

/* Backdrop scrim for mobile drawer */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.nav-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

/* ───────────── Hero Section ───────────── */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
}

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

.hero-content > * {
  animation: rise 0.7s var(--ease) both;
}
.hero-content > :nth-child(1) { animation-delay: 0.05s; }
.hero-content > :nth-child(2) { animation-delay: 0.12s; }
.hero-content > :nth-child(3) { animation-delay: 0.18s; }
.hero-content > :nth-child(4) { animation-delay: 0.24s; }
.hero-content > :nth-child(5) { animation-delay: 0.3s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  letter-spacing: -0.038em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 540px;
}

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

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Hero Visual / Lottie Card Container */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rise 0.8s var(--ease) 0.2s both;
}

.lottie-card-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lottie-player-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-chip {
  position: absolute;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  animation: floatChip 6s ease-in-out infinite;
  z-index: 2;
}

.chip-1 {
  top: 6%;
  left: -15px;
  animation-delay: 0s;
}

.chip-2 {
  bottom: 6%;
  right: -15px;
  animation-delay: -3s;
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.chip-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.chip-sub {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}

/* ───────────── Partners & Tech Ticker ───────────── */
.ticker-section {
  padding: 26px 0 36px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--chrome) 50%, transparent);
  overflow: hidden;
  position: relative;
}

.ticker-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 18px;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 36px;
  animation: tickerSlide 26s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 550;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--spring);
}

.ticker-item:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.ticker-item svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ───────────── Section Headers ───────────── */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 46px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-bottom: 12px;
  letter-spacing: -0.032em;
}

.section-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ───────────── Services Showcase: Flagship Product ───────────── */
.services-section {
  padding: 80px 0;
  position: relative;
}

.services-flagship-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.services-flagship-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.services-flagship-pill b {
  color: var(--text);
  font-weight: 600;
}

/* ───────────── VerLogs Flagship Showcase ───────────── */
.verlogs-showcase {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 36px;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.35s var(--ease);
}

.verlogs-showcase:hover {
  border-color: var(--border-strong);
}

.verlogs-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
}

/* VerLogs Preview Window / Device Frame */
.verlogs-preview-frame {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.verlogs-window-chrome {
  height: 38px;
  padding: 0 14px;
  background: var(--chrome);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chrome-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.chrome-address-bar {
  flex: 1;
  height: 24px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chrome-address-bar .fi {
  color: var(--green);
  font-size: 11px;
}

.verlogs-preview-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--field);
  overflow: hidden;
  cursor: pointer;
}

.verlogs-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.verlogs-preview-img-wrap:hover .verlogs-preview-img {
  transform: scale(1.025);
}

.verlogs-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 13, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 18px;
  pointer-events: none;
}

.preview-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(10, 10, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--mono);
}

.preview-badge-pill .status-dot {
  width: 6px;
  height: 6px;
}

/* VerLogs Header & Core Info */
.verlogs-info {
  display: flex;
  flex-direction: column;
}

.verlogs-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.verlogs-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.verlogs-logo-mark svg {
  width: 28px;
  height: 28px;
}

.verlogs-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.verlogs-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.15;
}

.verlogs-version-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--field);
  border: 1px solid var(--border);
  color: var(--accent);
}

.verlogs-tagline {
  font-size: 1.05rem;
  font-weight: 550;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.45;
}

.verlogs-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.verlogs-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Features Matrix (8 Cards) */
.verlogs-features-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 16px;
}

.verlogs-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.verlogs-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s var(--spring), border-color 0.2s, box-shadow 0.2s;
}

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

.verlogs-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.verlogs-feature-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.verlogs-feature-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Specifications Table / Grid */
.verlogs-specs-block {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.verlogs-specs-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 16px;
}

.verlogs-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.verlogs-spec-item {
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.verlogs-spec-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--faint);
}

.verlogs-spec-value {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 550;
  color: var(--text);
}

/* Tags Footer */
.verlogs-tags-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.verlogs-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.verlogs-tag-chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Responsive adjustments for VerLogs showcase */
@media (max-width: 980px) {
  .verlogs-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .verlogs-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .verlogs-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .verlogs-showcase {
    padding: 22px 16px;
    border-radius: 18px;
    gap: 24px;
  }
  .verlogs-features-grid {
    grid-template-columns: 1fr;
  }
  .verlogs-specs-grid {
    grid-template-columns: 1fr;
  }
  .verlogs-tags-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ───────────── Process Section ───────────── */
.process-section {
  padding: 80px 0;
  position: relative;
}

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

.process-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--spring), border-color 0.2s, box-shadow 0.25s;
}

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

.process-step-number {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--faint);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.process-card:hover .process-step-number {
  color: var(--accent);
}

.process-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.process-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ───────────── Call To Action ───────────── */
.cta-section {
  padding: 70px 0 90px;
}

.cta-banner {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 50px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ───────────── Modals & Dialogs (example_site style) ───────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

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

.modal-content {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.35s var(--spring);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s var(--spring);
}
.modal-close:hover {
  background: var(--hover);
  color: var(--text);
  border-color: var(--border-strong);
}
.modal-close:active {
  transform: scale(0.92);
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--field);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
}

.form-control:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

textarea.form-control {
  height: auto;
  min-height: 90px;
  padding: 10px 12px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  cursor: pointer;
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* ───────────── Footer ───────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--chrome);
  padding: 56px 0 28px;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 12px 0 16px;
  max-width: 300px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.footer-heading {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 14px;
}

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

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

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

.newsletter-box {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.newsletter-input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 12px;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--text);
}

/* ==========================================================================
   PERFECT MOBILE READINESS (Breakpoints & Touch Optimization)
   ========================================================================== */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-description {
    margin: 0 auto 28px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-metrics {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 12px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 18px;
  }

  .navbar-wrapper {
    top: 10px;
    padding: 0 10px;
  }

  .navbar {
    padding: 6px 10px 6px 14px;
    border-radius: 14px;
  }

  .brand-logo {
    font-size: 1.05rem;
    gap: 8px;
  }
  .brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .brand-domain {
    font-size: 10px;
    padding: 1px 5px;
  }

  /* Nav Links in sleek mobile dropdown card */
  .nav-links {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--spring);
  }

  .nav-links.drawer-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
  }

  .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: grid;
  }

  /* Hero Section */
  .hero-section {
    padding: 100px 0 50px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.7rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 28px;
  }

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

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

  .metric-value {
    font-size: 1.4rem;
  }
  .metric-label {
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }

  /* Hero visual responsive card & chips */
  .lottie-card-container {
    max-width: 320px;
    aspect-ratio: 1;
    padding: 16px;
    border-radius: 18px;
  }

  .floating-chip {
    padding: 6px 10px;
    gap: 8px;
  }
  .chip-1 {
    top: 4%;
    left: 4px;
  }
  .chip-2 {
    bottom: 4%;
    right: 4px;
  }
  .chip-icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .chip-title {
    font-size: 11px;
  }
  .chip-sub {
    font-size: 9.5px;
  }

  /* Ticker */
  .ticker-section {
    padding: 20px 0 28px;
  }
  .ticker-track {
    gap: 20px;
  }
  .ticker-item {
    font-size: 11.5px;
    padding: 5px 10px;
  }

  /* Services */
  .services-section {
    padding: 60px 0;
  }

  .services-filter-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 18px 12px;
    margin: 0 -18px 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-filter-nav::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 12px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 20px 18px;
    border-radius: 14px;
  }

  /* Process */
  .process-section {
    padding: 60px 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .process-card {
    padding: 20px 18px;
    border-radius: 13px;
  }

  .process-step-number {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  /* CTA Banner */
  .cta-section {
    padding: 50px 0 70px;
  }

  .cta-banner {
    padding: 34px 18px;
    border-radius: 16px;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-desc {
    font-size: 13.5px;
    margin-bottom: 22px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .cta-buttons .btn {
    width: 100%;
    height: 44px;
  }

  /* Footer */
  .footer {
    padding: 44px 0 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Mobile Bottom Sheet Modals (phones <= 540px, matching example_site) */
@media (max-width: 540px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    padding: 24px 18px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    animation: sheet-in 0.38s var(--ease);
  }

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

  /* Top sheet handle pill */
  .modal-content::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 99px;
    background: var(--border-strong);
  }

  @keyframes sheet-in {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .modal-close {
    top: 14px;
    right: 14px;
  }
}

/* Touch screen adjustments & prevent Safari auto-zoom */
@media (pointer: coarse) {
  /* Prevent iOS zoom-in when tapping fields */
  :where(input, textarea, select) {
    font-size: 16px !important;
  }

  .btn, .icon-btn, .nav-link, .filter-btn {
    min-height: 40px;
  }

  /* On mobile touch screens, disable hover-based tooltips */
  .tip {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   Apps hub cards
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--spring), border-color 0.2s, box-shadow 0.25s;
}
a.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.app-card.is-soon { border-style: dashed; background: transparent; box-shadow: none; }

.app-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.app-card-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--hover); color: var(--muted); font-size: 18px;
}
.app-card-icon.is-live { background: var(--accent-soft); color: var(--accent); }
.app-card-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--faint);
}
.app-card-status.is-live { color: var(--green); }
.app-card-title { font-size: 1.2rem; }
.app-card-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.55; flex: 1; }
.app-card-url { font-family: var(--mono); font-size: 12px; color: var(--faint); }

@media (max-width: 980px) {
  .apps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .apps-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Legal pages (privacy.html, terms.html)
   ========================================================================== */
.legal { padding: 130px 0 80px; }
.legal .container { max-width: 780px; }
.legal-head { margin-bottom: 36px; }
.legal-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 10px 0 10px; }
.legal-meta { color: var(--faint); font-size: 13px; font-family: var(--mono); }
.legal-toc {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 40px;
}
.legal-toc b { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.legal-toc li { margin: 4px 0; font-size: 0.92rem; break-inside: avoid; }
.legal-body h2 { font-size: 1.35rem; margin: 40px 0 12px; scroll-margin-top: 100px; }
.legal-body h3 { font-size: 1.05rem; margin: 24px 0 8px; scroll-margin-top: 100px; }
.legal-body p, .legal-body li { color: var(--muted); line-height: 1.7; font-size: 0.98rem; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin: 6px 0; }
.legal-body strong { color: var(--text); }
.legal-body a, .legal-toc a { color: var(--accent); }
.legal-body code { font-family: var(--mono); font-size: 0.88em; background: var(--field); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.legal-callout {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 14px; padding: 16px 20px; margin: 0 0 24px;
}
.legal-callout p { color: var(--text); margin: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 0.92rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--muted); }
.legal-table th { color: var(--text); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.legal-table-wrap { overflow-x: auto; }

@media (max-width: 640px) {
  .legal { padding: 110px 0 60px; }
  .legal-toc ol { columns: 1; }
}

/* ==========================================================================
   VerLogs brand + theme-aware screenshots, QLOOQ mark
   ========================================================================== */
:root { --verlogs: oklch(0.57 0.13 45); }
:root[data-theme="dark"] { --verlogs: oklch(0.73 0.11 50); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --verlogs: oklch(0.73 0.11 50); }
}

.brand-icon { background: var(--gradient-brand); }

.verlogs-logo-mark {
  color: var(--verlogs);
  background: none;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--verlogs) 35%, transparent));
}
.verlogs-logo-mark svg { width: 44px; height: 44px; }

.app-card-icon.is-verlogs { background: none; overflow: hidden; }
.app-card-icon.is-verlogs img { width: 100%; height: 100%; display: block; }

/* App screenshots are all 2160×1140 (1440×760 at 1.5×); show them whole and match the page theme. */
.verlogs-preview-img-wrap.is-shot { aspect-ratio: 2160 / 1140; cursor: default; }
.verlogs-preview-img-wrap.is-shot:hover .verlogs-preview-img { transform: none; }
.verlogs-preview-img-wrap.is-shot .verlogs-preview-img { object-fit: contain; }
.shot-dark { display: none !important; }
:root[data-theme="dark"] .shot-light { display: none !important; }
:root[data-theme="dark"] .shot-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none !important; }
  :root:not([data-theme="light"]) .shot-dark { display: block !important; }
}

/* ==========================================================================
   Per-app brand colour. Anything inside .is-verlogs / .is-fundbasket picks
   up its app's colour through --app.
   ========================================================================== */
:root { --fundbasket: #5b5bd6; }
:root[data-theme="dark"] { --fundbasket: #8484f4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fundbasket: #8484f4; }
}
.is-verlogs { --app: var(--verlogs); }
.is-fundbasket { --app: var(--fundbasket); }

.hero-description a { color: var(--text); font-weight: 550; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.hero-description a:hover { text-decoration-color: var(--accent); }
.hero-badge b { color: var(--text); font-weight: 600; }
.section-desc a { color: var(--accent); }

/* ───────────── Hero launcher ───────────── */
.launcher {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.launcher-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 14px;
  background: var(--chrome);
  border-bottom: 1px solid var(--border);
}
.launcher-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}
.launcher-app {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--spring), border-color 0.2s, box-shadow 0.25s;
}
a.launcher-app:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--app) 55%, var(--border));
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--app) 55%, transparent);
}
a.launcher-app:active { transform: scale(0.97); }
.launcher-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  color: var(--app);
  filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--app) 40%, transparent));
  transition: transform 0.3s var(--spring);
}
a.launcher-app:hover .launcher-icon { transform: rotate(-6deg) scale(1.06); }
.launcher-app b { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.launcher-app small { font-size: 12px; color: var(--muted); }
.launcher-app.is-soon { background: transparent; border-style: dashed; opacity: 0.75; }
.launcher-app.is-soon .launcher-icon {
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1.5px dashed var(--border-strong);
  color: var(--faint);
  filter: none;
}
.launcher-app.is-soon .launcher-icon .fi { font-size: 18px; }
.launcher-app.is-soon b { color: var(--muted); }
.launcher-app.is-soon small { font-family: var(--mono); font-size: 11px; color: var(--faint); }

.launcher-drive {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 18px 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--field);
  border: 1px solid var(--border);
}
.launcher-drive-logo { width: 26px; height: 24px; flex: none; }
.launcher-drive div { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.launcher-drive b { font-size: 13px; font-weight: 600; }
.launcher-drive span { font-size: 11.5px; color: var(--muted); }
.launcher-drive-check {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid !important; place-items: center;
  background: color-mix(in srgb, var(--green) 16%, transparent);
  color: var(--green);
  font-size: 11px !important;
}
.chip-icon.is-green { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
/* Chips sit over empty corners: top-right of the FundBasket tile, and below the Drive strip */
.hero-visual .chip-1 { top: -22px; right: -34px; left: auto; }
.hero-visual .chip-2 { bottom: -26px; left: -36px; right: auto; }

/* ───────────── App tiles (#apps) ───────────── */
.app-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.app-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--spring), border-color 0.2s, box-shadow 0.3s;
}
.app-tile:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--app) 50%, var(--border));
  box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--app) 50%, transparent), var(--shadow);
}
/* The whole screenshot, centred with even margins (all app shots share one 2160×1140 shape). */
.app-tile-shot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5% 6.5%;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--app) 22%, transparent), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.app-tile-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2160 / 1140;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease);
}
.app-tile:hover .app-tile-shot img { transform: translateY(-1.5%) scale(1.025); }
.app-tile-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.app-tile-head { display: flex; align-items: center; gap: 14px; }
.app-tile-icon {
  width: 46px; height: 46px; flex: none;
  color: var(--app);
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--app) 38%, transparent));
}
.app-tile-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-tile-name h3 { font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.2; }
.app-tile-url { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.app-tile-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.app-tile-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.app-tile-tags li {
  font-size: 11.5px; font-weight: 550;
  padding: 3px 9px; border-radius: 99px;
  color: var(--app);
  background: color-mix(in srgb, var(--app) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--app) 22%, transparent);
}
.app-tile-cta {
  margin-top: auto;
  padding-top: 4px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.app-tile-cta .fi { transition: transform 0.25s var(--spring); }
.app-tile:hover .app-tile-cta { color: var(--app); }
.app-tile:hover .app-tile-cta .fi { transform: translateX(4px); }

.app-soon {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px dashed var(--border-strong);
}
.app-soon-icon {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--hover); color: var(--muted);
}
.app-soon p { flex: 1; color: var(--muted); font-size: 13.5px; }
.app-soon b { color: var(--text); font-weight: 600; }

/* ───────────── Showcases, tinted per app ───────────── */
.verlogs-showcase::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 340px;
  background: radial-gradient(70% 100% at 50% 0%, color-mix(in srgb, var(--app) 9%, transparent), transparent 70%);
  pointer-events: none;
}
.verlogs-showcase > * { position: relative; }
.verlogs-showcase:hover { border-color: color-mix(in srgb, var(--app) 35%, var(--border)); }
.verlogs-logo-mark { color: var(--app); filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--app) 35%, transparent)); }
.verlogs-version-tag { color: var(--app); }
.verlogs-feature-icon { background: color-mix(in srgb, var(--app) 12%, transparent); color: var(--app); }
.verlogs-feature-card:hover { border-color: color-mix(in srgb, var(--app) 35%, var(--border)); }
.verlogs-desc code {
  font-family: var(--mono); font-size: 0.9em;
  padding: 1px 6px; border-radius: 6px;
  background: var(--field); border: 1px solid var(--border); color: var(--text);
}
.verlogs-hero-grid.is-reverse { grid-template-columns: 1fr 1.15fr; }
.verlogs-hero-grid.is-reverse .verlogs-preview-frame { order: 2; }
.verlogs-preview-img-wrap.is-fundbasket-shot { aspect-ratio: 2160 / 1140; }
.showcase-note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--faint); line-height: 1.5;
}
.showcase-note .fi { font-size: 12px; margin-top: 3px; }

/* ───────────── Call to action ───────────── */
.cta-banner::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 120%;
  background:
    radial-gradient(40% 60% at 30% 50%, color-mix(in srgb, var(--verlogs) 14%, transparent), transparent 70%),
    radial-gradient(40% 60% at 70% 50%, color-mix(in srgb, var(--fundbasket) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-app svg { width: 22px; height: 22px; color: var(--app); }
.cta-app:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app) 55%, var(--border)); }

/* ───────────── Animated app marks ─────────────
   Ported from the apps themselves (VerLogs styles.css "vl-*", FundBasket
   styles.css "fb-*") so each mark moves here exactly as it does in its app.
   - Hero launcher and the featured sections: loop gently.
   - Tiles and buttons: play the intro once when scrolled into view (.is-revealed),
     then loop while hovered or focused.
   Everything is static with reduced motion. */
.vl-mark .vl-ln { stroke-dasharray: 1; stroke-dashoffset: 0; }
.vl-mark .vl-br, .vl-mark .vl-dot { transform-box: fill-box; transform-origin: center; }
.fb-mark .fb-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.fb-mark .fb-bowl { transform-box: fill-box; transform-origin: 50% 100%; }

@media (prefers-reduced-motion: no-preference) {
  /* Loops: the hero launcher and the featured-app headers */
  .launcher-icon.vl-mark .vl-dot, .verlogs-logo-mark .vl-mark .vl-dot,
  .app-tile:is(:hover, :focus-visible) .vl-mark .vl-dot, .cta-app:is(:hover, :focus-visible) .vl-mark .vl-dot {
    animation: vl-pop 3s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 0.16s) infinite both;
  }
  .launcher-icon.vl-mark .vl-ln, .verlogs-logo-mark .vl-mark .vl-ln,
  .app-tile:is(:hover, :focus-visible) .vl-mark .vl-ln, .cta-app:is(:hover, :focus-visible) .vl-mark .vl-ln {
    animation: vl-write 3s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.16s + 0.1s) infinite both;
  }
  .launcher-icon.vl-mark .vl-l, .verlogs-logo-mark .vl-mark .vl-l,
  .app-tile:is(:hover, :focus-visible) .vl-mark .vl-l, .cta-app:is(:hover, :focus-visible) .vl-mark .vl-l {
    animation: vl-open-l 3s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  }
  .launcher-icon.vl-mark .vl-r, .verlogs-logo-mark .vl-mark .vl-r,
  .app-tile:is(:hover, :focus-visible) .vl-mark .vl-r, .cta-app:is(:hover, :focus-visible) .vl-mark .vl-r {
    animation: vl-open-r 3s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  }
  /* Offset the two launcher loops so they don't pulse in step */
  .launcher-icon.fb-mark .fb-bar,
  .app-tile:is(:hover, :focus-visible) .fb-mark .fb-bar, .cta-app:is(:hover, :focus-visible) .fb-mark .fb-bar {
    animation: fb-grow 2.8s cubic-bezier(0.22, 1, 0.36, 1) calc(0.6s + var(--i) * 0.14s) infinite both;
  }
  .launcher-icon.fb-mark .fb-bowl { animation: fb-settle 2.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s infinite both; }
  .verlogs-logo-mark .fb-mark .fb-bar {
    animation:
      fb-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i) * 0.09s) both,
      fb-breathe 4.8s cubic-bezier(0.22, 1, 0.36, 1) calc(1.6s + var(--i) * 0.14s) infinite;
  }

  /* One-shot intros as tiles and buttons come into view */
  .is-revealed:not(:hover) .vl-mark .vl-ln { animation: vl-write-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(0.2s + var(--i) * 0.16s) both; }
  .is-revealed:not(:hover) .vl-mark .vl-dot { animation: vl-pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.1s + var(--i) * 0.16s) both; }
  .is-revealed:not(:hover) .fb-mark .fb-bar { animation: fb-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(0.2s + var(--i) * 0.12s) both; }
  /* The showcases loop on their own; keep their intro from overriding that */
  .verlogs-showcase.is-revealed .verlogs-logo-mark .vl-mark .vl-ln { animation: vl-write 3s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.16s + 0.1s) infinite both; }
  .verlogs-showcase.is-revealed .verlogs-logo-mark .vl-mark .vl-dot { animation: vl-pop 3s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 0.16s) infinite both; }
  .verlogs-showcase.is-revealed .verlogs-logo-mark .fb-mark .fb-bar {
    animation:
      fb-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i) * 0.09s) both,
      fb-breathe 4.8s cubic-bezier(0.22, 1, 0.36, 1) calc(1.6s + var(--i) * 0.14s) infinite;
  }
}

@keyframes vl-write {
  0% { stroke-dashoffset: 1; opacity: 1; }
  14% { stroke-dashoffset: 0; }
  78% { stroke-dashoffset: 0; opacity: 1; }
  90%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes vl-pop {
  0% { transform: scale(0); opacity: 1; }
  8% { transform: none; }
  78% { transform: none; opacity: 1; }
  90%, 100% { transform: none; opacity: 0; }
}
@keyframes vl-open-l { 0%, 16%, 100% { transform: none; } 6% { transform: translateX(-1.3px); } }
@keyframes vl-open-r { 0%, 16%, 100% { transform: none; } 6% { transform: translateX(1.3px); } }
@keyframes vl-write-in { from { stroke-dashoffset: 1; } }
@keyframes vl-pop-in { from { transform: scale(0); } }
@keyframes fb-rise { from { transform: scaleY(0.2); opacity: 0; } }
@keyframes fb-grow {
  0% { transform: scaleY(0.2); opacity: 0; }
  22%, 72% { transform: none; opacity: 1; }
  92%, 100% { transform: scaleY(0.2); opacity: 0; }
}
@keyframes fb-breathe {
  0%, 52%, 100% { transform: none; opacity: 1; }
  64% { transform: scaleY(0.35); opacity: 0.55; }
  80% { transform: scaleY(1.06); opacity: 1; }
}
/* The basket gives a small bounce as the bars land in it. */
@keyframes fb-settle {
  0%, 18%, 30%, 100% { transform: none; }
  24% { transform: scaleY(0.92) scaleX(1.03); }
}

/* ───────────── FAQ ───────────── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.25s;
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.faq-item p a { color: var(--accent); }
.faq-item code {
  font-family: var(--mono); font-size: 0.88em;
  padding: 1px 6px; border-radius: 6px;
  background: var(--field); border: 1px solid var(--border); color: var(--text);
}
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] p { animation: rise 0.35s var(--ease) both; }
}

/* ───────────── Drawer app shortcuts (phones only) ───────────── */
.nav-apps { display: none; }

@media (max-width: 1024px) {
  .launcher { margin: 0 auto; }
  .hero-visual .chip-1 { right: 0; }
  .hero-visual .chip-2 { left: 0; }
}
@media (max-width: 980px) {
  .verlogs-hero-grid.is-reverse { grid-template-columns: 1fr; }
  .verlogs-hero-grid.is-reverse .verlogs-preview-frame { order: 0; }
  .app-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .launcher-grid { padding: 14px; gap: 10px; }
  .launcher-app { padding: 12px; }
  .launcher-icon { width: 42px; height: 42px; margin-bottom: 8px; }
  .launcher-drive { margin: 0 14px 14px; }
  .hero-visual .floating-chip { display: none; }
  .app-tile-body { padding: 18px; }
  .app-soon { flex-wrap: wrap; }
  .verlogs-specs-grid { gap: 10px; }
}

/* ==========================================================================
   Phones and small tablets: tighter, shorter, thumb-friendly.
   (Comes last so it wins over the desktop-first rules above.)
   ========================================================================== */
@media (max-width: 768px) {
  .navbar-wrapper { top: max(10px, env(safe-area-inset-top)); }
  .cursor-glow { display: none; }
  /* Big blurred orbs drifting are costly on phone GPUs: keep them, but still. */
  .orbs span { animation: none; filter: blur(60px); opacity: 0.35; }

  /* Drawer: left-aligned, app shortcuts first */
  .nav-links {
    align-items: stretch;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    padding: 8px;
  }
  .nav-link { justify-content: flex-start; padding: 11px 14px; }
  .nav-apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 2px 2px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-app {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    transition: transform 0.2s var(--spring), border-color 0.2s;
  }
  .nav-app:active { transform: scale(0.97); border-color: color-mix(in srgb, var(--app) 50%, var(--border)); }
  .nav-app svg { width: 34px; height: 34px; color: var(--app); filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--app) 35%, transparent)); }
  .nav-app span { display: flex; flex-direction: column; line-height: 1.3; }
  .nav-app b { font-size: 14px; font-weight: 650; }
  .nav-app small { font-size: 11.5px; color: var(--muted); }
  .nav-app > .fi { position: absolute; top: 12px; right: 12px; color: var(--faint); font-size: 13px; }

  /* Section rhythm */
  .services-section, .process-section { padding: 52px 0; }
  .section-header { margin-bottom: 30px; }
  .section-title { font-size: clamp(1.65rem, 7vw, 2rem); }
  .section-desc { font-size: 13.5px; }
  .section-tag { font-size: 10px; letter-spacing: 0.06em; }

  /* Hero */
  .hero-section { padding: 96px 0 44px; }
  .hero-title { text-wrap: balance; font-size: clamp(2rem, 9.2vw, 2.6rem); }
  .hero-description { text-wrap: pretty; }
  .hero-badge { font-size: 12px; margin-bottom: 16px; }
  .hero-metrics { gap: 8px; }

  /* Process cards: 2 × 2, compact */
  .process-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .process-card { padding: 16px 14px; }
  .process-step-number { font-size: 1.2rem; margin-bottom: 8px; }
  .process-title { font-size: 0.98rem; margin-bottom: 6px; }
  .process-desc { font-size: 12.5px; line-height: 1.5; }

  /* Footer: brand on top, link columns side by side */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .footer-links a { display: inline-block; padding: 3px 0; font-size: 13.5px; }
  .footer-bottom { padding-bottom: env(safe-area-inset-bottom); }
}

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

  /* Launcher: just the two apps and the Drive strip */
  .launcher-app.is-soon { display: none; }

  /* App tiles */
  .app-tile { border-radius: 18px; }
  .app-tile:active { transform: scale(0.985); }
  .app-tile-shot { padding: 5% 5.5%; }
  .app-tile-shot img { border-radius: 8px; }
  .app-tile-name h3 { font-size: 1.2rem; }
  .app-tile-desc { font-size: 13.5px; }
  .app-soon { gap: 12px; padding: 14px; }
  .app-soon p { font-size: 13px; }
  .app-soon .app-tile-url { display: none; }

  /* Featured app sections */
  .verlogs-showcase { padding: 16px; gap: 22px; border-radius: 18px; }
  .verlogs-hero-grid { gap: 20px; }
  .verlogs-window-chrome { height: 32px; padding: 0 10px; }
  .chrome-dot { width: 8px; height: 8px; }
  .chrome-address-bar { height: 20px; font-size: 10px; }
  .verlogs-logo-mark svg { width: 38px; height: 38px; }
  .verlogs-brand-badge { margin-bottom: 12px; }
  .verlogs-title { font-size: 1.6rem; }
  .verlogs-tagline { font-size: 0.98rem; }
  .verlogs-desc { font-size: 13px; margin-bottom: 18px; }
  .verlogs-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .verlogs-actions .btn { width: 100%; height: 44px; }

  /* Features: two compact columns instead of eight tall cards */
  .verlogs-features-heading { margin-bottom: 10px; font-size: 11px; }
  .verlogs-features-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .verlogs-feature-card { padding: 12px; gap: 6px; border-radius: 11px; }
  .verlogs-feature-icon { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }
  .verlogs-feature-title { font-size: 12.5px; line-height: 1.3; }
  .verlogs-feature-desc { font-size: 11.5px; line-height: 1.45; }

  /* Specs: one card with rows */
  .verlogs-specs-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
  .verlogs-spec-item { border: 0; border-radius: 0; padding: 10px 12px; }
  .verlogs-spec-item + .verlogs-spec-item { border-top: 1px solid var(--border); }
  .verlogs-spec-value { font-size: 11.5px; }

  /* FAQ */
  .faq-item summary { padding: 14px 16px; font-size: 14px; }
  .faq-item p { padding: 0 16px 16px; font-size: 13.5px; }

  /* CTA */
  .cta-banner { padding: 30px 16px; }
  .cta-title { font-size: 1.6rem; text-wrap: balance; }

  /* Legal pages: the permission tables become stacked cards */
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { border: 1px solid var(--border); border-radius: 12px; padding: 4px 0; background: var(--card); }
  .legal-table td { border: 0; padding: 8px 14px; }
  .legal-table td code { word-break: break-all; }
  .legal-body code { overflow-wrap: anywhere; }
  .legal-head h1 { font-size: 2rem; }
}

@media (max-width: 360px) {
  .verlogs-features-grid, .process-grid { grid-template-columns: 1fr; }
  .nav-apps { grid-template-columns: 1fr; }
  .hero-metrics .metric-label { font-size: 8.5px; }
}

/* Touch screens: no hover lift that sticks after a tap */
@media (hover: none) {
  .app-tile:hover, a.launcher-app:hover, .verlogs-feature-card:hover, .process-card:hover { transform: none; }
  .app-tile:hover .app-tile-shot img { transform: none; }
}

/* ==========================================================================
   MetaTrader 5 tools (#mt5). Their colour: a calm "trading green".
   ========================================================================== */
:root { --mt5: #0f9b78; }
:root[data-theme="dark"] { --mt5: #3cc9a3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --mt5: #3cc9a3; }
}
.is-mt5 { --app: var(--mt5); }

/* The candlestick mark: candles tick up and down, each a beat apart */
.mt-mark .mt-candle { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .launcher-icon.mt-mark .mt-candle,
  .mt5-strip.is-revealed .mt-mark .mt-candle,
  .nav-app .mt-mark .mt-candle,
  .cta-app:is(:hover, :focus-visible) .mt-mark .mt-candle {
    animation: mt-tick 3.2s cubic-bezier(0.45, 0, 0.3, 1) calc(0.4s + var(--i) * 0.22s) infinite both;
  }
  .cta-app.is-revealed:not(:hover) .mt-mark .mt-candle { animation: mt-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(0.2s + var(--i) * 0.12s) both; }
}
@keyframes mt-tick {
  0%, 100% { transform: none; }
  18% { transform: translateY(-1.6px); }
  40% { transform: translateY(1.3px) scaleY(0.92); }
  60% { transform: translateY(-0.7px); }
  76% { transform: none; }
}
@keyframes mt-rise { from { transform: translateY(3px) scaleY(0.4); opacity: 0; } }

/* Section */
.mt5-section::before {
  content: "";
  position: absolute;
  inset: 40px 0 auto;
  height: 420px;
  background: radial-gradient(50% 70% at 50% 0%, color-mix(in srgb, var(--mt5) 8%, transparent), transparent 70%);
  pointer-events: none;
}
.mt5-section .section-tag {
  color: var(--mt5);
  background: color-mix(in srgb, var(--mt5) 11%, transparent);
  border-color: color-mix(in srgb, var(--mt5) 28%, transparent);
}

.mt5-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mt5-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--spring), border-color 0.2s, box-shadow 0.3s;
}
.mt5-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--mt5) 45%, var(--border));
  box-shadow: 0 22px 46px -24px color-mix(in srgb, var(--mt5) 45%, transparent), var(--shadow);
}
.mt5-shot { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mt5-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.mt5-card:hover .mt5-shot img { transform: scale(1.035); }
.mt5-type {
  position: absolute; bottom: 10px; right: 10px;
  font: 600 10.5px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 99px;
  color: #fff; background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.mt5-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; flex: 1; }
.mt5-head { display: flex; align-items: center; gap: 12px; }
.mt5-logo { width: 44px; height: 44px; border-radius: 11px; flex: none; box-shadow: var(--shadow-sm); }
.mt5-head h3 { font-size: 1.12rem; letter-spacing: -0.025em; line-height: 1.25; }
.mt5-sub { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.mt5-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.mt5-points { list-style: none; display: grid; gap: 6px; }
.mt5-points li { position: relative; padding-left: 22px; font-size: 13px; color: var(--text); line-height: 1.45; }
.mt5-points li::before {
  content: "";
  position: absolute; left: 2px; top: 4px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--mt5);
  border-bottom: 2px solid var(--mt5);
  transform: rotate(-45deg);
}
.mt5-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mt5-rating { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mt5-rating .fi { color: var(--amber); font-size: 12px; }
.mt5-rating small { color: var(--faint); font-weight: 500; }
.mt5-free {
  font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 7px; border-radius: 99px;
  color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent);
}
.mt5-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text); }
.mt5-cta .fi { font-size: 12px; transition: transform 0.25s var(--spring); }
.mt5-cta:hover, .mt5-card:hover .mt5-cta { color: var(--mt5); }
.mt5-cta:hover .fi { transform: translate(2px, -2px); }

.mt5-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--mt5) 25%, var(--border));
  box-shadow: var(--shadow-sm);
}
.mt5-strip-icon svg { width: 40px; height: 40px; display: block; color: var(--mt5); filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--mt5) 35%, transparent)); }
.mt5-strip p { flex: 1; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.mt5-strip b { color: var(--text); font-weight: 600; }
.mt5-strip .btn { flex: none; }
.mt5-section .showcase-note { justify-content: center; text-align: center; }

/* Cross-link from the web apps section */
.app-soon.mt5-link {
  border-style: solid;
  border-color: color-mix(in srgb, var(--mt5) 22%, var(--border));
  background: color-mix(in srgb, var(--mt5) 4%, transparent);
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--spring);
}
.app-soon.mt5-link:hover { border-color: color-mix(in srgb, var(--mt5) 50%, var(--border)); background: color-mix(in srgb, var(--mt5) 8%, transparent); transform: translateY(-2px); }
.app-soon.mt5-link .app-tile-cta { margin: 0; padding: 0; flex: none; color: var(--mt5); }
.mt5-stack { display: flex; flex: none; padding-left: 10px; }
.mt5-stack img { width: 34px; height: 34px; border-radius: 9px; margin-left: -10px; border: 2px solid var(--card); box-shadow: var(--shadow-sm); }

/* Launcher and drawer */
.launcher-app.is-mt5 .launcher-icon { color: var(--mt5); }
.nav-app.is-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.nav-app.is-wide svg { width: 30px; height: 30px; }

/* Footer: five columns on wide screens */
@media (min-width: 1025px) {
  .footer-top { grid-template-columns: 1.3fr 0.9fr 1.2fr 0.9fr 1.1fr; gap: 28px; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-top { grid-template-columns: repeat(4, 1fr); }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .mt5-grid { grid-template-columns: repeat(2, 1fr); }
  .mt5-grid .mt5-card:last-child { grid-column: 1 / -1; flex-direction: row; }
  .mt5-grid .mt5-card:last-child .mt5-shot { flex: 0 0 46%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .mt5-strip { flex-wrap: wrap; }
  .mt5-strip p { flex: 1 1 220px; }
}
@media (max-width: 640px) {
  /* Cards become a swipeable row */
  .mt5-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 4px 16px 14px;
    scrollbar-width: none;
  }
  .mt5-grid::-webkit-scrollbar { display: none; }
  .mt5-grid .mt5-card, .mt5-grid .mt5-card:last-child {
    flex: 0 0 84%;
    flex-direction: column;
    scroll-snap-align: center;
  }
  .mt5-grid .mt5-card:last-child .mt5-shot { flex: none; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--border); }
  .mt5-card:hover { transform: none; }
  .mt5-body { padding: 14px 16px 16px; gap: 10px; }
  .mt5-desc { font-size: 13px; }
  .mt5-points li { font-size: 12.5px; }
  .mt5-strip { padding: 14px; gap: 12px; }
  .mt5-strip .btn { width: 100%; height: 42px; }
  .mt5-strip-icon { display: none; }
  .app-soon.mt5-link { flex-wrap: wrap; }
  .app-soon.mt5-link p { flex: 1 1 200px; }

  /* Launcher: the MT5 tile spans the row under the two apps */
  .launcher-app.is-mt5 { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; }
  .launcher-app.is-mt5 .launcher-icon { margin-bottom: 0; }
  .launcher-app.is-mt5 small { margin-left: auto; }
}

/* MT5 section highlights: the stats row under the heading, and the hotkey keycaps on the EA card */
.mt5-stats {
  display: inline-flex;
  align-items: stretch;
  margin-top: 22px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--mt5) 22%, var(--border));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.mt5-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 22px; }
.mt5-stat + .mt5-stat { border-left: 1px solid var(--border); }
.mt5-stat b {
  display: inline-flex; align-items: center; gap: 5px;
  font: 600 1.35rem/1.15 var(--mono); letter-spacing: -0.02em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.mt5-stat:first-child b { color: var(--mt5); }
.mt5-stat b .fi { font-size: 0.85rem; color: var(--amber); }
.mt5-stat span { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

.mt5-keys {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--mt5) 7%, transparent);
  border: 1px dashed color-mix(in srgb, var(--mt5) 35%, transparent);
}
.mt5-keys span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.mt5-keys kbd {
  min-width: 22px; height: 22px; padding: 0 5px;
  display: inline-grid; place-items: center;
  font: 600 11px/1 var(--mono); color: var(--text);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2.5px;
  border-radius: 6px;
}
.mt5-keys span kbd:last-of-type { margin-right: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .mt5-card:hover .mt5-keys kbd { animation: key-tap 1.8s var(--ease) infinite; }
  .mt5-card:hover .mt5-keys span:nth-child(2) kbd { animation-delay: 0.3s; }
  .mt5-card:hover .mt5-keys span:nth-child(3) kbd { animation-delay: 0.6s; }
}
@keyframes key-tap {
  0%, 22%, 100% { transform: none; border-bottom-width: 2.5px; }
  10% { transform: translateY(1.5px); border-bottom-width: 1px; border-color: var(--mt5); }
}

@media (max-width: 640px) {
  .mt5-stats { display: flex; margin-top: 18px; }
  .mt5-stat { flex: 1; padding: 9px 6px; }
  .mt5-stat b { font-size: 1.1rem; }
  .mt5-stat span { font-size: 9.5px; letter-spacing: 0.04em; text-align: center; }
  .mt5-keys { gap: 6px 10px; padding: 8px 10px; }
  .mt5-keys span { font-size: 12px; }
}
