:root {
  --bg: #07090d;
  --bg-2: #0d1117;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8ecf1;
  --muted: #8b95a5;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --radius: 14px;
  --max: 1140px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(129, 140, 248, 0.14), transparent 60%),
    radial-gradient(50rem 35rem at -10% 30%, rgba(94, 234, 212, 0.09), transparent 60%);
}
#field { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.55; }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.muted { color: var(--muted); max-width: 38rem; }
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 1.1rem 1.25rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand b { font-weight: 700; color: var(--accent); margin-left: 0.15rem; }
.nav nav { display: flex; gap: 1.6rem; align-items: center; font-size: 0.92rem; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; border: 1px solid var(--line); padding: 0.4rem 0.9rem; border-radius: 999px; }
.nav-cta:hover { border-color: var(--accent); }
.lang { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; }

main, .footer { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* HERO */
.hero {
  min-height: calc(100vh - 70px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
  padding: 3rem 0 5rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 32rem; margin: 1.5rem 0 2.2rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.8rem 1.4rem; border-radius: 10px; font-weight: 550; font-size: 0.95rem; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }

.hero-visual { position: relative; }
.window {
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(94, 234, 212, 0.04);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
}
.window-bar { display: flex; align-items: center; gap: 6px; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a313c; }
.window-bar span { margin-left: 0.6rem; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
pre { padding: 1.1rem 1.2rem 1.4rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; color: #c9d1d9; overflow: hidden; }
.c { color: #5c6773; } .k { color: var(--accent-2); } .s { color: var(--accent); } .n { color: #fbbf24; }
.cursor { display: inline-block; width: 7px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.window-small { position: absolute; right: -1.5rem; bottom: -2.5rem; width: 230px; transform: perspective(1200px) rotateY(-8deg) translateZ(40px); }
.status { list-style: none; padding: 0.8rem 1rem; font-family: var(--mono); font-size: 0.78rem; }
.status li { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0; }
.status em { margin-left: auto; color: var(--muted); font-style: normal; }
.ok { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }

/* SECTIONS */
.section { padding: 6rem 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 3rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: rgba(94, 234, 212, 0.35); transform: translateY(-4px); }
.card p { color: var(--muted); font-size: 0.94rem; }
.icon { width: 30px; height: 30px; margin-bottom: 1.2rem; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; }
.tags li { font-size: 0.85rem; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.caps { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; margin-top: 2.2rem; }
.caps li { padding-left: 1.1rem; border-left: 2px solid rgba(94, 234, 212, 0.35); }
.caps h3 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.caps p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.split-work { align-items: stretch; }
.split-work .split-visual, .split-work .photo { height: 100%; }
.split-work .photo { aspect-ratio: auto; min-height: 280px; }

.principles { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.principles span { display: block; font-family: var(--mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.principles p { color: var(--muted); font-size: 0.95rem; }

.contact { text-align: center; padding: 8rem 0; }
.contact .muted { margin: 0 auto; }
.email {
  display: inline-block; margin-top: 2.2rem;
  font-size: clamp(1.4rem, 4.5vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em;
  border-bottom: 2px solid var(--line); padding-bottom: 0.3rem; transition: border-color .3s, color .3s;
}
.email span { color: var(--accent); }
.email:hover { border-color: var(--accent); }

/* FOOTER */
.footer {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
  padding-top: 2rem; padding-bottom: 2.5rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.footer div:first-child { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer strong { color: var(--text); font-weight: 600; }
.footer em { font-style: normal; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 2rem; gap: 4rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .window-small { right: 0.5rem; }
}
@media (max-width: 600px) {
  .nav nav a:not(.nav-cta):not(.lang) { display: none; }
  .nav nav { gap: 1rem; }
  .cards, .principles { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .window, .window-small { transform: none; }
  .window-small { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 1rem; }
  pre { font-size: 0.74rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* PHOTOS */
.band {
  position: relative; overflow: hidden; border-radius: var(--radius);
  height: clamp(240px, 38vw, 420px); margin: 0 0 6rem;
  border: 1px solid var(--line);
}
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) brightness(0.65); transform: scale(1.04); transition: transform 6s ease; }
.band.in img { transform: scale(1); }
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 13, 0.9) 0%, rgba(7, 9, 13, 0.35) 55%, rgba(7, 9, 13, 0.1) 100%),
              linear-gradient(0deg, rgba(94, 234, 212, 0.08), rgba(129, 140, 248, 0.08));
}
.band p {
  position: absolute; z-index: 1; left: clamp(1.5rem, 5vw, 3.5rem); bottom: clamp(1.5rem, 5vw, 3rem);
  font-size: clamp(1.6rem, 3.6vw, 2.8rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.15;
}
.band p span { color: var(--muted); }

.split-visual { display: grid; gap: 1rem; }
.photo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.8) brightness(0.8); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 9, 13, 0.6)); }

.has-bg { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 3rem; }
.has-bg > *:not(.contact-bg) { position: relative; z-index: 1; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: saturate(0.8); z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 25%, #000 85%); mask-image: linear-gradient(180deg, transparent 25%, #000 85%); }

@media (max-width: 600px) {
  .band { margin-bottom: 4rem; }
  .has-bg { padding-left: 1rem; padding-right: 1rem; }
}

/* AI SECTION */
.ai-points { list-style: none; display: grid; gap: 1.2rem; margin-top: 2rem; }
.ai-points li { padding-left: 1.1rem; border-left: 2px solid rgba(94, 234, 212, 0.35); }
.ai-points h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.ai-points p { color: var(--muted); font-size: 0.94rem; }
.window-flat { transform: none; }
.pipeline { list-style: none; padding: 0.6rem 1.1rem 1.1rem; font-family: var(--mono); font-size: 0.8rem; }
.pipeline li { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0; border-bottom: 1px dashed var(--line); }
.pipeline li:last-child { border-bottom: 0; }
.pipeline em { margin-left: auto; color: var(--muted); font-style: normal; text-align: right; }
.pipeline b { flex: none; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.wait { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 8px #fbbf24; animation: pulse 1.6s infinite; }
.pipeline .gate { margin-top: 0.4rem; padding: 0.7rem 0.8rem; border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 8px; background: rgba(251, 191, 36, 0.05); }
.pipeline .gate em { color: #fbbf24; }
