/* ===========================================================
   Forgewake — style.css
   Design tokens → layout → components → responsive
   =========================================================== */

:root {
  --bg:        #0a0e17;
  --bg-2:      #0d1220;
  --surface:   #121a2b;
  --surface-2: #172035;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --text:      #e8ecf5;
  --muted:     #97a2b8;
  --amber:     #ff8a3d;
  --cyan:      #37e0ff;
  --grad:      linear-gradient(120deg, #ff8a3d 0%, #ff5d8f 45%, #37e0ff 100%);
  --brand-grad: linear-gradient(90deg, #FB8C3B 0%, #F76F6F 22%, #EC4899 42%, #C05CE8 60%, #7C93F0 80%, #46B6F0 100%);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --ease:      cubic-bezier(.2,.7,.2,1);
  --shadow:    0 20px 60px -20px rgba(0,0,0,.6);
}

*,*::before,*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); overscroll-behavior-y: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

h1,h2,h3,.brand-name { font-family: 'Sora', system-ui, sans-serif; line-height: 1.1; letter-spacing: -.02em; }

a { color: inherit; text-decoration: none; }
img,svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--amber); color: #10131b; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  will-change: transform;
}
.btn-primary { background: var(--grad); color: #10131b; box-shadow: 0 10px 30px -8px rgba(255,138,61,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(255,138,61,.65); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--cyan); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10,14,23,.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(10,14,23,.85); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand-mark { display: grid; place-items: center; }
.brand-name { font-size: 1.2rem; font-weight: 800; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-logo { height: 35px; width: auto; display: block; }
.footer-brand .brand-logo { height: 32px; }
@media (max-width: 560px) { .brand-logo { height: 30px; } }

.nav-menu { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { padding: .5rem .85rem; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav-menu a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { color: #10131b !important; background: var(--grad); font-weight: 600; }
.nav-cta:hover { color: #10131b !important; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(70px, 12vw, 150px) 0 clamp(50px,7vw,90px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% 0 auto 0; height: 700px; z-index: -1;
  background:
    radial-gradient(600px 380px at 22% 18%, rgba(255,138,61,.28), transparent 60%),
    radial-gradient(620px 420px at 82% 8%, rgba(55,224,255,.22), transparent 62%),
    radial-gradient(500px 500px at 60% 60%, rgba(155,107,255,.14), transparent 60%);
  filter: blur(6px);
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate3d(0,-24px,0) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }

.hero-inner { max-width: 900px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--cyan); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 800; margin: 0 0 1.2rem; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 680px; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin: 3.4rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid var(--line); }
.hero-stats dt { font-family: 'Sora'; font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats dd { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.1rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: scroll 26s linear infinite; }
.marquee-track span { color: var(--muted); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg), var(--bg-2)); border-block: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 0 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin: .4rem 0 .8rem; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

.grid { display: grid; gap: 1.4rem; }
.cards { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  position: relative; padding: 2rem 1.7rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card-ico { font-size: 1.6rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,138,61,.12); color: var(--amber); margin-bottom: 1.1rem; border: 1px solid rgba(255,138,61,.2); }
.card h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Work ---------- */
.work-grid { grid-template-columns: repeat(3, 1fr); }
.work-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.work-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.work-thumb { aspect-ratio: 16/10; display: grid; place-items: center; background: linear-gradient(135deg, var(--a), var(--b)); position: relative; }
.work-thumb::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 55%); mix-blend-mode: overlay; }
.work-thumb span { font-family: 'Sora'; font-weight: 800; font-size: 1.8rem; color: rgba(16,19,27,.85); letter-spacing: -.02em; }
.work-body { padding: 1.4rem 1.4rem 1.6rem; }
.work-body h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.work-body p { color: var(--muted); font-size: .96rem; margin: 0 0 .9rem; }
.tag { font-size: .78rem; color: var(--cyan); font-weight: 600; letter-spacing: .02em; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; counter-reset: s; }
.steps li { padding: 1.8rem 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.step-n { font-family: 'Sora'; font-weight: 800; font-size: 1rem; color: var(--amber); letter-spacing: .1em; }
.steps h3 { margin: .8rem 0 .5rem; font-size: 1.2rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Stack ---------- */
.stack-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.check-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .8rem; }
.check-list li { padding-left: 2rem; position: relative; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: rgba(55,224,255,.14); color: var(--cyan); font-size: .8rem; font-weight: 700; }
.stack-badges { display: flex; flex-wrap: wrap; gap: .7rem; }
.stack-badges span { padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--muted); font-weight: 600; font-size: .92rem; transition: transform .2s, color .2s, border-color .2s; }
.stack-badges span:hover { transform: translateY(-3px); color: var(--text); border-color: var(--cyan); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.about-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; margin: 0; }
.about-stats div { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.about-stats dt { font-family: 'Sora'; font-weight: 800; font-size: 1.9rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stats dd { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Contact ---------- */
.contact-inner { max-width: 780px; margin-inline: auto; text-align: center; }
.contact-inner .section-head { margin-inline: auto; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; text-align: left; margin-top: 1rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--muted); }
.field .opt { font-weight: 400; opacity: .7; }
.field input, .field textarea {
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  border-radius: var(--radius-sm); padding: .85rem 1rem; font: inherit; font-size: 1rem; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(55,224,255,.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff6b8a; box-shadow: 0 0 0 3px rgba(255,107,138,.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-note { margin: 0; font-size: .92rem; color: var(--muted); }
.form-note.ok { color: #3dffa3; } .form-note.err { color: #ff6b8a; }
.contact-alt { margin-top: 1.8rem; color: var(--muted); }
.contact-alt a { color: var(--cyan); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 3rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; }
.footer-brand p { color: var(--muted); margin: .7rem 0 0; max-width: 320px; }
.footer-address { color: var(--muted); font-style: normal; margin: 1rem 0 0; font-size: .88rem; line-height: 1.7; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: var(--muted); font-weight: 500; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-bottom a { color: var(--cyan); }

/* ---------- Cookie consent banner ---------- */
.cc-banner {
  position: fixed; z-index: 300; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(140%);
  width: min(720px, calc(100% - 32px));
  background: rgba(13,18,32,.96); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1.4rem;
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  transition: transform .5s var(--ease), opacity .5s var(--ease); opacity: 0;
}
.cc-banner.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.cc-text { flex: 1 1 320px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.cc-text strong { color: var(--text); }
.cc-text a { color: var(--cyan); font-weight: 600; }
.cc-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cc-btn { padding: .6rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); transition: transform .2s, border-color .2s, background .2s; }
.cc-btn:hover { transform: translateY(-2px); border-color: var(--cyan); }
.cc-btn.cc-accept { background: var(--grad); border-color: transparent; color: #10131b; }
.cc-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cc-banner { transition: none; } }
@media (max-width: 560px) { .cc-actions { width: 100%; } .cc-btn { flex: 1; text-align: center; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin: .4rem 0 .5rem; }
.legal-updated { color: var(--muted); font-size: .9rem; margin: 0 0 2rem; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 1rem; }
.legal a { color: var(--cyan); }
.legal code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .4rem; font-size: .88em; color: var(--text); }
.legal-list { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: .5rem; }
.legal-back { margin-top: 2.5rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: .7rem .8rem; border: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.cookie-table th { background: var(--surface); color: var(--text); font-family: 'Sora'; font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .work-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .stack-inner, .about-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 1.6rem; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: .2rem; padding: 1rem 22px 1.6rem; background: rgba(10,14,23,.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: .9rem 1rem; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: .4rem; }
}

@media (max-width: 560px) {
  .cards, .work-grid, .steps { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2,1fr); }
  .contact-form { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}
