/* brokcod — Monochrome + Red Accent Design System */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  /* Brand red */
  --brand: #BE123C;
  --brand-hover: #9F1239;
  --brand-muted: rgba(190, 18, 60, 0.1);
  --brand-subtle: rgba(190, 18, 60, 0.06);
  --brand-glow: rgba(190, 18, 60, 0.28);
  --brand-border: rgba(190, 18, 60, 0.22);

  /* Glass */
  --glass-blur: 18px;
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.65);

  /* Light — black on white + red accent */
  --bg: #f8f8f8;
  --bg-elevated: #f0f0f0;
  --surface: var(--glass-bg);
  --surface-solid: var(--glass-bg-strong);
  --border: rgba(0, 0, 0, 0.09);
  --border-hover: rgba(190, 18, 60, 0.28);
  --text: #0a0a0a;
  --text-secondary: #525252;
  --text-tertiary: #a3a3a3;
  --accent: var(--brand);
  --accent-2: #9F1239;
  --accent-3: #881337;
  --accent-muted: var(--brand-muted);
  --accent-fg: #ffffff;
  --glow: var(--brand-glow);
  --success: #166534;
  --nav-bg: rgba(255, 255, 255, 0.55);
  --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.06), 0 24px 48px rgba(0,0,0,0.08);
  --mesh-1: rgba(190, 18, 60, 0.07);
  --mesh-2: rgba(0, 0, 0, 0.04);
  --mesh-3: rgba(190, 18, 60, 0.05);
  --code-bg: rgba(245, 245, 245, 0.85);
  --input-bg: rgba(255, 255, 255, 0.72);
  --noise-opacity: 0.022;
  --cta-bg: rgba(10, 10, 10, 0.92);
  --cta-fg: #ffffff;
  --cta-muted: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] {
  --brand: #F87171;
  --brand-hover: #EF4444;
  --brand-muted: rgba(248, 113, 113, 0.14);
  --brand-subtle: rgba(248, 113, 113, 0.08);
  --brand-glow: rgba(248, 113, 113, 0.22);
  --brand-border: rgba(248, 113, 113, 0.28);

  --glass-bg: rgba(12, 12, 12, 0.55);
  --glass-bg-strong: rgba(18, 18, 18, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);

  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --surface: var(--glass-bg);
  --surface-solid: var(--glass-bg-strong);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(248, 113, 113, 0.32);
  --text: #ffffff;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;
  --accent: var(--brand);
  --accent-2: #FCA5A5;
  --accent-3: #FECDD3;
  --accent-muted: var(--brand-muted);
  --accent-fg: #ffffff;
  --glow: var(--brand-glow);
  --success: #86efac;
  --nav-bg: rgba(0, 0, 0, 0.52);
  --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.3), 0 24px 48px rgba(0,0,0,0.45);
  --mesh-1: rgba(248, 113, 113, 0.1);
  --mesh-2: rgba(255, 255, 255, 0.04);
  --mesh-3: rgba(248, 113, 113, 0.08);
  --code-bg: rgba(20, 20, 20, 0.85);
  --input-bg: rgba(10, 10, 10, 0.72);
  --noise-opacity: 0.035;
  --cta-bg: rgba(255, 255, 255, 0.06);
  --cta-fg: #ffffff;
  --cta-muted: rgba(255, 255, 255, 0.68);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

section[id],
.hero[id] {
  scroll-margin-top: 5.5rem;
}

/* Glass surface utility */
.glass-surface {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  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");
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 9999;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Nav ---- */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 2rem);
  max-width: 900px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  top: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  padding: 0 0.5rem 0 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
}

.logo-img {
  height: 2rem;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

[data-theme="dark"] .logo-img {
  filter: invert(1);
}

.logo-text {
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--text);
}

.logo-full {
  height: 2.75rem;
  width: auto;
  object-fit: contain;
}

[data-theme="dark"] .logo-full {
  filter: invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav-links a {
  padding: 0.4375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  background: var(--brand-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: var(--accent-muted);
  color: var(--text);
}

.theme-toggle svg { width: 1.125rem; height: 1.125rem; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.menu-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 2px 16px var(--brand-glow);
}

.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--brand-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--brand-muted);
  border-color: var(--brand-border);
  color: var(--text);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
}

.btn svg { width: 1rem; height: 1rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-mesh::before,
.hero-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: meshFloat 12s ease-in-out infinite;
}

.hero-mesh::before {
  width: 600px;
  height: 600px;
  background: var(--mesh-1);
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-mesh::after {
  width: 400px;
  height: 400px;
  background: var(--mesh-2);
  bottom: 10%;
  right: -5%;
  animation-delay: -6s;
}

.mesh-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--mesh-3);
  border-radius: 50%;
  filter: blur(60px);
  top: 30%;
  left: -5%;
  animation: meshFloat 10s ease-in-out infinite reverse;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s ease both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 12px var(--brand-glow);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease 0.1s both;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.25rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-trust-item {
  text-align: left;
}

.hero-trust-value {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand);
}

.hero-trust-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.hero-trust-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
}

/* Hero Mockup */
.hero-visual {
  position: relative;
  animation: fadeUp 1s ease 0.3s both;
}

.mockup-wrapper {
  position: relative;
  perspective: 1200px;
}

.mockup-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand-subtle);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-wrapper:hover .mockup-card {
  transform: rotateY(-2deg) rotateX(1deg);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

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

.mockup-dot:nth-child(1) { background: var(--brand); }
.mockup-dot:nth-child(2) { background: #a3a3a3; }
.mockup-dot:nth-child(3) { background: #d4d4d4; }

.mockup-body { padding: 1.25rem; }

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mockup-stat {
  padding: 0.875rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.mockup-stat-label {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.mockup-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-showcase {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.brand-logo {
  max-width: 200px;
  width: 100%;
}

.brand-showcase .code-block {
  width: 100%;
}

/* ---- Section visuals (monochrome SVG) ---- */
.section-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.section-visual {
  overflow: hidden;
}

.section-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.theme-aware-img {
  transition: filter 0.3s ease, opacity 0.3s ease;
}

[data-theme="light"] .theme-aware-img {
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.94;
}

[data-theme="light"] .theme-aware-img:hover {
  opacity: 1;
}

.page-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

.page-hero-split .page-hero-content {
  text-align: left;
}

.page-hero-split .section-tag {
  justify-content: flex-start;
}

.page-hero-visual {
  max-width: 480px;
  margin-left: auto;
}

.page-hero-visual .section-img {
  box-shadow: var(--shadow-lg);
}

.mockup-body-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.service-card-visual {
  margin: -2.5rem -2.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
}

.service-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.learn-project-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  background: var(--bg-elevated);
}

.ai-spotlight-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-spotlight-visual .ai-use-cases {
  grid-template-columns: 1fr 1fr;
}

.contact-visual {
  margin-top: 2rem;
}

.contact-visual .section-img {
  max-width: 400px;
}

.mockup-stat-value.up {
  color: var(--text);
}

.mockup-chart {
  height: 120px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.mockup-bar {
  flex: 1;
  background: var(--text);
  border-radius: 4px 4px 0 0;
  opacity: 0.75;
  animation: barGrow 1.2s ease both;
}

.mockup-bar:nth-child(1) { height: 45%; animation-delay: 0.5s; }
.mockup-bar:nth-child(2) { height: 70%; animation-delay: 0.6s; }
.mockup-bar:nth-child(3) { height: 55%; animation-delay: 0.7s; }
.mockup-bar:nth-child(4) { height: 90%; animation-delay: 0.8s; }
.mockup-bar:nth-child(5) { height: 65%; animation-delay: 0.9s; }
.mockup-bar:nth-child(6) { height: 80%; animation-delay: 1s; }

@keyframes barGrow {
  from { height: 0; opacity: 0; }
}

.floating-badge {
  position: absolute;
  padding: 0.625rem 1rem;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: float 4s ease-in-out infinite;
}

.floating-badge.top-right {
  top: -1rem;
  right: -1rem;
  animation-delay: -1s;
}

.floating-badge.bottom-left {
  bottom: 2rem;
  left: -2rem;
  animation-delay: -2s;
}

.floating-badge-icon {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent-muted);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--accent);
}

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

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

/* ---- Sections ---- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-header.center .section-tag::before { display: none; }

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

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

/* ---- Bento Grid ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.bento-item {
  position: relative;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-muted), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}

.bento-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bento-item:hover::before { opacity: 1; }

.bento-item > * { position: relative; z-index: 1; }

.bento-item.span-2 { grid-column: span 2; }

.bento-icon {
  width: 3rem;
  height: 3rem;
  background: var(--accent-muted);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.bento-icon svg { width: 1.375rem; height: 1.375rem; }

.bento-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}

.bento-link:hover { gap: 0.625rem; }

/* ---- Marquee ---- */
.marquee-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
}

.marquee-item {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-tertiary);
  white-space: nowrap;
  transition: color 0.2s;
}

.marquee-item:hover { color: var(--text-secondary); }

.marquee-section.tagline-marquee {
  padding: 1.75rem 0;
  border-top: none;
  background: var(--brand-subtle);
}

.tagline-marquee .marquee-item.tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.tagline-marquee .marquee-item.tagline::after {
  content: '·';
  margin-left: 3rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Process Timeline ---- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.process-step {
  text-align: center;
  padding: 0 0.75rem;
}

.process-num {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  background: var(--surface-solid);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg);
}

.process-step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.process-step-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.testimonial-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: var(--text);
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--text);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bg);
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ---- CTA ---- */
.cta-section {
  padding: 6rem 0;
}

.cta-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
  background: var(--cta-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.cta-card > * { position: relative; z-index: 1; }

.cta-card h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cta-fg);
  margin-bottom: 0.75rem;
}

.cta-card p {
  color: var(--cta-muted);
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.cta-card .btn-ghost {
  background: transparent;
  border-color: var(--cta-muted);
  color: var(--cta-fg);
}

.cta-card .btn-ghost:hover {
  background: var(--accent-muted);
  border-color: var(--cta-fg);
  color: var(--cta-fg);
}

/* ---- Page Header ---- */
.page-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero .hero-mesh { opacity: 0.6; }

.page-hero-content {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.page-hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--accent-muted);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-icon svg { width: 1.5rem; height: 1.5rem; }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.service-card > p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
}

.service-list li svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

/* ---- About ---- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.about-features {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.about-feature:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow);
}

.about-feature-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-muted);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.about-feature-icon svg { width: 1.125rem; height: 1.125rem; }

.about-feature > div strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.about-feature > div span {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.code-block {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8125rem;
  line-height: 1.9;
  overflow-x: auto;
}

.code-block .kw { color: var(--brand); }
.code-block .str { color: var(--success); }
.code-block .cm { color: var(--text-tertiary); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: all 0.3s;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-border);
}

.value-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  background: var(--accent-muted);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.value-icon svg { width: 1.375rem; height: 1.375rem; }

.value-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Portfolio ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.portfolio-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover {
  border-color: var(--brand-border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.portfolio-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-thumb {
  transform: scale(1.04);
}

[data-theme="light"] .portfolio-thumb {
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.94;
}

[data-theme="light"] .portfolio-card:hover .portfolio-thumb {
  opacity: 1;
}

[data-theme="light"] .learn-project-thumb {
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.94;
}

.portfolio-body { padding: 1.75rem; }

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}

.portfolio-tag {
  padding: 0.25rem 0.75rem;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.portfolio-title {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.portfolio-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Contact ---- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-info-lead {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--accent-muted);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.contact-item-icon svg { width: 1.25rem; height: 1.25rem; }

.contact-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.contact-item-value {
  font-weight: 600;
}

.contact-item-value a {
  color: var(--brand);
  transition: opacity 0.2s;
}

.contact-item-value a:hover { opacity: 0.8; }

.contact-form-wrap {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  background: var(--input-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

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

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--accent-muted);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.9375rem;
  text-align: center;
}

.form-success.show { display: block; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-tagline {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.01em;
  margin-top: 1rem;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1.25rem;
}

.footer-col li { margin-bottom: 0.625rem; }

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}

.footer-social svg { width: 1rem; height: 1rem; }

/* ---- Dashboard Showcase ---- */
.dash-showcase {
  max-width: 960px;
  margin: 0 auto;
}

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.dash-tab {
  padding: 0.5rem 1.25rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s;
}

.dash-tab:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.dash-tab.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 4px 14px var(--brand-glow);
}

.dash-window {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dash-window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.dash-window-title {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.dash-panel {
  display: none;
  animation: dashFadeIn 0.4s ease;
}

.dash-panel.active {
  display: block;
}

@keyframes dashFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 340px;
}

.dash-sidebar {
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--border);
  background: var(--bg-elevated);
}

.dash-sidebar-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
  transition: all 0.2s;
}

.dash-sidebar-item.active {
  background: var(--accent-muted);
  color: var(--text);
  font-weight: 600;
}

.dash-main {
  padding: 1.25rem;
}

.dash-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.dash-main-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dash-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.dash-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.dash-kanban-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.dash-kanban-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.625rem;
}

.dash-kanban-card {
  font-size: 0.8125rem;
  padding: 0.625rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  font-weight: 500;
  animation: dashCardIn 0.5s ease both;
}

.dash-kanban-card:nth-child(2) { animation-delay: 0.05s; }
.dash-kanban-card:nth-child(3) { animation-delay: 0.1s; }

@keyframes dashCardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 64px;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.dash-mini-bar {
  flex: 1;
  height: var(--h, 50%);
  background: var(--text);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  animation: dashBarGrow 0.8s ease both;
}

.dash-mini-bar:nth-child(1) { animation-delay: 0.1s; }
.dash-mini-bar:nth-child(2) { animation-delay: 0.2s; }
.dash-mini-bar:nth-child(3) { animation-delay: 0.3s; }
.dash-mini-bar:nth-child(4) { animation-delay: 0.4s; }
.dash-mini-bar:nth-child(5) { animation-delay: 0.5s; }

@keyframes dashBarGrow {
  from { height: 0; opacity: 0; }
  to { height: var(--h, 50%); opacity: 0.7; }
}

.dash-panel.active .dash-mini-bar,
.dash-panel.active .dash-progress-fill {
  animation: dashBarGrow 0.8s ease both, dashProgressGrow 1s ease both;
}

.dash-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.dash-table-head,
.dash-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
}

.dash-table-head {
  background: var(--bg);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
}

.dash-table-row {
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.dash-table-row:last-child { border-bottom: none; }

.dash-table-row span:first-child { color: var(--text); font-weight: 500; }

.dash-status {
  font-size: 0.75rem;
  font-weight: 600;
}

.dash-status.ok { color: var(--text); }
.dash-status.warn { color: var(--text-secondary); }
.dash-status.bad { color: var(--text-tertiary); text-decoration: underline; }

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.dash-stat-box {
  padding: 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.dash-stat-box span {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.dash-stat-box strong {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-activity {
  display: grid;
  gap: 0.625rem;
}

.dash-activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.625rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.dash-activity-dot {
  width: 6px;
  height: 6px;
  background: var(--text);
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-progress-list {
  display: grid;
  gap: 1rem;
}

.dash-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.dash-progress-label span:last-child { font-weight: 700; color: var(--text); }

.dash-progress-track {
  height: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  width: var(--w, 0%);
  background: var(--text);
  border-radius: var(--radius-full);
}

@keyframes dashProgressGrow {
  from { width: 0; }
  to { width: var(--w, 0%); }
}

.dash-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 1.25rem;
}

/* ---- Metrics ---- */
.metrics-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metric-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: all 0.3s;
}

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

.metric-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.625rem;
  color: var(--brand);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.625rem;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: var(--brand-border);
  box-shadow: 0 0 0 1px var(--brand-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--brand-muted);
}

.faq-item.open .faq-question {
  color: var(--brand);
}

.faq-chevron {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 320px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  opacity: 0.75;
}

/* ---- Lead Popup (bottom-right) ---- */
.lead-modal {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 2000;
  width: calc(100% - 2rem);
  max-width: 380px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lead-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lead-modal-backdrop {
  display: none;
}

.lead-modal-dialog {
  position: relative;
  width: 100%;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.lead-modal-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.lead-modal-close:hover {
  background: var(--accent-muted);
  color: var(--text);
  border-color: var(--border-hover);
}

.lead-modal-header {
  margin-bottom: 1.25rem;
  padding-right: 1.75rem;
}

.lead-modal-header h2 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.375rem;
}

.lead-modal-header p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.lead-modal-header a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-modal-header a:hover {
  opacity: 0.8;
}

.lead-modal-form .form-group {
  margin-bottom: 0.875rem;
}

.lead-modal-form .btn-lg {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
}

.lead-modal-form .form-group label .required {
  color: var(--text-tertiary);
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1999;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-lg), 0 0 20px var(--brand-glow);
  background: var(--brand-muted);
  color: var(--brand);
}

.back-to-top svg {
  width: 1.125rem;
  height: 1.125rem;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* ---- AI spotlight ---- */
.ai-spotlight {
  background: linear-gradient(180deg, var(--brand-subtle) 0%, var(--bg-elevated) 100%);
}

.ai-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ai-spotlight-content .section-desc {
  text-align: left;
  margin-left: 0;
}

.ai-spotlight-content .hero-actions {
  margin-top: 0;
}

.ai-feature-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

.ai-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ai-feature-list li svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--brand);
}

.ai-use-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ai-use-card {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.25rem;
  transition: border-color 0.2s ease;
}

.ai-use-card:hover {
  border-color: var(--brand-border);
}

.ai-use-card strong {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.ai-use-card span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bento-item.ai-highlight {
  border-color: var(--brand-border);
}

.bento-item.ai-highlight::before {
  opacity: 0.5;
}

.service-card.featured {
  grid-column: 1 / -1;
  border-color: var(--brand-border);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand-subtle);
}

.service-card .service-tagline {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand);
  margin: -0.25rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.service-card.featured::after {
  transform: scaleX(1);
}

.contact-divider {
  margin: 0 0.375rem;
  color: var(--text-tertiary);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-item.span-2 { grid-column: span 1; }
  .process-timeline { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-timeline::before { display: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
  }
  .dash-sidebar-item { margin-bottom: 0; }
  .dash-kanban { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .ai-spotlight-grid { grid-template-columns: 1fr; }
  .page-hero-split { grid-template-columns: 1fr; text-align: center; }
  .page-hero-split .page-hero-content { text-align: center; }
  .page-hero-split .section-tag { justify-content: center; }
  .page-hero-visual { margin: 0 auto; max-width: 100%; }
  .page-hero-split h1 { text-align: center; }
  .page-hero-split p { margin-left: auto; margin-right: auto; }
  .contact-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Careers */
.careers-traits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.careers-apply-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.careers-apply-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 1rem 0 0.75rem;
}

.careers-apply-box p {
  color: var(--text-muted);
  line-height: 1.7;
}

.careers-email {
  margin: 1.5rem 0 !important;
}

.careers-email a {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.2s, border-color 0.2s;
}

.careers-email a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.careers-note {
  font-size: 0.9rem !important;
}

.careers-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.careers-note a:hover {
  color: var(--accent);
}

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

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

  .navbar {
    top: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .menu-toggle { display: grid; }

  .nav-links {
    display: none;
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 400px;
    flex-direction: column;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.75rem 1rem; }

  .nav-actions .btn-primary { display: none; }

  .hero { min-height: auto; padding: 6.5rem 0 3rem; }
  .hero-content { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
  .hero-trust-item { text-align: center; width: 100%; }
  .hero-trust-divider { display: none; }

  .ai-spotlight-content .hero-actions .btn { flex: 1 1 auto; width: 100%; }

  .about-text .section-title { text-align: left; }
  .code-block { padding: 1.25rem; font-size: 0.75rem; }

  .bento-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .dash-stats-row { grid-template-columns: 1fr; }
  .dash-tabs { gap: 0.375rem; justify-content: flex-start; }
  .dash-tab { padding: 0.4375rem 1rem; font-size: 0.8125rem; }
  .dash-window { overflow-x: auto; }
  .dash-table { min-width: 280px; }
  .dash-table-head,
  .dash-table-row { font-size: 0.75rem; }
  .dash-window-title { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .contact-form-wrap { padding: 1.5rem; }
  .contact-item-value {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    word-break: break-word;
  }
  .contact-divider { display: none; }
  .contact-visual .section-img { max-width: 100%; }

  .faq-question { padding: 1rem 1.25rem; font-size: 0.9375rem; }
  .faq-answer p { padding: 0 1.25rem 1.25rem; }

  .mockup-card { transform: none; }
  .mockup-wrapper:hover .mockup-card { transform: none; }
  .floating-badge { display: none; }

  .lead-modal {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
    padding: 0 1rem 1rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .ai-use-cases { grid-template-columns: 1fr; }
}
