/* AdsLipa Homepage — Adsterra-inspired publisher landing */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --red: #d7432e;
  --red2: #b83624;
  --green: #67ac5b;
  --ink: #1f2328;
  --muted: #6b7280;
  --line: #e8e8e8;
  --bg: #f7f7f8;
  --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Roboto, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--red);
  color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a.ghost {
  padding: 9px 14px; border-radius: 4px; font-size: 13px; font-weight: 500; color: var(--muted);
}
.nav-links a.ghost:hover { color: var(--ink); background: var(--bg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 4px; font: 500 13px Roboto, sans-serif;
  border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: .03em;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red2); }
.btn-dark { background: #2c2c2c; color: #fff; }
.btn-dark:hover { background: #1a1a1a; }
.btn-outline {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* Hero — one composition */
.hero {
  position: relative; min-height: calc(100vh - 64px);
  display: grid; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(215,67,46,.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(103,172,91,.18), transparent 50%),
    linear-gradient(145deg, #1a1d21 0%, #2b2f33 45%, #3a2320 100%);
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 72px 0 80px;
  display: grid; gap: 28px; max-width: 720px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
}
.hero h1 span { color: #ff8f7a; }
.hero p {
  font-size: 17px; color: rgba(255,255,255,.78); max-width: 46ch; font-weight: 300;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-visual {
  position: absolute; right: -40px; bottom: 40px; width: min(480px, 42vw);
  opacity: .95; pointer-events: none;
  transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.45));
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%,100% { transform: perspective(900px) rotateY(-8deg) rotateX(4deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(-8deg) rotateX(4deg) translateY(-12px); }
}
.mock {
  background: #fff; color: var(--ink); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
}
.mock-bar { background: #2b2f33; height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; display: block; background: #666; }
.mock-bar i:nth-child(1){background:#d7432e} .mock-bar i:nth-child(2){background:#e6b422} .mock-bar i:nth-child(3){background:#67ac5b}
.mock-body { display: flex; min-height: 220px; }
.mock-side { width: 52px; background: #2b2f33; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mock-side span { width: 28px; height: 28px; border-radius: 6px; background: rgba(255,255,255,.08); }
.mock-side span.on { background: var(--red); }
.mock-main { flex: 1; padding: 14px; background: #f5f5f5; }
.mock-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.mock-kpi { background: #fff; border-radius: 6px; padding: 10px; border: 1px solid #eee; }
.mock-kpi b { display: block; font-size: 14px; }
.mock-kpi small { color: #888; font-size: 10px; text-transform: uppercase; }
.mock-row { height: 10px; background: #e9e9e9; border-radius: 4px; margin: 6px 0; }
.mock-row:nth-child(odd){ width: 92%; } .mock-row:nth-child(even){ width: 78%; background:#f0f0f0; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 500; margin-bottom: 10px;
}
.section .lead { color: var(--muted); margin-bottom: 32px; max-width: 52ch; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.06); }
.card .ico {
  width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; margin-bottom: 14px; font-size: 18px;
}
.card h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px;
  position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

.cta-band {
  margin: 0 auto 72px; width: min(1120px, calc(100% - 40px));
  background: linear-gradient(120deg, #2b2f33, #3d2420 60%, #d7432e);
  border-radius: 12px; padding: 40px; color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  animation: bandIn .8s ease both;
}
@keyframes bandIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cta-band h2 { font-size: 26px; font-weight: 500; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.8); font-size: 14px; }

.footer {
  border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 900px) {
  .hero-visual { display: none; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .hero-inner { padding: 56px 0 64px; }
}
@media (max-width: 560px) {
  .nav-links a.ghost { display: none; }
}
