/* ============================================================
   Wanted Design — Landing Page
   ============================================================ */

:root {
  --bg:        #0a0a0b;
  --surf:      #111113;
  --surf2:     #181820;
  --border:    rgba(255, 255, 255, 0.08);
  --border-sub:rgba(255, 255, 255, 0.04);
  --text:      #ffffff;
  --muted:     #696767;
  --accent:    #E94125;
  --cta:       #0102FD;
  --radius:    24px;
  --maxw:      1200px;
  --font-head: 'Instrument Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: normal; color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* Shared section heading bits ------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 16px;
}
.h2 {
  font-family: var(--font-head);
  font-weight: 800; font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1.05; letter-spacing: -0.03em;
}
.section { padding: 96px 64px; border-top: 1px solid var(--border); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 64px; flex-wrap: wrap;
}

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  border-radius: var(--radius); padding: 15px 36px;
  cursor: pointer; border: none; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn__arrow {
  width: 16px; height: 16px; margin-left: 9px; flex-shrink: 0;
  position: relative; top: 1px;
  transition: transform .2s ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-family: var(--font-body); font-weight: 600;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); }
.btn-sm { padding: 12px 28px; font-size: 14px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 64px; height: 72px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
}
.nav__logo { height: 30px; }
.nav__links { display: flex; gap: 36px; align-items: center; }
.nav__links a:not(.nav__cta) { font-size: 14px; color: var(--muted); transition: color .15s; }
.nav__links a:not(.nav__cta):hover { color: var(--text); }
.nav__cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  background: var(--cta); color: #fff; border: none;
  border-radius: var(--radius); padding: 10px 22px; cursor: pointer;
  transition: transform .15s;
}
.nav__cta:hover { transform: translateY(-1px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 600px; height: 78vh; max-height: 760px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 64px 32px 56px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__orb {
  position: absolute; top: 50%; left: 50%;
  width: 700px; height: 700px; max-width: 90vw;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--accent) 16%, transparent) 0%,
    color-mix(in srgb, var(--accent) 4%, transparent) 40%, transparent 70%);
  animation: orb-drift 6s ease-in-out infinite;
}
.hero__vignette {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 760px; height: 540px; max-width: 92vw; border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.6) 45%, transparent 72%);
}
.hero__content { position: relative; z-index: 2; }
.hero__eyebrow {
  font-size: 11px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(44px, 7vw, 82px); line-height: 0.97;
  letter-spacing: -0.045em; color: var(--text);
  margin-bottom: 28px; max-width: 860px;
}
.hero__sub {
  font-size: 17px; color: var(--muted); line-height: 1.65;
  max-width: 500px; margin: 0 auto 48px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.ticker {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  overflow: hidden; border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; align-items: center;
}
.ticker__track { display: flex; white-space: nowrap; animation: ticker 18s linear infinite; }
.ticker__item {
  font-size: 11px; font-weight: 600; color: #333338;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0 32px;
}
.ticker__item span { color: var(--accent); margin-left: 16px; }

@keyframes orb-drift {
  0%, 100% { transform: translate(-50%, -55%) scale(1); opacity: 0.7; }
  50%      { transform: translate(-50%, -60%) scale(1.1); opacity: 1; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services h2 { max-width: 520px; }
.services__intro {
  font-size: 15px; color: var(--muted); max-width: 300px;
  text-align: right; line-height: 1.7;
}
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.service {
  position: relative; overflow: hidden;
  background: var(--surf); padding: 48px;
  border: 1px solid var(--border);
  transition: background .25s ease, border-color .25s ease;
}
.service:hover { background: var(--surf2); border-color: rgba(255,255,255,0.16); }
.service:nth-child(1) { border-radius: var(--radius) 0 0 0; }
.service:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
.service:nth-child(3) { border-radius: 0 0 0 var(--radius); }
.service:nth-child(4) { border-radius: 0 0 var(--radius) 0; }
.service__num {
  position: absolute; top: 40px; right: 48px;
  font-family: var(--font-head); font-weight: 800; font-size: 80px;
  color: var(--border-sub); line-height: 1;
  transition: color .25s ease;
}
.service:hover .service__num { color: color-mix(in srgb, var(--accent) 22%, transparent); }
.service__tag {
  font-size: 10px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 20px;
}
.service h3 {
  font-family: var(--font-head); font-weight: 800; font-size: 38px;
  letter-spacing: -0.025em; margin-bottom: 20px;
  transition: color .25s ease;
}
.service:hover h3 { color: var(--accent); }
.service p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surf2); aspect-ratio: 16 / 10;
  transition: transform .25s ease;
}
.project::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .25s ease;
  pointer-events: none; z-index: 3;
}
.project:hover { transform: translateY(-4px); }
.project:hover img { transform: scale(1.05); }
.project:hover::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.project__ph {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg,
    var(--surf) 0px, var(--surf) 1px, var(--surf2) 1px, var(--surf2) 24px);
  display: flex; align-items: center; justify-content: center;
}
.project__ph span { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project__overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 24px;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.92) 0%, transparent 100%);
}
.project__tag {
  font-size: 10px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px;
}
.project__overlay h4 { font-family: var(--font-head); font-weight: 700; font-size: 20px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__grid { display: grid; grid-template-columns: 380px 1fr; gap: 96px; align-items: start; }
.faq__intro h2 { margin-bottom: 28px; }
.faq__intro p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 40px; }
.faq__list { border-bottom: 1px solid var(--border); }
.faq__item { border-top: 1px solid var(--border); }
.faq__q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; text-align: left; color: var(--text);
}
.faq__q h4 { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.faq__plus {
  color: var(--accent); font-size: 22px; flex-shrink: 0; line-height: 1;
  transition: transform .2s ease;
}
.faq__item.open .faq__plus { transform: rotate(45deg); }
.faq__a {
  overflow: hidden; max-height: 0;
  transition: max-height .3s ease, opacity .25s ease, margin .25s ease;
  opacity: 0;
}
.faq__item.open .faq__a { max-height: 220px; opacity: 1; margin-bottom: 24px; }
.faq__a p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--surf); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.contact__info h2 { margin-bottom: 24px; }
.contact__info > p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 48px; }
.contact__meta { display: flex; flex-direction: column; gap: 24px; }
.contact__meta p { font-size: 13px; color: var(--muted); }
.contact__addr-label {
  font-size: 10px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px;
}
.contact__addr-line { font-size: 15px; color: var(--text); }
.contact__meta .accent { margin-top: 4px; }
.contact__meta .accent a { color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form select, .form textarea {
  width: 100%; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 8px;
  padding: 14px 16px; color: var(--text); font-size: 14px;
  font-family: var(--font-body); outline: none; transition: border-color .15s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form select { color: var(--muted); }
.form textarea { resize: none; }
.form .btn { padding: 16px; font-size: 15px; border-radius: 8px; }
.form__status {
  font-size: 13px; color: var(--muted); line-height: 1.5;
  min-height: 18px; margin-top: 2px; text-align: center;
}
.form__status.is-error { color: var(--accent); }
.form button:disabled { opacity: 0.6; cursor: progress; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 64px; border-top: 1px solid var(--border); background: #07070a;
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer p { font-size: 13px; color: var(--muted); }
.footer__social { display: flex; gap: 22px; align-items: center; }
.footer__social a { color: var(--muted); display: inline-flex; transition: color .15s, transform .15s; }
.footer__social a:hover { color: var(--text); transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .section { padding: 72px 32px; }
  .services__grid, .portfolio__grid { grid-template-columns: 1fr; }
  .service:nth-child(n) { border-radius: 0; }
  .service:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .service:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .faq__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .services__intro { text-align: left; }
}
@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .nav__links { gap: 18px; }
  .section { padding: 56px 20px; }
  .service { padding: 32px; }
  .form__row { grid-template-columns: 1fr; }
  .footer { padding: 40px 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__orb, .ticker__track { animation: none; }
}
