/* ==========================================================================
   APYPM (Advanced Platform for Your Productivity & Management)
   Styles: Modern, High-Precision AI SaaS Theme (Linear / Vercel Aesthetic)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Dark Mode (Default) */
  --bg-base: #06070c;
  --bg-surface: #0c0e17;
  --bg-surface-elevated: #121524;
  --bg-card: rgba(14, 17, 30, 0.72);
  --bg-card-hover: rgba(22, 26, 44, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(99, 102, 241, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;

  /* Brand Gradient & Accents */
  --brand-blue: #3b82f6;
  --brand-indigo: #6366f1;
  --brand-violet: #a855f7;
  --brand-cyan: #06b6d4;
  --accent-glow: rgba(99, 102, 241, 0.25);

  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #a855f7 100%);
  --grad-text: linear-gradient(135deg, #ffffff 10%, #dbeafe 60%, #c7d2fe 100%);
  --grad-card-border: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(99, 102, 241, 0.2) 50%, rgba(255, 255, 255, 0.04) 100%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing */
  --nav-height: 72px;
  --container-max: 1180px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px -10px rgba(99, 102, 241, 0.35);
  --shadow-card: 0 20px 40px -15px rgba(3, 7, 18, 0.7);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-glow: rgba(79, 70, 229, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-inverse: #f8fafc;

  --accent-glow: rgba(99, 102, 241, 0.12);
  --grad-text: linear-gradient(135deg, #0f172a 10%, #312e81 60%, #4338ca 100%);
  --grad-card-border: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(15, 23, 42, 0.08) 100%);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 28px -8px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 35px -10px rgba(99, 102, 241, 0.2);
  --shadow-card: 0 20px 35px -15px rgba(15, 23, 42, 0.07);
}

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

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  background-color: var(--bg-base);
  color: var(--text-primary);
  color-scheme: dark light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--brand-indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Gradient text */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Ambient Background (Glow, Grid & Orbs)
   -------------------------------------------------------------------------- */
.ambient-glow-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  transition: opacity var(--transition-slow);
}

[data-theme="light"] .ambient-orb {
  opacity: 0.18;
  filter: blur(120px);
}

.orb-primary {
  width: 600px;
  height: 600px;
  top: -150px;
  left: 20%;
  background: radial-gradient(circle, #4f46e5 0%, rgba(99, 102, 241, 0.4) 50%, transparent 80%);
  animation: orbFloat 22s ease-in-out infinite alternate;
}

.orb-secondary {
  width: 500px;
  height: 500px;
  top: 25%;
  right: -100px;
  background: radial-gradient(circle, #9333ea 0%, rgba(168, 85, 247, 0.3) 50%, transparent 80%);
  animation: orbFloat 26s ease-in-out infinite alternate-reverse;
}

.orb-tertiary {
  width: 450px;
  height: 450px;
  bottom: 5%;
  left: -100px;
  background: radial-gradient(circle, #0ea5e9 0%, rgba(14, 165, 233, 0.3) 50%, transparent 80%);
  animation: orbFloat 30s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.96); }
}

.ambient-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 75%);
}

[data-theme="light"] .ambient-grid {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(6, 7, 12, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.82);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 700;
}

.brand-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-symbol {
  transform: scale(1.05);
}

.brand-bg {
  color: #0f1325;
}

[data-theme="light"] .brand-bg {
  color: #f1f5f9;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.brand-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-indigo);
  font-weight: 600;
}

.desktop-nav {
  display: none;
}

@media (min-width: 820px) {
  .desktop-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-indigo);
  border-radius: 2px;
}

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

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #818cf8;
}

[data-theme="light"] .status-pill {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.3);
}

.pulse-beacon {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #38bdf8;
  border-radius: 50%;
}

.pulse-beacon::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background-color: rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  animation: pulseBeacon 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-beacon.sm {
  width: 6px;
  height: 6px;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.9; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Icon Buttons (Theme toggle & mobile toggle) */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.icon-button:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
}

/* Theme toggle icon state */
.sun-icon {
  display: none;
}
.moon-icon {
  display: block;
}

[data-theme="light"] .sun-icon {
  display: block;
}
[data-theme="light"] .moon-icon {
  display: none;
}

/* Header CTA */
.header-cta {
  display: none;
}

@media (min-width: 680px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

@media (min-width: 820px) {
  .mobile-toggle {
    display: none;
  }
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav {
  display: block;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  padding: 24px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  padding: 6px 0;
}

/* --------------------------------------------------------------------------
   Buttons & UI Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.w-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Section Layouts & General Styling
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

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

.section-header.text-center {
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-indigo);
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.max-w-2xl {
  max-width: 44rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(64px, 10vw, 110px);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan);
}

.badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c7d2fe;
  letter-spacing: 0.02em;
}

[data-theme="light"] .badge-text {
  color: #4338ca;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 24px;
}

/* Radar Ping Notification */
.hero-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

[data-theme="light"] .hero-status-bar {
  background: rgba(15, 23, 42, 0.03);
}

.radar-ping {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.ping-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #10b981;
  opacity: 0.75;
  animation: radarPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-core {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
}

@keyframes radarPing {
  0% { transform: scale(0.6); opacity: 0.8; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.status-msg {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.status-sub-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
  letter-spacing: 0.03em;
}

[data-theme="light"] .status-sub-pill {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

/* Meta facts bar */
.hero-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

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

.meta-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.meta-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-subtle);
  display: none;
}

@media (min-width: 520px) {
  .meta-divider {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Hero Interactive Visual Preview
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  width: 100%;
}

.interactive-preview-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.interactive-preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.preview-glow-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.8) 50%, transparent 100%);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.win-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.win-btn.close { background: #ef4444; opacity: 0.7; }
.win-btn.min { background: #f59e0b; opacity: 0.7; }
.win-btn.max { background: #10b981; opacity: 0.7; }

.window-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
}

.window-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
}

[data-theme="light"] .window-tag {
  color: #4f46e5;
}

/* Canvas Area */
.preview-canvas {
  position: relative;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.canvas-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
}

[data-theme="light"] .canvas-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
}

.concept-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  z-index: 1;
}

.concept-node:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  flex-shrink: 0;
}

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

.node-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.node-sub {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* Core Node Styling */
.node-core {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .node-core {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: rgba(99, 102, 241, 0.4);
}

.core-icon {
  background: rgba(99, 102, 241, 0.15);
}

.core-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-weight: 600;
}

[data-theme="light"] .core-badge {
  color: #4338ca;
}

/* Connector Lines */
.concept-connector {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 24px;
}

.connector-line {
  position: relative;
  width: 2px;
  height: 24px;
  background: var(--border-strong);
  overflow: hidden;
}

.pulse-packet {
  position: absolute;
  top: -10px;
  left: 0;
  width: 2px;
  height: 10px;
  background: var(--brand-indigo);
  box-shadow: 0 0 6px var(--brand-indigo);
  animation: flowPacket 2s infinite ease-in-out;
}

.pulse-packet.delay {
  animation-delay: 1s;
}

@keyframes flowPacket {
  0% { top: -10px; }
  100% { top: 30px; }
}

.connector-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Preview Footer */
.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
}

.footer-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   About Section & Metrics
   -------------------------------------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all var(--transition-fast);
}

.metric-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--brand-indigo);
  margin-bottom: 20px;
}

.metric-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.metric-caption {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Philosophy Panel */
.philosophy-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 36px 32px;
}

.philosophy-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--brand-indigo);
}

.philosophy-header h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.principles-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .principles-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.principle-item {
  display: flex;
  flex-direction: column;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-indigo);
  margin-bottom: 8px;
}

.principle-item h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

/* --------------------------------------------------------------------------
   Vision Section
   -------------------------------------------------------------------------- */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .vision-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vision-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 32px 28px;
  transition: all var(--transition-fast);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vision-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.vision-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.vision-card:hover .vision-card-glow {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.vision-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--brand-indigo);
}

.exploration-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
}

[data-theme="light"] .exploration-tag {
  background: rgba(15, 23, 42, 0.05);
}

.vision-card-title {
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.vision-card-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.vision-card-points {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.point-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.point-item svg {
  color: var(--brand-indigo);
  flex-shrink: 0;
  margin-top: 3px;
}

.vision-disclaimer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  max-width: 820px;
  margin: 0 auto;
}

.vision-disclaimer svg {
  color: var(--brand-indigo);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Development Status Section (Roadmap)
   -------------------------------------------------------------------------- */
.timeline-container {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-line {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 27px;
  width: 2px;
  background: var(--border-strong);
  z-index: 0;
}

@media (max-width: 600px) {
  .timeline-line {
    left: 23px;
  }
}

.timeline-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  z-index: 1;
}

.timeline-marker {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .timeline-marker {
    width: 48px;
    height: 48px;
  }
}

.marker-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 0 2px #3b82f6;
  transition: all var(--transition-fast);
}

.completed-step .marker-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px #10b981;
}

.marker-dot.current {
  background: var(--brand-indigo);
  box-shadow: 0 0 0 2px var(--brand-indigo);
}

.marker-dot.future {
  background: var(--text-tertiary);
  box-shadow: 0 0 0 2px var(--border-strong);
  opacity: 0.6;
}

.marker-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.35);
  animation: radarPing 2s infinite ease-out;
}

.timeline-card-content {
  flex: 1;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 28px;
  transition: all var(--transition-fast);
}

.timeline-card:hover .timeline-card-content {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.active-step .timeline-card-content {
  border-color: rgba(99, 102, 241, 0.4);
  background: var(--bg-card-hover);
  box-shadow: 0 0 24px -6px rgba(99, 102, 241, 0.2);
}

.timeline-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.badge-done {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-active {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .badge-active {
  color: #4338ca;
}

.badge-future {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
}

[data-theme="light"] .badge-future {
  background: rgba(15, 23, 42, 0.05);
}

.timeline-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.timeline-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
}

.contact-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact-card-content {
  position: relative;
  z-index: 1;
}

.contact-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* Email Action Box */
.email-action-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (min-width: 640px) {
  .email-action-box {
    flex-direction: row;
    justify-content: space-between;
    padding: 18px 24px;
  }
}

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

.email-icon {
  color: var(--brand-indigo);
}

.official-email-text {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.email-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Quick Inquiry Draft Box */
.quick-inquiry-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  margin-bottom: 24px;
}

[data-theme="light"] .quick-inquiry-box {
  background: rgba(15, 23, 42, 0.02);
}

.inquiry-header h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.inquiry-header p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 580px) {
  .form-row:first-child {
    flex-direction: row;
  }
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-feedback {
  margin-top: 12px;
  font-size: 0.88rem;
  padding: 12px 16px;
  border-radius: 10px;
  display: none;
  line-height: 1.5;
  transition: all var(--transition-fast);
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-feedback a {
  text-decoration: underline;
  font-weight: 600;
  color: inherit;
}

.btn.is-loading {
  opacity: 0.8;
  cursor: wait;
  pointer-events: none;
}

.contact-notice {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 7, 12, 0.6);
  padding: 72px 0 36px;
}

[data-theme="light"] .site-footer {
  background: rgba(255, 255, 255, 0.6);
}

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

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 320px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
}

.footer-col-title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-modal-trigger {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  text-align: left;
}

.footer-links a:hover,
.footer-modal-trigger:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.back-to-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.back-to-top-link:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Toast Notification
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  pointer-events: none;
}

.toast-container.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Modals (Privacy & Terms)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 12, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.25rem;
}

.modal-close {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.modal-body h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 18px 0 6px;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body code {
  font-family: var(--font-mono);
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #a5b4fc;
}

[data-theme="light"] .modal-body code {
  color: #4338ca;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Animations & Micro-interactions
   -------------------------------------------------------------------------- */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

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

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Accessibility: 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;
  }
  .ambient-orb {
    animation: none !important;
  }
  .pulse-beacon::before,
  .ping-circle,
  .pulse-packet,
  .marker-pulse {
    animation: none !important;
    display: none !important;
  }
}
