/* ==========================================================================
   DriveFusion Landing Page - Kiotso Design System
   Reference: https://hub.kiotso.com/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --ink: #000f1d;
  --ink-soft: #31404e;
  --paper: #f7f7f7;
  --ice: #4da2ff;
  --mint: #55db9c;
  --blue: #e9ccff;
  --silver: #f79f4d;
  --teal-bright: #6de6f8;
  --yellow: #ffd731;
  --orange: #ff7a00;
  --purple: #5c4ade;
  --pink: #e9ccff;
  --line: rgba(0, 15, 29, 0.28);
  --card-bg: #ffffff;
  --header-bg: rgba(247, 247, 247, 0.85);
  --grid-line: rgba(77, 162, 255, 0.18);
  
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html[data-theme="dark"] {
  --ink: #edf5fc;
  --ink-soft: #a8bac7;
  --paper: #07131f;
  --line: rgba(226, 239, 248, 0.25);
  --card-bg: #0d1b28;
  --header-bg: rgba(8, 21, 33, 0.85);
  --grid-line: rgba(109, 230, 248, 0.12);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  line-height: 1.5;
  background-color: var(--paper);
  color: var(--ink);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

section[id] {
  scroll-margin-top: 104px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 10px 14px;
  background: var(--yellow);
  color: #000f1d;
  border: 2px solid #000f1d;
  border-radius: 10px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Container Shell */
.shell {
  width: min(1380px, 100% - 64px);
  margin-inline: auto;
}

/* Typography & Accent Dot */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.accent-dot {
  color: var(--orange);
}

.eyebrow {
  color: var(--purple);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-theme="dark"] .eyebrow {
  color: var(--teal-bright);
}

.status-dot {
  background: var(--mint);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 2px rgba(85, 219, 156, 0.25);
}

.status-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(85, 219, 156, 0.7);
  animation: status-signal 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
}

@keyframes status-signal {
  0% { opacity: 0.8; transform: scale(0.55); }
  72%, 100% { opacity: 0; transform: scale(2.25); }
}

/* Glassmorphism Header */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1380px, calc(100% - 48px));
  z-index: 1000;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  background: var(--header-bg);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 68px;
  padding: 0 16px 0 22px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 12px 38px rgba(0, 15, 29, 0.08);
  transition: all 0.3s ease;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-brand-link:hover {
  color: var(--ice);
}

.site-header .wordmark {
  min-height: 44px;
}

.brand-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--yellow);
  color: #000f1d;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  letter-spacing: 0.05em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a {
  transition: color 0.18s ease;
}

.desktop-nav a:hover {
  color: var(--ice);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 800;
}

.icon-btn:hover {
  background: var(--yellow);
  color: #000f1d;
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* Neo-brutalist Buttons */
.primary-button, .secondary-button, .buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  text-decoration: none;
}

html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .buy-button {
  border-color: var(--ink);
}

.primary-button {
  min-height: 54px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--ice);
}

html[data-theme="dark"] .primary-button {
  background: var(--ice);
  color: #000f1d;
  box-shadow: 6px 6px 0 var(--mint);
}

.primary-button:hover {
  background: var(--yellow);
  color: #000f1d;
  box-shadow: 8px 8px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.secondary-button {
  min-height: 54px;
  padding: 0 26px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.secondary-button:hover {
  background: var(--mint);
  color: #000f1d;
  box-shadow: 7px 7px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.buy-button {
  min-height: 44px;
  padding: 0 20px;
  background: var(--ice);
  color: #000f1d;
  border-width: 1.5px;
  font-size: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.buy-button:hover {
  background: var(--mint);
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-2px, -2px);
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: calc(100vh - 40px);
  padding-top: 120px;
  padding-bottom: 64px;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(#000 20%, transparent 95%);
  -webkit-mask-image: linear-gradient(#000 20%, transparent 95%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-copy h1 {
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
}

.hero-description {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1.5px dashed var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* HERO ART WORK & STAGE */
.hero-art {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.light-orbit {
  position: absolute;
  width: 100%;
  height: 520px;
  border-radius: 36px;
  border: 1.5px solid var(--ink);
  background: linear-gradient(135deg, rgba(77, 162, 255, 0.12) 0%, rgba(85, 219, 156, 0.12) 50%, rgba(233, 204, 255, 0.15) 100%), var(--card-bg);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.1), 12px 14px 0 var(--ink);
  overflow: hidden;
}

html[data-theme="dark"] .light-orbit {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.04), 12px 14px 0 rgba(0, 0, 0, 0.6);
}

.orbit-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

/* 3D Drive Box Container */
.drive-stage {
  position: relative;
  width: 90%;
  height: 430px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mockup-window {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 8px 10px 0 var(--ink);
  overflow: hidden;
  transition: transform 0.3s ease;
}

html[data-theme="dark"] .mockup-window {
  background: #091929;
  border-color: #000f1d;
  box-shadow: 8px 10px 0 #000f1d;
}

.window-header {
  height: 42px;
  background: rgba(0, 15, 29, 0.06);
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

html[data-theme="dark"] .window-header {
  background: rgba(255, 255, 255, 0.05);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: inline-block;
}

.window-dots i:nth-child(1) { background: #ff5f56; }
.window-dots i:nth-child(2) { background: #ffbd2e; }
.window-dots i:nth-child(3) { background: #27c93f; }

.window-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.window-body {
  padding: 24px;
}

.speed-meter-box {
  background: var(--card-bg);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}

.speed-meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}

.speed-tag {
  background: var(--mint);
  color: #000f1d;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--ink);
}

.progress-track {
  height: 12px;
  background: rgba(0, 15, 29, 0.08);
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  overflow: hidden;
  position: relative;
}

html[data-theme="dark"] .progress-track {
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  height: 100%;
  width: 84%;
  background: linear-gradient(90deg, var(--ice), var(--mint));
  border-radius: 999px;
  animation: pulse-progress 2s ease-in-out infinite alternate;
}

@keyframes pulse-progress {
  0% { width: 78%; }
  100% { width: 92%; }
}

.active-threads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thread-pill {
  background: var(--card-bg);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 3px 3px 0 var(--ink);
}

.thread-pill .t-status {
  font-size: 10px;
  color: var(--mint);
  font-weight: 800;
}

/* Floating Badges */
.floating-chip {
  position: absolute;
  z-index: 10;
  background: var(--yellow);
  color: #000f1d;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  animation: chip-float 4.5s ease-in-out infinite;
}

.chip-1 {
  top: 20px;
  left: -15px;
  background: var(--mint);
  transform: rotate(-6deg);
}

.chip-2 {
  bottom: 25px;
  right: -15px;
  background: var(--pink);
  transform: rotate(6deg);
  animation-delay: -1.5s;
}

.chip-3 {
  top: 40px;
  right: 10px;
  background: var(--ice);
  color: #000f1d;
  transform: rotate(4deg);
  animation-delay: -3s;
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

/* CORE HIGHLIGHTS SECTION (Ecosystem Grid Style) */
.section {
  padding-block: 84px;
  border-bottom: 2px solid var(--ink);
  position: relative;
}

.highlights-section {
  background: linear-gradient(var(--grid-line) 1px, transparent 1px),
              linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
              var(--paper);
  background-size: 64px 64px;
}

.section-header {
  max-width: 800px;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  margin-bottom: 14px;
}

.section-header p {
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--ink-soft);
  line-height: 1.5;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s;
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .feature-card {
  color: #000f1d;
  border-color: #000f1d;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 10px 12px 0 var(--ink);
}

.feature-card.card-ice { background: var(--ice); }
.feature-card.card-mint { background: var(--mint); }
.feature-card.card-pink { background: var(--pink); }
.feature-card.card-silver { background: var(--silver); }

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: rgba(0, 15, 29, 0.7);
}

.card-num {
  font-size: 16px;
  font-weight: 800;
}

.card-tag {
  background: var(--yellow);
  color: #000f1d;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-visual {
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  height: 110px;
  margin-block: 14px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .card-visual {
  background: rgba(247, 247, 247, 0.9);
  color: #000f1d;
}

.card-copy h3 {
  font-size: 24px;
  min-height: 72px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  color: #000f1d;
}

.card-copy p {
  font-size: 14px;
  color: rgba(0, 15, 29, 0.8);
  line-height: 1.5;
  min-height: 42px;
}

/* INTERACTIVE DEMO & FEATURES DETAILED SHOWCASE */
.dark-showcase {
  background: #000f1d;
  color: #ffffff;
  background-image: linear-gradient(rgba(109, 230, 248, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(109, 230, 248, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
}

html[data-theme="dark"] .dark-showcase {
  background: #040c16;
  color: #ffffff;
}

.dark-showcase h2, .dark-showcase h3 {
  color: #ffffff !important;
}

.dark-showcase .section-header p {
  color: rgba(255, 255, 255, 0.75) !important;
}

.feature-detailed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.detail-box {
  background: #071524;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 36px;
  color: #ffffff;
  box-shadow: 8px 8px 0 var(--ice);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme="dark"] .detail-box {
  background: #0a1826;
  border-color: rgba(226, 239, 248, 0.25);
  color: #ffffff;
  box-shadow: 8px 8px 0 var(--mint);
}

.detail-box:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 var(--mint);
}

.detail-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--yellow);
  border: 2px solid #000f1d;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 4px 4px 0 #000f1d;
}

.detail-box h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #ffffff !important;
}

.detail-box p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff !important;
}

.bullet-list li span.tick {
  color: var(--mint);
  font-weight: 800;
  font-size: 16px;
}

/* CHECKOUT BANNER SECTION */
.checkout-section {
  background: var(--paper);
}

.checkout-banner {
  background: #000f1d;
  color: #ffffff;
  border: 2px solid #000f1d;
  border-radius: 24px;
  padding: 56px 36px;
  text-align: center;
  box-shadow: 10px 10px 0 var(--mint);
}

html[data-theme="dark"] .checkout-banner {
  background: #081726;
  border: 2px solid var(--ice);
  box-shadow: 10px 10px 0 var(--ice);
  color: #ffffff;
}

.checkout-banner-inner {
  max-width: 640px;
  margin: 0 auto;
}

.checkout-banner .banner-eyebrow {
  justify-content: center;
  color: var(--teal-bright);
}

.checkout-banner h2 {
  color: #ffffff !important;
  font-size: clamp(32px, 3.8vw, 48px);
  margin-bottom: 16px;
}

.checkout-banner .banner-desc {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 16px;
  margin-bottom: 28px;
}

.checkout-banner .banner-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* INTERACTIVE SCANNER SIMULATOR */
.scanner-demo-container {
  background: var(--card-bg);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 10px 10px 0 var(--yellow);
  margin-top: 40px;
}

.scanner-demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

html[data-theme="dark"] .scanner-demo-container {
  box-shadow: 10px 10px 0 var(--ice);
}

.scanner-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.scanner-input-group .primary-button {
  align-self: stretch;
  min-width: 150px;
}

.scanner-input {
  flex: 1;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  min-height: 96px;
  line-height: 1.55;
  resize: vertical;
}

.scanner-input:focus {
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(77, 162, 255, 0.25);
}

.scanner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -10px 0 14px;
  color: var(--ink-soft);
  font-size: 12px;
}

#demo-total-count {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 800;
}

.scanner-results {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  min-height: 180px;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
  animation: slide-down 0.3s ease-out;
}

.result-primary,
.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-primary {
  min-width: 0;
}

.result-primary > span:last-child {
  overflow-wrap: anywhere;
}

.result-meta {
  flex: 0 0 auto;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 12px;
}

.result-status {
  color: #087a49;
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="dark"] .result-status {
  color: var(--mint);
}

.scanner-empty {
  min-height: 138px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 700;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.link-type-tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid var(--ink);
}

.tag-drive { background: var(--ice); color: #000f1d; }
.tag-sheet { background: var(--mint); color: #000f1d; }
.tag-external { background: var(--pink); color: #000f1d; }

/* WHY CHOOSE US (KIOTSO STANDARD PANEL) */
.why-panel {
  background: linear-gradient(135deg, var(--ice), var(--teal-bright));
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 64px;
  box-shadow: 12px 12px 0 var(--ink);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  color: #000f1d;
}

.why-panel h2 {
  font-size: clamp(36px, 4vw, 56px);
  color: #000f1d;
  line-height: 1.08;
  margin-bottom: 16px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.why-num {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

/* TARGET AUDIENCE GRID */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.audience-card {
  background: var(--card-bg);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 6px 6px 0 var(--mint);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--ink);
}

.audience-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.audience-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.audience-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* FOOTER */
.site-footer {
  border-top: 2px solid var(--ink);
  padding-block: 48px;
  background: var(--paper);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-copy {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  gap: 12px;
  justify-self: end;
}

/* (Responsive rules consolidated at bottom of file) */

/* Additions for License Key Model & Multi-platform Roadmap */
.hero-bottom-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 24px;
  position: relative;
  z-index: 10;
}

.platform-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 0;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.pill-win { background: var(--mint); color: #000f1d; }
.pill-mac { background: var(--paper); color: var(--ink-soft); border-style: dashed; }
.pill-linux { background: var(--paper); color: var(--ink-soft); border-style: dashed; }
.pill-web { background: var(--paper); color: var(--ink-soft); border-style: dashed; }

.pill-status {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 15, 29, 0.1);
}

/* Pricing & License Key Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--card-bg);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 8px 8px 0 var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured-plan {
  background: linear-gradient(135deg, var(--card-bg), rgba(255, 215, 49, 0.15));
  border-color: var(--ink);
  box-shadow: 10px 10px 0 var(--ice);
}

.pricing-card.agency-plan {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) max-content minmax(0, 1.6fr) minmax(140px, 180px);
  align-items: center;
  gap: 28px;
  padding: 24px 32px;
  min-width: 0;
}

.agency-plan .pricing-header {
  min-height: 0;
}

.agency-plan .pricing-header p,
.agency-plan .price-tag,
.agency-plan .feature-check-list {
  margin-bottom: 0;
}

.agency-plan .price-tag {
  white-space: nowrap;
}

.agency-plan .feature-check-list {
  min-height: 0;
  min-width: 0;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.agency-plan .feature-check-list li {
  flex: 0 0 auto;
}

.agency-plan > a {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  justify-self: end;
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .pricing-card.featured-plan {
  box-shadow: 10px 10px 0 var(--mint);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 0 var(--ink);
}

.pricing-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--yellow);
  color: #000f1d;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
}

.pricing-header h3 {
  font-size: 22px;
  min-height: 27px;
  margin-bottom: 8px;
}

.pricing-header p {
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 20px;
  margin-bottom: 20px;
}

.price-tag {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.price-tag span.unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.feature-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 600;
}

.feature-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-check-list li span.check {
  color: var(--mint);
  font-weight: 800;
}

/* Key Simulator Box */
.key-sim-box {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 24px;
  margin-top: 32px;
  box-shadow: 6px 6px 0 var(--pink);
}

.key-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 15px;
}

.key-sim-input-wrapper {
  display: flex;
  gap: 10px;
}

.key-sim-input {
  flex: 1;
  background: var(--card-bg);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.faq-item {
  background: var(--card-bg);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 0;
  box-shadow: 4px 4px 0 var(--ink);
  transition: all 0.2s ease;
  overflow: hidden;
}

.faq-item:hover {
  box-shadow: 6px 6px 0 var(--ink);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  padding: 20px 24px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer[hidden] {
  display: none;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.2s ease;
}

/* ============================================
   RESPONSIVE DESIGN — ALL BREAKPOINTS
   ============================================ */

/* --- TABLET (≤ 1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-copy .eyebrow {
    justify-content: center;
  }

  .hero-description {
    max-width: 600px;
  }

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

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

  .feature-detailed-grid {
    grid-template-columns: 1fr;
  }

  .why-panel {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card.featured-plan {
    transform: none;
  }

  .pricing-card.agency-plan {
    grid-column: auto;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 32px;
  }

  .agency-plan .pricing-header p,
  .agency-plan .price-tag,
  .agency-plan .feature-check-list {
    margin-bottom: 20px;
  }

  .agency-plan .feature-check-list {
    min-height: 120px;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .agency-plan > a {
    width: 100% !important;
  }

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

}

/* --- MOBILE (≤ 768px) --- */
@media (max-width: 768px) {
  .shell {
    width: calc(100% - 32px);
    max-width: 640px;
  }

  .section {
    padding-block: 56px;
  }

  .section-header h2 {
    font-size: clamp(26px, 6vw, 40px);
  }

  /* Header */
  .desktop-nav {
    display: none;
  }

  .site-header {
    height: 56px;
    padding: 0 12px;
    top: 8px;
    width: calc(100% - 24px);
    grid-template-columns: 1fr auto;
    justify-content: space-between;
    border-radius: 14px;
  }

  .buy-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 10px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  /* Hero */
  .hero {
    padding-top: 86px;
    padding-bottom: 48px;
    min-height: auto;
  }

  .hero-copy {
    text-align: left;
    align-items: flex-start;
  }

  .hero-copy .eyebrow {
    justify-content: flex-start;
    font-size: 10px;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 7.5vw, 42px);
  }

  .hero-copy h1 br {
    display: none;
  }

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

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }

  /* Hero Art / Mockup */
  .hero-art {
    min-height: 340px;
    overflow: hidden;
  }

  .light-orbit {
    height: 320px;
    border-radius: 20px;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.08), 5px 6px 0 var(--ink);
  }

  .drive-stage {
    height: 270px;
    width: 92%;
  }

  .mockup-window {
    border-radius: 14px;
    box-shadow: 5px 6px 0 var(--ink);
  }

  .window-header {
    height: 36px;
    padding: 0 10px;
    gap: 6px;
  }

  .window-dots {
    gap: 5px;
  }

  .window-dots i {
    width: 8px;
    height: 8px;
  }

  .window-title {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .window-title svg {
    width: 10px;
    height: 9px;
  }

  .window-header > div:last-child {
    font-size: 8px !important;
  }

  .window-body {
    padding: 12px;
  }

  .speed-meter-box {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  .speed-meter-header {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .speed-tag {
    font-size: 9px;
    padding: 2px 6px;
  }

  .progress-track {
    height: 8px;
  }

  .active-threads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .thread-pill {
    padding: 6px;
    font-size: 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .thread-pill .t-status {
    font-size: 9px;
  }

  /* Floating Chips — hide on mobile to prevent overflow */
  .floating-chip {
    display: none;
  }

  /* Hero Bottom Bar (Platform Pills) */
  .hero-bottom-bar {
    justify-content: center;
    margin-top: 20px;
  }

  .platform-pills {
    justify-content: center;
    gap: 6px;
  }

  .platform-pill {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 1px 1px 0 var(--ink);
  }

  .pill-status {
    font-size: 8px;
    padding: 1px 4px;
  }

  /* Highlight Cards */
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  /* Showcase */
  .detail-box {
    padding: 24px;
  }

  .detail-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 14px;
  }

  .detail-box h3 {
    font-size: 18px;
  }

  /* Scanner Demo */
  .scanner-demo-container {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .scanner-demo-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .preset-actions {
    width: 100%;
  }

  .preset-button {
    flex: 1 1 150px;
  }

  .scanner-input-group {
    flex-direction: column;
  }

  .scanner-input-group .primary-button {
    width: 100%;
  }

  .scanner-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  /* Pricing */
  .pricing-grid {
    max-width: 100%;
  }

  .pricing-card {
    padding: 24px;
  }

  .price-tag {
    font-size: 28px;
  }

  /* Audience */
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    padding: 20px;
  }

  /* Checkout Banner */
  .checkout-banner {
    padding: 36px 20px;
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--mint);
  }

  .checkout-banner h2 {
    font-size: clamp(24px, 7vw, 34px) !important;
  }

  /* FAQ */
  .faq-question {
    padding: 16px 18px;
    font-size: 14px;
    gap: 8px;
  }

  .faq-answer {
    padding: 0 18px 16px;
    font-size: 13px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    justify-self: center;
  }
}

/* --- SMALL MOBILE (≤ 480px) --- */
@media (max-width: 480px) {
  .shell {
    width: calc(100% - 24px);
  }

  .site-header {
    width: calc(100% - 20px);
    padding: 0 10px;
    height: 56px;
  }

  .wordmark {
    font-size: 14px;
  }

  .wordmark span {
    display: none;
  }

  .wordmark svg {
    width: 16px;
    height: 14px;
  }

  .buy-button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 8vw, 38px);
  }

  .hero-art {
    min-height: 280px;
  }

  .light-orbit {
    height: 260px;
  }

  .drive-stage {
    height: 220px;
    width: 95%;
  }

  .speed-meter-header span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }

  .platform-pill {
    font-size: 9px;
    padding: 3px 6px;
  }

  .pill-status {
    font-size: 7px;
  }

  .section {
    padding-block: 40px;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .result-primary,
  .result-meta {
    width: 100%;
    justify-content: space-between;
  }

  #kiotso-toast {
    right: 16px !important;
    bottom: 16px !important;
    left: 16px !important;
    max-width: none !important;
  }

  .checkout-banner {
    padding: 28px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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