/* ============================================
   Workchop · Design System
   ============================================ */

:root {
  /* Color */
  --bg:        #0a0b0d;
  --bg-2:      #101216;
  --surface:   #14161b;
  --surface-2: #1b1e25;
  --border:    #25282f;
  --text:      #f4f5f3;
  --muted:     #9aa0a6;
  --muted-2:   #6b7178;

  /* Accent · acid lime "chop" */
  --accent:      #c8ff3c;
  --accent-dark: #a3d916;
  --accent-soft: rgba(200, 255, 60, 0.12);

  /* Type */
  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max:    1180px;
  --radius: 16px;
  --gutter: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   Reset
   ============================================ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================
   Layout helpers
   ============================================ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 11vw, 130px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }

.h-display { font-size: clamp(2.6rem, 8vw, 5.6rem); }
.h-section { font-size: clamp(2rem, 5vw, 3.4rem); }

.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 56ch; }

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

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0a0b0d; }
.btn-primary:hover { transform: translateY(-2px); background: #d6ff6b; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ============================================
   Logo / chop mark
   ============================================ */
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo .mark { width: 30px; height: 30px; flex: none; display: block; }
.logo .mark svg { width: 100%; height: 100%; display: block; }
.logo .mark polygon { fill: var(--accent); }
.logo b { font-weight: 700; }
.logo b .chop { color: var(--accent); }

/* ============================================
   Nav
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-color: var(--border); background: rgba(10, 11, 13, 0.88); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-cta { margin-left: 10px; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero { position: relative; padding-top: clamp(48px, 9vw, 96px); padding-bottom: clamp(48px, 9vw, 96px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.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; opacity: 0.25; mask-image: radial-gradient(circle at 70% 20%, black, transparent 70%); z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { margin-top: 26px; }
.hero h1 .chopped { position: relative; display: inline-block; color: var(--accent); }
.hero .lead { margin-top: 26px; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 620px; }
.hero-stats .stat .num { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; }
.hero-stats .stat .lbl { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* Hero "live now" proof line */
.hero-live { margin-top: 26px; display: inline-flex; align-items: center; gap: 9px; font-size: 0.95rem; color: var(--muted); }
.hero-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 2.2s infinite; }
.hero-live a { color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); transition: color 0.2s, border-color 0.2s; }
.hero-live a:hover { color: var(--accent); border-color: var(--accent); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 255, 60, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(200, 255, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 60, 0); }
}

/* ============================================
   Marquee
   ============================================ */
.marquee { border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; padding-block: 22px; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 28s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-size: 1.1rem; color: var(--muted-2); display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================
   Cards / services
   ============================================ */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 20px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .num-tag { font-family: var(--font-head); font-size: 0.85rem; color: var(--muted-2); margin-bottom: 14px; }

.section-head { max-width: 60ch; margin-bottom: 54px; }
.section-head .h-section { margin-top: 18px; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

/* ============================================
   Process steps
   ============================================ */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 30px; padding-block: 32px; border-top: 1px solid var(--border); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--border); }
.step .step-n { font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; color: var(--accent); line-height: 1; }
.step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 60ch; }

/* ============================================
   Featured spotlight (homepage)
   ============================================ */
.spotlight {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.spotlight::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--sl-grad, linear-gradient(135deg, #1a2e2a, #0c1210)); }
.spotlight:hover { transform: translateY(-4px); border-color: var(--accent); }
.spotlight > * { position: relative; z-index: 1; }
.spotlight .top { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.spotlight h3 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.02; margin-bottom: 16px; }
.spotlight p { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 52ch; }
.spotlight .applink { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1.05rem; color: var(--accent); }
.spotlight .applink .arrow { transition: transform 0.25s var(--ease); }
.spotlight:hover .applink .arrow { transform: translate(3px, -3px); }
.spotlight-mark { position: absolute; z-index: 0; right: clamp(8px, 4vw, 56px); top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 700; font-size: clamp(9rem, 24vw, 19rem); line-height: 1; color: rgba(255, 255, 255, 0.05); pointer-events: none; user-select: none; }

/* ============================================
   Work / projects
   ============================================ */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
/* Live apps sort to the front automatically */
.work-grid .project { order: 2; }
.work-grid .project:has(.status.live) { order: 1; }
.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.project::before { content: ""; position: absolute; inset: 0; opacity: 0.9; z-index: 0; transition: transform 0.5s var(--ease); }
.project:hover { transform: translateY(-5px); border-color: var(--accent); }
.project:hover::before { transform: scale(1.05); }
.project.p1::before { background: linear-gradient(135deg, #1d2b1a, #0d0f0c); }
.project.p2::before { background: linear-gradient(135deg, #1a2330, #0c0e12); }
.project.p3::before { background: linear-gradient(135deg, #2a1d2e, #100c12); }
.project.p4::before { background: linear-gradient(135deg, #2e261a, #120f0c); }
.project.p5::before { background: linear-gradient(135deg, #1a2e2a, #0c1210); }
.project.p6::before { background: linear-gradient(135deg, #261a2e, #0e0c12); }
.project > * { position: relative; z-index: 1; }
.project .tag { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.project h3 { font-size: 1.7rem; margin-bottom: 8px; }
.project p { color: var(--muted); font-size: 0.95rem; }
.project .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.project .meta span { font-size: 0.78rem; padding: 4px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }

/* ============================================
   About
   ============================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.values { display: grid; gap: 14px; margin-top: 30px; }
.value { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.value .v-ico { color: var(--accent); font-size: 1.2rem; flex: none; }
.value h4 { font-size: 1.05rem; margin-bottom: 3px; }
.value p { color: var(--muted); font-size: 0.92rem; }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 600px; margin-inline: auto; }
.member { text-align: center; }
.member .avatar { width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: linear-gradient(145deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--font-head); font-size: 2.6rem; color: var(--accent); margin-bottom: 16px; }
.member h4 { font-size: 1.15rem; }
.member span { color: var(--muted); font-size: 0.9rem; }

/* ============================================
   Contact
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 6vw, 70px); }
.contact-info .channel { padding-block: 22px; border-top: 1px solid var(--border); }
.contact-info .channel:last-child { border-bottom: 1px solid var(--border); }
.contact-info .channel .lbl { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.contact-info .channel a, .contact-info .channel p { font-family: var(--font-head); font-size: 1.2rem; }
.contact-info .channel a:hover { color: var(--accent); }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; font-family: var(--font-head); letter-spacing: 0.03em; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 0.9rem; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); cursor: pointer; transition: all 0.2s; user-select: none; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.selected { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.form-note { font-size: 0.85rem; color: var(--muted-2); margin-top: 14px; }
.form-status { font-size: 0.92rem; margin-top: 14px; min-height: 1.2em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff7a7a; }
.subscribe-status { font-size: 0.9rem; margin-top: 14px; min-height: 1.1em; }
.subscribe-status.ok { color: var(--accent); }
.subscribe-status.err { color: #ff7a7a; }

/* ============================================
   CTA band
   ============================================ */
.cta {
  position: relative;
  border-radius: clamp(20px, 4vw, 32px);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  padding: clamp(40px, 8vw, 80px);
  overflow: hidden;
  text-align: center;
}
.cta::before { content: ""; position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%); width: 70%; height: 80%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { margin-bottom: 18px; }
.cta p { color: var(--muted); max-width: 50ch; margin: 0 auto 32px; }

/* ============================================
   Footer
   ============================================ */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: 60px 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 50px; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; margin-top: 18px; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 90px); flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.95rem; padding-block: 6px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 0.88rem; }
.footer-bottom a { color: inherit; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* Legal / long-form pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; line-height: 1.7; }
.legal ul { padding-left: 20px; list-style: disc; margin-bottom: 12px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }
.legal .updated { color: var(--muted-2); font-size: 0.9rem; }
.legal strong { color: var(--text); font-weight: 600; }

/* ============================================
   Page header (sub pages)
   ============================================ */
.page-head { position: relative; padding-block: clamp(56px, 10vw, 110px) clamp(40px, 6vw, 64px); overflow: hidden; }
.page-head::before { content: ""; position: absolute; top: -40%; left: -5%; width: 50vw; height: 50vw; max-width: 600px; max-height: 600px; background: radial-gradient(circle, var(--accent-soft), transparent 65%); z-index: 0; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { margin-top: 22px; font-size: clamp(2.4rem, 7vw, 4.4rem); }
.page-head .lead { margin-top: 22px; }

/* ============================================
   Reveal animation
   ============================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================
   App cards (Work / Apps)
   ============================================ */
.project .top { position: absolute; top: 26px; left: 30px; right: 30px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.status.live { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.status.beta { color: #8fd0ff; border-color: #34516a; background: rgba(143,208,255,0.08); }
.status.soon { color: var(--muted-2); }
.project .applink { margin-top: 20px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-size: 0.92rem; color: var(--accent); }
.project .applink .arrow { transition: transform 0.25s var(--ease); }
.project:hover .applink .arrow { transform: translate(3px, -3px); }
.project[hidden] { display: none !important; }

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

/* Newsletter */
.subscribe { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.subscribe input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 14px 20px; color: var(--text); font-family: inherit; font-size: 1rem; transition: border-color 0.2s; }
.subscribe input:focus { outline: none; border-color: var(--accent); }
.subscribe .form-note { margin-top: 0; }
@media (max-width: 480px) { .subscribe { flex-direction: column; } .subscribe .btn { justify-content: center; } }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .grid-3, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .contact-info { order: 2; }
}

@media (max-width: 720px) {
  /* Opaque header bar that paints ABOVE the panel, so the menu
     slides out from behind it instead of over the top. */
  .nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg);
    z-index: 1;
  }
  .logo, .nav-toggle { position: relative; z-index: 2; }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: 0; /* behind the bar (.nav::before) so it emerges from underneath */
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 16px var(--gutter) 24px;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s var(--ease), visibility 0s 0.4s;
  }
  .nav-links.open {
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.4s var(--ease), visibility 0s 0s;
  }
  .nav-links a { padding: 14px; font-size: 1.05rem; border-radius: 10px; }
  .nav-links a:hover { background: var(--surface); }
  .nav-cta { margin-left: 0; margin-top: 8px; justify-content: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .grid-3, .team-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; max-width: none; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
