/* =========================================================
   Anasi Creatives — main stylesheet
   Bold dark creative-agency theme
   ========================================================= */

:root {
  --bg: #0a0a0c;
  --bg-alt: #141417;
  --bg-card: #18181c;
  --border: #2a2a30;
  --fg: #f5f5f2;
  --muted: #9d9da6;
  --accent: #d7ff3f;   /* lime */
  --accent-2: #7c5cff; /* purple */
  --accent-3: #ff5b7f; /* pink, used sparingly */
  --radius: 14px;
  --container: 1180px;
  --ff-head: "Space Grotesk", "Segoe UI", sans-serif;
  --ff-body: "Inter", "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--muted); }

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

section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(215,255,63,0.15);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 600; }

.accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.center { text-align: center; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #0a0a0c; }
.btn-primary:hover { background: #e6ff6f; }
.btn-outline { border-color: var(--border); color: var(--fg); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10,10,12,0.75);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.logo { font-family: var(--ff-head); font-weight: 700; font-size: 22px; display: flex; align-items: baseline; gap: 6px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  position: relative; padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--fg); border-radius: 2px; transition: .25s; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 78px 0 0 0; height: calc(100vh - 78px);
    background: var(--bg); flex-direction: column; justify-content: flex-start;
    padding: 40px 24px; gap: 24px; transform: translateX(100%);
    transition: transform .3s ease; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 20px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .nav-links .btn-primary { display: inline-flex; margin-top: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(124,92,255,0.25), transparent 60%),
    radial-gradient(500px 260px at 10% 20%, rgba(215,255,63,0.12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 22px; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-panel {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  display: grid; gap: 18px;
}
.hero-panel .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.hero-panel .row:last-child { border-bottom: none; }
.hero-panel .row b { color: var(--fg); font-family: var(--ff-head); font-size: 20px; }

/* ---------- Marquee ---------- */
.marquee-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: scroll-left 26s linear infinite; }
.marquee-track span { font-family: var(--ff-head); font-size: 18px; font-weight: 600; color: var(--muted); padding: 0 28px; display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.marquee-track span::after { content: "\2726"; color: var(--accent); font-size: 12px; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 28px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.stat .num { font-family: var(--ff-head); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; color: var(--accent); }
.stat .label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Cards / Services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.icon-box {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(215,255,63,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-box svg { width: 26px; height: 26px; }
.card .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }

/* ---------- Section header ---------- */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Process ---------- */
.process-list { display: grid; gap: 0; }
.process-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: 32px 0; border-top: 1px solid var(--border);
}
.process-item:last-child { border-bottom: 1px solid var(--border); }
.process-item .step-num { font-family: var(--ff-head); font-size: 40px; font-weight: 700; color: var(--border); }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: .2s ease;
}
.filter-btn:hover { color: var(--fg); }
.filter-btn.active { background: var(--accent); color: #0a0a0c; border-color: var(--accent); }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 800px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform .25s ease, border-color .25s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.work-thumb {
  height: 220px; display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 700; font-size: 54px; color: rgba(255,255,255,0.85);
  position: relative; overflow: hidden;
}
.work-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
}
.work-body { padding: 22px 24px; }
.work-body .work-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.work-body h3 { margin: 8px 0 6px; }

/* thumb gradient variants */
.g1 { background: linear-gradient(135deg, #7c5cff, #241b5c); }
.g2 { background: linear-gradient(135deg, #d7ff3f, #6b7c0f); }
.g3 { background: linear-gradient(135deg, #ff5b7f, #5c1c2c); }
.g4 { background: linear-gradient(135deg, #3fd7ff, #12495c); }
.g5 { background: linear-gradient(135deg, #ff9d3f, #5c3712); }
.g6 { background: linear-gradient(135deg, #5cff9d, #12592f); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 24px;
  padding: 64px 40px;
  background: linear-gradient(120deg, rgba(215,255,63,0.12), rgba(124,92,255,0.12));
  border: 1px solid var(--border);
  text-align: center;
}

/* ---------- Team / values ---------- */
.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .value-list { grid-template-columns: 1fr; } }
.value-item { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.value-item .num { font-family: var(--ff-head); color: var(--accent); font-weight: 700; font-size: 22px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 600; color: var(--fg); }
.field input, .field select, .field textarea {
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--fg);
  padding: 13px 16px; border-radius: 10px; font-family: var(--ff-body); font-size: 15px;
  outline: none; transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-note { font-size: 13px; margin-top: 14px; }
.form-note.success { color: var(--accent); }
.form-note.error { color: var(--accent-3); }

.contact-info-list { display: grid; gap: 20px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .icon-box { flex-shrink: 0; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 56px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg); margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul li a { color: var(--muted); font-size: 14px; transition: color .2s ease; }
.footer-grid ul li a:hover { color: var(--accent); }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: .2s ease;
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 28px; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }

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

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page .code { font-family: var(--ff-head); font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; color: var(--accent); line-height: 1; }
