/* ============================================
   MARAVILLIUM — Design System
   Apple-inspired, Bento Grid, Motion-Driven
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Default Dark Mode (Sleek Midnight) */
  --bg-color: #09090B;
  --bg-surface: rgba(20, 20, 23, 0.6);
  --bg-surface-opaque: #141417;
  --bg-surface-hover: rgba(30, 30, 35, 0.8);
  --color-primary: #FFFFFF;
  --color-secondary: #E4E4E7;
  --color-accent: #2563EB;
  --color-accent-rgb: 37, 99, 235;
  --color-accent-hover: #1D4ED8;
  --color-text-muted: #A1A1AA;
  --color-text-subtle: #71717A;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.16);
  --color-glow: rgba(37, 99, 235, 0.15);

  --font-heading: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  --font-size-6xl: 4.5rem;
  --font-size-hero: clamp(2.5rem, 6vw, 5.5rem);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.6);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.8);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 450ms cubic-bezier(0.16, 1, 0.3, 1);

  --nav-height: 56px;
  --container-max: 1200px;
  --container-wide: 1400px;
}

[data-theme="light"] {
  /* Premium Light Mode */
  --bg-color: #F5F5F7;
  --bg-surface: rgba(255, 255, 255, 0.75);
  --bg-surface-opaque: #FFFFFF;
  --bg-surface-hover: rgba(240, 240, 243, 0.9);
  --color-primary: #09090B;
  --color-secondary: #27272A;
  --color-accent: #2563EB;
  --color-accent-rgb: 37, 99, 235;
  --color-accent-hover: #1D4ED8;
  --color-text-muted: #52525B;
  --color-text-subtle: #8F8F99;
  --color-border: rgba(0, 0, 0, 0.06);
  --color-border-hover: rgba(0, 0, 0, 0.12);
  --color-glow: rgba(37, 99, 235, 0.05);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base);
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

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

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

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

ul, ol {
  list-style: none;
}

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

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

.section {
  padding: 120px 0;
}

.section-label {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, var(--font-size-5xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* Background Glows */
.bg-glows {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  mix-blend-mode: screen;
  transition: background var(--transition-slow), opacity var(--transition-slow);
}

[data-theme="light"] .bg-glow {
  mix-blend-mode: multiply;
  opacity: 0.04;
}

.bg-glow--1 {
  top: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
}

.bg-glow--2 {
  bottom: -10%;
  left: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
}

.bg-glow--3 {
  top: 40%;
  left: 20%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 75%);
  opacity: 0.05;
}
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 800px;
  background: var(--bg-surface);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform var(--transition-base),
              opacity var(--transition-base),
              background var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
  box-shadow: var(--shadow-md);
}

.navbar.hidden {
  transform: translateX(-50%) translateY(-120%);
  opacity: 0;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  cursor: pointer;
}

.navbar__links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.navbar__link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.navbar__link:hover {
  color: var(--color-primary);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid var(--color-border);
  padding-left: 16px;
  margin-left: 4px;
}

.navbar__lang {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar__lang:hover {
  background: var(--color-primary);
  color: var(--bg-color);
  border-color: var(--color-primary);
}

.navbar__theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.navbar__theme:hover {
  color: var(--color-primary);
  background: var(--bg-surface-hover);
  border-color: var(--color-border);
}

.navbar__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.navbar__menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-surface-opaque);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.navbar__mobile.open {
  opacity: 1;
  pointer-events: all;
}

.navbar__mobile a {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-primary);
  transition: color var(--transition-fast);
  letter-spacing: -0.02em;
}

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

.navbar__mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--color-text-muted);
}

.navbar__mobile-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  width: 60%;
  justify-content: center;
}

.navbar__mobile-actions .navbar__theme {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--color-accent), #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: var(--bg-color);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
}

.hero__cta:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero__cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-subtle);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ============================================
   BENTO GRID — WORK SECTION
   ============================================ */
.work {
  padding: 120px 0;
}

.work__header {
  margin-bottom: 60px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
}

.bento__card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-slow),
              border-color var(--transition-slow),
              box-shadow var(--transition-slow);
  border: 1px solid var(--color-border);
}

.bento__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(255, 255, 255, 0.05),
    transparent 80%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

[data-theme="light"] .bento__card::before {
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(37, 99, 235, 0.04),
    transparent 80%
  );
}

.bento__card:hover::before {
  opacity: 1;
}

.bento__card:hover {
  transform: scale(1.015);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-xl);
}

.bento__card--featured {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: space-between;
}

.bento__card--wide {
  grid-column: span 2;
}

.bento__card--tall {
  grid-row: span 2;
  justify-content: space-between;
}

.bento__card-content {
  position: relative;
  z-index: 2;
  margin-top: 16px;
}

.bento__card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  transition: color var(--transition-base), background var(--transition-base);
}

.bento__card:hover .bento__card-icon {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.bento__card-icon svg {
  width: 20px;
  height: 20px;
}

.bento__card-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.bento__card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.bento__card--featured .bento__card-title {
  font-size: var(--font-size-2xl);
}

.bento__card-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.bento__card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all var(--transition-base);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  z-index: 2;
}

.bento__card:hover .bento__card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.bento__card-arrow svg {
  width: 14px;
  height: 14px;
}

/* Dark card variant override for bento cards (featured is dark-forced for contrast) */
.bento__card--dark {
  background: #09090B;
  border-color: rgba(255, 255, 255, 0.05);
}

.bento__card--dark::before {
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(255, 255, 255, 0.07),
    transparent 80%
  );
}

.bento__card--dark .bento__card-title {
  color: #FFFFFF;
}

.bento__card--dark .bento__card-desc {
  color: #A1A1AA;
}

.bento__card--dark .bento__card-label {
  color: #60A5FA;
}

.bento__card--dark .bento__card-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #60A5FA;
}

.bento__card--dark:hover .bento__card-icon {
  background: #60A5FA;
  color: #09090B;
  border-color: #60A5FA;
}

.bento__card--dark .bento__card-arrow {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Card Visual Mockups */
.bento__card-visual {
  width: 100%;
  height: 140px;
  background: var(--bg-surface-hover);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
  z-index: 1;
}

/* AI Video Pipeline timeline visual */
.video-pipeline-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.timeline__track {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 4px 8px;
  gap: 8px;
  height: 28px;
}

.timeline__label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  color: #71717A;
  width: 44px;
  flex-shrink: 0;
}

.timeline__clip {
  flex-grow: 1;
  height: 18px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 8px;
  position: relative;
  overflow: hidden;
}

.timeline__clip--video {
  background: var(--color-accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline__crop-box {
  font-size: 8px;
  font-weight: 700;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 3px;
  padding: 0px 4px;
  animation: pulse 2s ease-in-out infinite;
}

.timeline__clip--audio {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 6px;
}

.audio-wave {
  width: 2px;
  height: 8px;
  background: #60A5FA;
  border-radius: 1px;
  animation: audioPlay 1.2s ease-in-out infinite;
}

.audio-wave:nth-child(2) { animation-delay: 0.2s; height: 12px; }
.audio-wave:nth-child(3) { animation-delay: 0.4s; height: 6px; }
.audio-wave:nth-child(4) { animation-delay: 0.6s; height: 10px; }
.audio-wave:nth-child(5) { animation-delay: 0.8s; height: 5px; }

@keyframes audioPlay {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.5); }
}

.timeline__clip--subs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: #A1A1AA;
}

/* ObraSegura Camera Feed visual */
.camera-visual {
  height: 180px;
  padding: 0;
  overflow: hidden;
}

.camera-feed {
  width: 100%;
  height: 100%;
  position: relative;
  background: #09090B;
}

.camera-feed__overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  font-family: monospace;
  font-size: 9px;
  font-weight: 700;
  color: #EF4444;
}

.camera-feed__rec {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rec-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #EF4444;
  animation: pulse 1s ease-in-out infinite;
}

.camera-feed__time {
  color: #71717A;
}

.camera-feed__grid {
  position: absolute;
  inset: 0;
}

.camera-feed__box {
  position: absolute;
  border: 1.5px solid #22C55E;
  background: rgba(34, 197, 94, 0.05);
  border-radius: 4px;
  padding: 2px 4px;
}

.camera-feed__box--warn {
  border-color: #EAB308;
  background: rgba(234, 179, 8, 0.05);
}

.camera-feed__label {
  position: absolute;
  top: -12px;
  left: -1.5px;
  font-family: var(--font-heading);
  font-size: 7px;
  font-weight: 700;
  color: white;
  background: #22C55E;
  padding: 0px 3px;
  border-radius: 2px 2px 0 0;
  white-space: nowrap;
}

.camera-feed__box--warn .camera-feed__label {
  background: #EAB308;
}

/* Browser window simulation */
.browser-visual {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.browser-header {
  height: 24px;
  background: var(--bg-surface-hover);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 4px;
}

.browser-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-subtle);
  opacity: 0.3;
}

.browser-address {
  margin: 0 auto;
  font-size: 8px;
  color: var(--color-text-subtle);
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 1px 16px;
  font-family: monospace;
}

.browser-body {
  flex-grow: 1;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
}

.browser-skeleton {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-line {
  height: 5px;
  background: var(--bg-surface-hover);
  border-radius: 3px;
  width: 100%;
}

.skeleton-line--title {
  height: 8px;
  width: 60%;
  background: var(--color-accent);
  opacity: 0.15;
}

.skeleton-line--short {
  width: 45%;
}

/* AI Node connection visual */
.node-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.node-graph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 180px;
}

.node {
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}

.bento__card--accent .node {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.15);
}

.node--agent {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.bento__card--accent .node--agent {
  background: white;
  color: var(--color-accent);
  border-color: white;
}

.node-connection {
  flex-grow: 1;
  height: 8px;
  color: var(--color-text-subtle);
  margin: 0 4px;
  opacity: 0.5;
}

.node-connection svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-border-hover);
}

.bento__card--accent .node-connection svg {
  stroke: rgba(255, 255, 255, 0.3);
}

/* Experiments visual with custom badges */
.experiments-visual {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
}

.exp-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.exp-badge--active {
  color: var(--color-primary);
  border-color: var(--color-border-hover);
  background: var(--bg-surface-opaque);
}

.exp-badge__indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.exp-badge__indicator--off {
  background: var(--color-border-hover);
}

/* Accent bento card variant override */
.bento__card--accent {
  background: var(--color-accent);
  border-color: transparent;
}

.bento__card--accent::before {
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(255, 255, 255, 0.15),
    transparent 80%
  );
}

.bento__card--accent .bento__card-title {
  color: #FFFFFF;
}

.bento__card--accent .bento__card-desc {
  color: rgba(255, 255, 255, 0.85);
}

.bento__card--accent .bento__card-label {
  color: rgba(255, 255, 255, 0.8);
}

.bento__card--accent .bento__card-icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.bento__card--accent:hover .bento__card-icon {
  background: white;
  color: var(--color-accent);
  border-color: white;
}

.bento__card--accent .bento__card-arrow {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 120px 0;
  background: transparent;
}

.services__header {
  text-align: center;
  margin-bottom: 72px;
}

.services__header .section-subtitle {
  margin: 0 auto;
}

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

.service-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--color-border);
  transition: all var(--transition-slow);
  cursor: pointer;
}

.service-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-hover);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-accent);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card__tag {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--bg-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 4px 12px;
}

/* ============================================
   TOOLS SECTION
   ============================================ */
.tools {
  padding: 120px 0;
  background: transparent;
}

.tools__header {
  text-align: center;
  margin-bottom: 72px;
}

.tools__header .section-subtitle {
  margin: 0 auto;
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 32px;
}

.tool-card {
  position: relative;
  background: var(--bg-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow), transform var(--transition-slow);
  cursor: pointer;
  min-height: 280px;
}

.tool-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.tool-card__spotlight {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(255, 255, 255, 0.04),
    transparent 80%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.tool-card:hover .tool-card__spotlight {
  opacity: 1;
}

[data-theme="light"] .tool-card__spotlight {
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(37, 99, 235, 0.04),
    transparent 80%
  );
}

.tool-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-hover);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 24px;
  transition: all var(--transition-base);
}

.tool-card:hover .tool-card__icon {
  background: var(--color-primary);
  color: var(--bg-color);
  border-color: var(--color-primary);
}

.tool-card__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
}

.tool-card__badge--free {
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
  border: 1px solid rgba(52, 199, 89, 0.2);
}

.tool-card__badge--pro {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.tool-card__lock {
  position: absolute;
  top: 24px;
  right: 80px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-subtle);
  opacity: 0.5;
  z-index: 2;
  transition: opacity var(--transition-fast);
}

.tool-card:hover .tool-card__lock {
  opacity: 0.8;
}

.tool-card__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.tool-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.tool-card__action {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
  margin-top: auto;
}

.tool-card:hover .tool-card__action {
  color: var(--color-accent);
}

/* ============================================
   SUBSCRIPTION MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

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

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal__container {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: var(--bg-surface-opaque);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  transform: scale(0.95) translateY(10px);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.modal__container::-webkit-scrollbar {
  display: none;
}

.modal.active .modal__container {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--color-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 12px;
}

.modal__close:hover {
  background: var(--color-primary);
  color: var(--bg-color);
  border-color: var(--color-primary);
}

.modal__header {
  text-align: center;
  margin-bottom: 40px;
}

.modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.modal__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.modal__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.modal__plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.plan-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.plan-card:hover {
  border-color: var(--color-border-hover);
  background: var(--bg-surface-hover);
}

.plan-card--featured {
  border-color: var(--color-accent);
  background: rgba(37, 99, 235, 0.02);
}

.plan-card--featured:hover {
  border-color: var(--color-accent-hover);
  background: rgba(37, 99, 235, 0.04);
}

.plan-card__discount {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--color-accent);
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.plan-card__name {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.plan-card__desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-subtle);
  line-height: 1.5;
  margin-bottom: 24px;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  margin-bottom: 28px;
}

.plan-card__amount {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.plan-card__period {
  font-size: var(--font-size-xs);
  color: var(--color-text-subtle);
  margin-left: 4px;
}

.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.plan-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.plan-card__features li svg {
  color: #34C759;
  flex-shrink: 0;
}

.plan-card--featured .plan-card__features li svg {
  color: var(--color-accent);
}

.plan-card__btn {
  display: block;
  text-align: center;
  background: var(--bg-surface-hover);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.plan-card__btn:hover {
  background: var(--color-primary);
  color: var(--bg-color);
  border-color: var(--color-primary);
}

.plan-card__btn--accent {
  background: var(--color-primary);
  color: var(--bg-color);
  border-color: var(--color-primary);
}

.plan-card__btn--accent:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.modal__footer {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.mp-logo {
  font-weight: 700;
  color: #009EE3;
}

/* ============================================
   TECH STACK
   ============================================ */
.tech {
  padding: 120px 0;
  background: transparent;
}

.tech__header {
  text-align: center;
  margin-bottom: 72px;
}

.tech__header .section-subtitle {
  margin: 0 auto;
}

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

.tech__category {
  background: var(--bg-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
}

.tech__category:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tech__category-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--color-accent);
  padding-left: 12px;
  line-height: 1;
}

.tech__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech__tag {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--bg-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 6px 14px;
  transition: all var(--transition-fast);
}

.tech__tag:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--bg-surface);
  transform: translateY(-1px);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 120px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text p {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__text p strong {
  color: var(--color-primary);
  font-weight: 600;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.stat-card__number {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================
   CONTACT / CTA
   ============================================ */
.contact {
  padding: 120px 0;
  background: transparent;
  text-align: center;
}

.contact__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.contact__content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(var(--color-accent-rgb), 0.05), transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.contact__content > * {
  position: relative;
  z-index: 1;
}

.contact .section-label {
  color: var(--color-accent);
}

.contact .section-title {
  color: var(--color-primary);
  max-width: 600px;
  margin: 0 auto 16px;
}

.contact__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
}

.contact__btn--primary {
  background: var(--color-primary);
  color: var(--bg-color);
  border: 1px solid var(--color-primary);
}

.contact__btn--primary:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--color-accent-rgb), 0.3);
}

.contact__btn--secondary {
  background: var(--bg-surface-hover);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.contact__btn--secondary:hover {
  background: var(--bg-surface);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.contact__btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 0;
  background: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer__copy {
  font-size: var(--font-size-sm);
  color: #71717A;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: var(--font-size-sm);
  color: #71717A;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer__link:hover {
  color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

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

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

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

  .about__grid {
    gap: 48px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .navbar__links {
    display: none;
  }

  .navbar__menu-btn {
    display: flex;
  }

  .navbar__mobile {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: 90vh;
  }

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

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento__card {
    min-height: 180px;
  }

  .bento__card--featured,
  .bento__card--wide,
  .bento__card--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento__card--featured .bento__card-title {
    font-size: var(--font-size-2xl);
  }

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

  .tools__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tool-card {
    padding: 32px 24px;
    min-height: auto;
  }

  .modal__container {
    padding: 40px 24px;
  }

  .modal__plans {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal__title {
    font-size: var(--font-size-lg);
  }

  .plan-card {
    padding: 24px;
  }

  .tech__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .contact__buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

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

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