/* ==========================================================================
   MeowX & LingoFlow — Huashu Design System & Spring Physics
   Aesthetics: Deep Cyber-Dark, Glassmorphism, FeralUI Spring Curves
   ========================================================================== */

:root {
  --bg-space: #07090e;
  --bg-surface: #0e121a;
  --bg-surface-elevated: #151a26;
  --bg-card: rgba(17, 22, 33, 0.78);
  --bg-card-hover: rgba(23, 30, 45, 0.88);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(249, 115, 22, 0.45);
  --border-cyan: rgba(6, 182, 212, 0.35);
  --border-emerald: rgba(16, 185, 129, 0.35);
  
  --orange: #f97316;
  --orange-light: #fb923c;
  --orange-glow: rgba(249, 115, 22, 0.3);
  --cyan: #06b6d4;
  --cyan-light: #38bdf8;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --emerald: #10b981;
  --yellow: #f59e0b;
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
  
  --container-max: min(1200px, calc(100vw - 40px));
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px rgba(249, 115, 22, 0.22);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-space);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Canvas Grid Pattern Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Subtle Ambient Glows */
body::after {
  content: "";
  position: fixed;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: var(--container-max);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--orange);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s var(--ease-spring);
}
.skip-link:focus {
  top: 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 10, 15, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange) 0%, #ea580c 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
  transform: rotate(-3deg);
  transition: transform 0.3s var(--ease-spring);
}

.brand:hover .brand-mark {
  transform: rotate(4deg) scale(1.06);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-name span {
  line-height: 1.1;
  color: #fff;
}

.brand-name small {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.main-nav a {
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffffff;
}

.nav-companion {
  color: var(--cyan-light) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.nav-companion:hover {
  color: #ffffff !important;
  text-shadow: 0 0 16px rgba(6, 182, 212, 0.6);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: #ffffff;
  padding: 11px 9px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-button span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: 0.25s ease;
}

/* ==========================================================================
   Buttons (FeralUI Physics + Huashu)
   ========================================================================== */
.btn-physics {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-fluid), filter 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-physics:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-physics:active {
  transform: translateY(1px) scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 14px 38px rgba(249, 115, 22, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan) 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.35);
}

.btn-cyan:hover {
  filter: brightness(1.1);
  box-shadow: 0 14px 38px rgba(6, 182, 212, 0.45);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13.5px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 880px;
  padding-top: 170px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
}

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

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.28);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--orange-light);
  margin-bottom: 24px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

h1.hero-title {
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

h1.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--orange) 0%, #facc15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.trust-badges svg {
  color: var(--emerald);
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Hero Visual — Interactive Manga Before/After Phone
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 340px;
  border-radius: 44px;
  background: #090c12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 35px 80px rgba(0, 0, 0, 0.7),
    0 0 0 4px #1b202c,
    0 0 50px rgba(249, 115, 22, 0.15);
  padding: 12px;
  position: relative;
  transform: rotate(2deg);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.phone-mockup:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 
    0 40px 90px rgba(0, 0, 0, 0.8),
    0 0 0 4px #262c3d,
    0 0 60px rgba(249, 115, 22, 0.25);
}

.phone-notch {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.phone-notch-bar {
  width: 70px;
  height: 14px;
  background: #000000;
  border-radius: 20px;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #e5e3dc;
  height: 520px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Manga Page Layout Simulation */
.manga-canvas {
  flex: 1;
  display: grid;
  grid-template-rows: 1.1fr 0.9fr;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  background: #d4d0c7;
}

.manga-panel {
  background: #f4f2eb;
  border: 2px solid #1a1a1a;
  position: relative;
  overflow: hidden;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}

.panel-hero {
  grid-column: 1 / 3;
}

.panel-left {
  grid-column: 1 / 2;
}

.panel-right {
  grid-column: 2 / 3;
}

/* Ink artwork textures (CSS procedural) */
.manga-ink-bg {
  position: absolute;
  inset: 0;
  opacity: 0.85;
}

.ink-speedlines {
  background: repeating-radial-gradient(circle at 75% 40%, #ffffff 0 5px, #1a1a1a 6px 7px, #e2ded5 8px 12px);
}

.ink-character {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 170px;
  height: 220px;
  border-radius: 40% 50% 20% 30%;
  background: 
    radial-gradient(circle at 45% 35%, #fff 0 12%, #111 13% 16%, transparent 17%),
    radial-gradient(circle at 65% 35%, #fff 0 12%, #111 13% 16%, transparent 17%),
    radial-gradient(ellipse at 50% 65%, #1a1a1a 0 35%, transparent 36%),
    linear-gradient(135deg, #bbb 0%, #222 100%);
  border: 3px solid #111;
  transform: rotate(-5deg);
}

.ink-shadow {
  background: repeating-linear-gradient(45deg, #111 0 2px, transparent 3px 6px);
}

.ink-screentone {
  background: radial-gradient(#111 15%, transparent 16%);
  background-size: 6px 6px;
  opacity: 0.25;
}

/* Speech Bubbles */
.speech-bubble {
  position: absolute;
  background: #ffffff;
  border: 2px solid #111111;
  color: #111111;
  border-radius: 20px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
  z-index: 10;
}

.speech-bubble:hover {
  transform: scale(1.06);
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.speech-bubble.active-bubble {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35);
}

.bubble-1 {
  top: 16px;
  left: 14px;
  max-width: 140px;
}

.bubble-2 {
  bottom: 16px;
  left: 10px;
  max-width: 110px;
  font-size: 12px;
}

.bubble-3 {
  top: 14px;
  right: 12px;
  max-width: 115px;
  font-size: 12px;
}

.bubble-text-original {
  display: block;
}

.bubble-text-translated {
  display: none;
  color: #0f172a;
}

/* Mode translated state */
.phone-screen.mode-translated .bubble-text-original {
  display: none;
}
.phone-screen.mode-translated .bubble-text-translated {
  display: block;
  animation: bubble-fade 0.25s var(--ease-spring);
}

@keyframes bubble-fade {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Floating MeowX Cat Bubble Trigger */
.floating-cat-orb {
  position: absolute;
  right: 12px;
  top: 48%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, #ea580c 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  z-index: 20;
  animation: orb-float 3s ease-in-out infinite;
  transition: transform 0.2s var(--ease-spring);
}

.floating-cat-orb:hover {
  transform: scale(1.15);
}

.floating-cat-orb svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Phone Bottom Floating Bar */
.phone-bottom-bar {
  padding: 10px 14px;
  background: #0f141f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: var(--orange-light);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.demo-toggle-btn:hover {
  background: var(--orange);
  color: #ffffff;
}

.phone-scan-indicator {
  font-size: 11px;
  color: var(--cyan-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Floating Interactive In-Place Editor Card */
.interactive-inspector {
  position: absolute;
  left: -40px;
  bottom: -20px;
  width: 290px;
  background: rgba(14, 18, 27, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--orange);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 30;
  animation: inspector-in 0.3s var(--ease-spring);
}

.inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.inspector-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-light);
}

.inspector-engine {
  font-size: 10px;
  color: var(--cyan-light);
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.inspector-ocr {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

.inspector-input-wrap {
  display: flex;
  gap: 6px;
}

.inspector-input {
  flex: 1;
  background: #19202f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12.5px;
  border-radius: 8px;
  padding: 6px 10px;
  outline: none;
}

.inspector-input:focus {
  border-color: var(--orange);
}

.inspector-apply-btn {
  background: var(--orange);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   Highlight Strip
   ========================================================================== */
.highlight-strip {
  border-block: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 24px 0;
}

.strip-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}

.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-right: 1px solid var(--border-subtle);
  padding: 0 10px;
}

.strip-item:last-child {
  border-right: none;
}

.strip-item strong {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 700;
}

.strip-item span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Headers & Bento Grid
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-block;
  margin-bottom: 10px;
}

h2.section-title {
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16.5px;
  color: var(--text-secondary);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 34px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.bento-col-8 {
  grid-column: span 8;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-col-12 {
  grid-column: span 12;
}

.bento-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: inline-block;
}

.bento-card h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #ffffff;
}

.bento-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Pipeline visualization inside Bento Card 1 */
.tech-pipeline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.tech-node {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.tech-node.highlight-orange {
  border-color: var(--border-active);
  color: var(--orange-light);
}

.tech-node.highlight-cyan {
  border-color: var(--border-cyan);
  color: var(--cyan-light);
}

.tech-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

/* Comparison Box in Bento Card 2 */
.comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.comparison-item {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
}

.comparison-item.good {
  border-color: var(--border-emerald);
  background: rgba(16, 185, 129, 0.05);
}

.comparison-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.comparison-item.bad .comparison-label {
  color: #ef4444;
}

.comparison-item.good .comparison-label {
  color: var(--emerald);
}

.comparison-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

/* Live Interactive In-Place Edit Card in Bento 4 */
.inplace-demo-widget {
  background: #f4f2eb;
  color: #1a1a1a;
  padding: 16px 20px;
  border-radius: 14px;
  border: 2px solid #1a1a1a;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  max-width: 480px;
}

.inplace-demo-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 6px;
}

.inplace-demo-text {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
}

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--orange);
  animation: blink 1s infinite;
}

/* ==========================================================================
   Quota & Free Model Section (40 Free Daily Scans)
   ========================================================================== */
.quota-section {
  background: linear-gradient(180deg, var(--bg-space) 0%, var(--bg-surface) 50%, var(--bg-space) 100%);
}

.quota-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.quota-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 38px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.quota-card.featured {
  border-color: var(--border-active);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  background: radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.12) 0%, transparent 60%), var(--bg-card);
}

.quota-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.quota-badge.orange {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange-light);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.quota-badge.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-light);
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.quota-card h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.quota-number {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  margin: 12px 0 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.quota-number small {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.quota-features {
  list-style: none;
  margin-bottom: 30px;
}

.quota-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.quota-features li svg {
  color: var(--emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   Download Section
   ========================================================================== */
.download-section {
  padding: 80px 0;
}

.download-box {
  background: radial-gradient(circle at 0% 100%, rgba(249, 115, 22, 0.18) 0%, transparent 40%), var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.download-copy h2 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.download-copy p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.apk-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.download-apk-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--orange) 0%, #ea580c 100%);
  color: #ffffff;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(249, 115, 22, 0.4);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease;
  width: max-content;
}

.download-apk-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 44px rgba(249, 115, 22, 0.55);
}

.download-apk-btn svg {
  width: 28px;
  height: 28px;
}

.download-apk-text {
  display: flex;
  flex-direction: column;
}

.download-apk-text strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.download-apk-text small {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 500;
}

/* SHA-256 Box */
.sha-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
}

.sha-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.sha-value {
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 11.5px;
  color: var(--cyan-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.copy-sha-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.copy-sha-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--cyan);
}

.download-notice {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Installation Steps Timeline */
.install-steps {
  border-left: 2px solid var(--border-subtle);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.install-step-item {
  position: relative;
}

.install-step-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--orange);
}

.install-step-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.install-step-item p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   How It Works & Tabs
   ========================================================================== */
.tabs-control {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn[aria-selected="true"] {
  background: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.35);
}

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

.guide-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.guide-step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange-light);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 18px;
}

.guide-step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.guide-step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Companion App: LingoFlow Section
   ========================================================================== */
.companion-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%), var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 28px;
  padding: 44px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.companion-info {
  max-width: 650px;
}

.companion-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.18);
  color: var(--cyan-light);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.companion-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.companion-info p {
  font-size: 15.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--orange-light);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--orange);
  transition: transform 0.25s var(--ease-spring);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Privacy Page Specific Styles
   ========================================================================== */
.privacy-page-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 130px 20px 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-light);
  margin-bottom: 24px;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

.privacy-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.privacy-card h1 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 8px;
}

.privacy-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.privacy-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.privacy-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.privacy-card ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.privacy-card li {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}

.privacy-card strong {
  color: var(--text-main);
}

.privacy-callout {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: #fdba74;
  line-height: 1.6;
}

.privacy-card a {
  color: var(--cyan-light);
  text-decoration: underline;
}

.privacy-card a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #06080c;
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-col p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 16px;
}

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

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--orange-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Toast Feedback */
.toast-msg {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-cyan);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease-spring), opacity 0.25s ease;
  z-index: 9999;
}

.toast-msg.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .menu-button {
    display: flex;
  }
  
  .main-nav {
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
    background: rgba(14, 18, 26, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    display: none;
    box-shadow: var(--shadow-card);
  }
  
  .main-nav.open {
    display: flex;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-copy {
    align-items: center;
  }
  
  .hero-description {
    margin-inline: auto;
  }
  
  .hero-cta-group,
  .trust-badges {
    justify-content: center;
  }
  
  .hero-visual {
    margin-top: 30px;
  }
  
  .interactive-inspector {
    left: 50%;
    transform: translateX(-50%);
    bottom: -30px;
  }
  
  .bento-col-8,
  .bento-col-4,
  .bento-col-6 {
    grid-column: span 12;
  }
  
  .strip-items {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .strip-item:nth-child(3) {
    border-right: none;
  }
  
  .strip-item:nth-child(4),
  .strip-item:nth-child(5) {
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
  }
  
  .quota-grid {
    grid-template-columns: 1fr;
  }
  
  .download-box {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    gap: 40px;
  }
  
  .guide-step-grid {
    grid-template-columns: 1fr;
  }
  
  .companion-banner {
    flex-direction: column;
    text-align: center;
    padding: 34px 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 70px 0;
  }
  
  .hero {
    padding-top: 130px;
  }
  
  h1.hero-title {
    font-size: 38px;
  }
  
  .phone-mockup {
    width: 300px;
    transform: none;
  }
  
  .interactive-inspector {
    width: 90%;
    left: 5%;
    transform: none;
  }
  
  .strip-items {
    grid-template-columns: 1fr 1fr;
  }
  
  .strip-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
  }
  
  .strip-item:last-child {
    grid-column: 1 / 3;
    border-bottom: none;
  }
  
  .sha-box {
    flex-direction: column;
    align-items: stretch;
  }
  
  .download-apk-btn {
    width: 100%;
    justify-content: center;
  }
  
  .privacy-card {
    padding: 24px 18px;
  }
}
