/* ============================================
   JW Studios — Premium Service Website
   ============================================ */

:root,
[data-theme="dark"] {
  --bg: #08080f;
  --bg-elevated: #12121c;
  --bg-card: rgba(18, 18, 28, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-1: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #fb7185;
  --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gradient-alt: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  --glow: 0 0 60px rgba(139, 92, 246, 0.28);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --header-scrolled-bg: rgba(8, 8, 15, 0.88);
  --outline-stroke: rgba(241, 245, 249, 0.18);
  --chrome-bg: #1a1a28;
  --code-bg: #0f0f18;
  --preview-bg: #12121c;
  --phone-screen-bg: linear-gradient(165deg, #1e1e2e, #141420);
  --nav-mobile-bg: rgba(8, 8, 15, 0.97);
  --marquee-solid: #ffffff;
  --marquee-outline: rgba(241, 245, 249, 0.2);
  --bento-bg: #1e1e30;
  --bento-border: rgba(255, 255, 255, 0.14);
  --bento-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 80px;
}

[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.14);
  --text: #1a1a2e;
  --text-muted: #64748b;
  --accent-1: #6d28d9;
  --accent-2: #0891b2;
  --accent-3: #e11d48;
  --glow: 0 0 60px rgba(109, 40, 217, 0.18);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --header-scrolled-bg: rgba(255, 255, 255, 0.85);
  --outline-stroke: rgba(26, 26, 46, 0.2);
  --chrome-bg: #f1f5f9;
  --code-bg: #fafbfc;
  --preview-bg: #ffffff;
  --phone-screen-bg: linear-gradient(160deg, #f8fafc, #e2e8f0);
  --nav-mobile-bg: rgba(255, 255, 255, 0.97);
  --marquee-solid: #1a1a2e;
  --marquee-outline: rgba(26, 26, 46, 0.15);
  --bento-bg: #ffffff;
  --bento-border: rgba(0, 0, 0, 0.1);
  --bento-highlight: none;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-1) var(--bg);
}

[data-theme="dark"] { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.loaded {
  cursor: auto;
}

body.loaded .cursor,
body.loaded .cursor-follower {
  display: block;
}

@media (max-width: 768px) {
  body, body.loaded { cursor: auto; }
  .cursor, .cursor-follower { display: none !important; }
}

::selection {
  background: var(--accent-1);
  color: white;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 3px;
  animation: loadBar 1.8s ease forwards;
}

.preloader-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes loadBar {
  to { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.98); }
}

/* ---- Cursor ---- */
.cursor {
  display: none;
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent-1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  display: none;
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(109, 40, 217, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-follower.hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent-1);
}

/* ---- Background Effects ---- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(109, 40, 217, 0.12);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(8, 145, 178, 0.1);
  bottom: 20%;
  left: -15%;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: rgba(225, 29, 72, 0.08);
  top: 50%;
  right: 20%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.header.scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-media {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.music-toggle,
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.music-toggle:hover,
.theme-toggle:hover {
  color: var(--accent-1);
  border-color: var(--border-hover);
}

.music-toggle.is-muted {
  color: var(--accent-3);
}

.music-icon {
  width: 18px;
  height: 18px;
}

.music-toggle .music-icon-off { display: none; }
.music-toggle.is-muted .music-icon-on { display: none; }
.music-toggle.is-muted .music-icon-off { display: block; }

.music-volume {
  width: 76px;
  height: 4px;
  margin: 0;
  accent-color: var(--accent-1);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.music-volume:hover {
  opacity: 1;
}

.theme-icon {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  background: var(--gradient);
  border-radius: 100px;
  color: white !important;
  font-weight: 500;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  box-shadow: var(--glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-primary:hover {
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(109, 40, 217, 0.05);
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
}

.hero-content {
  padding: 4rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-alt {
  background: var(--gradient-alt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px var(--outline-stroke);
}

.hero-desc {
  max-width: 540px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.stat-value {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.stat-number,
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-suffix {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.3;
  max-width: 140px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- Marquee ---- */
.marquee-section {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}

.marquee {
  display: flex;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  padding-right: 2rem;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-content span:nth-child(odd):not(.marquee-solid) {
  color: transparent;
  -webkit-text-stroke: 1px var(--marquee-outline);
}

.marquee-content .marquee-solid {
  color: var(--marquee-solid);
  -webkit-text-stroke: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---- Sections ---- */
.section {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header.center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-desc {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 1.2rem;
  line-height: 1.7;
}

/* ---- Bento Grid ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  padding: 2rem;
  background: var(--bento-bg, var(--bg-elevated));
  border: 1px solid var(--bento-border, var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow), var(--bento-highlight, none);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bento-large {
  grid-row: span 2;
  min-height: 100%;
}

.bento-wide {
  grid-column: span 2;
  min-height: auto;
  padding: 0;
}

.bento-bg {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  pointer-events: none;
  transition: opacity var(--transition);
}

.bento-dev .bento-bg {
  background: radial-gradient(ellipse at 90% 10%, rgba(139, 92, 246, 0.2) 0%, transparent 55%),
              radial-gradient(ellipse at 10% 90%, rgba(34, 211, 238, 0.12) 0%, transparent 50%);
}

.bento-design .bento-bg {
  background: radial-gradient(ellipse at 80% 20%, rgba(251, 113, 133, 0.16) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.bento-marketing .bento-bg {
  background: radial-gradient(ellipse at 85% 15%, rgba(34, 211, 238, 0.18) 0%, transparent 50%),
              radial-gradient(ellipse at 15% 85%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
}

.bento-full .bento-bg {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(34, 211, 238, 0.08) 50%, rgba(251, 113, 133, 0.07) 100%);
}

.bento-card:hover .bento-bg {
  opacity: 0.85;
}

.bento-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.bento-card:hover .bento-glow {
  opacity: 1;
}

.bento-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.bento-icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 14px;
  color: var(--accent-1);
}

.bento-design .bento-icon {
  background: rgba(251, 113, 133, 0.14);
  border-color: rgba(251, 113, 133, 0.22);
  color: var(--accent-3);
}

.bento-marketing .bento-icon {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.22);
  color: var(--accent-2);
}

.bento-icon svg {
  width: 100%;
  height: 100%;
}

.bento-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.38;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.bento-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.bento-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.bento-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-1);
}

.bento-design .bento-features li::before { background: var(--accent-3); }
.bento-marketing .bento-features li::before { background: var(--accent-2); }

.bento-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

.bento-marketing .bento-stat {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.18);
}

.bento-stat-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bento-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bento-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.bento-tags li {
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

[data-theme="light"] .bento-tags li {
  background: #f0f2f8;
  border-color: var(--border);
}

/* Decorative visuals */
.bento-visual {
  position: relative;
  width: 100%;
}

.bento-visual-code .code-window {
  width: 100%;
}

.code-window {
  background: #1a1a2e;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.code-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 0.6rem;
}

.code-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #eab308; }
.code-dots span:nth-child(3) { background: #22c55e; }

.code-window code {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: #a5b4fc;
}

.bento-visual-palette {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.bento-visual-palette span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bento-visual-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 72px;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.chart-bar {
  width: 14px;
  height: var(--h);
  background: var(--gradient);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}

/* Full-Service wide card */
.bento-wide-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding: 2rem;
  position: relative;
  z-index: 1;
  align-items: center;
}

.bento-pillars {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

.bento-pillar {
  padding: 0.4rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.bento-pillar-line {
  width: 20px;
  height: 1px;
  background: var(--border);
}

.bento-cta {
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.88rem;
}

.bento-wide-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.wide-stat {
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.wide-stat:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.wide-stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wide-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ---- Hero accent animation ---- */
.hero-accent {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.hero-accent svg {
  width: 100%;
  height: 100%;
}

.hero-accent .accent-ring {
  transform-origin: center;
  animation: accentSpin 4s linear infinite;
  opacity: 0.7;
}

.hero-accent .accent-core {
  animation: accentPulse 2s ease-in-out infinite;
}

.hero-accent.playing .accent-ring {
  animation-play-state: running;
}

@keyframes accentSpin {
  to { transform: rotate(360deg); }
}

@keyframes accentPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.85); }
}

/* ---- Scroll Showcase ---- */
.scroll-showcase {
  position: relative;
  z-index: 2;
  height: 220vh;
}

.scroll-showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scroll-showcase-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5.5rem, 14vw, 11rem);
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.scroll-story {
  flex: 0 1 320px;
  max-width: 320px;
}

.story-steps {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 1.5rem;
}

.story-step {
  opacity: 0.38;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: translateX(-6px);
}

.story-step.active {
  opacity: 1;
  transform: translateX(0);
}

.story-step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.story-step-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: 300px;
}

.story-step.active .story-step-desc {
  color: var(--text);
  opacity: 0.85;
}

.insight-anim {
  position: relative;
  flex: 0 1 400px;
  width: min(400px, 40vw);
  min-width: 280px;
  height: min(400px, 50vh);
  min-height: 300px;
}

#insightCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.insight-label {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.45;
  transition: opacity 0.4s ease, color 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.insight-label.active {
  opacity: 1;
  color: var(--accent-1);
  transform: scale(1.08);
}

.insight-label[data-step="0"] {
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
}

.insight-label[data-step="0"].active {
  transform: translateX(-50%) scale(1.08);
}

.insight-label[data-step="1"] {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.insight-label[data-step="1"].active {
  transform: translateY(-50%) scale(1.08);
}

.insight-label[data-step="2"] {
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
}

.insight-label[data-step="2"].active {
  transform: translateX(-50%) scale(1.08);
}

.insight-label[data-step="3"] {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.insight-label[data-step="3"].active {
  transform: translateY(-50%) scale(1.08);
}

/* ---- Work / Portfolio ---- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.work-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 260), 60%, 20%),
    hsl(calc(var(--hue, 260) + 40), 50%, 12%)
  );
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-image {
  transform: scale(1.02);
}

.work-card:hover .work-video {
  transform: scale(1.06);
}

.work-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.2) 100%),
    radial-gradient(circle at 30% 40%, hsla(var(--hue, 260), 80%, 50%, 0.15) 0%, transparent 50%);
}

.work-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  transform: translateY(20px);
  opacity: 0.9;
  transition: var(--transition);
  pointer-events: none;
}

.work-card:hover .work-overlay {
  transform: translateY(0);
  opacity: 1;
}

.work-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

.work-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.work-overlay p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Process ---- */
.process-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.process-steps {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0 1.75rem 1.5rem;
  border-left: 2px solid var(--border);
  margin-left: 1.1rem;
  position: relative;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 2.1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 0 4px var(--bg);
  transition: var(--transition);
}

.process-step:hover::before {
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--accent-1);
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  padding-top: 0.15rem;
}

.process-step-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.process-step-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.process-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.process-tags li {
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 100px;
}

[data-theme="light"] .process-tags li {
  background: rgba(109, 40, 217, 0.06);
  border-color: rgba(109, 40, 217, 0.12);
}

.process-demo {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.process-demo-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.build-browser {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.build-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--border);
}

.build-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.build-chrome span:nth-child(1) { background: #f87171; }
.build-chrome span:nth-child(2) { background: #fbbf24; }
.build-chrome span:nth-child(3) { background: #4ade80; }

.build-url {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.build-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}

.build-code {
  margin: 0;
  padding: 1.25rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--accent-1);
  background: var(--code-bg);
  border-right: 1px solid var(--border);
  white-space: pre-wrap;
  overflow: hidden;
  max-height: 300px;
}

/* Game preview */
.game-preview {
  background: #0d1117;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Consolas', monospace;
  font-size: 0.62rem;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

.game-score strong {
  color: #fbbf24;
  font-size: 0.75rem;
}

.game-status {
  color: var(--accent-2);
}

.game-status.running {
  color: #4ade80;
}

.game-stage {
  position: relative;
  flex: 1;
  min-height: 240px;
  overflow: hidden;
}

.game-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1a1a3e 0%, #0f172a 60%, #1e293b 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.game-sky.visible {
  opacity: 1;
}

.game-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border-top: 3px solid #15803d;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.game-ground.visible {
  opacity: 1;
  transform: translateY(0);
}

.game-platform {
  position: absolute;
  bottom: 72px;
  left: 55%;
  width: 64px;
  height: 12px;
  background: #a16207;
  border-radius: 2px;
  box-shadow: 0 3px 0 #713f12;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.game-platform.visible {
  opacity: 1;
  transform: scaleX(1);
}

.game-player {
  position: absolute;
  bottom: 36px;
  left: 18%;
  width: 22px;
  height: 22px;
  background: var(--accent-1);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.game-player.visible {
  opacity: 1;
  transform: translateY(0);
}

.game-player.running {
  animation: gameJump 2.4s ease-in-out infinite;
}

.game-coin {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.game-coin.visible {
  opacity: 1;
  transform: scale(1);
}

.game-coin.running {
  animation: gameCoinSpin 1.5s linear infinite;
}

.game-coin-1 {
  bottom: 88px;
  left: 58%;
}

.game-coin-2 {
  bottom: 36px;
  left: 42%;
}

.game-enemy {
  position: absolute;
  bottom: 36px;
  right: 12%;
  width: 20px;
  height: 16px;
  background: #ef4444;
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.game-enemy::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 8px 0 0 #fff;
}

.game-enemy.visible {
  opacity: 1;
  transform: translateX(0);
}

.game-enemy.running {
  animation: gameEnemyMove 3s ease-in-out infinite;
}

@keyframes gameJump {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-42px); }
  55% { transform: translateY(-42px); }
  70% { transform: translateY(0); }
}

@keyframes gameCoinSpin {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

@keyframes gameEnemyMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-24px); }
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-hub {
  position: relative;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about-hub-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: hubGlow 4s ease-in-out infinite;
}

.about-hub-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px dashed var(--border);
  border-radius: 50%;
  animation: hubRing 5s ease-in-out infinite;
}

@keyframes hubGlow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes hubRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 0.9; }
}

.about-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  box-shadow: var(--glow);
  z-index: 3;
}

.about-pillar {
  position: absolute;
  z-index: 2;
  width: 108px;
  padding: 0.75rem 0.65rem;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: pillarFloat 5s ease-in-out infinite;
}

.about-pillar-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.4rem;
  padding: 5px;
  border-radius: 8px;
  color: var(--accent-1);
  background: rgba(139, 92, 246, 0.12);
}

.about-pillar-icon svg {
  width: 100%;
  height: 100%;
}

.about-pillar h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.about-pillar p {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.about-pillar-dev {
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  animation: pillarFloatCenter 5s ease-in-out infinite;
  animation-delay: 0s;
}

.about-pillar-design {
  bottom: 22%;
  left: 10%;
  animation-delay: 1.2s;
}

.about-pillar-design .about-pillar-icon {
  color: var(--accent-3);
  background: rgba(251, 113, 133, 0.12);
}

.about-pillar-growth {
  bottom: 22%;
  right: 10%;
  animation-delay: 2.4s;
}

.about-pillar-growth .about-pillar-icon {
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.12);
}

@keyframes pillarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pillarFloatCenter {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.about-tech-tags {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: 88%;
  z-index: 2;
}

.about-tech-tags li {
  padding: 0.25rem 0.55rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
}

[data-theme="light"] .about-tech-tags li {
  background: rgba(109, 40, 217, 0.06);
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.skill-bars {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.skill-header span:last-child {
  color: var(--accent-2);
  font-weight: 600;
}

.skill-track {
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 6px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Über mich ---- */
.me-inner {
  max-width: 760px;
  margin: 0 auto;
}

.me-content {
  margin-top: 2.5rem;
}

.me-lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.65;
  color: var(--text);
  text-align: center;
  margin-bottom: 2.25rem;
}

.me-body {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.me-body p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  text-align: center;
}

.me-quote {
  margin: 2.75rem auto 0;
  max-width: 540px;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  text-align: center;
  position: relative;
}

.me-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 3px;
  border-radius: 4px;
  background: var(--gradient);
}

.me-quote span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.55;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.invest-calc-header {
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.invest-calc-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.invest-calc-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.budget-input-wrap {
  position: relative;
}

.budget-input-wrap input {
  padding-right: 6rem;
}

.budget-suffix {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}

.budget-error,
.budget-success {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.budget-error {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.budget-error svg {
  flex-shrink: 0;
  color: var(--accent-3);
  margin-top: 1px;
}

.budget-error p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.budget-error strong {
  color: var(--accent-3);
}

.budget-success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.budget-success svg {
  flex-shrink: 0;
  color: #16a34a;
  margin-top: 1px;
}

.budget-success p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.budget-error[hidden],
.budget-success[hidden] {
  display: none;
}

.invest-calc-contact {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-bottom: 0.5rem;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity var(--transition);
}

.invest-calc-contact.active {
  opacity: 1;
  pointer-events: auto;
}

.contact-desc {
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.7;
  font-size: 0.9rem;
}

.contact-philosophy {
  margin-top: 0;
  padding: 2rem 1.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-1);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.contact-philosophy-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.contact-philosophy p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.contact-philosophy p + p {
  margin-top: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.contact-link svg {
  width: 20px;
  height: 20px;
  color: var(--accent-1);
}

.contact-link:hover {
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(109, 40, 217, 0.08);
}

.contact-form {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
}

.form-group input.input-error {
  border-color: var(--accent-3);
  background: rgba(225, 29, 72, 0.04);
}

.form-group input.input-error:focus {
  border-color: var(--accent-3);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-top {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-top svg {
  width: 20px;
  height: 20px;
}

.footer-top:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  transform: translateY(-3px);
}

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-line.reveal {
  transform: translateY(100%);
}

.hero-line.reveal.visible {
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-large {
    grid-row: span 1;
  }

  .bento-wide {
    grid-column: span 2;
  }

  .bento-wide-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bento-wide-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .wide-stat {
    flex: 1;
    min-width: 120px;
    border-bottom: none;
    padding-bottom: 0;
  }

  .process-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .process-demo {
    position: relative;
    top: 0;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .scroll-showcase-inner {
    flex-direction: column;
    text-align: center;
    gap: 3.5rem;
    max-width: 100%;
  }

  .scroll-story {
    flex: 0 1 auto;
    max-width: 100%;
  }

  .story-step-desc {
    margin: 0 auto;
  }

  .build-split {
    grid-template-columns: 1fr;
  }

  .build-code {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 140px;
  }
}

@media (max-width: 768px) {
  .scroll-showcase {
    height: 220vh;
  }

  .insight-anim {
    width: 100%;
    max-width: 340px;
    min-width: 0;
    height: 320px;
    min-height: 280px;
  }

  .build-split {
    min-height: auto;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform var(--transition);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .music-volume {
    display: none;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .bento-pillars {
    gap: 0.3rem;
  }

  .bento-pillar-line {
    display: none;
  }

  .bento-wide-stats {
    flex-direction: column;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .build-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .build-code {
    max-height: 180px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .section {
    padding: 5rem 0;
  }

}
