/* ============================================================
   2WC — AI-native software studio
   Fresh identity: electric violet → magenta, Space Grotesk
   ============================================================ */

:root {
  --bg:        #0a0a12;
  --bg-2:      #0f0f1c;
  --card:      #141426;
  --card-2:    #1a1a30;
  --line:      #242442;
  --line-2:    #34345c;
  --text:      #eef0f7;
  --muted:     #a7a9c2;
  --faint:     #6f7196;
  --violet:    #8b7cff;
  --violet-2:  #a78bff;
  --magenta:   #ff5ca8;
  --cyan:      #4dd5ff;
  --glow:      rgba(139, 124, 255, 0.40);
  --maxw:      1160px;
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* atmospheric background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 700px at 85% -15%, rgba(255,92,168,0.14), transparent 60%),
    radial-gradient(900px 700px at -5% 5%, rgba(139,124,255,0.16), transparent 55%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

a { color: var(--violet-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--magenta); }
img { max-width: 100%; display: block; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,10,18,0.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 14px; color: #0a0a12;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  box-shadow: 0 0 22px var(--glow);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 9px 13px; border-radius: 9px; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a.active { color: var(--violet-2); }
.nav-cta {
  margin-left: 10px;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  color: #0a0a12 !important; font-weight: 600;
  padding: 10px 18px !important; border-radius: 10px;
  box-shadow: 0 6px 22px -8px var(--glow);
}
.nav-cta:hover { color: #0a0a12 !important; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 9px; width: 42px; height: 42px; cursor: pointer; font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 14px 24px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #0a0a12; box-shadow: 0 8px 30px -8px var(--glow); }
.btn-primary:hover { color: #0a0a12; transform: translateY(-2px); box-shadow: 0 14px 38px -8px var(--glow); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--violet); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--violet-2); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg,var(--violet),var(--magenta)); display: inline-block; border-radius: 2px; }
h1,h2,h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
.lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.grad { background: linear-gradient(110deg, var(--violet) 10%, var(--magenta) 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

section { padding: 92px 0; }
.section-head { max-width: 66ch; margin-bottom: 52px; }
.section-head .lead { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 110px 0 80px; text-align: center; }
.hero .eyebrow { justify-content: center; }
.hero h1 { max-width: 16ch; margin: 0 auto 24px; }
.hero .lead { margin: 0 auto 36px; text-align: center; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 44px; display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Two doors ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.door {
  position: relative; border-radius: 20px; padding: 40px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.door:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -30px rgba(0,0,0,.9); }
.door.new { border-top: 3px solid var(--violet); }
.door.old { border-top: 3px solid var(--magenta); }
.door .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.door h3 { font-size: 1.7rem; margin: 12px 0 12px; }
.door p { color: var(--muted); margin: 0 0 22px; }
.door ul { list-style: none; padding: 0; margin: 0 0 26px; }
.door li { color: var(--muted); padding: 7px 0 7px 26px; position: relative; font-size: 15.5px; }
.door li::before { content: "→"; position: absolute; left: 0; color: var(--violet-2); }
.door.old li::before { color: var(--magenta); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 22px; color: #0a0a12;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { font-family: var(--mono); font-size: 12.5px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; }
.chip.hot { color: var(--violet-2); border-color: rgba(139,124,255,.4); }

/* proof strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.strip-label { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; text-align: center; }
.strip-row { display: flex; flex-wrap: wrap; gap: 16px 34px; justify-content: center; align-items: center; }
.strip-row span { font-family: var(--display); font-weight: 700; color: var(--muted); font-size: 18px; }

/* band */
.band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* steps */
.steps { counter-reset: step; }
.step .n { font-family: var(--mono); color: var(--violet-2); font-size: 14px; margin-bottom: 10px; }

/* work cards */
.work-card { display: flex; flex-direction: column; height: 100%; }
.work-card .kicker { font-family: var(--mono); font-size: 12px; color: var(--magenta); letter-spacing: .5px; text-transform: uppercase; }
.work-card h3 { margin: 12px 0; }
.work-card .excerpt { color: var(--muted); font-size: 15px; flex: 1; }
.work-card .metric { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.work-card .metric .grad { font-size: inherit; }
.work-card .metric small { display:block; font-family: var(--sans); font-weight:400; font-size: 13px; color: var(--faint); letter-spacing:0; text-transform:none; }

/* article */
.article { max-width: 760px; margin: 0 auto; }
.article p { color: #d4d7e6; margin: 0 0 20px; }
.article h2 { font-size: 1.7rem; margin: 40px 0 14px; }
.article ul { color: #d4d7e6; padding-left: 22px; margin: 0 0 20px; }
.article li { margin-bottom: 8px; }

/* CTA */
.cta-panel { background: linear-gradient(135deg, rgba(139,124,255,.14), rgba(255,92,168,.10)); border: 1px solid var(--line-2); border-radius: 22px; padding: 64px 40px; text-align: center; }
.cta-panel h2 { margin-bottom: 14px; }
.cta-panel .lead { margin: 0 auto 30px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .5px; }
.field input, .field textarea, .field select { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 13px 15px; color: var(--text); font-family: var(--sans); font-size: 15px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,124,255,.16); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); color: var(--violet-2); flex: none; }
.contact-list .k { font-family: var(--mono); font-size: 12px; color: var(--faint); text-transform: uppercase; }
.contact-list .v { color: var(--text); font-weight: 500; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 52px 0 44px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer p { color: var(--faint); font-size: 14.5px; max-width: 40ch; margin: 12px 0 0; }
.footer-links { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--faint); margin: 0 0 12px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 4px 0; }
.footer-col a:hover { color: var(--violet-2); }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--faint); font-size: 13.5px; font-family: var(--mono); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* responsive */
@media (max-width: 900px) {
  .doors { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px; gap: 4px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px; }
  .nav-toggle { display: grid; place-items: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .door { padding: 30px; }
  .cta-panel { padding: 44px 24px; }
}
