:root {
  --bg: #fafaf9;
  --bg-alt: #f4f4f2;
  --surface: #ffffff;
  --border: #e7e5e4;
  --text: #0c0a09;
  --muted: #6b7280;
  --accent: #7c3aed;
  --accent-strong: #6d28d9;
  --radius: 14px;
  --max-width: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img, svg { display: block; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(250, 250, 249, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-mark { width: 32px; height: 32px; }

.logo-wordmark {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms var(--ease);
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease),
    border-color 160ms var(--ease), color 160ms var(--ease);
}

.btn-primary {
  background: var(--text);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #1c1917;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: #cfcbc8;
  background: #ffffff;
}

.btn-large {
  padding: 16px 28px;
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: -20% 0 auto 0;
  height: 600px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(124, 58, 237, 0.18), rgba(124, 58, 237, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-inner { text-align: center; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 20px;
}

.accent-text {
  background: linear-gradient(120deg, var(--accent-strong), #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 48px; text-align: center; }

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 600;
  margin: 0;
}

.prose {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  margin: 16px auto 0;
}

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 20px; }

.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(12, 10, 9, 0.04);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: #d6d3d1;
  box-shadow: 0 8px 24px rgba(12, 10, 9, 0.06);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent);
  margin-bottom: 18px;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Product card (Our work) ---------- */
.product-list {
  display: grid;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.product-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 2px rgba(12, 10, 9, 0.04);
}

.product-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f2;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  padding: 18px;
}

.product-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-logo .logo-black {
  filter: brightness(0);
}

.product-body h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-tag {
  color: var(--accent-strong);
  font-weight: 500;
  font-size: 14px;
  margin: 6px 0 14px;
}

.product-body p:not(.product-tag) {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 15px;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin: 18px 0 20px;
}

.product-gallery img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0c0a09;
  object-fit: cover;
}

.product-gallery-phone img {
  aspect-ratio: 9 / 14;
}

.product-gallery-dmq img {
  aspect-ratio: 4 / 5;
}

.product-gallery-dmq .dmq-wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.product-link {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.product-link:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

@media (max-width: 640px) {
  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }
  .product-logo {
    max-width: 140px;
    margin: 0 auto;
  }
}

/* ---------- About / Contact ---------- */
.about-inner, .contact-inner, .hire-inner { text-align: center; }

.contact-inner .btn, .hire-inner .btn { margin-top: 32px; }

.hire-inner .prose { max-width: 680px; }

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

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-brand .logo-mark { width: 26px; height: 26px; }

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-meta { margin: 0; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    display: none;
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav-menu a:hover { background: rgba(12, 10, 9, 0.04); }

  .hero { padding: 80px 0 64px; }
  .section { padding: 72px 0; }
}
