:root {
  --bg: #0b0c10;
  --bg-alt: #111319;
  --surface: #161922;
  --border: #242836;
  --text: #f4f4f6;
  --text-dim: #a3a8b8;
  --accent: #6e5bff;
  --accent-soft: #6e5bff22;
  --radius: 14px;
  --max-width: 1140px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--text-dim); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 1;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.btn-nav {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 30%, rgba(0,0,0,0.5), transparent 60%);
  opacity: 0.5;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); }

/* Logos */
.logos {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logos-label {
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 20px;
}

.logos-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* Services */
.services { padding: 120px 0; }

.services h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  max-width: 600px;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.service-num {
  font-family: var(--font-head);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.service-card h3 {
  margin-top: 16px;
  font-size: 1.2rem;
}

.service-card p { margin-bottom: 0; font-size: 0.95rem; }

/* Work */
.work { padding: 0 0 120px; }

.work h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  max-width: 600px;
  margin-bottom: 56px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.work-thumb img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  background: #fff;
  padding: 16px 24px;
  border-radius: 8px;
}

.thumb-1 { background: linear-gradient(135deg, #6e5bff33, #161922); }
.thumb-2 { background: linear-gradient(135deg, #2dd4bf33, #161922); }
.thumb-3 { background: linear-gradient(135deg, #f4737733, #161922); }

.work-meta { padding: 20px 24px; }

.work-meta h3 { font-size: 1.1rem; }

.work-meta p { font-size: 0.9rem; margin-bottom: 0; }

/* About */
.about {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Contact */
.contact { padding: 120px 0; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.form-row input,
.form-row textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form .btn { align-self: flex-start; border: none; cursor: pointer; }

.form-note {
  font-size: 0.9rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 860px) {
  .services-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .logo { font-size: 0.85rem; white-space: normal; }
  .services-grid, .work-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 70px; }
}
