/* agencjai.pl - landing statyczny. Zero zasobow z zewnatrz: CSP w vhoscie
   (/etc/nginx/sites-available/agencjai.pl) ma style-src 'self', wiec style
   tylko w tym pliku - <style> i atrybut style="" w HTML zostana zablokowane. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #111111;
  --muted: #55575c;
  --accent: #d63a17;
  --dot: rgba(17, 17, 17, 0.10);
  --glow: rgba(214, 58, 23, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --fg: #f2f2f2;
    --muted: #a1a1aa;
    --accent: #ff7a59;
    --dot: rgba(242, 242, 242, 0.09);
    --glow: rgba(255, 122, 89, 0.12);
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Siatka kropek wygaszana ku brzegom. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 0%, transparent 100%);
}

.hero {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 64px 16px 32px;
  text-align: center;
}

/* Miekka poswiata za znakiem. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(80vw, 620px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.mark {
  margin: 0;
  font-size: clamp(56px, 17vw, 136px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.mark .ai {
  color: var(--accent);
}

.lead {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}

.code {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.title {
  margin: 0;
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.foot {
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero > * + * {
    animation-delay: 0.1s;
  }

  .hero > * + * + * {
    animation-delay: 0.2s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
