:root {
  --bg: #ffffff;
  --ink: #0d0d12;
  --muted: #6b6b78;
  --accent: #4f2fe6;
  --accent-soft: #ece8ff;
  --line: #ebebf0;
  --display: "Syne", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* badge */
.cbk-badge {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 22px rgba(79, 47, 230, 0.25);
}
.cbk-badge img { height: 20px; width: auto; display: block; }
.cbk-badge b { font-weight: 700; color: #b6a8ff; }

/* nav */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.dot { color: var(--accent); }
.links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 0.95rem; }
.links a { text-decoration: none; color: var(--muted); transition: color 0.18s; }
.links a:hover { color: var(--ink); }
.links .hire {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
}
.links .hire:hover { color: #fff; filter: brightness(1.08); }

/* hero */
.hero {
  padding: 9vw 6vw 6vw;
  max-width: 1100px;
}
.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 7px 15px;
  border-radius: 999px;
  margin: 0 0 1.6rem;
}
.big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 1.6rem;
  max-width: 14ch;
}
.sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 2.4rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-fill {
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(79, 47, 230, 0.35); }
.btn-ghost {
  text-decoration: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.stats {
  display: flex;
  gap: 48px;
  list-style: none;
  margin: 4rem 0 0;
  padding: 0;
  flex-wrap: wrap;
}
.stats li { display: flex; flex-direction: column; }
.stats strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
}
.stats span { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* work */
.work { padding: 5vw 6vw; }
.head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.head-row h2,
.services h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0;
}
.count { font-family: var(--display); font-weight: 700; color: var(--accent); }

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 24px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform 0.18s;
}
.project:hover { transform: translateY(-4px); }
.project.p-big { grid-column: span 2; min-height: 300px; }
.pj-type {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.pj-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
  margin-top: 6px;
}
.pj-1 { background: linear-gradient(135deg, #4f2fe6, #8a5bff); }
.pj-2 { background: linear-gradient(135deg, #0d0d12, #3a2f6e); }
.pj-3 { background: linear-gradient(135deg, #6d3bff, #b06bff); }
.pj-4 { background: linear-gradient(135deg, #1c1c28, #4f2fe6); }
.pj-5 { background: linear-gradient(135deg, #2a1f7a, #6d3bff); }

/* services */
.services { padding: 6vw 6vw; }
.services h2 { margin-bottom: 2.5rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.18s, background 0.18s;
}
.card:hover { border-color: var(--accent); background: var(--accent-soft); }
.num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
}
.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 14px 0 8px;
}
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.5; }

/* about */
.about {
  padding: 7vw 6vw;
  max-width: 900px;
}
.about-kick {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2rem;
}
.about-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
}

/* contact cta */
.contact-cta {
  margin: 4vw 6vw;
  padding: 8vw 6vw;
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  text-align: center;
}
.contact-cta h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.contact-cta p { color: #b8b8c6; margin: 0 0 2.4rem; }
.big-btn { display: inline-block; font-size: 1.05rem; }

/* footer */
.foot {
  text-align: center;
  padding: 40px 6vw 90px;
  font-size: 0.88rem;
  color: var(--muted);
}
.foot a { color: var(--accent); font-weight: 600; }

@media (max-width: 820px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .links a:not(.hire) { display: none; }
}
@media (max-width: 600px) {
  .projects { grid-template-columns: 1fr; }
  .project.p-big { grid-column: span 1; }
  .cards { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .hero-actions { flex-direction: column; }
  .btn-fill, .btn-ghost { text-align: center; }
}


/* cross-template switcher */
.tpl-switch{border-top:1px solid currentColor;padding:34px 22px 30px;text-align:center;font-family:inherit;}
.tpl-switch .tpl-switch-label{display:block;font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;opacity:.55;margin-bottom:14px;}
.tpl-switch a{display:inline-block;margin:4px 5px;padding:6px 15px;border:1px solid currentColor;border-radius:999px;font-size:.85rem;text-decoration:none;color:inherit;opacity:.7;transition:opacity .15s;}
.tpl-switch a:hover{opacity:1;}
.tpl-switch a.here{opacity:1;font-weight:600;}