/* ============================================================
   VodioMedia Design System
   High-end fintech meets media-tech
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

/* --- Design Tokens --- */
:root {
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --fs-xs: 0.75rem;
  /* 12 */
  --fs-sm: 0.875rem;
  /* 14 */
  --fs-base: 1rem;
  /* 16 */
  --fs-md: 1.125rem;
  /* 18 */
  --fs-lg: 1.5rem;
  /* 24 */
  --fs-xl: 2rem;
  /* 32 */
  --fs-2xl: 3rem;
  /* 48 */
  --fs-3xl: 3.75rem;
  /* 60 */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-base: 1.6;
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.04em;

  /* Spacing */
  --sp-1: 0.25rem;
  /* 4 */
  --sp-2: 0.5rem;
  /* 8 */
  --sp-3: 0.75rem;
  /* 12 */
  --sp-4: 1rem;
  /* 16 */
  --sp-6: 1.5rem;
  /* 24 */
  --sp-8: 2rem;
  /* 32 */
  --sp-12: 3rem;
  /* 48 */
  --sp-16: 4rem;
  /* 64 */
  --sp-20: 5rem;
  /* 80 */
  --sp-24: 6rem;
  /* 96 */

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.10);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
  --duration-slow: 400ms;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Light theme (default) */
  --bg: #FAFBFC;
  --bg-alt: #F3F4F6;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --text: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-subtle: #F3F4F6;
  --accent: #3B5BDB;
  --accent-hover: #2B4ACB;
  --accent-subtle: rgba(59, 91, 219, 0.08);
  --accent-text: #FFFFFF;
  --success: #059669;
  --warning: #D97706;
  --gradient-hero: linear-gradient(135deg, #3B5BDB 0%, #7048E8 50%, #9C36B5 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(59, 91, 219, 0.06) 0%, rgba(112, 72, 232, 0.04) 100%);
  --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
  --overlay: rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-border: rgba(229, 231, 235, 0.6);
}

[data-theme="dark"] {
  --bg: #0B0F1A;
  --bg-alt: #111827;
  --surface: #1A1F2E;
  --surface-raised: #222838;
  --text: #F3F4F6;
  --text-secondary: #D1D5DB;
  --text-muted: #6B7280;
  --border: #2D3348;
  --border-subtle: #1F2537;
  --accent: #5B7CFA;
  --accent-hover: #7B96FB;
  --accent-subtle: rgba(91, 124, 250, 0.1);
  --accent-text: #FFFFFF;
  --success: #34D399;
  --warning: #FBBF24;
  --gradient-hero: linear-gradient(135deg, #3B5BDB 0%, #7048E8 50%, #9C36B5 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(59, 91, 219, 0.1) 0%, rgba(112, 72, 232, 0.06) 100%);
  --gradient-card: linear-gradient(180deg, #1A1F2E 0%, #161B28 100%);
  --overlay: rgba(0, 0, 0, 0.7);
  --nav-bg: rgba(11, 15, 26, 0.88);
  --nav-border: rgba(45, 51, 72, 0.6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.35);
}

/* --- Base --- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--duration-slow) var(--ease), color var(--duration-slow) var(--ease);
}

/* Prevent FOUC while partials load */
body:not(.loaded) {
  opacity: 0;
}

body.loaded {
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

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

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text);
}

h1 {
  font-size: var(--fs-2xl);
}

h2 {
  font-size: var(--fs-xl);
}

h3 {
  font-size: var(--fs-lg);
}

h4 {
  font-size: var(--fs-md);
}

p {
  margin-bottom: var(--sp-4);
}

p:last-child {
  margin-bottom: 0;
}

.label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

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

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

.text-balance {
  text-wrap: balance;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--sp-20) 0;
}

.section--sm {
  padding: var(--sp-12) 0;
}

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

.grid {
  display: grid;
  gap: var(--sp-6);
}

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

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

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

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--sp-4);
  }

  .section {
    padding: var(--sp-12) 0;
  }

  .section--sm {
    padding: var(--sp-8) 0;
  }

  h1 {
    font-size: var(--fs-xl);
  }

  h2 {
    font-size: var(--fs-lg);
  }
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-between {
  justify-content: space-between;
}

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

.gap-2 {
  gap: var(--sp-2);
}

.gap-3 {
  gap: var(--sp-3);
}

.gap-4 {
  gap: var(--sp-4);
}

.gap-6 {
  gap: var(--sp-6);
}

.gap-8 {
  gap: var(--sp-8);
}

.flex-wrap {
  flex-wrap: wrap;
}


/* ============================================================
   COMPONENTS
   ============================================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

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

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding: var(--sp-2) var(--sp-4);
}

.btn--ghost:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--fs-base);
  border-radius: var(--radius-lg);
}

/* --- Cards --- */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: all var(--duration) var(--ease);
}

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

.card--flat {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
}

.card--flat:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: none;
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-lg);
}

.card__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
}

.card__text {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent);
  letter-spacing: var(--ls-wide);
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  transition: all var(--duration) var(--ease);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--text);
  text-decoration: none;
  letter-spacing: var(--ls-tight);
}

.navbar__logo svg {
  width: 32px;
  height: 32px;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}

.navbar__link {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text);
  background: var(--accent-subtle);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-size: var(--fs-md);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all var(--duration) var(--ease);
}

.navbar__hamburger:hover {
  border-color: var(--accent);
}

.navbar__hamburger:hover span {
  background: var(--accent);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .navbar__hamburger {
    display: flex;
  }

  .navbar__nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--sp-4);
    gap: var(--sp-1);
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--duration-slow) var(--ease);
    box-shadow: var(--shadow-lg);
  }

  .navbar__nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .navbar__link {
    padding: var(--sp-3) var(--sp-4);
    width: 100%;
    border-radius: var(--radius-md);
  }
}

/* --- Hero --- */
.hero {
  padding: calc(64px + var(--sp-20)) 0 var(--sp-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-hero);
  border-radius: 50%;
  opacity: 0.06;
  filter: blur(100px);
  pointer-events: none;
}

.hero__label {
  margin-bottom: var(--sp-4);
}

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--sp-8);
  line-height: var(--lh-base);
}

.hero__actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: calc(64px + var(--sp-12)) 0 var(--sp-12);
  }

  .hero__title {
    font-size: var(--fs-xl);
  }

  .hero__subtitle {
    font-size: var(--fs-base);
  }
}

.hero__bg-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  max-width: 600px;
  height: auto;
  opacity: 0.18;
  pointer-events: none;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0));
  z-index: 0;
}

[data-theme="dark"] .hero__bg-image {
  opacity: 0.25;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* --- Page Hero (internal pages) --- */
.page-hero {
  padding: calc(64px + var(--sp-16)) 0 var(--sp-12);
  background: var(--gradient-subtle);
  text-align: center;
}

.page-hero__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-4);
}

.page-hero__subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-hero {
    padding: calc(64px + var(--sp-8)) 0 var(--sp-8);
  }

  .page-hero__title {
    font-size: var(--fs-xl);
  }
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-12);
}

.section-header .label {
  margin-bottom: var(--sp-3);
  display: block;
}

.section-header h2 {
  margin-bottom: var(--sp-4);
}

.section-header p {
  color: var(--text-secondary);
}

/* --- Metrics / Stats --- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.metric {
  text-align: center;
  padding: var(--sp-6);
}

.metric__value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.metric__label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Process Steps --- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
  counter-reset: step;
}

.process__step {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  position: relative;
  counter-increment: step;
}

.process__step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--accent);
  margin-bottom: var(--sp-3);
  font-family: var(--font-mono);
}

.process__step h4 {
  margin-bottom: var(--sp-2);
}

.process__step p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* Arrow between steps (desktop) */
.process__step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

@media (max-width: 1024px) {
  .process {
    grid-template-columns: repeat(3, 1fr);
  }

  .process__step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .process {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .process__step {
    text-align: left;
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
    padding: var(--sp-4);
  }

  .process__step::before {
    min-width: 48px;
    margin-bottom: 0;
    font-size: var(--fs-lg);
  }

  .process__step:not(:last-child)::after {
    display: none;
  }
}

/* --- CTA Band --- */
.cta-band {
  background: var(--gradient-hero);
  padding: var(--sp-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-band h2 {
  color: #FFFFFF;
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
  position: relative;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--sp-8);
  font-size: var(--fs-md);
  position: relative;
}

.cta-band .btn {
  position: relative;
}

.cta-band .btn--primary {
  background: #FFFFFF;
  color: var(--accent);
  border-color: #FFFFFF;
}

.cta-band .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* --- Accordion --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease);
}

.accordion__item.open {
  border-color: var(--accent);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: var(--surface);
  border: none;
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.accordion__trigger:hover {
  background: var(--accent-subtle);
}

.accordion__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--duration) var(--ease);
  color: var(--text-muted);
}

.accordion__item.open .accordion__icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease);
}

.accordion__content {
  padding: 0 var(--sp-6) var(--sp-6);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}

/* --- Filter Chips --- */
.filter-bar {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
  align-items: center;
}

.filter-group {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
}

.filter-group__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-right: var(--sp-1);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  user-select: none;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

/* --- Portfolio Card --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.portfolio-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.portfolio-card .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.portfolio-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.portfolio-card__name {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}

.portfolio-card__category {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.portfolio-card__badges {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--sp-4);
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Asset Detail --- */
.asset-hero {
  padding: calc(64px + var(--sp-16)) 0 var(--sp-12);
  background: var(--gradient-subtle);
}

.asset-hero__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.asset-hero__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.asset-hero__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-2);
}

.asset-hero__tagline {
  color: var(--text-secondary);
  font-size: var(--fs-md);
}

@media (max-width: 768px) {
  .asset-hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .asset-hero__title {
    font-size: var(--fs-xl);
  }
}

/* Key facts panel */
.facts-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.fact {
  padding: var(--sp-3) 0;
}

.fact__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
}

.fact__value {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.gallery-item {
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-grid--app {
  display: flex;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.gallery-item--phone {
  width: 280px;
  aspect-ratio: auto;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gallery-item--phone img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Form --- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.footer {
  padding: var(--sp-16) 0 var(--sp-8);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-top: var(--sp-3);
  max-width: 360px;
}

.footer__heading {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__links a {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  transition: color var(--duration) var(--ease);
  text-decoration: none;
}

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

.footer__bottom {
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--sp-4);
    text-align: center;
  }
}

/* --- Decorative Elements --- */
.decoration {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.decoration--dots {
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

/* --- Split Layout (Services) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}

.split__content h3 {
  margin-bottom: var(--sp-4);
}

.split__content p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}

.split__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.split__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.split__list li::before {
  content: '→';
  color: var(--accent);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* --- Legal pages --- */
.legal-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.legal-content h3 {
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
}

.legal-content p,
.legal-content ul {
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}

.legal-content ul {
  padding-left: var(--sp-6);
}

.legal-content li {
  margin-bottom: var(--sp-2);
}

.legal-content h4 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-base);
  color: var(--text);
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-8) 0;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--fw-medium);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: var(--sp-4) 0;
  border-radius: 1px;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Visually Hidden (a11y) --- */
.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;
}

/* --- Timeline (About) --- */
.timeline {
  position: relative;
  padding-left: var(--sp-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--sp-8);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-8) - 4px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.timeline__text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* --- Compliance List (Asset) --- */
.compliance-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.compliance-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.compliance-list .check {
  color: var(--success);
  font-size: var(--fs-md);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .compliance-list {
    grid-template-columns: 1fr;
  }
}

/* --- Animate on scroll (simple) --- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Print --- */
@media print {

  .navbar,
  .footer,
  .cta-band,
  .theme-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}