/* ============================================================================
   MIA v3 — Radical Redesign
   Warm cream base · gradient text · WebGL mesh · glass cards · scroll-driven
   Target: executives 40-50+
   ============================================================================ */

/* --- Tokens --- */
:root {
  /* Palette — warm cream */
  --cream: #0B0B0F;
  --cream-2: #12121A;
  --cream-3: #1D1D2B;
  --white: #181824;
  --charcoal: #FAF7F2;
  --charcoal-2: #E8E2D5;
  --ink: #FAF7F2;
  --ink-2: #A5A5B5;
  --ink-3: #7E7E92;
  --rule: #252535;

  /* Dark sections */
  --dark: #0F0F1A;
  --dark-2: #1A1A2E;
  --dark-3: #252540;
  --dark-ink: #F0EBE3;
  --dark-ink-2: #A0A0B8;
  --dark-rule: #2E2E48;

  /* Gradient accent colors */
  --coral: #FF6B6B;
  --violet: #7C3AED;
  --violet-light: #8B5CF6;
  --teal: #06B6D4;
  --amber: #F59E0B;

  /* Fonts */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;

  /* Spacing 4pt scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Type scale — executive large */
  --t-xs: 0.875rem;
  --t-sm: 1rem;
  --t-base: 1.125rem;
  --t-md: 1.375rem;
  --t-lg: 1.75rem;
  --t-xl: 2.25rem;
  --t-2xl: 3rem;
  --t-3xl: 3.75rem;
  --t-hero: clamp(3rem, 6vw, 5.5rem);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur-base: 300ms;
  --dur-slow: 500ms;

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 9999px;
}

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

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.03em;
}

p {
  color: var(--ink-2);
  line-height: 1.75;
}

/* Fixed gradient text */
.grad-text {
  background: linear-gradient(135deg, #ff8a16, #ff3f5f 54%, #ca4cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet);
}

.dark-section .eyebrow {
  color: var(--teal);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-sm);
  padding: 16px 40px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--coral));
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  border-color: var(--violet);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

.dark-section .btn-secondary {
  background: var(--dark-3);
  color: var(--dark-ink);
  border-color: var(--dark-rule);
}

.dark-section .btn-secondary:hover {
  border-color: var(--teal);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 68px;
  z-index: 200;
  background: rgba(11, 11, 15, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color var(--dur-base), box-shadow var(--dur-base);
}

.navbar.scrolled {
  background: rgba(11, 11, 15, 0.95);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--t-lg);
  letter-spacing: -0.03em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

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

.nav-links a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--dur-fast);
}

.nav-links a:hover {
  color: var(--violet);
}

.nav-cta {
  padding: 10px 28px;
  font-size: var(--t-xs);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: var(--sp-2);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

#mesh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--violet);
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.12);
  padding: 8px 20px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-8);
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(124, 58, 237, 0);
  }
}

.hero h1 {
  font-size: var(--t-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-8);
  max-width: 900px;
  margin-inline: auto;
}

.hero p {
  font-size: var(--t-md);
  max-width: 615px;
  margin: 0 auto var(--sp-10);
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-16);
}

/* Trust Numbers */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: var(--sp-16);
  flex-wrap: wrap;
}

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

.trust-stat .val {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.trust-stat .val.grad-text {
  font-size: var(--t-2xl);
}

.trust-stat .lbl {
  font-size: var(--t-xs);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--sp-1);
}

/* =============================================
   SECTION HEADER
   ============================================= */
.sec-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}

.sec-header .eyebrow {
  margin-bottom: var(--sp-4);
}

.sec-header h2 {
  font-size: clamp(2.2rem, 3.6vw, var(--t-3xl));
  margin-bottom: var(--sp-4);
}

.sec-header p {
  font-size: var(--t-md);
  max-width: 560px;
  margin-inline: auto;
}

/* =============================================
   BENEFITS — Glass Bento Grid
   ============================================= */
.benefits {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  background: var(--cream);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.bento-card {
  background: rgba(27, 27, 44, 0.65);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-10);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base);
}

/* Gradient border on hover for Bento Grid */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #ff8a16, #ff3f5f 54%, #ca4cff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  pointer-events: none;
  z-index: 3;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: transparent;
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.bento-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  flex-shrink: 0;
}

.bento-header .bento-icon {
  margin-bottom: 0;
}

.bento-card h3 {
  font-size: var(--t-lg);
  font-weight: 800;
  margin-bottom: 0;
}

.bento-card>p {
  font-size: var(--t-sm);
  line-height: 1.7;
}

.bento-tag {
  display: inline-block;
  margin-top: var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--teal);
  background: rgba(248, 65, 115, 0.04);
  padding: 4px 14px;
  border-radius: var(--r-pill);
}

/* =============================================
   HARDWARE — Dark Section
   ============================================= */
.hardware {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  background: var(--dark);
  color: var(--dark-ink);
  overflow: hidden;
}

.hardware::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hardware h2,
.hardware h3,
.hardware h4 {
  color: var(--dark-ink);
}

.hardware p {
  color: var(--dark-ink-2);
}

.hw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.hw-content h3 {
  font-size: var(--t-xl);
  margin-bottom: var(--sp-4);
}

.hw-content>p {
  font-size: var(--t-base);
  margin-bottom: var(--sp-8);
}

.hw-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.hw-spec {
  background: var(--dark-2);
  border: 1px solid var(--dark-rule);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  transition: border-color var(--dur-base), transform var(--dur-base);
}

.hw-spec:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.hw-spec-icon {
  color: var(--teal);
  margin-bottom: var(--sp-3);
}

.hw-spec h4 {
  font-size: var(--t-sm);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.hw-spec p {
  font-size: var(--t-xs);
}

.hw-img-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--dark-rule);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  position: relative;
}

.hw-img-wrap img {
  width: 100%;
  display: block;
}

.hw-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 26, 0.4), transparent 40%);
  pointer-events: none;
}

.hw-badge {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-xs);
  padding: 10px 28px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

/* =============================================
   INTERFACE — Horizontal Scroll Showcase
   ============================================= */
.interface {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  background: var(--cream);
  overflow: hidden;
}

/* =============================================
   INTERFACE EXPLORER SIMULATOR
   ============================================= */
.explorer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp-8);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-12);
  align-items: stretch;
}

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

.explorer-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-height: 540px;
  overflow-y: auto;
  padding-right: var(--sp-2);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.explorer-features::-webkit-scrollbar {
  width: 4px;
}

.explorer-features::-webkit-scrollbar-track {
  background: transparent;
}

.explorer-features::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(24, 24, 36, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.feature-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #ff8a16, #ff3f5f 54%, #ca4cff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  pointer-events: none;
}

.feature-item:hover {
  background: rgba(24, 24, 36, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.feature-item.active {
  background: rgba(24, 24, 36, 0.8);
  transform: translateX(6px);
}

.feature-item.active::before {
  opacity: 1;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: var(--t-md);
  font-weight: 800;
  color: var(--violet);
  background: linear-gradient(135deg, #ff8a16, #ff3f5f 54%, #ca4cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-info h3 {
  font-size: var(--t-sm);
  font-weight: 700;
  margin: 0 0 var(--sp-1) 0;
  color: var(--ink);
  transition: color var(--dur-fast);
}

.feature-item.active .feature-info h3 {
  color: #ff3f5f;
}

.feature-info p {
  font-size: var(--t-xs);
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

/* INTERACTIVE MOCKUP CONSOLE (USING ACTUAL SCREENSHOTS) */
.explorer-mockup {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 3;
}

.mockup-img-wrapper {
  background-color: #antiquewhite;
  position: relative;
  width: 100%;
  height: 100%;
}

.mock-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0B0B0F;
  opacity: 0;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  transform: scale(0.98);
  z-index: 1;
}

.mock-img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* HOTSPOTS FOR THE SIMULATION */
.hotspot {
  position: absolute;
  border: 2px dashed #ff3f5f;
  border-radius: 8px;
  background: rgba(255, 63, 95, 0.04);
  box-shadow: 0 0 15px rgba(255, 63, 95, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 10;
}

.hotspot.active-hotspot {
  opacity: 1;
  animation: pulse-hotspot 2s infinite ease-in-out;
}

@keyframes pulse-hotspot {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 63, 95, 0.4);
    border-color: #ff3f5f;
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(202, 76, 255, 0.7);
    border-color: #ca4cff;
  }
}

/* Mockup Tooltip box */
position: absolute;
width: 220px;
background: rgba(24, 24, 36, 0.95);
backdrop-filter: blur(12px);
border: 1px solid rgba(202, 76, 255, 0.3);
border-radius: var(--r-md);
padding: var(--sp-3) var(--sp-4);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
z-index: 50;
pointer-events: none;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

/* Initial pos: points to header */
top: 15%;
left: 50%;
transform: translate(-10%, -50%);
}

.mockup-tooltip h4 {
  font-size: 11px;
  font-weight: 800;
  color: #ff3f5f;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mockup-tooltip p {
  font-size: 9px;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}

.interface {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  background: var(--cream);
  overflow: hidden;
}

.scroll-track {
  display: flex;
  gap: var(--sp-8);
  padding: 0 var(--sp-8) var(--sp-8);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: flex-start;
}

@media (min-width: 2750px) {
  .scroll-track {
    justify-content: center;
  }
}

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

.mode-card {
  flex: 0 0 min(420px, 80vw);
  scroll-snap-align: center;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base);
  text-align: center;
}

.mode-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.mode-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mode-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.6s var(--ease);
}

.mode-card:hover .mode-img img {
  transform: scale(1.04);
}

.mode-body {
  padding: var(--sp-8);
}

.mode-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mode-tag.chat {
  background: rgba(124, 58, 237, 0.08);
  color: #1186bd;
}

.mode-tag.rag {
  background: rgba(255, 107, 107, 0.08);
  color: #F97500;
}

.mode-tag.online {
  background: rgba(6, 182, 212, 0.08);
  color: var(--teal);
}

.mode-tag.cloud {
  background: rgba(202, 76, 255, 0.08);
  color: #ca4cff;
}

.mode-tag.research {
  background: rgba(255, 63, 95, 0.08);
  color: #ff3f5f;
}

.mode-tag.future {
  background: rgba(255, 138, 22, 0.08);
  color: #ff8a16;
}

.mode-body h3 {
  font-size: var(--t-md);
  font-weight: 800;
  margin-bottom: var(--sp-2);
}

.mode-body p {
  font-size: var(--t-sm);
  line-height: 1.7;
}

/* Visual Trust highlight */
.vt-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  margin-top: var(--sp-16);
  padding-top: var(--sp-16);
  border-top: 1px solid var(--rule);
}

.vt-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
}

.vt-img img {
  width: 100%;
  display: block;
}

.vt-text h3 {
  font-size: var(--t-xl);
  margin-bottom: var(--sp-4);
}

.vt-text>p {
  font-size: var(--t-base);
  margin-bottom: var(--sp-6);
}

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

.check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--t-sm);
  color: var(--ink-2);
}

.check-item svg {
  flex-shrink: 0;
  color: var(--violet);
  margin-top: 3px;
}

/* =============================================
   RAG SIMULATOR
   ============================================= */
.simulator {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  background: var(--cream-2);
  border-top: 1px solid var(--rule);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp-16);
  align-items: start;
}

.sim-info h3 {
  font-size: var(--t-xl);
  margin-bottom: var(--sp-4);
}

.sim-info>p {
  font-size: var(--t-base);
  margin-bottom: var(--sp-8);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--rule);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  cursor: pointer;
  transition: border-color var(--dur-base), background-color var(--dur-base);
}

.step:hover {
  background: rgba(124, 58, 237, 0.02);
}

.step.active {
  border-left-color: #FF633C;
  background: rgba(248, 65, 115, 0.04);
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--ink-3);
  min-width: 28px;
  transition: color var(--dur-base);
}

.step.active .step-num {
  color: var(--violet);
}

.step-title {
  font-weight: 700;
  font-size: var(--t-sm);
  margin-bottom: 2px;
}

.step-desc {
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.sim-visual {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.sim-state {
  display: none;
  width: 100%;
  height: 100%;
}

.sim-state.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-dropzone {
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  cursor: pointer;
  border: 2px dashed var(--rule);
  border-radius: var(--r-md);
  margin: var(--sp-8);
  padding: var(--sp-10);
  text-align: center;
  width: calc(100% - var(--sp-16));
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.sim-dropzone:hover {
  border-color: var(--violet);
  background: rgba(124, 58, 237, 0.02);
}

.sim-dropzone svg {
  color: var(--ink-3);
}

.sim-dropzone h4 {
  font-size: var(--t-sm);
  font-weight: 600;
}

.sim-dropzone .subtext {
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.sim-processing {
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}

.proc-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
  border: 2px solid var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: orb-breathe 2.5s ease-in-out infinite;
}

.proc-orb::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(124, 58, 237, 0.25);
  animation: spin 12s linear infinite;
}

.proc-orb svg {
  color: var(--violet);
  animation: spin 18s linear infinite reverse;
}

.proc-lbl {
  font-size: var(--t-sm);
  color: var(--ink-3);
  text-align: center;
}

@keyframes orb-breathe {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.25);
  }

  50% {
    box-shadow: 0 0 0 18px rgba(124, 58, 237, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sim-vectors {
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-8);
  align-content: center;
}

.vec {
  height: 44px;
  min-width: 120px;
  flex: 1 0 calc(25% - var(--sp-3));
  background: var(--cream-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #06B6D4;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.85);
  animation: vec-pop 0.4s var(--ease) forwards;
}

@keyframes vec-pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sim-chat {
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  width: 100%;
  text-align: left;
}

.chat-msg {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  max-width: 88%;
  animation: msg-in 0.4s var(--ease);
  line-height: 1.65;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.chat-msg.user {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(6, 182, 212, 0.06));
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.ai {
  background: var(--cream);
  border: 1px solid var(--rule);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.page-ref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: var(--violet);
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 700;
  cursor: pointer;
  margin-top: 15px;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.page-ref:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: var(--violet);
}

/* Doc viewer overlay */
.doc-viewer {
  display: none;
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px);
  z-index: 50;
  flex-direction: column;
  padding: var(--sp-6);
  animation: overlay-in var(--dur-base) var(--ease);
}

.doc-viewer.open {
  display: flex;
}

@keyframes overlay-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

.doc-viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.doc-viewer-bar span {
  font-weight: 700;
  font-size: var(--t-sm);
}

.doc-close {
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  font-size: var(--t-md);
  transition: color var(--dur-fast);
}

.doc-close:hover {
  color: var(--violet);
}

.doc-page-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-sheet {
  width: 200px;
  height: 260px;
  background: var(--white);
  border: 2px solid var(--violet);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.12);
  border-radius: var(--r-sm);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
}

.pg-line {
  height: 7px;
  background: var(--cream-3);
  border-radius: 4px;
}

.pg-line.hl {
  background: rgba(124, 58, 237, 0.35);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.2);
}

.pg-sheet .pg-num {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--violet);
  font-weight: 700;
}

.doc-caption {
  text-align: center;
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin-top: var(--sp-4);
}

/* =============================================
   EXAMPLES — Tabs
   ============================================= */
.examples {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  background: var(--cream);
  border-top: 1px solid var(--rule);
}

.examples-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-8);
}

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

.tab-btn {
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  cursor: pointer;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 600;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.tab-btn:hover {
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--ink);
}

.tab-btn.active {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(135deg, #ff8a16, #ff3f5f 54%, #ca4cff) border-box;
  color: #ffffff;
}

.tab-panel {
  display: none;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  animation: panel-in var(--dur-base) var(--ease);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
}

.panel-label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}

.panel-box {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--sp-6);
}

.panel-box.output {
  border-color: rgba(124, 58, 237, 0.12);
  background: rgba(124, 58, 237, 0.01);
}

.mock-fname {
  font-weight: 800;
  font-size: var(--t-sm);
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.mock-line {
  height: 7px;
  background: var(--cream-3);
  border-radius: 4px;
  margin-bottom: var(--sp-3);
}

.mock-text {
  font-size: var(--t-sm);
  color: var(--ink-2);
  margin-bottom: var(--sp-3);
  line-height: 1.65;
}

.out-chat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.out-q {
  align-self: flex-end;
  background: var(--cream-2);
  padding: 10px 14px;
  border-radius: var(--r-md);
  border-bottom-right-radius: 4px;
  font-size: var(--t-sm);
  max-width: 88%;
}

.out-a {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border-bottom-left-radius: 4px;
  font-size: var(--t-sm);
  line-height: 1.7;
}

.out-a ul,
.out-a ol {
  margin-left: var(--sp-4);
  margin-top: var(--sp-2);
}

.out-a li {
  margin-bottom: var(--sp-1);
}

.out-a table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-3) 0;
  font-size: var(--t-xs);
}

.out-a th,
.out-a td {
  border: 1px solid var(--rule);
  padding: 6px 10px;
  text-align: left;
}

.out-a th {
  background: var(--cream-2);
  color: var(--violet);
  font-weight: 700;
}

.out-alert {
  font-size: var(--t-xs);
  color: var(--coral);
  margin-top: var(--sp-3);
  font-weight: 600;
}

/* =============================================
   SAVINGS — Light Cream Section (Tema MIA Light)
   ============================================= */
.savings {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  background: #FAF7F2;
  color: #2C221E;
  overflow: hidden;
  border-top: 1px solid #EFE8DA;
  border-bottom: 1px solid #EFE8DA;
}

.savings::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 138, 22, 0.08), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.savings h2 {
  color: #2C221E;
}

.savings p {
  color: #6E5A50;
}

.calc-card {
  background: #FFFFFF;
  border: 1px solid #EAE2D3;
  border-radius: var(--r-lg);
  padding: var(--sp-10);
  max-width: 900px;
  margin-inline: auto;
  box-shadow: 0 20px 50px rgba(44, 34, 30, 0.04);
}

.calc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-8);
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.calc-field label {
  font-weight: 700;
  font-size: var(--t-sm);
  color: #5C4A42;
}

.calc-val {
  font-family: var(--font-mono);
  font-size: var(--t-xl);
  font-weight: 800;
  color: #FF8A16;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #E8E0CE;
  border-radius: var(--r-pill);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, #FF8A16, #FF3F5F);
  box-shadow: 0 4px 14px rgba(255, 138, 22, 0.4);
  transition: transform var(--dur-fast);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #FF8A16, #FF3F5F);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 138, 22, 0.4);
}

.calc-results {
  background: #F8F3EC;
  border: 1px solid #EAE2D3;
  border-radius: var(--r-md);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid #E5DEC9;
}

.calc-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.calc-row .lbl {
  font-size: var(--t-sm);
  color: #6E5A50;
  font-weight: 500;
}

.calc-row .val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--t-md);
  color: #2C221E;
}

.calc-row .val.hl {
  color: #FF8A16;
  font-size: var(--t-lg);
  font-weight: 900;
  text-shadow: none;
}

.calc-divider {
  border: none;
  border-top: 1px dashed #DDD5C3;
  margin: var(--sp-2) 0;
}

/* Comparison table */
.comparison {
  margin-top: var(--sp-16);
  overflow-x: auto;
}

.cmp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.cmp-table th,
.cmp-table td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid #EAE2D3;
  text-align: left;
  font-size: var(--t-sm);
}

.cmp-table th {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--t-xs);
  color: #8C776D;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cmp-table td {
  color: #5C4A42;
}

.cmp-table tr:hover td {
  background: rgba(255, 138, 22, 0.04);
}

.cmp-table .win {
  color: #FF8A16;
  font-weight: 700;
}

/* =============================================
   CTA
   ============================================= */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  background: var(--cream);
}

.cta-card {
  background: linear-gradient(135deg, var(--violet), var(--coral));
  border-radius: var(--r-xl);
  padding: var(--sp-20) var(--sp-10);
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(124, 58, 237, 0.25);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, var(--t-2xl));
  margin-bottom: var(--sp-4);
  position: relative;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--t-md);
  max-width: 540px;
  margin: 0 auto var(--sp-8);
  position: relative;
}

.cta-card .btn {
  background: #fff;
  color: var(--violet);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.cta-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: var(--dark-ink);
  border-top: 1px solid var(--dark-rule);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer h5,
.footer a {
  color: var(--dark-ink-2);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--sp-10);
  margin-bottom: var(--sp-16);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer-brand .brand {
  color: var(--dark-ink);
}

.footer-brand p {
  font-size: var(--t-sm);
  max-width: 260px;
  color: var(--dark-ink-2);
}

.footer-col h5 {
  font-size: var(--t-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-6);
  color: var(--dark-ink);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col a {
  font-size: var(--t-sm);
  transition: color var(--dur-fast);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--dark-rule);
  padding-top: var(--sp-6);
}

.footer-bottom p {
  font-size: var(--t-xs);
  color: var(--dark-ink-2);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--dark-ink-2);
  font-size: var(--t-xs);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur-fast), transform var(--dur-fast);
}

.footer-socials a:hover {
  color: #25D366;
  transform: translateY(-1px);
}

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

  .bento-card.span-2 {
    grid-column: span 2;
  }

  .hw-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .hw-img-wrap {
    order: -1;
  }

  .vt-block {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
    text-align: center;
  }

  .vt-block .check-list {
    align-items: center;
  }

  .sim-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

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

  .tab-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: var(--sp-2);
  }

  .tab-btn {
    white-space: nowrap;
  }

  .calc-cols {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(11, 11, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--sp-6);
    border-bottom: 1px solid var(--rule);
    gap: var(--sp-4);
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .hw-specs {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

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

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    padding-inline: var(--sp-4);
  }

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

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

  .trust-bar {
    flex-direction: column;
    gap: var(--sp-6);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  #mesh-canvas {
    display: none;
  }
}