:root {
  --bg: #0b0b0b;
  --panel: #141414;
  --text: #f0f0ea;
  --muted: #8f8f8f;
  --line: #232323;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-toggle {
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .25s ease;
}
.lang-toggle:hover {
  background: var(--text);
  color: var(--bg);
}
.logo {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--text);
  transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .25s ease;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--small { padding: 10px 18px; font-size: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 0;
  border-bottom: 1px solid var(--line);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero__label {
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero__text {
  max-width: 560px;
  font-size: 18px;
  color: #b5b5b0;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero__stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hero__marquee {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee__track span { flex: 0 0 auto; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--invert {
  background: #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__label {
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.about__grid p { font-size: 17px; color: #b5b5b0; }

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--panel);
  padding: 40px 32px;
  transition: background .3s ease;
}
.service:hover { background: #1a1a1a; }
.service__num {
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: var(--muted);
}
.service h3 {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 16px 0 12px;
}
.service p { font-size: 15px; color: #999; }

/* ---------- Cases ---------- */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.case {
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform .3s ease, box-shadow .3s ease;
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.case__thumb {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, #171717 0 12px, #1c1c1c 12px 24px);
}
.case__thumb span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  border: 1px dashed var(--muted);
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
}
.case__thumb--img {
  display: block;
  text-decoration: none;
}
.case__thumb--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: transform .4s ease, filter .4s ease;
}
.case:hover .case__thumb--img img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1);
}
.case__body { padding: 28px; }
.case__tag {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.case__body h3 { font-size: 24px; font-weight: 800; text-transform: uppercase; }
.case__desc { margin-top: 10px; font-size: 15px; color: #999; }
.cases__note {
  margin-top: 40px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Process ---------- */
.dao__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
.dao__item {
  background: var(--panel);
  padding: 32px 24px;
}
.dao__item h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.dao__item p { font-size: 14px; color: #999; }
.dao__links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__text {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 17px;
  color: #b5b5b0;
}
.contact__links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.contact__foot {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .cases__grid { grid-template-columns: 1fr; }
  .dao__grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 32px; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .dao__grid { grid-template-columns: 1fr; }
}
