/* ============================================================
   SYNTHEX SOFTWARE — studio site, designed from scratch
   Dark engineered canvas · Space Grotesk display · mono labels
   ============================================================ */
:root {
  --bg: #07080c;
  --panel: #0d0f16;
  --panel-2: #11141d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f2f4f8;
  --mute: #8b93a7;
  --blue: #4a90ff;
  --violet: #8b5cf6;
  --teal: #2dd4bf;
  --grad: linear-gradient(92deg, #4a90ff, #8b5cf6);
  --disp: 'Space Grotesk', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --r: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(74, 144, 255, 0.35); }
.shell { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--disp); line-height: 1.06; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }

.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--teal);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.sec { padding: 110px 0; position: relative; }
.sec-tint { background: linear-gradient(180deg, rgba(74,144,255,0.035), transparent 60%); border-top: 1px solid var(--line); }
.sec-title { max-width: 30ch; margin-bottom: 52px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--disp); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 12px; text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.btn-big { padding: 16px 30px; font-size: 1.08rem; }
.btn-solid {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 30px rgba(74, 144, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(74, 144, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn .arr { transition: transform 0.16s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(7, 8, 12, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 30px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-family: var(--disp); font-weight: 700; letter-spacing: 0.22em; font-size: 1.02rem; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--mute); font-size: 0.94rem; font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 10px 20px; font-size: 0.94rem; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 10px 2px; margin-left: auto; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: transform 0.2s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------------- hero ---------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 90px; overflow: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 40%, transparent 55%, var(--bg) 100%);
  pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.hero-glow-1 { width: 560px; height: 560px; background: rgba(74, 144, 255, 0.17); top: -160px; right: -80px; }
.hero-glow-2 { width: 460px; height: 460px; background: rgba(139, 92, 246, 0.12); bottom: -180px; left: -120px; }
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 64px; align-items: center;
}
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--mute); font-size: 1.13rem; max-width: 34rem; margin: 26px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; margin-top: 40px; }
.hero-proof li {
  font-family: var(--mono); font-size: 0.78rem; color: var(--mute); letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px;
}
.hero-proof li::before { content: "◆"; color: var(--blue); font-size: 0.6rem; }

/* ---- hero chat demo ---- */
.hero-demo { position: relative; }
.demo-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(74,144,255,0.08), 0 0 60px rgba(74,144,255,0.07);
  overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.demo-title { font-family: var(--mono); font-size: 0.76rem; color: var(--mute); margin-left: 8px; }
.demo-live { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--teal); display: flex; align-items: center; gap: 6px; }
.demo-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.demo-body { padding: 20px 16px 60px; height: 320px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.demo-msg {
  max-width: 80%; padding: 10px 14px; font-size: 0.9rem; line-height: 1.45;
  border-radius: 14px; opacity: 0; transform: translateY(8px);
  animation: msgIn 0.3s ease forwards;
}
@keyframes msgIn { to { opacity: 1; transform: none; } }
.demo-msg.agent { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.demo-msg.visitor { background: var(--grad); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.demo-typing {
  align-self: flex-start; display: flex; gap: 5px; padding: 12px 15px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 14px; border-bottom-left-radius: 4px;
}
.demo-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: tb 1.1s infinite; }
.demo-typing i:nth-child(2) { animation-delay: 0.16s; } .demo-typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes tb { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.demo-toast {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.4);
  color: var(--teal); font-family: var(--mono); font-size: 0.78rem;
  padding: 10px 14px; border-radius: 10px; text-align: center;
  opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.demo-toast.show { opacity: 1; transform: none; }
.demo-note { font-family: var(--mono); font-size: 0.74rem; color: var(--mute); text-align: center; margin-top: 16px; letter-spacing: 0.02em; }

/* ---------------- tech strip ---------------- */
.tech { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.012); }
.tech-in {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 28px; font-family: var(--mono); font-size: 0.8rem; color: var(--mute); letter-spacing: 0.04em;
}
.tech-in i { color: rgba(255,255,255,0.18); font-style: normal; }
.tech-label { color: rgba(255,255,255,0.28); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; margin-right: 10px; }

/* ---------------- bento ---------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.cell {
  grid-column: span 5;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; position: relative; overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cell:hover { border-color: rgba(74, 144, 255, 0.45); transform: translateY(-3px); }
.cell-wide { grid-column: span 7; }
.cell-full { grid-column: span 12; display: grid; grid-template-columns: auto 1fr; gap: 8px 40px; align-items: center; }
.cell-full h3 { grid-row: 1; }
.cell-full p { grid-row: 2; max-width: 62ch; }
.cell-full .pulse { grid-row: 1 / 3; grid-column: 2; }
.cell h3 { margin: 18px 0 8px; }
.cell p { color: var(--mute); font-size: 0.95rem; }
.cell-tag {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em;
  color: var(--blue); border: 1px solid rgba(74, 144, 255, 0.4);
  padding: 4px 10px; border-radius: 999px; background: rgba(74, 144, 255, 0.08);
}
.cell-link { color: var(--blue); text-decoration: none; font-weight: 600; }
.cell-link:hover { text-decoration: underline; }

/* cell mini-visuals */
.cell-viz { border-radius: 12px; margin-bottom: 4px; }
.viz-chat { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 10px; }
.viz-chat .vb:first-child { margin-right: 118px; } /* clear the corner tag */
.vb { font-size: 0.8rem; padding: 8px 12px; border-radius: 12px; max-width: 75%; }
.vb-a { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.vb-b { background: rgba(255,255,255,0.07); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 3px; }
.viz-browser { border: 1px solid var(--line); overflow: hidden; }
.vbrow { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--line); }
.vbrow span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.vbrow i { font-family: var(--mono); font-style: normal; font-size: 0.65rem; color: var(--mute); margin-left: 8px; }
.vpage { padding: 14px; }
.vpage b { display: block; height: 12px; width: 60%; border-radius: 4px; background: var(--grad); margin-bottom: 8px; }
.vpage u { display: block; height: 6px; width: 90%; border-radius: 3px; background: rgba(255,255,255,0.12); margin-bottom: 6px; }
.vpage .u2 { width: 72%; }
.vpage s { display: inline-block; height: 16px; width: 72px; border-radius: 6px; background: rgba(74,144,255,0.5); margin-top: 6px; }
.viz-code { background: #0a0c12; border: 1px solid var(--line); padding: 14px 16px; }
.viz-code pre { font-family: var(--mono); font-size: 0.74rem; line-height: 1.6; color: #c8d0e0; white-space: pre; overflow-x: auto; }
.c1 { color: var(--violet); } .c2 { color: var(--blue); } .c3 { color: var(--teal); } .c4 { color: #f5b969; }
.viz-search { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.vsearch { border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 13px; font-size: 0.82rem; color: var(--mute); background: rgba(255,255,255,0.03); }
.vcite { font-family: var(--mono); font-size: 0.72rem; color: var(--teal); border: 1px solid rgba(45,212,191,0.35); background: rgba(45,212,191,0.07); border-radius: 8px; padding: 6px 11px; align-self: flex-start; }
.pulse svg { width: 100%; height: 40px; display: block; opacity: 0.9; }

/* ---------------- products ---------------- */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.prod {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r); padding: 34px 30px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.prod:hover { border-color: rgba(74, 144, 255, 0.45); transform: translateY(-3px); }
.prod-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.badge {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--mute);
  border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 999px;
}
.prod p { color: var(--mute); font-size: 0.97rem; }
.ticks { list-style: none; margin: 4px 0 10px; }
.ticks li { padding: 5px 0 5px 26px; position: relative; font-size: 0.93rem; color: #c3c9d6; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------------- work ---------------- */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid; grid-template-columns: 60px 1fr auto 40px; gap: 20px; align-items: center;
  padding: 26px 6px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background 0.18s ease, padding-left 0.18s ease;
}
.work-row:hover { background: rgba(74, 144, 255, 0.05); padding-left: 18px; }
.work-num { font-family: var(--mono); color: var(--mute); font-size: 0.85rem; }
.work-name { font-family: var(--disp); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.work-name small { display: block; font-family: var(--body); font-weight: 400; color: var(--mute); font-size: 0.88rem; margin-top: 3px; }
.work-tags { display: flex; gap: 8px; }
.work-tags span {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--mute);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.work-arr { color: var(--blue); font-size: 1.3rem; justify-self: end; transition: transform 0.18s ease; }
.work-row:hover .work-arr { transform: translateX(5px); }

/* ---------------- process ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { border-left: 1px solid var(--line-strong); padding: 4px 0 4px 22px; }
.step-n { font-family: var(--mono); color: var(--blue); font-size: 0.8rem; letter-spacing: 0.08em; }
.step h3 { font-size: 1.12rem; margin: 10px 0 8px; }
.step p { color: var(--mute); font-size: 0.9rem; }

/* ---------------- quote ---------------- */
.quote-sec { padding: 70px 0; }
.quote {
  font-family: var(--disp); font-weight: 500; font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.3; letter-spacing: -0.01em; max-width: 26ch; margin: 0 auto; text-align: center;
}
.quote footer { font-family: var(--mono); font-size: 0.78rem; color: var(--mute); margin-top: 22px; letter-spacing: 0.02em; }

/* ---------------- contact ---------------- */
.contact { position: relative; padding: 140px 0; border-top: 1px solid var(--line); overflow: hidden; text-align: center; }
.hero-glow-3 { width: 640px; height: 420px; background: rgba(74, 144, 255, 0.13); left: 50%; top: 30%; transform: translateX(-50%); }
.contact-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 26px; }
.contact-note { font-family: var(--mono); font-size: 0.78rem; color: var(--mute); margin-top: 22px; letter-spacing: 0.02em; }

/* ---------------- footer ---------------- */
.foot { border-top: 1px solid var(--line); padding: 30px 0; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 0.85rem; }
.foot-brand .brand-mark { width: 24px; height: 24px; }
.foot-links { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--mute); text-decoration: none; font-size: 0.85rem; }
.foot-links a:hover { color: var(--ink); }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; }
  .cell, .cell-wide { grid-column: span 12; }
  .cell-full { grid-template-columns: 1fr; }
  .cell-full .pulse { grid-column: 1; grid-row: auto; }
  .prod-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
}
@media (max-width: 760px) {
  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(7, 8, 12, 0.97); flex-direction: column; gap: 0;
    padding: 10px 28px 20px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .work-row { grid-template-columns: 1fr 30px; }
  .work-num, .work-tags { display: none; }
  .steps { grid-template-columns: 1fr; }
  .hero-proof { flex-direction: column; gap: 12px; }
}
