/* =========================================================
   AdPlore — Performance Media Buying
   Acid-green + violet on near-black. Outfit + JetBrains Mono.
   ========================================================= */

:root {
  --bg: #0A0A0A;
  --bg-soft: #0D0D0F;
  --surface: rgba(255, 255, 255, 0.022);
  --surface-2: rgba(255, 255, 255, 0.045);
  --text: #FFFFFF;
  --text-2: #C7CBD1;
  --muted: #80858F;

  --green: #22E36A;
  --violet: #7C5CFF;
  --green-dim: rgba(34, 227, 106, 0.12);
  --green-border: rgba(34, 227, 106, 0.26);
  --violet-border: rgba(124, 92, 255, 0.30);

  --grad: linear-gradient(100deg, #22E36A 0%, #7C5CFF 100%);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --maxw: 1180px;
  --radius: 16px;
  --pad: clamp(20px, 5vw, 36px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(110% 60% at 50% -10%, rgba(34, 227, 106, 0.10), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 26px 26px;
  background-attachment: fixed, scroll;
}

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: var(--pad); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green); color: #07140b; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- shared text ---------- */
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); display: inline-flex; align-items: center; gap: 10px;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 11px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s, border-color .2s, filter .2s;
  white-space: nowrap;
}
.btn--solid { background: var(--green); color: #07140b; box-shadow: 0 8px 24px -10px rgba(34, 227, 106, 0.7); }
.btn--solid:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 14px 30px -10px rgba(34, 227, 106, 0.8); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; color: #07140b; font-weight: 900; font-size: 23px;
  box-shadow: 0 6px 18px -6px rgba(124, 92, 255, 0.7);
}
.brand__text { font-weight: 800; font-size: 19px; line-height: 1.05; }
.brand__text small {
  display: block; font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.16em; color: var(--green); margin-top: 2px;
}

.nav__links { display: flex; gap: 30px; }
.nav__links a { font-weight: 500; font-size: 15px; color: var(--text-2); position: relative; padding: 4px 0; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--grad); transition: width .25s ease;
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 72px 0 auto 0; z-index: 99;
  background: rgba(10, 10, 10, 0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-120%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.drawer.open { transform: translateY(0); }
.drawer__links { display: flex; flex-direction: column; gap: 6px; padding: 18px var(--pad) 28px; }
.drawer__links a { padding: 12px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.drawer__links .btn { margin-top: 12px; border: 0; }

/* ============ HERO ============ */
.hero { padding-top: clamp(120px, 17vh, 180px); padding-bottom: 30px; }
.hero__grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.hero__title {
  font-size: clamp(46px, 8.5vw, 96px); font-weight: 900; line-height: 0.92;
  letter-spacing: -0.025em; text-transform: uppercase; margin-bottom: 6px;
}
.hero__tag { font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; color: var(--green); margin: 18px 0 14px; }
.hero__lead { color: var(--text-2); font-size: 17px; max-width: 520px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__panel {
  position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--green-border);
  border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, rgba(34, 227, 106, 0.06), rgba(124, 92, 255, 0.05));
}
.panel__glow { position: absolute; inset: 0; background: radial-gradient(58% 48% at 30% 22%, rgba(124, 92, 255, 0.5), transparent 60%); }
.panel__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 82%);
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 82%);
}
.panel__watermark {
  position: absolute; right: -8px; bottom: -42px; font-size: clamp(160px, 26vw, 260px);
  font-weight: 900; line-height: 1; opacity: 0.13;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.panel__chart { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60%; }
.chart__line { stroke-dasharray: 620; stroke-dashoffset: 620; animation: draw 2.2s ease forwards .4s; }
.chart__dot { filter: drop-shadow(0 0 8px var(--green)); opacity: 0; animation: pop .4s ease forwards 2.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

.chip {
  position: absolute; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 7px 12px; border-radius: 9px; color: #fff;
  border: 1px solid var(--green-border); background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px); animation: float 5s ease-in-out infinite;
}
.chip--a { top: 16%; right: 7%; }
.chip--b { top: 45%; left: 6%; border-color: var(--violet-border); color: #ccbfff; animation-delay: .8s; }
.chip--c { bottom: 28%; right: 13%; animation-delay: 1.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============ MARQUEE ============ */
.marquee { overflow: hidden; border-block: 1px solid var(--green-border); background: var(--green-dim); padding: 15px 0; }
.marquee__track { display: flex; width: max-content; animation: marq 30s linear infinite; }
.marquee__track--rev { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-mono); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 15px; color: var(--green);
}
.marquee__group span { padding: 0 26px; }
.marquee__group i { font-style: normal; opacity: 0.4; }
.marquee--violet { border-color: var(--violet-border); background: rgba(124, 92, 255, 0.09); }
.marquee--violet .marquee__group { color: var(--violet); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding-block: clamp(64px, 10vw, 110px); position: relative; }
.section--alt { background: var(--bg-soft); border-block: 1px solid rgba(255, 255, 255, 0.05); }
.section__title {
  font-size: clamp(34px, 6vw, 66px); font-weight: 900; line-height: 0.96;
  letter-spacing: -0.02em; text-transform: uppercase; text-align: center; margin-bottom: 10px;
}
.section__title--left { text-align: left; }
.section__lead { max-width: 640px; margin: 26px auto 0; text-align: center; color: var(--text-2); font-size: 17px; }
.section__lead--top { margin-bottom: 50px; }
.section__lead--left { margin-inline: 0; text-align: left; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.stat { border: 1px solid var(--green-border); border-radius: var(--radius); background: var(--surface); padding: 30px 22px; text-align: center; transition: transform .3s, border-color .3s; }
.stat:hover { transform: translateY(-5px); border-color: rgba(34, 227, 106, 0.55); }
.stat b { display: block; font-size: clamp(32px, 4vw, 48px); font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat p { font-weight: 700; margin-top: 10px; }
.stat small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; font-family: var(--font-mono); }

/* ---------- verticals ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; }
.vcard { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); background: var(--surface); padding: 28px 26px; transition: transform .3s, border-color .3s, background .3s; }
.vcard:hover { transform: translateY(-5px); border-color: var(--green-border); background: var(--surface-2); }
.vcard__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green); margin-bottom: 18px; }
.vcard__ico svg { width: 24px; height: 24px; }
.vcard h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.vcard p { color: var(--text-2); font-size: 15px; }
.vcard--cta { background: linear-gradient(150deg, rgba(34, 227, 106, 0.1), rgba(124, 92, 255, 0.1)); border-color: var(--green-border); display: flex; flex-direction: column; justify-content: center; }
.vcard--cta h3 { font-size: 24px; text-transform: uppercase; line-height: 1; }
.vcard__link { font-family: var(--font-mono); font-weight: 700; color: var(--green); margin-top: 14px; font-size: 14px; transition: gap .2s; }
.vcard__link:hover { letter-spacing: 0.02em; }

/* ---------- services ---------- */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.scard { border: 1px solid var(--green-border); border-radius: var(--radius); background: var(--surface); padding: 34px 30px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.scard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.scard:hover { transform: translateY(-6px); border-color: rgba(34, 227, 106, 0.5); }
.scard:hover::before { transform: scaleX(1); }
.scard__num { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--violet); }
.scard h3 { font-size: 23px; font-weight: 800; margin: 14px 0 12px; text-transform: uppercase; letter-spacing: -0.01em; }
.scard p { color: var(--text-2); font-size: 15px; }

/* ---------- dual audience ---------- */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 54px; }
.dcard { border: 1px solid var(--green-border); border-radius: 20px; background: linear-gradient(160deg, rgba(34, 227, 106, 0.07), transparent); padding: 40px 36px; transition: transform .3s; }
.dcard--violet { border-color: var(--violet-border); background: linear-gradient(160deg, rgba(124, 92, 255, 0.1), transparent); }
.dcard:hover { transform: translateY(-5px); }
.dcard__tag { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 16px; }
.dcard--violet .dcard__tag { color: var(--violet); }
.dcard p { color: var(--text-2); font-size: 16px; margin-bottom: 26px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.step { border-left: 2px solid var(--green-border); padding: 6px 4px 6px 22px; }
.step__num { font-family: var(--font-mono); font-size: 30px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h3 { font-size: 19px; font-weight: 800; margin: 12px 0 10px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ---------- testimonials ---------- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.tcard { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); background: var(--surface); padding: 32px 28px; transition: transform .3s, border-color .3s; }
.tcard:hover { transform: translateY(-5px); border-color: var(--green-border); }
.tcard__stars { color: var(--green); letter-spacing: 3px; font-size: 15px; margin-bottom: 16px; }
.tcard blockquote { font-size: 16px; color: var(--text); line-height: 1.6; margin-bottom: 22px; }
.tcard figcaption b { display: block; font-weight: 700; }
.tcard figcaption span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---------- careers ---------- */
.careers { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.careers__copy .btn { margin-top: 28px; }
.perks { list-style: none; display: grid; gap: 12px; }
.perks li { position: relative; padding: 16px 18px 16px 50px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; background: var(--surface); font-weight: 600; }
.perks li::before { content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 6px; background: var(--green-dim); color: var(--green); display: grid; place-items: center; font-size: 13px; font-weight: 800; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact__tg { margin-top: 22px; font-family: var(--font-mono); font-size: 14px; color: var(--text-2); }
.contact__tg a { color: var(--green); font-weight: 700; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.field label span { color: var(--green); }
.field input, .field textarea {
  font-family: var(--font-display); font-size: 15px; color: #fff;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 11px;
  padding: 13px 15px; transition: border-color .2s, background .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #5d626b; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: rgba(34, 227, 106, 0.05); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__submit { grid-column: 1 / -1; justify-self: start; margin-top: 4px; border: 0; }
.form__status { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 14px; min-height: 20px; }
.form__status.ok { color: var(--green); }
.form__status.err { color: #ff6b6b; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 50px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; }
.footer__site { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 14px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { font-weight: 600; color: var(--text-2); transition: color .2s; }
.footer__links a:hover { color: var(--green); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer__base p { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ============ LEGAL PAGES ============ */
.legal { padding-top: clamp(120px, 16vh, 170px); padding-bottom: 80px; }
.legal__head { margin-bottom: 40px; }
.legal__head h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.96; }
.legal__head p { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 14px; }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: 22px; font-weight: 800; margin: 40px 0 12px; }
.legal__body p, .legal__body li { color: var(--text-2); font-size: 16px; margin-bottom: 12px; }
.legal__body ul { padding-left: 22px; }
.legal__body a { color: var(--green); }
.legal__back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; color: var(--green); font-weight: 700; margin-top: 8px; }

/* ============ REVEAL ============ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { max-width: 460px; order: -1; margin-inline: auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sgrid, .tgrid, .steps { grid-template-columns: 1fr 1fr; }
  .dual, .careers, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats, .sgrid, .tgrid, .steps, .form { grid-template-columns: 1fr; }
  .section__title { text-align: left; }
  .section__lead { text-align: left; margin-inline: 0; }
  .hero__panel { order: 0; }
  .footer__inner { flex-direction: column; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .chart__line { stroke-dashoffset: 0; }
  .chart__dot { opacity: 1; }
}
