/* WinArt Labs — Graphite theme */
:root {
  --bg: #0B0D10;
  --surface: #0F1216;
  --surface-2: #13171D;
  --line: #1E2229;
  --line-strong: #2A2F38;
  --text: #ECEEF2;
  --muted: #A3AAB6;
  --faint: #8A919D;
  --accent: #7C9CFF;
  --on-accent: #0B0D10;
  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }

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

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Labels */
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.section-tag {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent);
}
.section-title {
  margin-top: 16px;
  font-size: clamp(34px, 4.5vw, 56px); line-height: 1.05;
  font-weight: 600; letter-spacing: -0.03em; max-width: 680px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 20px; border-radius: 8px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-lg { padding: 16px 26px; border-radius: 10px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #95AFFF; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: #3A404B; background: var(--surface); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 16, 0.85);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  display: inline-block; font-size: 20px; line-height: 1; color: var(--accent);
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-mobile { display: none; border-top: 1px solid var(--line); padding: 8px 24px 20px; flex-direction: column; }
.nav-mobile a { padding: 14px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 17px; }
.nav-mobile a.btn { margin-top: 16px; border-bottom: 0; color: var(--on-accent); }
.nav.open .nav-mobile { display: flex; }

/* Hero */
.hero { padding: 120px 0 104px; }
.hero-title {
  margin-top: 28px;
  font-size: clamp(46px, 8vw, 104px); line-height: 0.98;
  font-weight: 600; letter-spacing: -0.035em; max-width: 1000px;
}
.hero-sub { margin-top: 32px; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--muted); max-width: 640px; }
.hero-cta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }
.pillars { margin-top: 96px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillar { padding: 24px 24px 0 0; }
.pillar-num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.pillar-name { margin-top: 8px; font-size: 17px; font-weight: 500; }

/* Services */
.section { padding: 112px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 380px; }
.service-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
}
.service { background: var(--surface); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.service svg { color: var(--accent); }
.service h3 { margin-top: 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.service p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.service-link { background: var(--surface-2); transition: background-color .2s ease; }
.service-link:hover { background: #171C23; }
.service-link-top { display: flex; justify-content: space-between; align-items: center; }
.service-link-top .mono { font-size: 12px; color: var(--muted); }
.service-link-cta { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: var(--accent); }

/* Process */
.process-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.step-name { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Contact */
.contact { padding: 0 0 112px; }
.contact-card {
  border: 1px solid var(--line); background: var(--surface); border-radius: 20px;
  padding: clamp(32px, 6vw, 80px);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.contact-card .section-title { margin-top: 0; }
.contact-card p { margin-top: 18px; font-size: 18px; color: var(--muted); }
.contact-email {
  font-size: clamp(20px, 2.6vw, 30px); font-weight: 500;
  border-bottom: 1.5px solid var(--accent); padding-bottom: 6px;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--faint); }
.footer-inner a { color: var(--faint); transition: color .2s ease; }
.footer-inner a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0; }

/* Responsive */
@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .hero { padding: 80px 0 72px; }
  .section { padding: 80px 0; }
  .contact { padding-bottom: 80px; }
  .pillars { margin-top: 64px; grid-template-columns: 1fr; }
  .pillar { padding: 20px 0 0; }
  .service-grid, .process-grid { grid-template-columns: 1fr; }
  .service { padding: 28px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
