/* First Dream — digital services (priglasim.site) */
@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --brand: #00377a;
  --brand-600: #0a4aa0;
  --brand-neon: #2f7bff;
  --accent: #549344;
  --accent-neon: #6fd35a;
  --bg: #05070f;
  --bg-2: #080b18;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --text: #eef2fb;
  --text-dim: #9aa4bd;
  --text-mute: #737e99;
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 72px);
  --grad-brand: linear-gradient(120deg, #46b3ff, #2f7bff 42%, #00377a 100%);
  --grad-accent: linear-gradient(120deg, #6fd35a, #549344 60%, #2f7bff 130%);
  --shadow: 0 30px 80px -30px rgba(0, 20, 60, .8);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --navh: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
.container { width: min(100% - 2 * var(--pad) + var(--pad), var(--maxw)); margin-inline: auto; padding-inline: var(--pad); }

/* background grid glow */
.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(47,123,255,.22), transparent 60%),
    radial-gradient(700px 420px at 90% 10%, rgba(111,211,90,.12), transparent 55%),
    radial-gradient(800px 500px at 50% 110%, rgba(0,55,122,.35), transparent 60%),
    var(--bg);
}
.page-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  opacity: .55;
}

/* top bar + nav */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: .55rem var(--pad);
  border-bottom: 1px solid var(--border);
  font-size: .82rem; color: var(--text-dim);
  background: rgba(5,7,15,.7); backdrop-filter: blur(12px);
}
.topbar a:hover { color: var(--text); }
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--navh);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(5,7,15,.78);
  backdrop-filter: blur(18px);
}
.nav-inner {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: .65rem;
  font-weight: 700; letter-spacing: .02em; font-size: 1.05rem;
}
.nav-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 800;
  box-shadow: 0 10px 30px -12px rgba(47,123,255,.9);
}
.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; color: var(--text-dim); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border-radius: 999px; padding: .78rem 1.25rem; font-weight: 650;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 14px 36px -16px rgba(47,123,255,.95);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.btn-lg { padding: .95rem 1.45rem; font-size: 1.02rem; }
.btn-full { width: 100%; }

/* hero */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 3.5rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.4rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  color: var(--text-dim); font-size: .82rem; font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.02; font-weight: 800; letter-spacing: -.03em;
  text-transform: uppercase; max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  margin-top: 1.15rem; max-width: 42rem;
  color: var(--text-dim); font-size: clamp(1rem, 2.2vw, 1.15rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* sections */
.section { padding: 3.5rem 0 4.5rem; }
.section-head { margin-bottom: 1.75rem; }
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-neon);
  margin-bottom: .7rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
}
.section-head p { margin-top: .7rem; color: var(--text-dim); max-width: 40rem; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  position: relative;
  display: flex; flex-direction: column; gap: .85rem;
  padding: 1.45rem 1.35rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: rgba(47,123,255,.45); transform: translateY(-3px); }
.card::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 55%;
  background: radial-gradient(circle at 50% 0%, var(--glow, rgba(47,123,255,.28)), transparent 70%);
  pointer-events: none;
}
.card[data-tone="steam"] { --glow: rgba(47,123,255,.35); }
.card[data-tone="openai"] { --glow: rgba(111,211,90,.28); }
.card[data-tone="claude"] { --glow: rgba(255,140,80,.28); }
.card-badge {
  width: fit-content; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-neon);
}
.card h3 { font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; }
.card p { color: var(--text-dim); font-size: .95rem; flex: 1; }
.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .75rem; border-top: 1px solid var(--border); font-weight: 600;
}
.card-meta span:last-child { color: var(--brand-neon); }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.step {
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.step-n {
  font-size: .75rem; font-weight: 800; letter-spacing: .14em;
  color: var(--brand-neon); margin-bottom: .55rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--text-dim); font-size: .92rem; }

.trust {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem;
}
.trust-box {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.trust-box h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.trust-box p, .trust-box li { color: var(--text-dim); }
.trust-box ul { margin: .8rem 0 0 1.1rem; }
.trust-box li { margin: .35rem 0; }

.cta-band {
  margin: 1rem 0 3rem;
  padding: 2rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(47,123,255,.35);
  background: linear-gradient(120deg, rgba(47,123,255,.16), rgba(0,55,122,.28));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
.cta-band p { color: var(--text-dim); margin-top: .35rem; }

/* product page */
.prod-hero { padding: calc(var(--navh) * .15 + 2.8rem) 0 1.5rem; }
.back {
  display: inline-flex; margin-bottom: 1rem; color: var(--text-dim); font-weight: 600; font-size: .9rem;
}
.back:hover { color: var(--brand-neon); }
.prod-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem; padding-bottom: 4rem;
}
.panel {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.panel h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.bullets { list-style: none; }
.bullets li {
  position: relative; padding: .45rem 0 .45rem 1.15rem; color: var(--text-dim);
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .85rem;
  width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--grad-brand);
}
.note { margin-top: 1.2rem; color: var(--text-mute); font-size: .9rem; }
.note a { color: var(--brand-neon); text-decoration: underline; }

.pay-card { background: rgba(8,11,24,.9); }
.pay-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: .7rem;
}
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.amt {
  border: 1px solid var(--border); border-radius: 999px; padding: .7rem .35rem;
  font-weight: 650; transition: .2s var(--ease);
}
.amt.is-on, .amt:hover {
  border-color: rgba(47,123,255,.7);
  background: rgba(47,123,255,.12);
}
.field { display: flex; flex-direction: column; gap: .35rem; margin-top: .9rem; }
.field label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; }
.field input {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(0,0,0,.35); padding: .85rem 1rem; color: var(--text);
}
.field input:focus { outline: none; border-color: rgba(47,123,255,.7); }
.pay-fine { margin-top: .9rem; text-align: center; font-size: .75rem; color: var(--text-mute); line-height: 1.5; }
.pay-fine a { color: var(--brand-neon); }
.pay-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: .95rem;
}
.pay-row span { color: var(--text-mute); }
.error {
  margin: 1rem 0; padding: .8rem 1rem; border-radius: 12px;
  background: rgba(220,60,60,.12); border: 1px solid rgba(220,60,60,.35); color: #ffb4b4;
}

.legal {
  padding: 3rem 0 4rem; max-width: 820px;
}
.legal h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }
.legal-body { color: var(--text-dim); }
.legal-body p, .legal-body li { margin: .7rem 0; }
.legal-body ol { padding-left: 1.2rem; }
.legal-body a { color: var(--brand-neon); }

/* footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: rgba(0,0,0,.25);
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.5rem;
}
.footer h4 {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: .7rem;
}
.footer ul { list-style: none; }
.footer li, .footer p { color: var(--text-dim); margin: .35rem 0; font-size: .92rem; }
.footer a:hover { color: var(--text); }
.footer-brand { font-weight: 800; font-size: 1.15rem; margin-bottom: .4rem; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  color: var(--text-mute); font-size: .82rem;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .bento, .steps, .trust, .prod-grid, .footer-grid { grid-template-columns: 1fr; }
}
