/* ============================================================
   TETRAKT.IO — site.css
   Dark cyan-accented agency site. Self-contained.
   ============================================================ */

:root {
  --bg: #0a0a0d;
  --bg-elev: #0f1014;
  --bg-dark: #08080b;
  --fg: #e8e9ec;
  --fg-dim: #a0a3ab;
  --fg-faint: #65686f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #4fd1c5;
  --accent-soft: rgba(79, 209, 197, 0.12);
  --accent-glow: rgba(79, 209, 197, 0.35);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --font-sans: 'Outfit', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  cursor: default;
  position: relative;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #08080b; }

/* ============ 3D GRID CANVAS ============ */
#grid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 55% at 50% 50%, transparent 0%, rgba(10,10,13,0.15) 40%, rgba(10,10,13,0.55) 70%, rgba(10,10,13,0.9) 100%);
}

main, .topbar, .footer { position: relative; z-index: 2; }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(79,209,197,0.4));
  z-index: 9998;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ============ TOPBAR ============ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px var(--pad);
  z-index: 100;
  background: rgba(10, 10, 13, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s ease;
}
.topbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.topbar-logo .logo-mark {
  width: 22px; height: 22px;
  color: var(--accent);
  stroke: currentColor;
}
.topbar-logo .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
  margin-left: 2px;
}
.topbar-nav {
  display: flex;
  gap: 34px;
  align-items: center;
}
.topbar-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: 0.01em;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s;
}
.topbar-nav a:hover { color: var(--fg); }
.topbar-nav a.active { color: var(--fg); }
.topbar-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.lang-switch a {
  color: var(--fg-dim);
  text-decoration: none;
  padding: 6px 2px;
  transition: color 0.2s;
}
.lang-switch a:hover { color: var(--fg); }
.lang-switch a.active { color: var(--accent); }
.lang-switch .sep { color: var(--line-strong); }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
  white-space: nowrap;
}
.cta-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.cta-btn .arrow { transition: transform 0.2s; }
.cta-btn:hover .arrow { transform: translateX(3px); }
.cta-btn.primary {
  background: var(--accent);
  color: #08080b;
  border-color: var(--accent);
  font-weight: 600;
}
.cta-btn.primary:hover {
  background: #6be0d5;
  border-color: #6be0d5;
  color: #08080b;
  box-shadow: 0 0 24px var(--accent-glow);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 9px;
  border-radius: 8px;
}

/* ============ LAYOUT ============ */
main { width: 100%; overflow: hidden; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--pad);
  position: relative;
}
.section-dark {
  max-width: none;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 20%, rgba(255,255,255,0.015) 80%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-dark > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 780px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-heading {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 20px;
  text-wrap: balance;
}
.section-lede {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 640px;
  text-wrap: pretty;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding: 140px var(--pad) 100px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-inner { max-width: 1000px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 32px;
}
.available-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.hero-title {
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 32px;
  text-wrap: balance;
}
.hero-title .accent {
  color: var(--accent);
  font-weight: 500;
}
.hero-title .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--fg-dim);
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--fg-dim);
  max-width: 640px;
  line-height: 1.55;
  margin: 0 0 40px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-dim);
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--fg); }
.btn-ghost::after {
  content: '→';
  margin-left: 8px;
  transition: transform 0.2s;
}
.btn-ghost:hover::after { transform: translateX(3px); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-num {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg-faint);
}
.hero-scroll-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--fg-faint), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 20px;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-20px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateX(60px); opacity: 0; }
}

/* ============ MARQUEE ============ */
.marquee-section {
  padding: 60px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.marquee-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: center;
  margin-bottom: 28px;
}
.marquee-note {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: marqueeScroll 50s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 22px;
  font-weight: 300;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
}
.marquee-track span:nth-child(even) {
  color: var(--fg-faint);
  font-size: 14px;
  padding-top: 4px;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ SERVICES ============ */
.service-stack {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.4fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
  transition: background 0.4s;
}
.service-row:hover {
  background: rgba(255, 255, 255, 0.015);
}
.service-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s ease;
}
.service-row:hover::before { width: 100%; }
.service-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
  padding-top: 8px;
}
.service-head h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.service-head p {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 420px;
}
.service-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.service-list li {
  font-size: 15px;
  color: var(--fg);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 1px;
  background: var(--accent);
}
.service-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tech span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ============ APPROACH ============ */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.approach-card {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.3s;
}
.approach-card:hover { background: var(--bg-elev); }
.approach-icon {
  width: 42px; height: 42px;
  color: var(--accent);
  margin-bottom: 24px;
}
.approach-icon svg { width: 100%; height: 100%; }
.approach-card h4 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.approach-card p {
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin: 0;
}

/* ============ WORK / CASES ============ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 16, 20, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s;
}
.case-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  background: rgba(15, 16, 20, 0.85);
}
.case-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 4px;
  align-self: flex-start;
}
.case-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}
.case-card > p {
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.stat-num {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-top: 3px;
}

/* ============ PROCESS TIMELINE ============ */
.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 32px;
}
.timeline-line {
  display: none;
  position: absolute;
  top: 12px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}
.process-step {
  position: relative;
  padding-top: 38px;
  display: flex;
  flex-direction: column;
}
.step-dot {
  position: absolute;
  top: 6px;
  left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px var(--accent-glow);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.process-step h4 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.process-step p {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin: 0 0 14px;
}
.step-out {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--fg-dim);
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  margin-top: auto;
}

/* ============ INDUSTRIES + STACK ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
.industry-list {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.industry-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
  transition: color 0.2s, padding-left 0.25s;
}
.industry-item:hover {
  color: var(--accent);
  padding-left: 8px;
}
.industry-item span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
}
.tech-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.tech-wall span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
  transition: all 0.2s;
}
.tech-wall span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ============ FAQ ============ */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-chev {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.25s;
}
.faq-item[open] .faq-chev { transform: rotate(45deg); }
.faq-body {
  padding: 0 0 24px;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 760px;
}

/* ============ CONTACT ============ */
.contact-section {
  padding-bottom: clamp(100px, 12vw, 160px);
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-direct {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-direct-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--fg);
  line-height: 1.6;
}
.contact-direct-row:last-child { border-bottom: 1px solid var(--line); }
.contact-direct-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding-top: 3px;
}
.contact-direct a {
  color: var(--fg);
  border-bottom: 1px dotted var(--line-strong);
  transition: color 0.2s, border-color 0.2s;
}
.contact-direct a:hover { color: var(--accent); border-color: var(--accent); }

.contact-form {
  background: rgba(15, 16, 20, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-heading {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.form-sub {
  font-size: 14px;
  color: var(--fg-dim);
  margin-top: -12px;
  margin-bottom: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.req { color: var(--accent); }
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: rgba(79, 209, 197, 0.03);
  box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--fg-faint);
}
.form-field select {
  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='%234fd1c5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-field select option {
  background: var(--bg-elev);
  color: var(--fg);
}
.form-field.error input,
.form-field.error select,
.form-field.error textarea {
  border-color: #ff6b6b;
}
.form-field .hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ff6b6b;
  margin-top: 2px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--accent);
  color: #08080b;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.2s;
  align-self: flex-start;
  margin-top: 6px;
}
.submit-btn:hover:not(:disabled) {
  background: #6be0d5;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.submit-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.submit-btn.success {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.form-fine {
  font-size: 12px;
  color: var(--fg-faint);
  line-height: 1.5;
  margin-top: 4px;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 11, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 64px var(--pad) 32px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 340px;
  margin: 16px 0 0;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 8px;
}
.footer-col a {
  font-size: 14px;
  color: var(--fg-dim);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .topbar-nav {
    position: fixed;
    top: 64px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(15, 16, 20, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 16px 22px;
    gap: 14px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .topbar-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle { display: inline-flex; }
  .cta-btn:not(.primary) { display: none; }

  .hero-title { font-size: clamp(42px, 10vw, 72px); }
  .hero-meta { gap: 20px; }
  .meta-divider { display: none; }

  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .timeline-line {
    display: block;
    left: 6px;
    top: 6px;
    bottom: 6px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
  }
  .process-step { padding: 0 0 0 28px; }
  .step-dot { top: 4px; }

  .two-col { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }

  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-num { padding-top: 0; }
  .service-list { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 560px) {
  .approach-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .case-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-direct-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
}

/* ============ LEGAL / PRIVACY PAGES ============ */
.legal-page { background: var(--bg); }
.legal-page #grid-canvas { display: none; }
.legal-wrap {
  padding: 120px var(--pad) 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal-inner .section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.legal-inner h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--fg);
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-dim);
  margin: 0 0 36px;
  letter-spacing: 0.01em;
}
.legal-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal-inner h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
  color: var(--fg);
}
.legal-inner p,
.legal-inner li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-dim);
}
.legal-inner p { margin: 0 0 14px; }
.legal-inner ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.legal-inner ul li {
  padding-left: 22px;
  margin-bottom: 10px;
  position: relative;
}
.legal-inner ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 12px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.legal-inner a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 209, 197, 0.3);
  transition: border-color 0.15s;
}
.legal-inner a:hover {
  border-bottom-color: var(--accent);
}
.legal-inner strong { color: var(--fg); font-weight: 500; }
.legal-inner em { color: var(--fg); font-style: normal; font-weight: 500; }
.legal-note {
  font-size: 13.5px !important;
  color: var(--fg-dim);
  padding: 14px 18px;
  border-left: 2px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  margin: 12px 0 18px !important;
}
.legal-callout {
  padding: 18px 22px !important;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  margin: 16px 0 24px !important;
  font-size: 14px !important;
  color: var(--fg) !important;
}
.legal-back {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) {
  .legal-wrap { padding: 96px 20px 60px; }
}

/* ============ GDPR CONSENT CHECKBOX ============ */
.form-consent {
  margin-top: 4px;
}
.form-consent .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  flex-shrink: 0;
  margin: 2px 0 0;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.form-consent input[type="checkbox"]:hover {
  border-color: var(--accent);
}
.form-consent input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.form-consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #08080b;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-consent .consent-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-dim);
}
.form-consent .consent-text a {
  color: var(--accent);
  border-bottom: 1px solid rgba(79, 209, 197, 0.3);
  transition: border-color 0.15s;
}
.form-consent .consent-text a:hover { border-bottom-color: var(--accent); }
.form-consent.error input[type="checkbox"] { border-color: #f87171; }
.form-consent .hint {
  font-size: 12px;
  color: #f87171;
  margin: 6px 0 0 30px;
}
