:root {
  --bg: #050505;
  --panel: #0d0d0d;
  --line: rgba(245, 245, 245, 0.16);
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --head: "Unbounded", "Arial Black", Arial, sans-serif;
  --body: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { font-family: var(--head); font-weight: 700; letter-spacing: 0.08em; font-size: 15px; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 22px; text-decoration: none; border: 1px solid var(--gold);
  transition: background 0.2s, color 0.2s;
}
.btn-gold { background: var(--gold); color: #050505; }
.btn-gold:hover { background: #e6c458; }
.btn-line { background: transparent; color: var(--text); }
.btn-line:hover { background: var(--gold-soft); color: var(--gold); }

/* Sections */
section { position: relative; padding: 88px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(212, 175, 55, 0.10), transparent 60%),
    linear-gradient(rgba(245, 245, 245, 0.035) 1px, transparent 1px) 0 0 / 100% 56px;
}
section > .wrap { position: relative; }
.section-title { font-size: clamp(30px, 5vw, 52px); margin-bottom: 18px; }
.lead { color: var(--muted); max-width: 640px; font-size: 17px; }

/* Hero */
.hero { text-align: center; padding: 72px 0 96px; }
.hero-logo { width: 190px; height: 190px; object-fit: contain; margin: 0 auto 28px; }
.hero h1 { font-size: clamp(34px, 6.4vw, 72px); }
.hero .lead { margin: 22px auto 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Services */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.card { background: rgba(13, 13, 13, 0.9); border: 1px solid var(--line); padding: 22px; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 20px; }
.card h3 { font-size: 18px; margin-bottom: 12px; padding-top: 14px; border-top: 2px solid var(--gold); display: inline-block; }
.card p { color: var(--muted); font-size: 15px; }

/* What we build / Why */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.ticks.one { grid-template-columns: 1fr; }
.ticks li { font-family: var(--head); font-weight: 700; font-size: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ticks.one li { border-bottom: 0; padding: 18px 0; }
.ticks.one li::before { content: ""; display: block; width: 34px; height: 2px; background: var(--gold); margin-bottom: 12px; }

/* Projects */
.projects { display: grid; gap: 24px; margin-top: 40px; }
.project { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; background: rgba(13, 13, 13, 0.92); border: 1px solid var(--line); padding: 28px; align-items: center; }
.project h3 { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 14px; }
.project p { color: var(--text); font-size: 15px; }
.stack { color: var(--gold) !important; font-size: 13px !important; margin: 14px 0 6px; }
.tag { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; color: var(--gold); margin: 10px 0 0; }
.project .btn { margin-top: 20px; }
.project figure { margin: 0; border: 1px solid var(--line); background: #000; }
.project figure img { width: 100%; aspect-ratio: 830 / 844; object-fit: cover; }
.project figcaption { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 0.05em; padding: 10px 12px; border-top: 1px solid var(--line); }

/* Analytics */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0 24px; }
.step { border: 1px solid var(--line); background: rgba(13, 13, 13, 0.9); padding: 20px; }
.step h4 { font-size: 15px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; }
.note { color: var(--muted); font-size: 13px; margin-bottom: 26px; }

/* Brand */
.brand-section .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.brand-box { max-width: 560px; background: rgba(5, 5, 5, 0.9); border: 1px solid var(--line); padding: 36px; }
.brand-box h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 18px; }
.brand-box p { color: var(--muted); margin-bottom: 26px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
label.full, .consent, form .btn, .form-msg { grid-column: 1 / -1; }
input, textarea {
  width: 100%; background: #0b0b0b; color: var(--text);
  border: 1px solid var(--line); padding: 13px 14px; font: inherit; border-radius: 0;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.consent a { color: var(--gold); }
.form-msg { font-size: 14px; min-height: 20px; }
.form-msg.ok { color: #7bd88f; }
.form-msg.err { color: #ff8a80; }

/* Footer */
.site-footer { padding: 40px 0 110px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer img { width: 56px; height: 56px; object-fit: contain; }
.site-footer p, .site-footer a { color: #d9d9d9; font-size: 14px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Chat */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 0.06em;
  background: var(--gold); color: #050505; border: 0; padding: 14px 18px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.chat-panel {
  position: fixed; right: 18px; bottom: 76px; z-index: 30;
  width: min(380px, calc(100vw - 36px)); height: min(520px, calc(100vh - 110px));
  display: none; flex-direction: column;
  background: #0b0b0b; border: 1px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.chat-panel.open { display: flex; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: var(--head); font-weight: 700; font-size: 13px; }
.chat-head button { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: #161616; border: 1px solid var(--line); align-self: flex-start; }
.msg.me { background: var(--gold); color: #050505; align-self: flex-end; }
.msg a { color: var(--gold); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); grid-template-columns: none; }
.chat-form input { flex: 1; }
.chat-form button { background: var(--gold); color: #050505; border: 0; padding: 0 16px; font-family: var(--head); font-weight: 700; font-size: 12px; cursor: pointer; }

/* Privacy page */
.doc { padding: 64px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 10px; }
.doc h2 { font-size: 20px; margin: 36px 0 12px; }
.doc p, .doc li { color: #d9d9d9; margin-bottom: 12px; }
.doc ul { padding-left: 20px; margin: 0 0 12px; }
.doc a { color: var(--gold); }

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .split, .contact, .project { grid-template-columns: 1fr; gap: 28px; }
  .project figure { order: -1; }
  .project figure img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .grid-4, .steps, form, .ticks { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero-logo { width: 150px; height: 150px; }
  .cta .btn { width: 100%; text-align: center; }
}
