:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-alt: #0f1215;
  --bg-elevated: #14171c;
  --border: #23272e;
  --fg: #e8e9eb;
  --muted: #8a8f98;
  --accent: #6ee7b7;
  --accent-dim: rgba(110, 231, 183, 0.12);
  --error: #f87171;
  --header-h: 88px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(1100px 550px at 50% -8%, rgba(110, 231, 183, 0.06), transparent 60%), var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  transition: padding-bottom 0.35s ease;
}
body.contact-bar-visible { padding-bottom: 64px; }
@media (max-width: 640px) {
  body.contact-bar-visible { padding-bottom: 98px; }
}
a { color: var(--accent); }

/* Film-grain texture: fixed, non-interactive, blended over everything for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Aurora: soft drifting glow orbs behind the header/hero area */
.aurora {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 560px;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  will-change: transform;
}
.aurora span:nth-child(1) {
  width: 420px;
  height: 420px;
  top: -140px;
  left: 6%;
  background: var(--accent);
  animation: drift1 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  width: 360px;
  height: 360px;
  top: -80px;
  right: 4%;
  background: #5eead4;
  animation: drift2 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  width: 300px;
  height: 300px;
  top: 140px;
  left: 42%;
  background: #34d399;
  opacity: 0.22;
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0); } to { transform: translate(50px, 36px); } }
@keyframes drift2 { from { transform: translate(0, 0); } to { transform: translate(-40px, 44px); } }
@keyframes drift3 { from { transform: translate(0, 0); } to { transform: translate(26px, -30px); } }
@media (prefers-reduced-motion: reduce) {
  .aurora span { animation: none; }
}

header {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 16px auto 0;
  padding: 12px 26px;
  background: rgba(20, 23, 28, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 32px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
header.scrolled {
  background: rgba(20, 23, 28, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--fg);
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0;
  box-shadow: 0 0 16px -4px rgba(110, 231, 183, 0.55);
}
.logo-text { line-height: 1; }
@media (max-width: 400px) {
  .logo-text { display: none; }
}
header nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
header nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}
header nav a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
header nav a.active { color: var(--accent); }
header nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 12px 0;
    padding: 16px 18px;
    border-radius: 22px;
  }
  header nav { gap: 0; margin: 0 -8px; }
  header nav a { padding: 7px 10px; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  header { transition: none; }
}

.banner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 24px;
}
.banner p {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--fg);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 0;
  box-shadow: 0 4px 16px -8px rgba(110, 231, 183, 0.4);
}
.banner strong { color: var(--accent); }

main { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

.hero {
  text-align: center;
  padding: 40px 0 64px;
}
.hero h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  margin: 4px 0 14px;
  letter-spacing: -0.015em;
}

/* AI dashboard mockup: replaces the old oversized hero wordmark */
.ai-panel {
  max-width: 620px;
  margin: 0 auto 24px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 23, 28, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  opacity: 0;
  translate: 0 14px;
  animation: panel-in 0.7s ease 0.1s forwards;
}
.ai-panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.ai-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(110, 231, 183, 0.7);
}
.ai-panel-title { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.ai-panel-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: live-blink 1.6s ease-in-out infinite;
}
.ai-panel-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}
.ai-panel-chart { padding: 18px 10px 6px 18px; }
.hero-graph-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 220;
  overflow: visible;
}
.ai-panel-chart .grid-line { stroke: var(--border); stroke-width: 1; }
.ai-panel-chart .graph-area {
  opacity: 0;
  animation: graph-fade-in 1s ease 1.5s forwards;
}
.ai-panel-chart .graph-line {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: graph-draw 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}
.ai-panel-chart .graph-dot {
  fill: var(--accent);
  opacity: 0;
  animation: graph-dot-in 0.4s ease 2.1s forwards, graph-dot-pulse 2.2s ease-in-out 2.5s infinite;
}
.ai-panel-kpis {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;
  border-left: 1px solid var(--border);
}
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.kpi-value { font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.kpi-value.up::before { content: "\25B2 "; font-size: 0.65em; }
.kpi-value.down::before { content: "\25BC "; font-size: 0.65em; }
.ai-panel-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: rgba(110, 231, 183, 0.04);
  min-height: 24px;
}
.ai-insight-icon { font-size: 0.95rem; line-height: 1.5; }
.ai-insight-text { margin: 0; font-size: 0.85rem; color: var(--fg); line-height: 1.5; }
@keyframes panel-in { to { opacity: 1; translate: 0 0; } }
@keyframes graph-draw { to { stroke-dashoffset: 0; } }
@keyframes graph-fade-in { to { opacity: 1; } }
@keyframes graph-dot-in { to { opacity: 1; } }
@keyframes graph-dot-pulse {
  0%, 100% { r: 6; }
  50% { r: 8; }
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@media (max-width: 640px) {
  .ai-panel-body { grid-template-columns: 1fr; }
  .ai-panel-kpis {
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .ai-panel-kpis .kpi { flex: 1 1 25%; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-panel { animation: none; opacity: 1; translate: 0 0; }
  .ai-panel-chart .graph-area,
  .ai-panel-chart .graph-line,
  .ai-panel-chart .graph-dot {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
  .live-dot { animation: none; }
}

.hero p.tagline {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 16px;
}
.hero p.tagline strong { color: var(--fg); }
.hero p.locality {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
}
.hero p.locality strong { color: var(--accent); font-weight: 600; }

.page-header {
  text-align: center;
  padding: 40px 0 32px;
  border-top: none;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.page-header p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

.about p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  text-align: center;
}
.about p + p { margin-top: 16px; }

.faq {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: var(--accent); }
.faq-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--muted); }

.cta {
  display: inline-block;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: 0 8px 20px -8px rgba(110, 231, 183, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  animation: cta-pulse 3s ease-in-out infinite;
}
.cta:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(110, 231, 183, 0.6);
  animation-play-state: paused;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 8px 20px -8px rgba(110, 231, 183, 0.5); }
  50% { box-shadow: 0 10px 30px -6px rgba(110, 231, 183, 0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .cta { animation: none; }
}
button.cta {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
button.cta:disabled {
  opacity: 0.6;
  cursor: default;
  animation: none;
}
.cta-row { text-align: center; margin-top: 8px; }

section {
  position: relative;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
section:nth-of-type(even)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--bg-alt);
  z-index: -1;
}
section h2 {
  font-size: 1.6rem;
  text-align: center;
  margin: 0 0 16px;
}
section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 0;
}
section > p.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 32px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 0.5);
}
.service-card .icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover .icon {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px var(--accent-dim), 0 0 26px -4px rgba(110, 231, 183, 0.65);
}
.service-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.service-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.service-card a.learn-more { display: inline-block; margin-top: 10px; font-size: 0.85rem; font-weight: 600; }

/* Stat bar: homepage hero stats, about page career stats, etc. */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
}
.stat-bar .stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.stat-bar .stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Small stat chips inside service detail cards */
.stat-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
}
.stat-chip {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  text-align: left;
  font-size: 0.88rem;
  color: var(--muted);
}
.benefit-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}
.benefit-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-detail-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-detail-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 0.5);
}
.service-detail-card .icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  font-size: 1.5rem;
  background: var(--accent-dim);
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-detail-card:hover .icon {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px var(--accent-dim), 0 0 26px -4px rgba(110, 231, 183, 0.65);
}
.service-detail-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.service-detail-card > p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Comparison table */
.compare-table-wrap { overflow-x: auto; }
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.9rem;
}
table.compare-table th,
table.compare-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
table.compare-table th {
  background: var(--bg-elevated);
  color: var(--fg);
  font-weight: 700;
}
table.compare-table td.win { color: var(--accent); font-weight: 600; }
table.compare-table td.meh { color: var(--muted); }

/* Founder / bio card */
.founder-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  max-width: 760px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.founder-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.founder-card h3 { margin: 0 0 2px; font-size: 1.2rem; }
.founder-card .founder-title { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.founder-card .founder-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.founder-card .founder-tags li {
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}
.bio-text { max-width: 720px; margin: 24px auto 0; color: var(--muted); font-size: 1rem; }
.bio-text p { margin: 0 0 16px; }
.bio-text h3 { color: var(--fg); font-size: 1.05rem; margin: 20px 0 8px; }
.quote-block {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 10px 10px 0;
  color: var(--fg);
  font-style: italic;
}
.quote-block cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}
.expertise-tags {
  list-style: none;
  padding: 0;
  margin: 16px auto 0;
  max-width: 700px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.expertise-tags li {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Process steps */
.steps-list { max-width: 760px; margin: 0 auto; }
.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.step-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.step-badge {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card-header h3 { margin: 0; font-size: 1.1rem; flex: 1; }
.step-timeframe {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.step-card > p { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.step-sub { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.step-sub:first-of-type { margin-top: 8px; }
.step-sub h4 { margin: 0 0 4px; font-size: 0.95rem; color: var(--fg); }
.step-sub .step-sub-time { font-size: 0.75rem; color: var(--muted); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.why-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 0.5);
}
.why-card .icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}
.why-card:hover .icon { transform: scale(1.15); }
.why-card h3 { margin: 0 0 6px; font-size: 0.95rem; }
.why-card p { margin: 0; color: var(--muted); font-size: 0.85rem; }

.game {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}
.game-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.card {
  aspect-ratio: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: transparent;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card.flipped, .card.matched {
  color: var(--fg);
  background: var(--accent-dim);
}
.card.matched { border-color: var(--accent); cursor: default; }
.card:disabled { cursor: default; }
.game-message {
  margin-top: 16px;
  min-height: 1.4em;
  color: var(--accent);
  font-weight: 600;
}
.restart {
  margin-top: 16px;
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.restart:hover { border-color: var(--accent); color: var(--accent); }

#contact-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-row textarea { resize: vertical; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#contact-form .cta { width: 100%; }
.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form-status.success { color: var(--accent); }
.form-status.error { color: var(--error); }
.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 24px;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}
.contact-meta-item h3 { margin: 0 0 4px; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-meta-item p { margin: 0; font-size: 1rem; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}
footer .footer-links { margin-top: 8px; font-size: 0.8rem; }

/* Scroll-reveal: classes applied by main.js as elements enter the viewport */
.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s ease, translate 0.6s ease;
}
.reveal.in-view { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; translate: 0 0; }
}

/* Sticky bottom contact bar: injected by main.js on all pages except /contact */
.contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 28px -20px rgba(0, 0, 0, 0.85);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.contact-bar.visible { transform: translateY(0); }
.contact-bar-text {
  margin: 0;
  color: var(--fg);
  font-size: 0.92rem;
}
.contact-bar-text strong { color: var(--accent); }
.contact-bar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bar-cta {
  display: inline-block;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 20px;
  border-radius: 8px;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px -8px rgba(110, 231, 183, 0.5);
}
.bar-cta:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(110, 231, 183, 0.6);
}
.bar-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.bar-close:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
  .contact-bar { flex-direction: column; gap: 10px; padding: 12px 16px; text-align: center; }
  .contact-bar-text { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-bar { transition: none; }
  body { transition: none; }
}

/* FAQ chat widget: injected by main.js on all pages */
.chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(110, 231, 183, 0.55);
  transition: transform 0.2s ease, bottom 0.3s ease, box-shadow 0.2s ease;
}
.chat-toggle:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -8px rgba(110, 231, 183, 0.65); }
.chat-toggle svg { width: 24px; height: 24px; }
.chat-toggle .chat-toggle-close { display: none; }
.chat-toggle.open .chat-toggle-chat { display: none; }
.chat-toggle.open .chat-toggle-close { display: block; }
body.contact-bar-visible .chat-toggle { bottom: 88px; }

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 94;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 140px);
  background: rgba(20, 23, 28, 0.94);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.3s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
body.contact-bar-visible .chat-panel { bottom: 156px; }
.chat-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-panel-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-panel-title { font-weight: 600; font-size: 0.9rem; }
.chat-panel-sub { color: var(--muted); font-size: 0.72rem; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg { max-width: 85%; font-size: 0.87rem; line-height: 1.45; padding: 9px 12px; border-radius: 12px; }
.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--fg);
  border-bottom-right-radius: 4px;
}
.chat-msg a.chat-cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 7px;
  text-decoration: none;
}
.chat-msg a.chat-cta:hover { opacity: 0.9; }
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.chat-chip {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chat-chip:hover { border-color: var(--accent); color: var(--accent); }
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input-row input {
  flex: 1;
  min-width: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.87rem;
}
.chat-input-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.chat-send {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send:hover { opacity: 0.9; }
.chat-send svg { width: 16px; height: 16px; }
@media (max-width: 480px) {
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
  body.contact-bar-visible .chat-panel { bottom: 148px; }
  .chat-toggle { right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel, .chat-toggle { transition: none; }
}
