@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

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

:root {
  /* Design System Palette - Thathsilu Guidelines */
  --color-primary: #78716C;
  --color-on-primary: #FFFFFF;
  --color-secondary: #A8A29E;
  --color-accent: #D97706; /* Warm Amber/Gold */
  --color-background: #FAF5F2; /* Cream Background */
  --color-foreground: #0F172A; /* Deep Slate */
  --color-muted: #F6F6F6;
  --color-border: #0F172A; /* High contrast black/slate border */
  --color-destructive: #DC2626;
  --color-ring: #78716C;

  /* Legacy layout variable mappings to automatically skin story pages */
  --bg: #FAF5F2;
  --text: #0F172A;
  --dark: #0F172A;
  --blue: #78716C;
  --grey: #A8A29E;
  --red: #D97706;
  --lime: #FAF5F2;
  --nav-h: 80px;

  /* Spacing Tokens */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* High contrast solid offset shadows */
  --shadow-sm: 2px 2px 0px 0px var(--color-foreground);
  --shadow-md: 4px 4px 0px 0px var(--color-foreground);
  --shadow-lg: 8px 8px 0px 0px var(--color-foreground);
  --shadow-xl: 12px 12px 0px 0px var(--color-foreground);
  --shadow-accent: 4px 4px 0px 0px var(--color-accent);
}

/* Base resets & global styles */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--color-background);
}

body {
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--color-foreground);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  font-weight: 400;
  color: var(--color-foreground);
}

a, button, select, input, textarea, [role="button"], .phone-tab, .browser-tab, .view-toggle-btn {
  cursor: pointer !important;
}

/* ════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════ */
@keyframes clipUp {
  from {
    clip-path: inset(100% 0 0 0);
    transform: translateY(20px);
  }
  to {
    clip-path: inset(0% 0 0 0);
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-glow {
  0% { transform: scale(0.85); opacity: 0.6; box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
  100% { transform: scale(0.85); opacity: 0.6; box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

@keyframes voiceWave {
  0%, 100% { transform: scaleY(0.2); }
  50% { transform: scaleY(1.0); }
}

.anim-clip {
  clip-path: inset(100% 0 0 0);
  animation: clipUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-scale {
  opacity: 0;
  animation: scaleIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-rise {
  opacity: 0;
  animation: riseUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.4s; }

/* Scroll Reveal Triggers */
.reveal, .reveal-rise, .reveal-scale {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
  transform: translateY(20px);
}

.reveal-rise {
  transform: translateY(32px);
}

.reveal-scale {
  transform: scale(0.95);
}

.reveal.in-view, .reveal-rise.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

.reveal.d-1 { transition-delay: 0.05s; }
.reveal.d-2 { transition-delay: 0.15s; }
.reveal.d-3 { transition-delay: 0.25s; }
.reveal.d-4 { transition-delay: 0.35s; }

.draw-line {
  display: block;
  height: 2px;
  background: var(--color-foreground);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.draw-line.in-view {
  transform: scaleX(1);
}

/* ════════════════════════════════════════════════
   NAVBAR & DROP DOWN
   ════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: var(--nav-h);
  background: var(--color-background);
  border-bottom: 3px solid var(--color-foreground);
  box-shadow: 0 4px 0px rgba(15, 23, 42, 0.04);
}

.nav-logo img {
  height: 40px;
  transition: transform 0.2s ease;
}

.nav-logo:hover img {
  transform: scale(1.05) rotate(-1deg);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-foreground);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: all 150ms ease;
}

.nav-links a:hover,
.nav-links a.active-nav {
  background: #ffffff;
  border-color: var(--color-foreground);
  box-shadow: 2px 2px 0px var(--color-foreground);
  transform: translate(-1px, -1px);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #ffffff;
  border: 2.5px solid var(--color-foreground);
  border-radius: 10px;
  box-shadow: 4px 4px 0px var(--color-foreground);
  padding: 16px;
  min-width: 280px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8px);
}

.dropdown-group {
  margin-bottom: 12px;
}

.dropdown-group:last-child {
  margin-bottom: 0;
}

.group-title {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
  border-bottom: 1.5px solid var(--color-foreground);
  padding-bottom: 4px;
}

.dropdown-item {
  display: block !important;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 150ms ease;
  border: 2px solid transparent !important;
  background: transparent;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--color-background);
  border-color: var(--color-foreground) !important;
  box-shadow: 2px 2px 0px var(--color-foreground);
  transform: translate(-1px, -1px);
}

.item-name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-foreground);
}

.item-desc {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--color-primary);
  margin-top: 2px;
  font-weight: 500;
}

/* Primary Button Design (Try DocScan) */
.nav-cta, .mobile-drawer-cta {
  background: var(--color-accent);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  border: 2px solid var(--color-foreground);
  text-decoration: none;
  transition: all 150ms ease;
  box-shadow: 3px 3px 0px var(--color-foreground);
  display: inline-block;
  text-align: center;
}

.nav-cta:hover, .mobile-drawer-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--color-foreground);
  background: var(--color-accent);
}

.nav-cta:active, .mobile-drawer-cta:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0px var(--color-foreground);
}

/* ════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════ */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 32px) 6vw 60px;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-badge-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-pill-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-foreground);
  box-shadow: 2px 2px 0px var(--color-foreground);
  border-radius: 40px;
}

.hero-pill-badge.secondary {
  background: #ffffff;
  color: var(--color-foreground);
}

.hero-pill-badge .pulse-point {
  width: 8px;
  height: 8px;
  background: var(--color-foreground);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-glow 1.5s infinite ease-in-out;
}

.hero-content h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-foreground);
}

.hero-header-accent {
  display: inline-block;
  color: var(--color-accent);
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: 2.5px 2.5px 0px var(--color-foreground);
}

.hero-intro-text {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-foreground);
  max-width: 540px;
}

/* CTA Buttons Styling */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.try-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
  border: 2.5px solid var(--color-foreground);
}

.try-btn.primary-blue {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 4px 4px 0px var(--color-foreground);
}

.try-btn.primary-blue:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-foreground);
}

.try-btn.primary-blue:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--color-foreground);
}

.try-btn.secondary {
  background: #ffffff;
  color: var(--color-foreground);
  box-shadow: 4px 4px 0px var(--color-foreground);
}

.try-btn.secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-foreground);
}

.try-btn.secondary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--color-foreground);
}

/* Social links */
.hero-socials-v2 {
  display: flex;
  gap: 16px;
}

.hero-socials-v2 a {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-foreground);
  text-decoration: none;
  background: #ffffff;
  padding: 6px 14px;
  border: 2px solid var(--color-foreground);
  border-radius: 6px;
  box-shadow: 3px 3px 0px var(--color-foreground);
  transition: all 150ms ease;
}

.hero-socials-v2 a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--color-foreground);
}

.hero-socials-v2 a:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0px var(--color-foreground);
}

/* Right Side: Hero Sticker Widgets */
.hero-visual-side {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.hero-widget-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 440px;
}

.hero-widget {
  background: #ffffff;
  border: 2.5px solid var(--color-foreground);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 6px 6px 0px var(--color-foreground);
  transition: all 200ms ease;
  position: relative;
}

.hero-widget:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px var(--color-foreground);
}

.hero-widget.widget-lime { background: #fbfbf4; }
.hero-widget.widget-blue { background: #f4f6fb; }
.hero-widget.widget-red { background: #fdf5f5; }

.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid var(--color-foreground);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.widget-dot {
  width: 8px;
  height: 8px;
  background: var(--color-foreground);
  border-radius: 50%;
  border: 1px solid var(--color-foreground);
}

.hero-widget.widget-lime .widget-dot { background: var(--color-accent); }
.hero-widget.widget-blue .widget-dot { background: #3B82F6; }
.hero-widget.widget-red .widget-dot { background: var(--color-destructive); }

.widget-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-foreground);
}

.widget-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.old-metric {
  font-size: 24px;
  font-weight: 700;
  text-decoration: line-through;
  color: var(--color-secondary);
}

.metric-arrow {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-foreground);
}

.new-metric {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
}

.widget-desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-foreground);
  line-height: 1.4;
}

/* Active security mode */
.security-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  display: inline-block;
}

.security-code {
  background: var(--color-foreground);
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.security-code::-webkit-scrollbar {
  display: none;
}

.security-code code {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #38bdf8;
}

.security-code code:nth-child(2) { color: #a3e635; }
.security-code code:nth-child(3) { color: #f472b6; }

/* Multi format OCR tags */
.lang-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.lang-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  background: #ffffff;
  color: var(--color-foreground);
  padding: 4px 10px;
  border: 1.5px solid var(--color-foreground);
  border-radius: 4px;
}

/* ════════════════════════════════════════════════
   INFO SECTIONS
   ════════════════════════════════════════════════ */
.info-section {
  padding: 80px 6vw;
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-section.dark {
  background: #ffffff;
  border-top: 3px solid var(--color-foreground);
  border-bottom: 3px solid var(--color-foreground);
}

.info-content {
  width: 100%;
  max-width: 800px;
  text-align: left;
}

.info-content h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
  font-weight: 700;
  color: var(--color-foreground);
}

.info-content p {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color-foreground);
}

.info-content .highlight {
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-foreground);
  text-decoration-thickness: 2px;
}

/* ════════════════════════════════════════════════
   STEPS GRID / HOW IT WORKS
   ════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 1100px;
  margin-top: 48px;
}

.step-card {
  background: #ffffff;
  border: 2.5px solid var(--color-foreground);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all 150ms ease;
  position: relative;
}

.step-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0px var(--color-foreground);
}

.step-number {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--color-accent);
  color: #ffffff;
  border: 1.5px solid var(--color-foreground);
  padding: 4px 10px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 1.5px 1.5px 0px var(--color-foreground);
}

.step-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-foreground);
}

.step-card p {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-foreground);
}

/* ════════════════════════════════════════════════
   PRODUCT PORTFOLIO CARD (SoberDocs / DocScan)
   ════════════════════════════════════════════════ */
.product-portfolio-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 3px solid var(--color-foreground);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 40px;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  transition: all 200ms ease;
}

.product-portfolio-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0px var(--color-foreground);
}

.product-portfolio-card > div:first-child {
  border-right: none;
  border-bottom: 3px solid var(--color-foreground);
  padding: 48px 48px 36px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.product-portfolio-card > div:first-child > * {
  max-width: 750px;
}

.product-portfolio-card > div:last-child {
  padding: 48px;
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

/* Checked list styling */
.checkmark-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

/* Web/Mobile Mockup View Toggle */
.mockup-view-toggle {
  display: inline-flex;
  background: var(--color-background);
  border: 2px solid var(--color-foreground);
  padding: 4px;
  border-radius: 100px;
  margin-bottom: 28px;
  box-shadow: 3px 3px 0px var(--color-foreground);
}

.view-toggle-btn {
  background: transparent;
  border: none;
  padding: 8px 20px;
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--color-foreground);
  border-radius: 100px;
  transition: all 150ms ease;
}

.view-toggle-btn.active {
  background: var(--color-accent);
  color: #ffffff;
  border: 1.5px solid var(--color-foreground);
  box-shadow: 1.5px 1.5px 0px var(--color-foreground);
}

.mockup-view-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mockup-view-content {
  width: 100%;
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.mockup-view-content.active {
  display: block;
}

.mockup-view-content-flex {
  width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease forwards;
}

.mockup-view-content-flex.active {
  display: flex;
}

/* 💻 COMPUTER WEB BROWSER MOCKUP */
.browser-mockup {
  background: #ffffff;
  border: 2.5px solid var(--color-foreground);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 850px;
  min-width: 0;
  aspect-ratio: 16/11;
  transition: transform 200ms ease;
}

.browser-header {
  background: var(--color-background);
  border-bottom: 2px solid var(--color-foreground);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 40px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.browser-dots {
  position: absolute;
  left: 16px;
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--color-foreground);
}

.browser-dot.red { background: var(--color-destructive); }
.browser-dot.yellow { background: var(--color-accent); }
.browser-dot.green { background: #22c55e; }

.browser-address {
  background: #ffffff;
  border: 1.5px solid var(--color-foreground);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-foreground);
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 240px;
  justify-content: center;
  box-sizing: border-box;
}

.browser-tabs-container {
  width: 100%;
  background: #ffffff;
  min-width: 0;
}

.browser-tabs {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 8px 12px;
  border-bottom: 2px solid var(--color-foreground);
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.browser-tab {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid var(--color-foreground);
  border-radius: 30px;
  background: var(--color-background);
  color: var(--color-foreground);
  transition: all 150ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.browser-tab.active {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 1.5px 1.5px 0px var(--color-foreground);
  transform: translate(-1px, -1px);
}

.browser-tab:hover:not(.active) {
  background: var(--color-muted);
}

.browser-content {
  flex: 1;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.browser-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.browser-screen-img.active {
  display: block;
}

/* 📱 ANDROID PHONE MOCKUP */
.phone-mockup-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.phone-mockup {
  background: #ffffff;
  border: 3px solid var(--color-foreground);
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 240px;
  aspect-ratio: 9/18;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 90px;
  height: 18px;
  background: var(--color-foreground);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-camera {
  width: 6px;
  height: 6px;
  background: #1e293b;
  border-radius: 50%;
}

.phone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.phone-screen-img.active {
  display: block;
}

.phone-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.phone-tab {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--color-foreground);
  background: #ffffff;
  transition: all 150ms ease;
  position: relative;
}

/* Touch target expansion for mobile accessibility */
.phone-tab::after {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: -16px;
  bottom: -16px;
}

.phone-tab.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* ════════════════════════════════════════════════
   SOBERSIDED LABS (Banki AI Kiosk)
   ════════════════════════════════════════════════ */
#labs {
  background: #1C1917; /* Dark stone contrast */
  border-top: 3px solid var(--color-foreground);
  border-bottom: 3px solid var(--color-foreground);
}

.lab-portfolio-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border: 3px solid var(--color-foreground);
  border-radius: 16px;
  background: #272522; /* Darker card */
  overflow: hidden;
  margin-top: 40px;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  transition: all 200ms ease;
  box-shadow: var(--shadow-lg);
}

.lab-portfolio-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0px var(--color-foreground);
}

.lab-portfolio-card > div:first-child {
  border-right: 3px solid var(--color-foreground);
  padding: 48px;
  min-width: 0;
}

.lab-portfolio-card > div:last-child {
  padding: 48px;
  background: #1C1917;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

/* Voice wave animations */
.voice-wave-container {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  margin-top: 16px;
}

.voice-wave-bar {
  width: 5px;
  height: 100%;
  background: var(--color-accent);
  border: 1px solid var(--color-foreground);
  border-radius: 3px;
  transform-origin: bottom;
  animation: voiceWave 1.2s ease-in-out infinite;
}

.voice-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.voice-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.voice-wave-bar:nth-child(4) { animation-delay: 0.45s; }
.voice-wave-bar:nth-child(5) { animation-delay: 0.6s; }

/* Sketch box graphic */
.sketch-graphics {
  border: 2px dashed var(--color-secondary);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  background: #272522;
}

/* ════════════════════════════════════════════════
   TEAM SECTION (Tekkeys Grid)
   ════════════════════════════════════════════════ */
#team {
  padding: 80px 6vw;
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-heading {
  width: 100%;
  max-width: 1100px;
  text-align: center;
  margin-bottom: 48px;
}

.team-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.team-heading p {
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 500;
  color: var(--color-foreground);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 1100px;
}

.team-card {
  background: #ffffff;
  border: 2.5px solid var(--color-foreground);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: all 200ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px var(--color-foreground);
}

.photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-foreground);
  box-shadow: 3px 3px 0px var(--color-foreground);
  margin-bottom: 20px;
  transition: transform 200ms ease;
}

.team-card:hover .photo-placeholder {
  transform: scale(1.05) rotate(1deg);
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card .name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-foreground);
}

.team-card .role {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 12px;
}

.team-card .bio {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-primary);
  margin-bottom: 16px;
  flex-grow: 1;
}

.team-card a.role {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--color-background);
  color: var(--color-foreground);
  padding: 6px 12px;
  border: 2px solid var(--color-foreground);
  border-radius: 6px;
  box-shadow: 2px 2px 0px var(--color-foreground);
  text-decoration: none;
  transition: all 150ms ease;
}

.team-card a.role:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--color-foreground);
  background: var(--color-accent);
  color: #ffffff;
}

/* ════════════════════════════════════════════════
   FAQ & LISTS
   ════════════════════════════════════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin-top: 32px;
}

.faq-item {
  background: #ffffff;
  border: 2.5px solid var(--color-foreground);
  border-bottom: 2.5px solid var(--color-foreground) !important;
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 150ms ease;
}

.faq-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px var(--color-foreground);
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-foreground) !important;
}

.faq-item p {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-primary) !important;
}

/* ════════════════════════════════════════════════
   FOOTER SECTION
   ════════════════════════════════════════════════ */
footer {
  padding-top: 80px;
  background: #1C1917;
  border-top: 3px solid var(--color-foreground);
}

.footer-cta {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
  padding: 0 24px;
}

.footer-cta h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-cta p {
  font-size: 16px;
  color: var(--color-secondary);
  margin-bottom: 32px;
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 6vw;
  border-top: 3px solid var(--color-foreground);
  background: #272522;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-foreground);
  padding: 6px 14px;
  border: 2px solid #ffffff;
  border-radius: 6px;
  box-shadow: 2px 2px 0px #ffffff;
  text-decoration: none;
  transition: all 150ms ease;
}

.footer-links a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #ffffff;
  background: var(--color-accent);
}

/* ════════════════════════════════════════════════
   MOBILE HAMBURGER MENU & DRAWER
   ════════════════════════════════════════════════ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 12px 8px;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-foreground);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background-color: var(--color-accent);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background-color: var(--color-accent);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-background);
  border-left: 3px solid var(--color-foreground);
  z-index: 105;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 8vw 60px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.mobile-drawer-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-foreground);
  text-decoration: none;
  border: 2.5px solid var(--color-foreground);
  border-radius: 8px;
  padding: 12px 20px;
  background-color: #ffffff;
  box-shadow: 4px 4px 0px var(--color-foreground);
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-links a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-foreground);
}

.mobile-drawer-links a.active-nav {
  background-color: var(--color-accent);
  color: #ffffff;
}

.mobile-drawer-links a.mobile-drawer-cta {
  background-color: var(--color-accent);
  color: #ffffff;
}

body.menu-open {
  overflow: hidden;
}

/* ════════════════════════════════════════════════
   RESPONSIVE DESIGN BREAKPOINTS
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-visual-side {
    justify-content: center;
  }
  .hero-widget-stack {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 6vw;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-content h1 br {
    display: none;
  }
  .hero-cta-group .try-btn {
    margin-left: 0 !important;
  }
  .browser-tab {
    padding: 6px 10px;
    font-size: 10px;
  }
  .browser-mockup {
    aspect-ratio: 4/3;
    min-height: 260px;
  }
  .mockup-view-toggle {
    display: none !important;
  }
  #mockup-web {
    display: none !important;
  }
  #mockup-mobile {
    display: flex !important;
  }
  .product-portfolio-card {
    grid-template-columns: 1fr !important;
  }
  .product-portfolio-card > div:first-child {
    border-right: none !important;
    border-bottom: 3px solid var(--color-foreground);
    padding: 32px 20px;
  }
  .product-portfolio-card > div:last-child {
    padding: 32px 20px;
  }
  .lab-portfolio-card {
    grid-template-columns: 1fr !important;
  }
  .lab-portfolio-card > div:first-child {
    border-right: none !important;
    border-bottom: 3px solid var(--color-foreground);
    padding: 32px 20px;
  }
  .lab-portfolio-card > div:last-child {
    padding: 32px 20px;
  }

  .phone-mockup {
    max-width: 220px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-socials-v2 {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
  }
  .footer-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px 16px !important;
  }
}

@media (max-width: 375px) {
  #hero {
    padding-top: calc(var(--nav-h) + 16px);
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .try-btn {
    width: 100%;
  }

  .phone-mockup {
    max-width: 190px;
  }
}

/* ════════════════════════════════════════════════
   STORY PAGES NEO-BRUTALIST OVERRIDES
   ════════════════════════════════════════════════ */
.story-chapter-card, .sticker-note, .chapter-card {
  background: #ffffff !important;
  border: 2.5px solid var(--color-foreground) !important;
  border-radius: 12px !important;
  box-shadow: 4px 4px 0px var(--color-foreground) !important;
  transition: transform 150ms ease, box-shadow 150ms ease !important;
}

.story-chapter-card:hover, .sticker-note:hover, .chapter-card:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0px var(--color-foreground) !important;
}

.story-chapter-card:active, .sticker-note:active, .chapter-card:active {
  transform: translate(1.5px, 1.5px) !important;
  box-shadow: 1.5px 1.5px 0px var(--color-foreground) !important;
}

.card-action-bar {
  border-top: 2px solid var(--color-foreground) !important;
}

.story-badge, .chapter-label {
  background: var(--color-accent) !important;
  color: #ffffff !important;
  border: 2px solid var(--color-foreground) !important;
  box-shadow: 2px 2px 0px var(--color-foreground) !important;
  border-radius: 40px !important;
  font-family: 'Space Mono', monospace !important;
  font-weight: 700 !important;
}

.story-intro {
  font-weight: 500 !important;
}

.chapter-tagline {
  border-left: 4px solid var(--color-accent) !important;
  font-weight: 600 !important;
  color: var(--color-foreground) !important;
}

.step-dot {
  border: 2px solid var(--color-foreground) !important;
}

.step-dot.active {
  background: var(--color-accent) !important;
}

.chapter-content {
  font-weight: 500 !important;
}

/* ════════════════════════════════════════════════
   STORY PAGES RESPONSIVE OVERRIDES
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body .story-hero {
    padding: 100px 5vw 40px !important;
  }
  
  body .story-intro {
    margin-top: 20px !important;
  }

  body .story-grid-section {
    padding: 20px 5vw 60px !important;
  }

  body .story-grid {
    gap: 20px !important;
  }

  body .story-chapter-card {
    padding: 24px 20px !important;
  }

  body .story-chapter-card p {
    margin-bottom: 20px !important;
  }

  body .story-callout {
    padding: 60px 5vw !important;
  }

  body .callout-box {
    padding: 32px 20px !important;
  }

  body .callout-box p {
    margin-bottom: 20px !important;
  }

  body .chapter-container {
    padding: 100px 5vw 60px !important;
  }

  body .chapter-header {
    margin-bottom: 30px !important;
  }

  body .chapter-tagline {
    margin-bottom: 24px !important;
    padding-left: 14px !important;
  }

  body .sticker-note {
    padding: 20px !important;
    margin: 32px 0 !important;
  }

  body .chapter-stepper {
    margin-bottom: 32px !important;
  }

  body .story-grid {
    grid-template-columns: 1fr !important;
  }

  body .chapter-nav-grid {
    grid-template-columns: 1fr !important;
    margin-top: 48px !important;
    padding-top: 32px !important;
    gap: 16px !important;
  }
  
  body .nav-card {
    min-height: 100px !important;
    padding: 16px 20px !important;
  }
}

@media (max-width: 480px) {
  body .chapter-title {
    font-size: 28px !important;
  }
  body .story-hero h1 {
    font-size: 28px !important;
  }
  .browser-tabs {
    gap: 3px;
    padding: 6px 8px;
  }
  .browser-tab {
    padding: 5px 6px;
    font-size: 9px;
  }
}

