/* =========================================================
   Codingwerx | Building What's Next
   ========================================================= */
:root {
  --bg: #0d0d0e;
  --bg-2: #141415;
  --surface: #18181a;
  --surface-2: #1f1f22;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --red-1: #8e2418;
  --red-2: #b0342a;
  --red-3: #d9564a;
  --grad: linear-gradient(135deg, #8e2418 0%, #c2413a 55%, #e0685c 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red-2); color: #fff; }

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

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

.page-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(194, 65, 58, 0.18), transparent 70%),
    radial-gradient(500px 400px at -10% 30%, rgba(142, 36, 24, 0.12), transparent 70%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(194, 65, 58, 0.7), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(194, 65, 58, 0.85), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(13, 13, 14, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 44px; height: auto; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand__name span { color: var(--red-3); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-size: 15px; color: var(--muted); position: relative; transition: color .25s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--text); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 80%,100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }

.hero__title { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; margin: 24px 0 22px; letter-spacing: -0.035em; }
.hero__sub { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; }
.hero__points li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hero__points svg { width: 18px; height: 18px; fill: none; stroke: var(--red-3); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.hero__visual { position: relative; height: 480px; }
.orb {
  position: absolute; width: 380px; height: 380px; left: 50%; top: 40%; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(224,104,92,.45), rgba(142,36,24,.25) 45%, transparent 70%);
  filter: blur(20px); animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .8; } }
.hero__mark {
  position: absolute; width: 70%; left: 50%; top: 38%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 30px 60px rgba(194,65,58,0.35));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 14px)); } }

.float-card {
  position: absolute; border-radius: 14px; padding: 14px 16px;
  background: rgba(24, 24, 26, 0.78); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  animation: floaty2 8s ease-in-out infinite;
}
@keyframes floaty2 { 50% { transform: translateY(-10px); } }
.float-card--code { left: -10px; bottom: -10px; width: 320px; padding: 0; animation-delay: -2s; }
.float-card__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.float-card__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3f3f46; }
.float-card__bar i:first-child { background: #ef4444; } .float-card__bar i:nth-child(2) { background: #eab308; } .float-card__bar i:nth-child(3) { background: #22c55e; }
.float-card__bar span { margin-left: 8px; }
.float-card pre { margin: 0; padding: 14px; font-size: 12px; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #d4d4d8; overflow: hidden; }
.k { color: #f28b82; } .s { color: #fbbf77; } .f { color: #93c5fd; } .c { color: var(--dim); }
.float-card--stat { right: 0; top: 0; animation-delay: -4s; }
.float-card--ai { right: -6px; bottom: 30px; width: 210px; animation-delay: -6s; }
.float-card__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.float-card__value { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-top: 4px; font-family: var(--font-head); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: ping 2s infinite; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: 10px; }
.bars i { flex: 1; border-radius: 3px; background: var(--grad); animation: bar 2.4s ease-in-out infinite; }
.bars i:nth-child(1){height:40%;animation-delay:-.2s}.bars i:nth-child(2){height:70%;animation-delay:-.5s}.bars i:nth-child(3){height:55%;animation-delay:-.9s}.bars i:nth-child(4){height:90%;animation-delay:-1.2s}.bars i:nth-child(5){height:60%;animation-delay:-1.5s}.bars i:nth-child(6){height:80%;animation-delay:-1.8s}.bars i:nth-child(7){height:100%;animation-delay:-2.1s}
@keyframes bar { 50% { transform: scaleY(.6); } }
.bars i { transform-origin: bottom; }

/* ---------- Marquee ---------- */
.marquee { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.marquee__label { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 20px; }
.marquee__track {
  display: flex; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__row { display: flex; gap: 56px; padding-right: 56px; flex-shrink: 0; animation: scroll 38s linear infinite; }
.marquee__row span { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: #52525b; white-space: nowrap; transition: color .3s; }
.marquee__row span:hover { color: var(--text); }
.marquee__track:hover .marquee__row { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.018) 20%, rgba(255,255,255,0.018) 80%, transparent); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--red-3);
  margin-bottom: 16px;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--grad); }
.section h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; }
.section__lead { font-size: 18px; color: var(--muted); margin-top: 18px; }
.section__lead a { color: var(--red-3); border-bottom: 1px solid currentColor; }
.link-arrow { font-family: var(--font-head); font-weight: 600; color: var(--muted); transition: color .25s; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--text); } .link-arrow:hover span { transform: translateX(5px); }

/* ---------- Cards (spotlight hover) ---------- */
.card {
  position: relative; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), border-color .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(194,65,58,0.16), transparent 45%);
}
.card:hover { border-color: rgba(194,65,58,0.35); }
.card:hover::before { opacity: 1; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 34px 30px 30px; }
.service:hover { transform: translateY(-6px); }
.service__num { position: absolute; top: 26px; right: 28px; font-family: var(--font-head); font-size: 14px; color: var(--dim); }
.service__icon, .feature__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(194,65,58,.22), rgba(142,36,24,.08)); border: 1px solid rgba(194,65,58,.3);
}
.service__icon svg, .feature__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--red-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- Work ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work__item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), border-color .45s; }
.work__item:hover { transform: translateY(-6px); border-color: rgba(194,65,58,0.35); }
.work__item--big { grid-column: span 2; display: grid; grid-template-columns: 1.2fr 1fr; }
.work__media { position: relative; min-height: 260px; display: grid; place-items: center; overflow: hidden; padding: 30px; }
.work__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 60%); pointer-events: none; }
.work__media--travel { background: linear-gradient(135deg, #3a120d, #7a2a1f 60%, #b0463a); }
.work__media--chat { background: linear-gradient(135deg, #1d1d20, #3a1a17); }
.work__media--data { background: linear-gradient(135deg, #221412, #1a1a1d); }
.work__item:hover .mock, .work__item:hover .chat, .work__item:hover .chart { transform: scale(1.04); }
.work__body { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.work__body .tags { margin: 0 0 16px; }
.work__body h3 { font-size: 24px; margin-bottom: 12px; }
.work__body p { color: var(--muted); }

.mock { width: 100%; max-width: 440px; background: #fff; color: #18181b; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transition: transform .6s var(--ease); }
.mock__bar { display: flex; gap: 5px; padding: 9px 12px; background: #f4f4f5; }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4d4d8; }
.mock__search { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; padding: 16px; font-size: 13px; font-weight: 600; }
.mock__search div { border: 1px solid #e4e4e7; border-radius: 8px; padding: 6px 9px; }
.mock__search small { display: block; font-size: 10px; color: #a1a1aa; font-weight: 500; }
.mock__search b { background: var(--grad); color: #fff; border-radius: 8px; display: grid; place-items: center; padding: 0 14px; }
.mock__rows { padding: 0 16px 16px; display: grid; gap: 8px; }
.mock__rows i { height: 34px; border-radius: 8px; background: linear-gradient(90deg, #f4f4f5, #fafafa); }

.chat { width: 100%; max-width: 300px; display: grid; gap: 10px; transition: transform .6s var(--ease); }
.chat p { padding: 10px 14px; border-radius: 16px; font-size: 13px; max-width: 85%; }
.chat__in { background: #2a2a2e; justify-self: start; border-bottom-left-radius: 4px; }
.chat__out { background: var(--grad); justify-self: end; border-bottom-right-radius: 4px; }

.chart { display: flex; align-items: flex-end; gap: 12px; height: 170px; width: 100%; max-width: 300px; transition: transform .6s var(--ease); }
.chart i { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #e0685c, #6e1c12); opacity: .9; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.process::before { content: ""; position: absolute; top: 28px; left: 28px; right: 22%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), var(--line-2), transparent); }
.process__step { position: relative; padding-top: 4px; }
.process__num {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  background: var(--bg); border: 1px solid rgba(194,65,58,.45); color: var(--red-3);
  box-shadow: 0 0 0 6px var(--bg);
  transition: background .4s, color .4s;
}
.process__step:hover .process__num { background: var(--grad); color: #fff; }
.process__step h3 { font-size: 20px; margin-bottom: 8px; }
.process__step p { color: var(--muted); font-size: 15px; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.stat { padding-top: 16px; border-top: 1px solid var(--line-2); }
.stat__num, .stat__suffix { font-family: var(--font-head); font-size: 42px; font-weight: 700; letter-spacing: -0.03em; }
.stat__suffix { color: var(--red-3); font-size: 28px; margin-left: 2px; }
.stat p { font-size: 14px; color: var(--muted); }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { padding: 28px; }
.feature:nth-child(even) { transform: translateY(30px); }
.feature:nth-child(even):hover { transform: translateY(24px); }
.feature:nth-child(odd):hover { transform: translateY(-6px); }
.feature__icon { width: 48px; height: 48px; margin-bottom: 18px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .3s; }
.faq__item[open] { border-color: rgba(194,65,58,.35); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); font-weight: 400; font-size: 18px; color: var(--muted); transition: transform .35s var(--ease), background .3s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--grad); color: #fff; border-color: transparent; }
.faq__item p { padding: 0 22px 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.section--cta { overflow: hidden; }
.section--cta::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -100px; z-index: -1;
  background: radial-gradient(circle, rgba(194,65,58,.18), transparent 65%);
}
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.contact__list { display: grid; gap: 16px; margin-top: 36px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.contact__list a:hover { color: var(--text); }
.contact__list svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--red-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form { padding: 34px; display: grid; gap: 18px; }
.form:hover { transform: none; }
.form__chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__chips legend { font-size: 14px; color: var(--muted); margin-bottom: 12px; padding: 0; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 14px; cursor: pointer;
  border: 1px solid var(--line-2); color: var(--muted); transition: all .25s;
}
.form__chips label:hover span { border-color: rgba(255,255,255,.35); color: var(--text); }
.form__chips input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.form__chips input:focus-visible + span { outline: 2px solid var(--red-3); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 14px; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a1a1aa' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select option { background: var(--surface); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red-2); box-shadow: 0 0 0 4px rgba(194,65,58,.15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ef4444; }
.hp { position: absolute; left: -9999px; }
.form__status { font-size: 14px; text-align: center; min-height: 1.4em; }
.form__status.ok { color: #4ade80; } .form__status.err { color: #f87171; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__tag { color: var(--dim); margin-top: 14px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.footer__links { display: flex; gap: 70px; flex-wrap: wrap; }
.footer__links h4 { font-size: 14px; margin-bottom: 16px; }
.footer__links a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 10px; transition: color .25s; }
.footer__links a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.to-top { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background .3s, border-color .3s; }
.to-top:hover { background: var(--grad); border-color: transparent; color: #fff; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .feature.reveal.is-in:nth-child(even) { transform: translateY(30px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner, .why, .faq-wrap, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .hero__visual { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .why, .faq-wrap, .contact { gap: 44px; }
}

@media (max-width: 860px) {
  .burger { display: block; z-index: 60; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(13,13,14,0.97); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: 24px; font-family: var(--font-head); color: var(--text); }
  .work { grid-template-columns: 1fr; }
  .work__item--big { grid-column: auto; grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 60px; }
  .hero__sub { font-size: 16px; }
  .hero__visual { height: 360px; }
  .float-card--code { width: 250px; left: 0; bottom: 0; }
  .float-card pre { font-size: 10.5px; }
  .float-card--ai { display: none; }
  .services, .why__grid, .process { grid-template-columns: 1fr; }
  .feature:nth-child(even), .js .feature.reveal.is-in:nth-child(even) { transform: none; }
  .stats { gap: 10px; }
  .stat__num { font-size: 32px; } .stat__suffix { font-size: 22px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .mock__search { grid-template-columns: 1fr 1fr; }
  .footer__links { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
