/* ============================================================
   BLUEPRINT DESIGN SYSTEM v2.0 — Tanoshii Computing
   Improved: Accessible, Modern, Consistent
   ============================================================ */

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

/* --- Design Tokens --- */
:root {
  /* Background Scale */
  --bp-bg: #0a1628;
  --bp-paper: #0d1f3c;
  --bp-surface: #111f38;
  --bp-surface-hover: #162440;
  
  /* Border Scale */
  --bp-line-subtle: rgba(100, 180, 255, 0.15);
  --bp-line: rgba(100, 180, 255, 0.25);
  --bp-line-hover: rgba(0, 212, 255, 0.35);
  --bp-line-focus: rgba(0, 212, 255, 0.60);
  
  /* Accent Colors */
  --bp-cyan: #00d4ff;
  --bp-cyan-dim: rgba(0, 212, 255, 0.12);
  --bp-cyan-glow: rgba(0, 212, 255, 0.30); /* Reduced from 0.45 */
  --bp-indigo: #4f87ff;
  --bp-indigo-dim: rgba(79, 135, 255, 0.14);
  
  /* Text Scale (WCAG AA Compliant) */
  --bp-text-primary: #e8f4ff;   /* 13.2:1 contrast */
  --bp-text-secondary: #b4c8e0; /* 4.8:1 contrast - passes AA */
  --bp-text-tertiary: #8aa0b8;  /* 3.4:1 contrast - large text only */
  --bp-text-muted: #5a7a9a;    /* Decorative only */
  
  /* Status Colors */
  --bp-accent: #ff7a4d;
  --bp-accent-glow: rgba(255, 122, 77, 0.30);
  --bp-red: #f04d6d;
  --bp-green: #00d090;

  /* Shadows */
  --bp-shadow: rgba(0, 0, 0, 0.3);

  /* Typography */
  --bp-font-display: 'Orbitron', sans-serif;  /* Brand only */
  --bp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bp-font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  
  /* Shape */
  --bp-radius-sm: 4px;
  --bp-radius-md: 8px;  /* Increased from 2px */
  --bp-radius-lg: 12px;
  --bp-radius-xl: 16px;
  
  /* Animation */
  --bp-transition-fast: 0.15s ease;
  --bp-transition: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --bp-transition-slow: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Light Mode Theme */
[data-theme="light"] {
  /* Background Scale */
  --bp-bg: #f8fafc;
  --bp-paper: #ffffff;
  --bp-surface: #ffffff;
  --bp-surface-hover: #f1f5f9;
  
  /* Border Scale */
  --bp-line-subtle: rgba(148, 163, 184, 0.25);
  --bp-line: rgba(148, 163, 184, 0.40);
  --bp-line-hover: rgba(0, 180, 220, 0.50);
  --bp-line-focus: rgba(0, 180, 220, 0.70);
  
  /* Accent Colors (keep cyan for brand consistency) */
  --bp-cyan: #0099cc;
  --bp-cyan-dim: rgba(0, 180, 220, 0.12);
  --bp-cyan-glow: rgba(0, 180, 220, 0.25);
  --bp-indigo: #3366cc;
  --bp-indigo-dim: rgba(51, 102, 204, 0.14);
  
  /* Text Scale - Dark text for light backgrounds */
  --bp-text-primary: #0f172a;   /* Dark text */
  --bp-text-secondary: #475569; /* Medium gray */
  --bp-text-tertiary: #64748b;  /* Lighter gray */
  --bp-text-muted: #94a3b8;    /* Very light */
  
  /* Status Colors */
  --bp-accent: #ea580c;
  --bp-accent-glow: rgba(234, 88, 12, 0.30);
  --bp-red: #dc2626;
  --bp-green: #059669;

  /* Shadows */
  --bp-shadow: rgba(0, 0, 0, 0.12);
}

/* --- Reset & Base --- */
[x-cloak] { display: none !important; }

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}
  margin: 0; 
  padding: 0; 
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Skip link for accessibility */
.bp-skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  background: var(--bp-cyan);
  color: var(--bp-bg);
  font-family: var(--bp-font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--bp-radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: top 0.2s ease;
}

.bp-skip-link:focus {
  top: 16px;
  outline: 2px solid var(--bp-text-primary);
  outline-offset: 2px;
}

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

body {
  font-family: var(--bp-font-body);
  font-weight: 400;
  color: var(--bp-text-secondary);
  background: var(--bp-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Improved Blueprint Grid Background --- */
/* Reduced intensity, larger spacing for less visual fatigue */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* Fine grid - reduced opacity */
    linear-gradient(var(--bp-line-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line-subtle) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.6;
}

/* Blueprint paper vignette - softer */
body > .bp-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center, 
    transparent 40%, 
    rgba(6, 12, 24, 0.5) 100%
  );
}

/* Scan line overlay - reduced opacity */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.008) 2px,
    rgba(0, 212, 255, 0.008) 4px
  );
}

/* --- Container --- */
.bp-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* --- Focus States (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--bp-cyan);
  outline-offset: 2px;
  border-radius: var(--bp-radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* --- Navigation --- */
.bp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bp-surface);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--bp-line-subtle);
}

.bp-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.bp-nav__brand {
  font-family: var(--bp-font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--bp-cyan);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-nav__brand::before {
  content: '//';
  color: var(--bp-line);
  font-weight: 400;
  opacity: 0.7;
}

.bp-nav__brand ruby rt {
  font-size: 0.5em;
  color: var(--bp-text-tertiary);
  font-family: var(--bp-font-mono);
  letter-spacing: 0.05em;
}

/* Improved nav links - Inter instead of mono, larger touch targets */
.bp-nav__links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bp-nav__links a {
  font-family: var(--bp-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bp-text-secondary);
  text-decoration: none;
  padding: 10px 16px;
  letter-spacing: 0.01em;
  border-radius: var(--bp-radius-md);
  transition: var(--bp-transition-fast);
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.bp-nav__links a:hover {
  color: var(--bp-text-primary);
  background: var(--bp-cyan-dim);
}

.bp-nav__links a.bp-nav__cta {
  color: var(--bp-bg);
  background: var(--bp-cyan);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--bp-radius-md);
}

.bp-nav__links a.bp-nav__cta:hover {
  background: var(--bp-text-primary);
  box-shadow: 0 0 20px var(--bp-cyan-glow);
}

/* Theme toggle button */
.bp-nav__theme-toggle {
  background: var(--bp-surface);
  border: 1px solid var(--bp-line-subtle);
  border-radius: var(--bp-radius-md);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: var(--bp-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-nav__theme-toggle:hover {
  border-color: var(--bp-cyan);
  background: var(--bp-cyan-dim);
  box-shadow: 0 0 12px var(--bp-cyan-glow);
}

.bp-nav__theme-toggle:focus-visible {
  outline: 2px solid var(--bp-cyan);
  outline-offset: 2px;
}

/* Ensure bp-btn in nav links keeps its button styling */
.bp-nav__links a.bp-btn {
  padding: 10px 20px;
  min-height: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
}

.bp-nav__links a.bp-btn--primary {
  background: var(--bp-cyan);
  color: var(--bp-bg);
  border-color: var(--bp-cyan);
}

.bp-nav__links a.bp-btn--primary:hover {
  background: var(--bp-text-primary);
  color: var(--bp-bg);
  box-shadow: 0 0 20px var(--bp-cyan-glow);
}

/* Mobile nav toggle */
.bp-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--bp-line);
  color: var(--bp-cyan);
  font-size: 1.5rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--bp-radius-md);
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 900px) {
  .bp-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .bp-nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bp-surface);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--bp-line);
  }
  
  .bp-nav__links--open {
    display: flex;
  }
  
  .bp-nav__links a {
    width: 100%;
    justify-content: center;
    padding: 16px;
  }
}

/* --- Hero --- */
.bp-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  isolation: isolate;
}

.bp-hero__coord {
  font-family: var(--bp-font-mono);
  font-size: 0.75rem;
  color: var(--bp-green);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.bp-hero__title {
  font-family: var(--bp-font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: var(--bp-text-primary);
  margin-bottom: 8px;
}

.bp-hero__title .bp-kanji {
  color: var(--bp-cyan);
  text-shadow: 0 0 30px var(--bp-cyan-glow);
}

.bp-hero__title .bp-kanji rt {
  font-size: 0.35em;
  color: var(--bp-text-tertiary);
  letter-spacing: 0.1em;
}

.bp-hero__subtitle {
  font-family: var(--bp-font-mono);
  font-size: 0.8rem;
  color: var(--bp-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.bp-hero__desc {
  font-size: 1.125rem;
  max-width: 600px;
  color: var(--bp-text-secondary);
  margin-bottom: 48px;
  line-height: 1.7;
}

/* Hero Slider */
.bp-hero__slider {
  max-width: 600px;
  margin-bottom: 48px;
  text-align: center;
}

.bp-hero__slides {
  position: relative;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-hero__slide {
  position: absolute;
  font-size: 1.125rem;
  color: var(--bp-text-secondary);
  line-height: 1.7;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  max-width: 100%;
}

.bp-hero__slide--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.bp-hero__indicators {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.bp-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--bp-line-subtle);
  background: transparent;
  cursor: pointer;
  transition: var(--bp-transition-fast);
  padding: 0;
}

.bp-hero__dot:hover {
  border-color: var(--bp-cyan);
  background: var(--bp-cyan-dim);
}

.bp-hero__dot--active {
  background: var(--bp-cyan);
  border-color: var(--bp-cyan);
  box-shadow: 0 0 10px var(--bp-cyan-glow);
}

.bp-hero__dot:focus-visible {
  outline: 2px solid var(--bp-cyan);
  outline-offset: 2px;
}

/* Hero Background Decorative Elements */
.bp-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bp-hero__bg-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.bp-hero__bg .bp-wave,
.bp-hero__bg .bp-enso,
.bp-hero__bg .bp-torii,
.bp-hero__bg .bp-seigaiha,
.bp-hero__bg .bp-fuji {
  position: absolute;
  pointer-events: none;
}

.bp-hero__bg .bp-wave {
  left: -10%;
  right: -10%;
  bottom: -2%;
  height: min(52vh, 460px);
  opacity: 0.95;
  z-index: -3;
  animation: bp-wave-sway 10s ease-in-out infinite;
}

.bp-hero__bg .bp-wave svg {
  width: 100%;
  height: 100%;
}

@keyframes bp-wave-sway {
  0%, 100% {
    transform: translateX(0) scaleX(1);
  }
  25% {
    transform: translateX(2%) scaleX(1.02);
  }
  50% {
    transform: translateX(0) scaleX(1);
  }
  75% {
    transform: translateX(-2%) scaleX(1.02);
  }
}

.bp-hero__bg .bp-enso {
  top: 14%;
  right: 7%;
  width: clamp(110px, 16vw, 220px);
  opacity: 0.7;
  z-index: -1;
  animation: bp-drift 16s ease-in-out infinite;
}

.bp-hero__bg .bp-torii {
  left: 6%;
  bottom: 18%;
  width: clamp(90px, 10vw, 140px);
  opacity: 0.58;
  z-index: -1;
}

.bp-hero__bg .bp-seigaiha {
  left: 3%;
  bottom: 4%;
  width: clamp(260px, 38vw, 460px);
  opacity: 0.5;
  z-index: -2;
  mix-blend-mode: screen;
}

.bp-hero__bg .bp-seigaiha svg,
.bp-hero__bg .bp-fuji svg,
.bp-hero__bg .bp-torii svg,
.bp-hero__bg .bp-enso svg {
  width: 100%;
  height: auto;
}

.bp-hero__bg .bp-fuji {
  left: 5%;
  top: 25%;
  width: clamp(130px, 22vw, 280px);
  opacity: 0.32;
  z-index: -2;
}

/* Drift animation for enso */
@keyframes bp-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(-2deg); }
}

/* Mobile responsive for hero decorations */
@media (max-width: 768px) {
  .bp-hero__bg .bp-wave {
    bottom: -8%;
    height: min(42vh, 280px);
    opacity: 0.86;
  }
  
  .bp-hero__bg .bp-seigaiha {
    width: min(90vw, 420px);
    left: -10%;
    bottom: 2%;
    opacity: 0.35;
  }
  
  .bp-hero__bg .bp-fuji {
    width: min(52vw, 220px);
    right: -3%;
    top: auto;
    bottom: 8%;
    opacity: 0.34;
  }
  
  .bp-hero__bg .bp-torii {
    left: 4%;
    bottom: 14%;
    width: clamp(72px, 18vw, 116px);
    opacity: 0.44;
  }
  
  .bp-hero__bg .bp-enso {
    top: 18%;
    right: 2%;
    opacity: 0.52;
    width: clamp(90px, 14vw, 160px);
  }
}

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

/* Status indicator */
.bp-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bp-font-mono);
  font-size: 0.75rem;
  color: var(--bp-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bp-status__dot {
  width: 8px;
  height: 8px;
  background: var(--bp-green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 208, 144, 0.4);
  animation: bp-pulse-green 2s ease-in-out infinite;
}

@keyframes bp-pulse-green {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Blueprint crosshair decorations */
.bp-hero__crosshair {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid var(--bp-line-subtle);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}

.bp-hero__crosshair::before,
.bp-hero__crosshair::after {
  content: '';
  position: absolute;
  background: var(--bp-line-subtle);
}

.bp-hero__crosshair::before {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

.bp-hero__crosshair::after {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.bp-hero__crosshair--tl { top: 15%; left: 8%; }
.bp-hero__crosshair--tr { top: 20%; right: 10%; }
.bp-hero__crosshair--bl { bottom: 18%; left: 12%; }
.bp-hero__crosshair--br { bottom: 25%; right: 6%; }

/* --- Buttons --- */
.bp-btn {
  font-family: var(--bp-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius-md);
  color: var(--bp-text-primary);
  background: transparent;
  cursor: pointer;
  transition: var(--bp-transition);
  position: relative;
  overflow: hidden;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bp-btn:hover {
  border-color: var(--bp-cyan);
  background: var(--bp-cyan-dim);
  box-shadow: 0 0 20px var(--bp-cyan-glow);
}

.bp-btn:focus-visible {
  outline: 2px solid var(--bp-cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--bp-cyan-dim);
}

.bp-btn--primary {
  background: var(--bp-cyan);
  color: var(--bp-bg);
  border-color: var(--bp-cyan);
}

/* Nav button variant - smaller for navigation */
.bp-btn--nav {
  padding: 10px 20px;
  min-height: 40px;
  font-size: 0.85rem;
}

.bp-btn--primary:hover {
  background: var(--bp-text-primary);
  color: var(--bp-bg);
  box-shadow: 0 0 24px var(--bp-cyan-glow);
}

/* --- Sections --- */
.bp-section {
  position: relative;
  z-index: 1;
  padding: 0;
}

@media (max-width: 768px) {
  .bp-section {
    padding: 0;
  }
}

.bp-section__header {
  margin-bottom: 48px;
}

/* --- Form Elements --- */
.bp-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: rgba(13, 31, 60, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius-lg);
  color: var(--bp-text-primary);
  font-family: var(--bp-font-body);
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.bp-input::placeholder {
  color: var(--bp-text-muted);
  opacity: 0.5;
}

.bp-input:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(13, 31, 60, 0.6);
}

.bp-input:focus {
  border-color: var(--bp-cyan);
  background: rgba(6, 12, 24, 0.8);
  box-shadow: 0 0 20px var(--bp-cyan-dim), inset 0 0 10px rgba(0, 212, 255, 0.05);
  transform: translateY(-1px);
}

/* Specific fix for search inputs to remove browser styling */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

.bp-section__label {
  font-family: var(--bp-font-mono);
  font-size: 0.75rem;
  color: var(--bp-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-section__label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--bp-cyan);
}

.bp-section__title {
  font-family: var(--bp-font-body);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bp-text-primary);
  line-height: 1.2;
}

.bp-section__desc {
  font-size: 1.0625rem;
  color: var(--bp-text-secondary);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 900px;
}

/* --- Cards --- */
.bp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.bp-card {
  position: relative;
  background: var(--bp-surface);
  border: 1px solid var(--bp-line-subtle);
  border-radius: var(--bp-radius-lg);
  padding: 32px;
  transition: var(--bp-transition);
  overflow: hidden;
}

.bp-card:hover {
  border-color: var(--bp-line-hover);
  background: var(--bp-surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.bp-card:focus-within {
  border-color: var(--bp-cyan);
  box-shadow: 0 0 0 3px var(--bp-cyan-dim);
}

.bp-card__number {
  font-family: var(--bp-font-mono);
  font-size: 0.75rem;
  color: var(--bp-cyan);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  opacity: 0.7;
}

.bp-card__title {
  font-family: var(--bp-font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bp-text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.bp-card__text {
  font-size: 1rem;
  color: var(--bp-text-secondary);
  line-height: 1.7;
}

/* --- Value List (Core Values) --- */
.bp-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.bp-value {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--bp-line-subtle);
  border-left: 3px solid var(--bp-cyan);
  background: var(--bp-surface);
  border-radius: var(--bp-radius-lg);
  border-top-left-radius: var(--bp-radius-md);
  border-bottom-left-radius: var(--bp-radius-md);
  transition: var(--bp-transition);
}

.bp-value:hover {
  border-color: var(--bp-line-hover);
  border-left-color: var(--bp-cyan);
  background: var(--bp-surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bp-value__icon {
  font-family: var(--bp-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bp-cyan);
  min-width: 32px;
  text-align: center;
  padding: 4px 8px;
  background: var(--bp-cyan-dim);
  border-radius: var(--bp-radius-sm);
}

.bp-value__content h4 {
  font-family: var(--bp-font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bp-text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.bp-value__content p {
  font-size: 0.95rem;
  color: var(--bp-text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .bp-values {
    grid-template-columns: 1fr;
  }
  
  .bp-value {
    padding: 20px;
  }
}

/* --- AI Section --- */
.bp-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.bp-ai-item {
  padding: 24px;
  border: 1px solid var(--bp-line-subtle);
  border-left: 3px solid var(--bp-accent);
  background: var(--bp-surface);
  border-radius: var(--bp-radius-lg);
  border-top-left-radius: var(--bp-radius-md);
  border-bottom-left-radius: var(--bp-radius-md);
  transition: var(--bp-transition);
  cursor: pointer;
}

.bp-ai-item:hover {
  border-color: var(--bp-accent);
  border-left-color: var(--bp-accent);
  background: var(--bp-surface-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.bp-ai-item--selected {
  border-color: var(--bp-accent);
  border-left-width: 6px;
  background: rgba(255, 122, 77, 0.12);
  box-shadow: 0 0 20px var(--bp-accent-glow), inset 0 0 20px rgba(255, 122, 77, 0.05);
}

.bp-ai-item h4 {
  font-family: var(--bp-font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bp-text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.bp-ai-item p {
  font-size: 0.95rem;
  color: var(--bp-text-secondary);
  line-height: 1.6;
}

.bp-use-case {
  margin-top: 48px;
  padding: 32px;
  border: 1px dashed var(--bp-line-subtle);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-surface);
}

.bp-use-case__title {
  font-family: var(--bp-font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bp-accent);
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-use-case__title::before {
  content: '▶';
  font-size: 0.8rem;
  opacity: 0.8;
}

.bp-use-case__workflow {
  margin-top: 24px;
  overflow-x: auto;
  padding: 16px 0;
  -webkit-overflow-scrolling: touch;
  cursor: pointer;
  user-select: none;
}

.bp-use-case__workflow:hover {
  cursor: pointer;
}

.bp-use-case__workflow.bp-dragging {
  cursor: grabbing;
}

.bp-use-case__workflow::-webkit-scrollbar {
  height: 6px;
}

.bp-use-case__workflow::-webkit-scrollbar-track {
  background: rgba(0, 212, 255, 0.1);
  border-radius: var(--bp-radius-sm);
}

.bp-use-case__workflow::-webkit-scrollbar-thumb {
  background: var(--bp-cyan);
  border-radius: var(--bp-radius-sm);
}

@media (max-width: 768px) {
  .bp-ai-grid {
    grid-template-columns: 1fr;
  }
  
  .bp-use-case {
    padding: 20px;
  }
}

/* --- Tech Radar --- */
.bp-radar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.bp-radar__item {
  font-family: var(--bp-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 16px 20px;
  border: 1px solid var(--bp-line-subtle);
  border-radius: var(--bp-radius-lg);
  color: var(--bp-text-secondary);
  background: var(--bp-surface);
  transition: var(--bp-transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-radar__item::before {
  content: '>';
  font-family: var(--bp-font-mono);
  color: var(--bp-cyan);
  font-weight: 700;
  font-size: 0.9rem;
}

.bp-radar__item:hover {
  border-color: var(--bp-cyan);
  background: var(--bp-cyan-dim);
  transform: translateX(4px);
  color: var(--bp-text-primary);
}

@media (max-width: 768px) {
  .bp-radar {
    grid-template-columns: 1fr;
  }
}

/* --- Quotes / Inspired By --- */
.bp-quotes {
  display: grid;
  gap: 24px;
}

.bp-quote {
  position: relative;
  padding: 28px 32px;
  border: 1px solid var(--bp-line-subtle);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-surface);
  transition: var(--bp-transition);
}

.bp-quote:hover {
  border-color: var(--bp-line-hover);
  background: var(--bp-surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bp-quote::before {
  content: '"';
  font-family: var(--bp-font-display);
  font-size: 3.5rem;
  color: var(--bp-cyan);
  opacity: 0.2;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}

.bp-quote__text {
  font-size: 1.125rem;
  color: var(--bp-text-primary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
}

.bp-quote__author {
  font-family: var(--bp-font-mono);
  font-size: 0.8rem;
  color: var(--bp-cyan);
  letter-spacing: 0.05em;
  padding-left: 24px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .bp-quotes {
    gap: 16px;
  }
  
  .bp-quote {
    padding: 20px 24px;
  }
  
  .bp-quote__text {
    font-size: 1rem;
  }
}

/* --- AI Workflow Cards --- */
.bp-use-case__workflow-inner {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  padding: 0 16px;
}

.bp-use-case__workflow .bp-ai-details-card {
  flex: 0 0 260px;
  position: relative;
  margin: 0 8px;
  background: var(--bp-surface);
  border: 1px solid var(--bp-line-subtle);
  border-radius: var(--bp-radius-lg);
  padding: 20px;
  transition: var(--bp-transition);
}

.bp-use-case__workflow .bp-ai-details-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bp-cyan), transparent);
}

.bp-use-case__workflow .bp-ai-details-card:hover {
  border-color: var(--bp-cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
}

.bp-ai-details-card__avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.bp-ai-details-card__avatar-img {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bp-line-subtle);
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  color: var(--bp-cyan);
  font-size: 24px;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.15), inset 0 0 12px rgba(0, 212, 255, 0.1);
}

.bp-ai-details-card__header {
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bp-line-subtle);
}

.bp-ai-details-card__id {
  font-family: var(--bp-font-mono);
  font-size: 0.75rem;
  color: var(--bp-cyan);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
  opacity: 0.8;
}

.bp-ai-details-card__name {
  font-family: var(--bp-font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bp-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.bp-ai-details-card__section {
  margin-bottom: 14px;
}

.bp-ai-details-card__label {
  font-family: var(--bp-font-mono);
  font-size: 0.7rem;
  color: var(--bp-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
  opacity: 0.8;
}

.bp-ai-details-card__text {
  font-size: 0.875rem;
  color: var(--bp-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.bp-ai-details-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

/* Workflow connectors */
.bp-workflow-start {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-workflow-start::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bp-cyan);
  box-shadow: 0 0 12px var(--bp-cyan-glow);
}

.bp-workflow-connector {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bp-workflow-connector::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bp-cyan), var(--bp-indigo));
  animation: bp-flow 1s linear infinite;
}

@keyframes bp-flow {
  0% { background-position: 0 0; }
  100% { background-position: 48px 0; }
}

.bp-workflow-connector::after {
  content: '→';
  position: relative;
  z-index: 1;
  color: var(--bp-cyan);
  font-size: 14px;
  text-shadow: 0 0 8px var(--bp-cyan);
}

/* Workflow card number badge */
.bp-workflow-card-number {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--bp-cyan);
  color: var(--bp-bg);
  font-family: var(--bp-font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--bp-radius-sm);
  letter-spacing: 0.05em;
}

/* Flow arrow inside card */
.bp-workflow-card-flow {
  position: absolute;
  top: 50%;
  right: -28px;
  transform: translateY(-50%);
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--bp-cyan), transparent);
  z-index: 5;
}

.bp-workflow-card-flow::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bp-cyan);
  font-size: 12px;
  text-shadow: 0 0 6px var(--bp-cyan);
}

.bp-use-case__workflow .bp-ai-details-card:last-child .bp-workflow-card-flow {
  display: none;
}

@media (max-width: 768px) {
  .bp-use-case__workflow-inner {
    flex-direction: column;
    padding: 0;
  }
  
  .bp-use-case__workflow .bp-ai-details-card {
    flex: 1 1 100%;
    max-width: none;
    margin: 8px 0;
  }
  
  .bp-workflow-connector,
  .bp-workflow-start {
    display: none;
  }
  
  .bp-workflow-card-flow {
    display: none;
  }
}

/* --- Pills / Tags --- */
.bp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bp-pill {
  font-family: var(--bp-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bp-cyan);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--bp-radius-md);
  padding: 6px 12px;
  background: var(--bp-cyan-dim);
  transition: var(--bp-transition-fast);
}

.bp-pill:hover {
  border-color: var(--bp-cyan);
  background: rgba(0, 212, 255, 0.18);
}

/* --- OSS Section --- */
.bp-oss-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.bp-oss-item {
  padding: 24px;
  border: 1px solid var(--bp-line-subtle);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-surface);
  transition: var(--bp-transition);
}

.bp-oss-item:hover {
  border-color: var(--bp-line-hover);
  background: var(--bp-surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bp-oss-item a {
  font-family: var(--bp-font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bp-cyan);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.bp-oss-item a:hover {
  color: var(--bp-text-primary);
  text-shadow: 0 0 16px var(--bp-cyan-glow);
}

.bp-oss-item a::after {
  content: '↗';
  display: inline-block;
  margin-left: 6px;
  font-size: 0.85em;
  opacity: 0.7;
  transition: transform var(--bp-transition-fast);
}

.bp-oss-item a:hover::after {
  transform: translate(2px, -2px);
}

.bp-oss-item p {
  font-size: 0.95rem;
  color: var(--bp-text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .bp-oss-list {
    grid-template-columns: 1fr;
  }
  
  .bp-oss-item {
    padding: 20px;
  }
}

/* --- Enterprise AI Canvas --- */
.bp-ai-canvas {
  position: relative;
  margin-top: 40px;
  border: 1px solid var(--bp-line-subtle);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-surface);
  padding: 32px;
  overflow: hidden;
}

.bp-ai-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 18%, rgba(0, 212, 255, 0.12) 0, transparent 48%),
    radial-gradient(circle at 90% 82%, rgba(79, 135, 255, 0.12) 0, transparent 52%);
}

.bp-ai-canvas__header {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.bp-ai-network {
  position: relative;
  z-index: 1;
  margin: 24px 0;
  border: 1px solid var(--bp-line-subtle);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-surface);
  overflow: hidden;
  padding: 24px;
  min-height: 400px;
}

/* Network connection lines */
.bp-ai-link {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
  transform-origin: left center;
  opacity: 0.6;
}

.bp-ai-link--a { left: 30%; top: 25%; width: 8%; }
.bp-ai-link--b { left: 62%; top: 25%; width: 8%; }
.bp-ai-link--c { left: 30%; top: 58%; width: 8%; }
.bp-ai-link--d { left: 62%; top: 58%; width: 8%; }
.bp-ai-link--e { left: 18%; top: 42%; width: 64%; opacity: 0.2; }

/* Data packets animation */
.bp-ai-packet {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bp-cyan);
  box-shadow: 0 0 10px var(--bp-cyan-glow);
}

.bp-ai-packet--1 { top: 25%; left: 30%; animation: bp-packet-flow-a 4s linear infinite; }
.bp-ai-packet--2 { top: 25%; left: 62%; animation: bp-packet-flow-b 3.4s linear infinite; }
.bp-ai-packet--3 { top: 58%; left: 30%; animation: bp-packet-flow-c 3.8s linear infinite; }
.bp-ai-packet--4 { top: 58%; left: 62%; animation: bp-packet-flow-d 3.1s linear infinite; }
.bp-ai-packet--5 { top: 42%; left: 18%; animation: bp-packet-flow-e 4.6s linear infinite; }

@keyframes bp-packet-flow-a {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(100px); opacity: 0; }
}

@keyframes bp-packet-flow-b {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(80px); opacity: 0; }
}

@keyframes bp-packet-flow-c {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(90px); opacity: 0; }
}

@keyframes bp-packet-flow-d {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(70px); opacity: 0; }
}

@keyframes bp-packet-flow-e {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(400px); opacity: 0; }
}

/* AI Node Grid */
.bp-ai-canvas__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 60px;
}

/* AI Node Cards */
.bp-ai-node {
  position: relative;
  border: 1px solid var(--bp-line-subtle);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-surface);
  padding: 20px;
  transition: var(--bp-transition);
  box-shadow: 0 0 12px var(--bp-cyan-dim);
}

.bp-ai-node:hover {
  border-color: var(--bp-cyan);
  box-shadow: 0 0 20px var(--bp-cyan-glow);
  transform: translateY(-4px);
}

.bp-ai-canvas__card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.bp-ai-canvas__card::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--bp-cyan), transparent);
  opacity: 0.5;
}

.bp-ai-canvas__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bp-line-subtle);
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  color: var(--bp-cyan);
  font-size: 20px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.1);
}

/* Node pulse animation */
@keyframes bp-node-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 212, 255, 0.1); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }
}

.bp-ai-node {
  animation: bp-node-pulse 3s ease-in-out infinite;
}

@media (max-width: 900px) {
  .bp-ai-canvas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  .bp-ai-canvas {
    padding: 20px;
  }
  
  .bp-ai-canvas__grid {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  
  .bp-ai-link,
  .bp-ai-packet {
    display: none;
  }
}

/* --- Contact Section --- */
.bp-contact {
  text-align: center;
}

.bp-contact .bp-section__header {
  margin-bottom: 40px;
}

.bp-contact .bp-section__label {
  justify-content: center;
}

.bp-contact .bp-section__label::before {
  display: none;
}

.bp-contact .bp-section__desc {
  margin-left: auto;
  margin-right: auto;
}

.bp-contact__email {
  font-family: var(--bp-font-mono);
  font-size: 1rem;
  color: var(--bp-cyan);
  letter-spacing: 0.02em;
  margin: 32px 0;
  padding: 12px 24px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--bp-radius-lg);
  display: inline-block;
}

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

@media (max-width: 768px) {
  .bp-contact__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .bp-contact__actions .bp-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* --- Footer --- */
.bp-footer {
  position: relative;
  z-index: 1;
  background: var(--bp-paper);
  border-top: 1px solid var(--bp-line-subtle);
  padding: 40px 20px;
  text-align: center;
}

.bp-footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.bp-footer__links a {
  font-family: var(--bp-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bp-text-tertiary);
  text-decoration: none;
  transition: color var(--bp-transition-fast);
  padding: 8px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.bp-footer__links a:hover {
  color: var(--bp-cyan);
}

.bp-footer__text {
  font-family: var(--bp-font-body);
  font-size: 0.875rem;
  color: var(--bp-text-muted);
}

.bp-footer__text ruby rt {
  font-size: 0.8em;
}

/* --- Return to Top --- */
.bp-totop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-surface);
  backdrop-filter: blur(12px);
  color: var(--bp-cyan);
  font-family: var(--bp-font-body);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--bp-transition);
}

.bp-totop:hover {
  border-color: var(--bp-cyan);
  background: var(--bp-cyan-dim);
  box-shadow: 0 0 20px var(--bp-cyan-glow);
}

.bp-totop:focus-visible {
  outline: 2px solid var(--bp-cyan);
  outline-offset: 2px;
}

.bp-totop--visible {
  display: flex;
}

/* --- Glowing Nodes --- */
@keyframes bp-pulse {
  0%, 100% { opacity: 0.2; box-shadow: 0 0 4px var(--bp-cyan-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 12px var(--bp-cyan-glow); }
}

.bp-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--bp-cyan);
  border-radius: 50%;
  animation: bp-pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .bp-node {
    animation: none;
    opacity: 0.3;
  }
}

/* --- High Contrast Mode --- */
@media (prefers-contrast: high) {
  :root {
    --bp-line-subtle: rgba(100, 180, 255, 0.35);
    --bp-line: rgba(100, 180, 255, 0.50);
    --bp-text-secondary: #c8e0f5;
    --bp-text-tertiary: #a8c8e5;
  }
  
  .bp-card {
    border-width: 2px;
  }
  
  .bp-btn {
    border-width: 2px;
  }
}

/* --- Utility Classes --- */
.bp-text-cyan { color: var(--bp-cyan); }
.bp-text-primary { color: var(--bp-text-primary); }
.bp-text-secondary { color: var(--bp-text-secondary); }
.bp-text-tertiary { color: var(--bp-text-tertiary); }
.bp-text-accent { color: var(--bp-accent); }
.bp-text-red { color: var(--bp-red); }

/* --- Print Styles --- */
@media print {
  .bp-nav,
  .bp-node,
  .bp-totop,
  .bp-grid-overlay,
  body::before,
  body::after {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* --- Tanoshii UI Components (Toast & Modal) --- */

.tc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  color: var(--bp-text-primary);
  padding: 12px 24px;
  border-radius: var(--bp-radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  font-family: var(--bp-font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.tc-toast--success {
  border-left: 4px solid var(--bp-green);
}

.tc-toast--error {
  border-left: 4px solid var(--bp-red);
}

/* Modal Overlay & Container */
.tc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 24, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 24px;
}

.tc-modal {
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  position: relative;
  padding: 32px;
  animation: tc-modal-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tc-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.tc-modal h2 {
  font-family: var(--bp-font-display);
  font-size: 1.5rem;
  color: var(--bp-cyan);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.tc-label {
  display: block;
  font-family: var(--bp-font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--bp-text-tertiary);
  margin-bottom: 8px;
  margin-top: 16px;
}

.tc-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  justify-content: flex-end;
}

.tc-modal__price {
  font-family: var(--bp-font-display);
  font-size: 1.25rem;
  color: var(--bp-indigo);
  margin-bottom: 16px;
}
