/* ============================================================
   CODENIDEN — Digital Agency · Shared Design System
   Brand: #FFDD02 (yellow) on near-black. Geometric sans + mono.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root{
  --yellow:#FFDD02;
  --yellow-d:#E8C900;
  --ink:#0E0E0E;
  --ink2:#141414;
  --card:#1A1A1A;
  --card2:#202020;
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.06);
  --text:#ECECEC;
  --mut:#9A9A9A;
  --mut2:#6E6E6E;
  --disp:'Space Grotesk',sans-serif;
  --body:'Manrope',sans-serif;
  --mono:'Space Mono',monospace;
  --maxw:1280px;
  --pad:clamp(20px,5vw,56px);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--ink); color:var(--text); font-family:var(--body);
  font-size:17px; line-height:1.6; -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--yellow); color:#000; }

/* ---------- layout ---------- */
.wrap{ max-width:var(--maxw); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad); }
.section{ padding:clamp(64px,9vw,120px) 0; position:relative; }
.section.tight{ padding:clamp(48px,6vw,80px) 0; }
.grid-bg{ position:absolute; inset:0; background-image:linear-gradient(var(--line2) 1px,transparent 1px),linear-gradient(90deg,var(--line2) 1px,transparent 1px); background-size:88px 88px; pointer-events:none; z-index:0; }

/* ---------- type ---------- */
h1,h2,h3,h4{ font-family:var(--disp); font-weight:700; line-height:1; letter-spacing:-.02em; }
.eyebrow{ font-family:var(--mono); font-size:13px; letter-spacing:.08em; color:var(--yellow); text-transform:uppercase; display:inline-flex; align-items:center; gap:10px; }
.eyebrow::before{ content:""; width:8px; height:8px; background:var(--yellow); transform:rotate(45deg); display:inline-block; }
.eyebrow.plain::before{ display:none; }
.h-xl{ font-size:clamp(48px,8vw,104px); text-transform:uppercase; }
.h-lg{ font-size:clamp(38px,5.5vw,72px); text-transform:uppercase; }
.h-md{ font-size:clamp(28px,3.6vw,46px); }
.lead{ font-size:clamp(18px,2vw,21px); color:#CFCFCF; line-height:1.6; }
.mut{ color:var(--mut); }
.y{ color:var(--yellow); }
.blk{ background:var(--yellow); color:#000; padding:0 .12em; }
.out{ -webkit-text-stroke:1.6px #fff; color:transparent; }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; gap:10px; background:var(--yellow); color:#000; font-family:var(--disp); font-weight:700; font-size:15px; padding:15px 26px; border-radius:999px; letter-spacing:.01em; border:1px solid var(--yellow); cursor:pointer; transition:.18s ease; white-space:nowrap; }
.btn:hover{ background:var(--yellow-d); transform:translateY(-2px); }
.btn.ghost{ background:transparent; color:#fff; border:1px solid var(--line); }
.btn.ghost:hover{ background:#fff; color:#000; border-color:#fff; }
.btn.sm{ padding:11px 18px; font-size:13px; }
.btn-row{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; }

/* ---------- header / nav ---------- */
.site-head{ position:sticky; top:0; z-index:60; background:rgba(14,14,14,.82); backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
.site-head .wrap{ display:flex; align-items:center; justify-content:space-between; height:74px; gap:24px; }
.brand img{ height:28px; }
.nav-links{ display:flex; align-items:center; gap:28px; }
.nav-links a{ font-size:14.5px; font-weight:600; color:#D6D6D6; position:relative; padding:4px 0; }
.nav-links a:hover{ color:#fff; }
.nav-links a.active{ color:var(--yellow); }
.nav-links a.ext::after{ content:"↗"; font-size:11px; margin-left:3px; color:var(--yellow); vertical-align:top; }
.nav-right{ display:flex; align-items:center; gap:16px; }
.burger{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px; }
.burger span{ width:24px; height:2px; background:#fff; display:block; transition:.2s; }
.mobile-menu{ display:none; }

/* ---------- marquee tape ---------- */
.tape-band{ overflow:hidden; padding:8px 0; }
.tape{ display:flex; white-space:nowrap; font-family:var(--disp); font-weight:700; text-transform:uppercase; font-size:clamp(16px,1.8vw,22px); letter-spacing:.03em; padding:13px 0; }
.tape .run{ display:inline-flex; align-items:center; gap:26px; padding-right:26px; animation:marq 26s linear infinite; }
.tape.rev .run{ animation-direction:reverse; }
.tape.t-y{ background:var(--yellow); color:#000; transform:rotate(-1.6deg); margin:0 -2vw; }
.tape.t-w{ background:#fff; color:#000; transform:rotate(1.3deg); margin:-6px -2vw 0; }
.tape .dot{ width:9px; height:9px; background:currentColor; transform:rotate(45deg); flex:none; }
@keyframes marq{ to{ transform:translateX(-50%); } }

/* ---------- cards / grids ---------- */
.cards{ display:grid; gap:18px; }
.cols-2{ grid-template-columns:repeat(2,1fr); }
.cols-3{ grid-template-columns:repeat(3,1fr); }
.cols-4{ grid-template-columns:repeat(4,1fr); }
.card{ background:var(--card); border:1px solid var(--line); border-radius:18px; padding:30px; transition:.2s ease; position:relative; overflow:hidden; }
.card:hover{ border-color:rgba(255,221,2,.5); transform:translateY(-3px); }
.card .idx{ font-family:var(--mono); font-size:13px; color:var(--yellow); }

/* service card */
.svc{ display:flex; flex-direction:column; gap:14px; min-height:240px; }
.svc h3{ font-size:24px; text-transform:none; letter-spacing:-.01em; }
.svc .ic{ width:46px; height:46px; border:1px solid var(--line); border-radius:11px; display:flex; align-items:center; justify-content:center; color:var(--yellow); }
.svc .ic svg{ width:22px; height:22px; }
.svc p{ color:var(--mut); font-size:15px; flex:1; }
.svc .arr{ font-family:var(--disp); font-weight:700; color:var(--yellow); font-size:14px; }

/* ---------- stats ---------- */
.statband{ display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.statband .st{ padding:34px 28px; border-right:1px solid var(--line); }
.statband .st:last-child{ border-right:0; }
.statband b{ font-family:var(--disp); font-size:clamp(40px,5vw,62px); line-height:1; display:block; }
.statband b em{ color:var(--yellow); font-style:normal; }
.statband span{ font-family:var(--mono); font-size:13px; color:var(--mut); margin-top:8px; display:block; }

/* ---------- placeholders ---------- */
.ph{ position:relative; background:var(--card2); border:1px solid var(--line); border-radius:16px; overflow:hidden; background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 14px,transparent 14px 28px); }
.ph::after{ content:attr(data-label); position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:var(--mono); font-size:13px; color:var(--mut2); letter-spacing:.06em; text-transform:uppercase; padding:16px; text-align:center; }
.ph.r4{ aspect-ratio:4/3; } .ph.r1{ aspect-ratio:1/1; } .ph.r16{ aspect-ratio:16/9; } .ph.r34{ aspect-ratio:3/4; }

/* ---------- terminal window ---------- */
.term{ background:#000; border:1px solid var(--line); border-radius:16px; overflow:hidden; box-shadow:0 40px 90px rgba(0,0,0,.5); }
.term .bar{ display:flex; align-items:center; gap:8px; padding:14px 18px; border-bottom:1px solid var(--line); }
.term .bar i{ width:12px; height:12px; border-radius:50%; display:block; }
.term .bar .t{ margin-left:14px; font-family:var(--mono); font-size:12px; color:var(--mut); }
.term .body{ padding:24px 26px; font-family:var(--mono); font-size:14.5px; line-height:1.95; overflow-x:auto; }
.term .ln{ white-space:pre; }
.term .k{ color:var(--yellow); } .term .s{ color:#7fd1a0; } .term .c{ color:#6a6a6a; } .term .v{ color:#9ecbff; }

/* ---------- process steps ---------- */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.steps .step{ padding:32px 28px; border-right:1px solid var(--line); position:relative; }
.steps .step:last-child{ border-right:0; }
.steps .num{ font-family:var(--mono); font-size:13px; color:var(--yellow); }
.steps h4{ font-size:21px; text-transform:none; margin:18px 0 10px; letter-spacing:-.01em; }
.steps p{ color:var(--mut); font-size:14.5px; }

/* ---------- testimonials ---------- */
.quote{ background:var(--card); border:1px solid var(--line); border-radius:18px; padding:34px; display:flex; flex-direction:column; gap:20px; }
.quote .stars{ color:var(--yellow); letter-spacing:3px; font-size:15px; }
.quote p{ font-size:18px; line-height:1.55; }
.quote .who{ display:flex; align-items:center; gap:14px; margin-top:auto; }
.quote .who .av{ width:46px; height:46px; border-radius:50%; background:var(--card2); border:1px solid var(--line); flex:none; background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.04) 0 6px,transparent 6px 12px); }
.quote .who b{ font-family:var(--disp); font-size:15px; }
.quote .who span{ font-size:13px; color:var(--mut); display:block; }

/* ---------- pricing ---------- */
.price{ display:flex; flex-direction:column; gap:20px; height:100%; }
.price.feat{ border-color:var(--yellow); background:linear-gradient(180deg,rgba(255,221,2,.06),transparent); }
.price .tag{ font-family:var(--mono); font-size:12px; color:var(--yellow); text-transform:uppercase; letter-spacing:.08em; }
.price .amt{ font-family:var(--disp); font-size:46px; font-weight:700; line-height:1; }
.price .amt small{ font-size:15px; color:var(--mut); font-weight:500; font-family:var(--body); }
.price ul{ list-style:none; display:flex; flex-direction:column; gap:12px; flex:1; }
.price li{ font-size:14.5px; color:#CFCFCF; padding-left:26px; position:relative; }
.price li::before{ content:"+"; position:absolute; left:0; color:var(--yellow); font-family:var(--mono); font-weight:700; }
.price .pill{ position:absolute; top:18px; right:18px; background:var(--yellow); color:#000; font-family:var(--mono); font-size:11px; font-weight:700; padding:5px 10px; border-radius:999px; text-transform:uppercase; }

/* ---------- accordion ---------- */
.acc{ border-top:1px solid var(--line); }
.acc .item{ border-bottom:1px solid var(--line); }
.acc .q{ width:100%; background:none; border:0; color:#fff; text-align:left; font-family:var(--disp); font-weight:600; font-size:clamp(18px,2.2vw,23px); padding:26px 50px 26px 0; cursor:pointer; position:relative; letter-spacing:-.01em; }
.acc .q::after{ content:"+"; position:absolute; right:6px; top:50%; transform:translateY(-50%); color:var(--yellow); font-size:28px; font-weight:400; transition:.25s; }
.acc .item.open .q::after{ transform:translateY(-50%) rotate(45deg); }
.acc .a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.acc .a p{ color:var(--mut); padding:0 50px 26px 0; font-size:16px; }

/* ---------- page header ---------- */
.page-head{ padding:clamp(70px,10vw,120px) 0 clamp(40px,6vw,70px); position:relative; }
.page-head .crumb{ font-family:var(--mono); font-size:13px; color:var(--mut); margin-bottom:22px; }
.page-head .crumb .y{ color:var(--yellow); }

/* ---------- logo strip ---------- */
.logos{ display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.logos div{ background:var(--ink); padding:30px; display:flex; align-items:center; justify-content:center; font-family:var(--disp); font-weight:700; font-size:18px; color:var(--mut2); letter-spacing:.02em; }

/* ---------- CTA band ---------- */
.cta-band{ background:var(--yellow); color:#000; border-radius:26px; padding:clamp(40px,6vw,72px); position:relative; overflow:hidden; }
.cta-band h2{ font-size:clamp(34px,5vw,64px); text-transform:uppercase; max-width:14ch; }
.cta-band .btn{ background:#000; color:var(--yellow); border-color:#000; }
.cta-band .btn:hover{ background:#1a1a1a; }
.cta-band .btn.ghost{ background:transparent; color:#000; border-color:rgba(0,0,0,.3); }
.cta-band .btn.ghost:hover{ background:#000; color:var(--yellow); }
.cta-band .deco{ position:absolute; right:-40px; bottom:-60px; font-family:var(--disp); font-weight:700; font-size:260px; color:rgba(0,0,0,.06); pointer-events:none; line-height:1; }

/* ---------- footer ---------- */
.site-foot{ border-top:1px solid var(--line); padding:clamp(48px,7vw,84px) 0 36px; }
.foot-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; }
.foot-top img{ height:30px; margin-bottom:20px; }
.foot-top p{ color:var(--mut); font-size:15px; max-width:34ch; }
.foot-col h5{ font-family:var(--mono); font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--mut2); margin-bottom:16px; }
.foot-col a{ display:block; color:#CFCFCF; font-size:15px; padding:6px 0; }
.foot-col a:hover{ color:var(--yellow); }
.foot-bot{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; margin-top:54px; padding-top:28px; border-top:1px solid var(--line); font-family:var(--mono); font-size:12.5px; color:var(--mut); }

/* ---------- misc ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,5vw,64px); align-items:center; }
.sec-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:30px; margin-bottom:48px; flex-wrap:wrap; }
.sec-head .lead{ max-width:46ch; }
.chips{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{ font-family:var(--mono); font-size:13px; padding:8px 16px; border:1px solid var(--line); border-radius:999px; color:#CFCFCF; cursor:pointer; transition:.18s; }
.chip:hover,.chip.on{ background:var(--yellow); color:#000; border-color:var(--yellow); }
.tag-pill{ font-family:var(--mono); font-size:12px; color:var(--yellow); text-transform:uppercase; letter-spacing:.06em; }
.reveal{ opacity:0; transform:translateY(24px); transition:.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }

/* ---------- article / blog post ---------- */
.article{ max-width:820px; margin:0 auto; }
.article-head{ padding:clamp(60px,9vw,110px) 0 clamp(30px,4vw,46px); position:relative; }
.article-head .crumb{ font-family:var(--mono); font-size:13px; color:var(--mut); margin-bottom:22px; }
.article-head .crumb a{ color:var(--mut); } .article-head .crumb a:hover{ color:var(--yellow); }
.article-head .crumb .y{ color:var(--yellow); }
.article-head h1{ font-size:clamp(34px,5.2vw,62px); line-height:1.02; text-transform:none; letter-spacing:-.02em; max-width:18ch; }
.article-meta{ display:flex; flex-wrap:wrap; gap:10px 22px; align-items:center; margin-top:26px; font-family:var(--mono); font-size:13.5px; color:var(--mut); }
.article-meta .tag-pill{ background:rgba(255,221,2,.12); padding:6px 12px; border-radius:999px; }
.article-cover{ margin:clamp(30px,5vw,52px) 0; border-radius:18px; overflow:hidden; border:1px solid var(--line); background:var(--card2); }
.article-cover img{ width:100%; height:auto; display:block; }

.post-body{ font-size:18px; line-height:1.75; color:#D9D9D9; }
.post-body > *{ margin-bottom:22px; }
.post-body h2{ font-size:clamp(26px,3.4vw,36px); text-transform:none; letter-spacing:-.01em; margin:48px 0 18px; line-height:1.12; }
.post-body h3{ font-size:clamp(21px,2.6vw,26px); text-transform:none; margin:36px 0 14px; line-height:1.2; }
.post-body h2 strong, .post-body h3 strong{ font-weight:700; }
.post-body p{ margin-bottom:22px; }
.post-body a{ color:var(--yellow); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.post-body a:hover{ color:#fff; }
.post-body strong{ color:#fff; }
.post-body ul, .post-body ol{ padding-left:26px; margin-bottom:24px; display:flex; flex-direction:column; gap:11px; }
.post-body li{ padding-left:6px; }
.post-body ul li::marker{ color:var(--yellow); }
.post-body ol li::marker{ color:var(--yellow); font-family:var(--mono); }
.post-body figure{ margin:34px 0; }
.post-body img{ width:100%; height:auto; border-radius:14px; border:1px solid var(--line); }
.post-body figcaption{ font-family:var(--mono); font-size:12.5px; color:var(--mut2); text-align:center; margin-top:10px; }
.post-body blockquote{ border-left:3px solid var(--yellow); padding:6px 0 6px 26px; margin:30px 0; font-size:21px; line-height:1.5; color:#fff; font-family:var(--disp); font-weight:500; }
.post-body blockquote p{ margin:0; }
.post-body code{ font-family:var(--mono); font-size:.88em; background:var(--card2); border:1px solid var(--line); padding:2px 7px; border-radius:6px; color:var(--yellow); }
.post-body pre{ background:#000; border:1px solid var(--line); border-radius:14px; padding:22px; overflow-x:auto; margin:30px 0; }
.post-body pre code{ background:none; border:0; padding:0; color:#9ecbff; font-size:14px; line-height:1.7; }
.post-body table{ width:100%; border-collapse:collapse; margin:30px 0; font-size:15px; }
.post-body th, .post-body td{ border:1px solid var(--line); padding:13px 16px; text-align:left; }
.post-body th{ background:var(--card); font-family:var(--disp); color:#fff; }
.post-body hr{ border:0; border-top:1px solid var(--line); margin:40px 0; }
.article-foot{ max-width:820px; margin:clamp(46px,6vw,72px) auto 0; padding-top:34px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:18px; align-items:center; justify-content:space-between; }
.share-row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.share-row span{ font-family:var(--mono); font-size:12.5px; color:var(--mut); }
.related .post{ display:flex; flex-direction:column; }

/* blog listing card cover image */
.post .ph.has-img{ background:var(--card2); }
.post-cover{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; border:0; border-radius:0; }
.featured-cover{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; border-radius:16px; border:1px solid var(--line); }

/* ---------- responsive ---------- */
@media(max-width:980px){
  .nav-links{ display:none; }
  .burger{ display:flex; }
  .cols-3,.cols-4,.statband,.steps,.logos,.foot-top{ grid-template-columns:repeat(2,1fr); }
  .statband .st:nth-child(2),.steps .step:nth-child(2){ border-right:0; }
  .split{ grid-template-columns:1fr; }
  .mobile-menu.open{ display:block; position:fixed; inset:74px 0 0; background:var(--ink); z-index:55; padding:28px var(--pad); }
  .mobile-menu.open a{ display:block; font-family:var(--disp); font-weight:600; font-size:26px; padding:16px 0; border-bottom:1px solid var(--line); }
  .mobile-menu.open .btn{ margin-top:24px; width:100%; justify-content:center; }
}
@media(max-width:640px){
  body{ font-size:16px; }
  .cols-2,.cols-3,.cols-4,.statband,.steps,.logos,.foot-top{ grid-template-columns:1fr; }
  .statband .st,.steps .step{ border-right:0; border-bottom:1px solid var(--line); }
  .logos{ grid-template-columns:repeat(2,1fr); }
}
