/* ==========================================================================
   PANVIX OFFICIAL WEBSITE — DESIGN SYSTEM
   Dark Obsidian & Violet Glassmorphism | Built for Global Speed & Clarity
   ========================================================================== */

:root {
  --bg-main: #080810;
  --bg-secondary: #10101B;
  --bg-glass: rgba(16, 16, 27, 0.78);
  --bg-card: rgba(20, 20, 36, 0.72);
  --bg-card-hover: rgba(26, 26, 46, 0.88);
  --purple-primary: #8B5CF6;
  --violet-secondary: #A855F7;
  --lavender-soft: #C4B5FD;
  --text-main: #FFFFFF;
  --text-secondary: #A1A1B5;
  --border-purple: rgba(139, 92, 246, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --accent-ai: #8B5CF6;
  --accent-play: #E879F9;
  --accent-recon: #38BDF8;
  --status-done: #10B981;
  --status-progress: #F59E0B;
  --status-planned: #8B5CF6;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 42px rgba(139, 92, 246, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --nav-height: 76px;
}

[data-theme="light"] {
  --bg-main: #F6F5FC;
  --bg-secondary: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #FFFFFF;
  --text-main: #0F0D1B;
  --text-secondary: #534E68;
  --lavender-soft: #6D28D9;
  --border-purple: rgba(124, 58, 237, 0.24);
  --border-subtle: rgba(15, 13, 27, 0.08);
  --shadow-lg: 0 20px 44px rgba(18, 12, 42, 0.08);
  --shadow-glow: 0 8px 32px rgba(124, 58, 237, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

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

:focus-visible {
  outline: 2px solid var(--purple-primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--purple-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Ambient Page Atmosphere */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 65% 45% at 15% 10%, rgba(139, 92, 246, 0.14), transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 22%, rgba(168, 85, 247, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 90%, rgba(139, 92, 246, 0.08), transparent 75%);
}

[data-theme="light"] .ambient-backdrop {
  background:
    radial-gradient(ellipse 65% 45% at 15% 10%, rgba(139, 92, 246, 0.10), transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 22%, rgba(168, 85, 247, 0.07), transparent 70%);
}

.cursor-aura {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.11), transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

@media (hover: none), (pointer: coarse) {
  .cursor-aura {
    display: none;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 84px;
  position: relative;
}

.section--compact {
  padding-block: 52px;
}

/* Typography & Section Headers */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.13);
  border: 1px solid var(--border-purple);
  margin-bottom: 16px;
}

.section-header {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(125deg, #E9D5FF 0%, #8B5CF6 48%, #A855F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sticky Glass Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--lavender-soft);
  margin-top: 3px;
}

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

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(139, 92, 246, 0.08);
}

.nav-link.is-active {
  color: var(--text-main);
  background: rgba(139, 92, 246, 0.16);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-primary), var(--lavender-soft));
}

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

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-purple);
  background: var(--bg-card-hover);
}

.hamburger-btn {
  display: none;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 10, 0.72);
  backdrop-filter: blur(6px);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-purple);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link.is-active,
.mobile-nav-link:hover {
  background: rgba(139, 92, 246, 0.16);
  color: var(--text-main);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .hamburger-btn {
    display: inline-flex;
  }
  .nav-explore-desktop {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.84rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple-primary), var(--violet-secondary));
  color: #FFFFFF;
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.30);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.42);
}

.btn--outline {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--border-purple);
  color: var(--text-main);
}

.btn--outline:hover {
  background: rgba(139, 92, 246, 0.16);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding-top: 48px;
  padding-bottom: 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  line-height: 1.06;
  margin-bottom: 18px;
}

.hero-subline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lavender-soft);
  margin: 0 0 14px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.06rem;
  margin: 0 0 28px;
  max-width: 580px;
}

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

.hero-visual-stage {
  position: relative;
  height: 440px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.22) 0%, rgba(16, 16, 27, 0.9) 64%, var(--bg-main) 100%);
  border: 1px solid var(--border-purple);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}

[data-theme="light"] .hero-visual-stage {
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.16) 0%, #F5F3FF 75%);
}

#hero-ecosystem-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ecosystem-node-btn {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12, 12, 22, 0.88);
  border: 1px solid var(--border-purple);
  color: #FFFFFF;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

[data-theme="light"] .ecosystem-node-btn {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-main);
}

.ecosystem-node-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.node-ai { top: 24px; left: 22px; border-color: rgba(139, 92, 246, 0.55); }
.node-play { top: 24px; right: 22px; border-color: rgba(232, 121, 249, 0.55); }
.node-recon { bottom: 22px; left: 50%; transform: translateX(-50%); border-color: rgba(56, 189, 248, 0.55); }
.node-recon:hover { transform: translateX(-50%) translateY(-3px) scale(1.03); }

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.node-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  display: block;
  text-align: left;
}

.node-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  display: block;
  text-align: left;
}

.scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}

.scroll-cue-arrow {
  animation: gentleBounce 1.8s ease-in-out infinite;
  color: var(--lavender-soft);
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual-stage {
    height: 360px;
  }
}

/* Glass Cards & Grids */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 980px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid-3, .grid-2, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Glance Stats */
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.stat-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin: 0;
}

/* Project Cards */
.projects-stack {
  display: grid;
  gap: 28px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-card--ai {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.13), var(--bg-card));
}

.project-card--play {
  background: linear-gradient(145deg, rgba(232, 121, 249, 0.12), var(--bg-card));
  border-color: rgba(232, 121, 249, 0.32);
}

.project-card--recon {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.10), var(--bg-card));
  border-color: rgba(56, 189, 248, 0.30);
}

.project-preview {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  min-height: 250px;
  background: #080810;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 16, 0.15) 0%, rgba(8, 8, 16, 0.86) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.project-cat-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(8, 8, 16, 0.78);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.placeholder-note {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--lavender-soft);
  margin: 8px 0 12px;
}

.project-desc {
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

.feature-check {
  color: var(--purple-primary);
  font-weight: 700;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 1fr;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-pill {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.filter-pill.is-active,
.filter-pill:hover {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
  color: #FFFFFF;
}

/* Founder Section */
.founder-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.14), var(--bg-card));
  border: 1px solid var(--border-purple);
  align-items: start;
}

.founder-portrait-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-purple);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.25);
}

.founder-portrait-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.founder-quote {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--purple-primary);
  background: rgba(8, 8, 16, 0.45);
  border-radius: 0 14px 14px 0;
}

[data-theme="light"] .founder-quote {
  background: rgba(139, 92, 246, 0.08);
}

.founder-quote blockquote {
  margin: 0 0 8px;
  font-style: italic;
  font-size: 1.05rem;
}

.founder-quote cite {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--lavender-soft);
}

@media (max-width: 840px) {
  .founder-card {
    grid-template-columns: 1fr;
  }
  .founder-portrait-wrap {
    max-width: 260px;
  }
}

/* Vision Horizon */
.horizon-box {
  position: relative;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-purple);
  margin-bottom: 24px;
  background: linear-gradient(180deg, var(--bg-secondary), rgba(139, 92, 246, 0.16), var(--bg-main));
}

#horizon-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Roadmap Timeline */
.roadmap-list {
  display: grid;
  gap: 14px;
}

.roadmap-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.roadmap-step {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--lavender-soft);
  margin-bottom: 4px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid currentColor;
  background: transparent;
  transition: transform 0.15s ease;
}

.status-badge:hover {
  transform: scale(1.04);
}

.status--completed { color: var(--status-done); background: rgba(16, 185, 129, 0.12); }
.status--in_progress { color: var(--status-progress); background: rgba(245, 158, 11, 0.12); }
.status--planned { color: var(--status-planned); background: rgba(139, 92, 246, 0.12); }

/* Forms & Inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--lavender-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(8, 8, 16, 0.55);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.96rem;
}

[data-theme="light"] .field input,
[data-theme="light"] .field textarea {
  background: #F9F8FF;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple-primary);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 4, 10, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll to Top */
.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--lavender-soft);
  background: var(--purple-primary);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-main));
  padding: 64px 0 36px;
  margin-top: 40px;
}

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

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--lavender-soft);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-list a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--text-main);
}

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

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue-arrow {
    animation: none;
  }
  .btn:hover,
  .glass-card:hover,
  .project-card:hover {
    transform: none;
  }
}
