/* ============================================================
   VFlow — design system
   ============================================================ */

:root {
  --bg: #02020c;
  --bg-1: #05070f;
  --bg-elevated: #0b0e18;
  --bg-card: #0d1120;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --cyan: #00d4ff;
  --cyan-dim: #00d4ff99;
  --blue: #0066ff;
  --violet: #7c5cff;
  --text: #f4f6fb;
  --text-dim: #9aa3b8;
  --text-faint: #5c6479;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --font-sans: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* backdrop grid + glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  z-index: -1;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--cyan);
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 16px; }
.section-head p { color: var(--text-dim); font-size: 17px; }

.gradient-text {
  background: linear-gradient(100deg, var(--cyan) 0%, #fff 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyan);
  color: #02121a;
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(0, 212, 255, 0.06); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 2, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.brand img { width: 26px; height: 26px; }
.brand .dim { color: var(--text-faint); font-weight: 400; font-size: 12px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-toggle span { height: 1.5px; background: var(--text); display: block; }
@media (min-width: 860px) { .nav-toggle { display: none; } }
@media (max-width: 859px) { .nav-links { display: none; } }

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px 28px;
  gap: 18px;
}

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00e08a;
  box-shadow: 0 0 8px #00e08a;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  margin-bottom: 22px;
}
.hero-lead {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.tag {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}
.hero-meta span:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--border-strong); }

/* hero visual: orbiting node */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 420px);
  margin-inline: auto;
}
.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 212, 255, 0.16);
  border-radius: 50%;
}
.orbit-2 { inset: 14%; border-color: rgba(124, 92, 255, 0.16); animation: spin 46s linear infinite; }
.orbit-3 { inset: 30%; border-color: rgba(0, 212, 255, 0.22); animation: spin 30s linear infinite reverse; }
.orbit-1 { animation: spin 64s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-node {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  top: -4px; left: 50%;
  transform: translateX(-50%);
}
.hero-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1a2540, #05070f 70%);
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.18), inset 0 0 30px rgba(0, 212, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-core-dot {
  width: 30%; height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--cyan) 60%);
  box-shadow: 0 0 30px var(--cyan);
}
.hero-particle {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--violet);
  opacity: 0.7;
}

/* ---------- sections ---------- */

section { padding: 96px 0; position: relative; }
.section-alt { 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(--border); border-bottom: 1px solid var(--border); }

/* problem cards */
.problem-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.problem-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 26px;
}
.problem-card .num { font-family: var(--font-mono); color: var(--cyan); font-size: 13px; margin-bottom: 14px; display: block; }
.problem-card h3 { font-size: 18px; margin-bottom: 10px; }
.problem-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 16px; }
.problem-stat { font-family: var(--font-mono); font-size: 22px; color: var(--cyan); }
.problem-stat span { display: block; font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* services / modules */
.module-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.module-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.module-card:hover { border-color: var(--cyan-dim); transform: translateY(-3px); }
.module-card .row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.module-card .num { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.module-card .module-tag { font-family: var(--font-mono); font-size: 10px; color: var(--cyan); letter-spacing: 0.08em; }
.module-card h3 { font-size: 19px; margin-bottom: 10px; }
.module-card p { color: var(--text-dim); font-size: 14.5px; }
.module-card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.module-card li { font-size: 13px; color: var(--text-faint); display: flex; gap: 8px; }
.module-card li::before { content: "→"; color: var(--cyan); }

/* process */
.process-list { display: grid; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.process-step:last-child { border-bottom: 1px solid var(--border); }
.process-step .step-num { font-family: var(--font-mono); font-size: 34px; color: transparent; -webkit-text-stroke: 1px var(--cyan-dim); }
.process-step .step-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.process-step h3 { font-size: 21px; margin-bottom: 10px; }
.process-step p { color: var(--text-dim); font-size: 15px; max-width: 620px; }
.process-step .deliverable {
  margin-top: 14px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}

/* projects */
.project-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.project-card:hover { border-color: var(--cyan-dim); transform: translateY(-4px); }
.project-thumb {
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 20%, rgba(0,212,255,0.16), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(124,92,255,0.14), transparent 55%),
    var(--bg-elevated);
  overflow: hidden;
}
.project-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 75%);
}
.project-thumb .glyph { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.08em; color: var(--cyan); z-index: 1; }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-cat { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.04em; }
.project-card h3 { font-size: 20px; }
.project-card p { color: var(--text-dim); font-size: 14px; flex: 1; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; }
.project-links { display: flex; gap: 14px; font-size: 13.5px; margin-top: 4px; }
.project-links a { color: var(--cyan); font-weight: 600; }
.project-links a:hover { text-decoration: underline; }
.project-card.featured { grid-column: span 2; }
@media (max-width: 720px) { .project-card.featured { grid-column: span 1; } }

/* results */
.stat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat-card { border: 1px solid var(--border); background: var(--bg-card); border-radius: var(--radius); padding: 28px; }
.stat-card .big { font-family: var(--font-mono); font-size: 40px; color: var(--cyan); line-height: 1; }
.stat-card .label { margin-top: 10px; font-weight: 600; font-size: 15px; }
.stat-card .sub { margin-top: 6px; color: var(--text-dim); font-size: 13.5px; }

/* about */
.about-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.about-stats .n { font-family: var(--font-mono); color: var(--cyan); font-size: 26px; }
.about-stats .l { color: var(--text-faint); font-size: 12px; margin-top: 4px; }
.about-text p { color: var(--text-dim); margin-bottom: 16px; font-size: 15.5px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--cyan); font-size: 20px; font-family: var(--font-mono); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--text-dim); font-size: 14.5px; max-width: 640px; }

/* CTA band */
.cta-band {
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(0,212,255,0.1), transparent 60%), var(--bg-elevated);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); margin-bottom: 30px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 48px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin: 14px 0 18px; max-width: 320px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-dim); }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-dim); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}
.footer-bottom a:hover { color: var(--cyan); }

/* reveal animation */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* back link (project pages) */
.back-link { display: flex; width: fit-content; align-items: center; gap: 8px; color: var(--cyan); font-family: var(--font-mono); font-size: 13px; margin-bottom: 28px; }
.back-link:hover { text-decoration: underline; }

/* project page specific */
.project-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.project-hero .mono-tag { margin-bottom: 16px; }
.project-hero h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 18px; }
.project-hero-lead { color: var(--text-dim); font-size: 17px; max-width: 640px; margin-bottom: 26px; }
.project-meta-bar { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.project-meta-bar div { font-size: 13.5px; }
.project-meta-bar .l { color: var(--text-faint); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }

.case-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); margin: 48px 0; }
@media (max-width: 820px) { .case-grid { grid-template-columns: 1fr; } }
.case-block { border: 1px solid var(--border); background: var(--bg-card); border-radius: var(--radius); padding: 26px; }
.case-block h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.case-block p { color: var(--text-dim); font-size: 14.5px; }

.prose { max-width: 720px; color: var(--text-dim); font-size: 15.5px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { color: var(--text); font-size: 22px; margin-top: 12px; }
.prose h3 { color: var(--text); font-size: 17px; margin-top: 6px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose li { list-style: disc; }

/* language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a { padding: 5px 10px; border-radius: 999px; color: var(--text-faint); }
.lang-switch a.active { color: #02121a; background: var(--cyan); }
.lang-switch a:not(.active):hover { color: var(--text); }

/* contact section */
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.contact-intro h2 { font-size: clamp(26px, 4vw, 38px); margin: 14px 0 16px; }
.contact-intro p { color: var(--text-dim); margin-bottom: 26px; max-width: 460px; }
.contact-direct { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.contact-direct a { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-dim); }
.contact-direct a:hover { color: var(--cyan); }
.contact-direct .ico { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--cyan); flex-shrink: 0; }

.contact-form-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.form-field input, .form-field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  resize: vertical;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.04);
}
.form-honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { font-size: 13.5px; margin-top: 14px; display: none; padding: 12px 14px; border-radius: var(--radius-sm); }
.form-status.show { display: block; }
.form-status.ok { background: rgba(0, 224, 138, 0.1); border: 1px solid rgba(0, 224, 138, 0.3); color: #7cf0c0; }
.form-status.err { background: rgba(255, 90, 90, 0.1); border: 1px solid rgba(255, 90, 90, 0.3); color: #ffb3b3; }
.form-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
