/* AdSwap AI - one stylesheet for all pages.
   Dark base, accents taken from the logo spectrum. */

:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-2: #0b0d15;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --text: #eceef6;
  --dim: #c3c8d8;
  --muted: #98a0b6;

  /* logo colours */
  --cyan: #00aeef;
  --blue: #336ebb;
  --purple: #8e5bd6;
  --magenta: #ec008c;
  --red: #ed1c24;
  --orange: #f26522;
  --amber: #f9b00d;
  --yellow: #fff200;
  --lime: #b5dc00;
  --green: #57c02a;

  --spectrum: linear-gradient(90deg, #00aeef, #336ebb, #5b2a8e, #ec008c, #ed1c24, #f26522, #f9b00d, #fff200, #b5dc00, #57c02a);
  --grad: linear-gradient(100deg, #00aeef 0%, #ec008c 42%, #f26522 72%, #f9b00d 100%);

  --wrap: 1160px;
  --gut: clamp(20px, 5vw, 56px);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--dim);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* logo spectrum, top of every page */
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: var(--spectrum);
}
img, svg, video { max-width: 100%; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 3px; z-index: 50;
  background: rgba(7, 8, 13, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 92px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 66px; width: auto; }
.nav { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 550;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }

.banner {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  text-align: center; font-size: 0.85rem; color: var(--muted);
  padding: 9px var(--gut);
}
.banner a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.banner a:hover { border-color: var(--cyan); }

/* ---------- typography ---------- */
h1, h2, h3 { margin: 0; color: var(--text); letter-spacing: -0.025em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); font-weight: 750; text-wrap: balance; }
h3 { font-size: 1.12rem; font-weight: 680; letter-spacing: -0.012em; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  white-space: nowrap;
}
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--dim); max-width: 60ch; }
.lede b { color: var(--text); font-weight: 650; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(56px, 8vw, 88px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 60% at 8% 0%, rgba(0, 174, 239, 0.20), transparent 70%),
    radial-gradient(46% 55% at 96% 22%, rgba(236, 0, 140, 0.15), transparent 70%),
    radial-gradient(40% 50% at 60% 110%, rgba(249, 176, 13, 0.10), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(90% 80% at 50% 0%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy .lede { margin-top: 22px; }
.hero-center > * { max-width: 820px; }
.hero-center .lede { margin-top: 22px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.feature {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 0.92rem; line-height: 1.35; color: var(--muted);
}
.feature strong { display: block; color: var(--text); font-weight: 650; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); font-size: 0.9rem; font-weight: 560;
}

/* ---------- icons ---------- */
.ico {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  color: var(--a, var(--cyan));
  background: color-mix(in srgb, var(--a, var(--cyan)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--a, var(--cyan)) 30%, transparent);
}
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip .ico { width: 28px; height: 28px; border-radius: 9px; }
.chip .ico svg { width: 15px; height: 15px; }
.card .ico { width: 48px; height: 48px; border-radius: 14px; }
.card .ico svg { width: 24px; height: 24px; }

/* ---------- before / after slider (ids and classes are used by index.js) ---------- */
.frame {
  padding: 1px; border-radius: 22px;
  background: linear-gradient(140deg, rgba(0,174,239,0.7), rgba(236,0,140,0.5) 50%, rgba(249,176,13,0.6));
  box-shadow: 0 40px 90px -40px rgba(0, 174, 239, 0.45), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.demo-container {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 21px; overflow: hidden; background: #05060a;
  touch-action: pan-y;
}
.video, .video-top {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; user-select: none; pointer-events: none;
}
.clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; clip-path: inset(0 50% 0 0); }
.slider-bar {
  position: absolute; top: 0; left: 50%; width: 3px; height: 100%; z-index: 20;
  background: #fff; transform: translateX(-50%); cursor: ew-resize;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 255, 255, 0.55);
}
.slider-bar::after {
  content: "\2194";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #0a0b12; font-size: 1.05rem; font-weight: 700;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.slider-bar:active::after { box-shadow: 0 0 0 5px rgba(0, 174, 239, 0.45), 0 6px 24px rgba(0, 0, 0, 0.5); }
.labels { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 25; display: flex; justify-content: space-between; pointer-events: none; }
.label {
  padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em;
  color: #fff; background: rgba(7, 8, 13, 0.62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.player-icons { position: absolute; top: 12px; right: 12px; z-index: 30; display: flex; gap: 8px; }
.player-icon {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border-radius: 10px; cursor: pointer; color: #fff;
  background: rgba(7, 8, 13, 0.6); border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.2s;
}
.player-icon:hover { background: rgba(7, 8, 13, 0.9); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 92px) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.section-head::before {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 3px;
  background: var(--spectrum); margin-bottom: 18px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.card {
  --a: var(--cyan);
  position: relative; padding: 28px; border-radius: 22px;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--a), transparent); opacity: 0.7;
}
.card:hover { transform: translateY(-3px); background: var(--panel-2); border-color: color-mix(in srgb, var(--a) 45%, transparent); }
.card h3 { margin-top: 20px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 0.97rem; }
.grid > .card:nth-child(6n+1) { --a: var(--cyan); }
.grid > .card:nth-child(6n+2) { --a: var(--magenta); }
.grid > .card:nth-child(6n+3) { --a: var(--amber); }
.grid > .card:nth-child(6n+4) { --a: var(--green); }
.grid > .card:nth-child(6n+5) { --a: var(--orange); }
.grid > .card:nth-child(6n+6) { --a: var(--purple); }
.hero .feature:nth-child(1) .ico { --a: var(--cyan); }
.hero .feature:nth-child(2) .ico { --a: var(--magenta); }
.hero .feature:nth-child(3) .ico { --a: var(--amber); }
.hero .feature:nth-child(4) .ico { --a: var(--green); }
.chips .chip:nth-child(1) .ico { --a: var(--cyan); }
.chips .chip:nth-child(2) .ico { --a: var(--amber); }
.chips .chip:nth-child(3) .ico { --a: var(--magenta); }
.chips .chip:nth-child(4) .ico { --a: var(--green); }

.statement {
  padding: clamp(28px, 4vw, 44px); border-radius: 24px; text-align: center;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(120deg, rgba(0,174,239,0.7), rgba(236,0,140,0.55), rgba(249,176,13,0.6)) border-box;
  border: 1px solid transparent;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem); color: var(--dim);
}
.statement p + p { margin-top: 10px; }
.statement b { color: var(--text); }

.status { max-width: 760px; }
.status p { margin-top: 0; font-size: 1.1rem; color: var(--muted); }

/* call to action */
.cta {
  padding: clamp(32px, 5vw, 56px); border-radius: 28px; text-align: center;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(0,174,239,0.14), transparent 70%),
    radial-gradient(50% 80% at 100% 100%, rgba(236,0,140,0.10), transparent 70%),
    var(--panel);
  border: 1px solid var(--line-2);
}
.cta h3 { font-size: 1.5rem; margin-top: 18px; }
.cta > p { margin: 12px auto 0; max-width: 60ch; color: var(--muted); }
.cta .ico { margin-inline: auto; width: 52px; height: 52px; border-radius: 16px; --a: var(--amber); }
.cta .ico svg { width: 26px; height: 26px; }
.cta-list {
  list-style: none; padding: 0; margin: 28px auto 0; max-width: 620px; text-align: left;
  display: grid; gap: 12px;
}
.cta-list li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.cta-list li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px);
  background: var(--grad);
}
.cta-list strong { color: var(--text); font-weight: 650; }
.cta-actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: #0a0b12; font: inherit; font-weight: 700; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(0, 174, 239, 0.55); }

/* e-mail links: pill with envelope icon, no underline */
.mail-link,
.footer a[href^="mailto:"] { display: inline-flex; align-items: center; gap: 0.5em; text-decoration: none; }
.mail-link::before,
.footer a[href^="mailto:"]::before {
  content: ""; flex: none; width: 1.1em; height: 1.1em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mail-link {
  padding: 0.15em 0.85em 0.15em 0.7em; margin-inline: 0.2em;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--panel-2); color: var(--text); font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.mail-link:hover, .mail-link:focus-visible { border-color: var(--cyan); background: rgba(0, 174, 239, 0.16); }

/* ---------- footer ---------- */
.footer { background: #05060a; border-top: 1px solid var(--line); padding: 56px 0 28px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.footer h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer p { font-size: 0.93rem; max-width: 34ch; margin-bottom: 10px; }
.footer a { display: block; width: fit-content; margin-bottom: 8px; color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer a:hover { color: var(--text); }
.footer a[href^="mailto:"] { display: inline-flex; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.footer-bottom p { max-width: none; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .site-header .wrap { height: 68px; }
  .brand img { height: 46px; }
  .nav a { padding: 7px 10px; font-size: 0.88rem; }
  .card { padding: 22px; }
  .card::before { left: 22px; right: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
