/* dmnsz — studio aplikacji iOS. Ciemny, „luksusowy” motyw: czerń, ciepła biel, szampańskie złoto.
   Czcionki systemowe (New York / SF Pro na urządzeniach Apple) — bez zewnętrznych fontów (RODO, szybkość). */

:root {
  --bg: #07070a;
  --bg-2: #0d0d12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f1ea;
  --muted: #a39f95;
  --faint: #6f6b63;
  --gold: #d4b67a;
  --gold-2: #f1dfb2;
  --gold-3: #a9894e;
  --radius: 22px;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Poświata i ziarno w tle — cała strona. */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 90vh;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(212, 182, 122, 0.18), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(120, 110, 255, 0.07), transparent 70%);
  pointer-events: none;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
::selection { background: rgba(212, 182, 122, 0.35); }

.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 48px); margin: 0 auto; }

/* Nagłówek — szklany, przyklejony. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(7, 7, 10, 0.62);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font: 600 21px/1 var(--serif); letter-spacing: 0.01em; }
.brand:hover { color: var(--text); }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); box-shadow: 0 0 18px rgba(212, 182, 122, 0.7); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); }
.langs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs a, .langs span { font-size: 12px; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; }
.langs span { background: var(--surface-2); color: var(--text); }
.langs a { color: var(--muted); }

/* Typografia. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.display { font-size: clamp(44px, 7.4vw, 96px); }
.display em, h2 em { font-style: italic; background: linear-gradient(120deg, var(--gold-2), var(--gold) 45%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: 23px; line-height: 1.25; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Sekcje. */
section { padding: clamp(56px, 7vw, 104px) 0; position: relative; }
section.tight { padding: 40px 0; }
.hero { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero .eyebrow { margin-bottom: 28px; }
.hero .lead { margin: 30px 0 42px; }
.section-head { margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { margin-top: 18px; }
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); border: 0; margin: 0; }

/* Przyciski. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-gold { color: #1a1408; background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); box-shadow: 0 10px 40px -10px rgba(212, 182, 122, 0.55); }
.btn-gold:hover { color: #1a1408; transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(212, 182, 122, 0.75); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.center .actions { justify-content: center; }

/* Karty z cienką złotą krawędzią. */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card {
  position: relative;
  padding: 34px 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 223, 178, 0.55), transparent);
  opacity: 0; transition: opacity .35s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(212, 182, 122, 0.28); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 22px 0 10px; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--gold-2);
  background: radial-gradient(circle at 30% 20%, rgba(241, 223, 178, 0.22), rgba(212, 182, 122, 0.06));
  border: 1px solid rgba(212, 182, 122, 0.25);
}
.icon svg { width: 22px; height: 22px; }
.num { font: italic 500 15px/1 var(--serif); color: var(--gold); letter-spacing: 0.04em; }

/* Pasek z hasłami. */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 42px; color: var(--muted); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.strip span { display: inline-flex; align-items: center; gap: 12px; }
.strip span::before { content: "✦"; color: var(--gold); font-size: 11px; }

/* Strona apki. */
.app-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.app-icon { display: block; width: 108px; height: 108px; border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(212, 182, 122, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); margin-bottom: 30px; }
.app-hero h1 { font-size: clamp(48px, 6.4vw, 84px); }
.app-hero .tagline { font: italic 400 clamp(22px, 2.4vw, 30px)/1.3 var(--serif); color: var(--gold-2); margin: 14px 0 22px; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px;
  border: 1px solid rgba(212, 182, 122, 0.35);
  background: rgba(212, 182, 122, 0.07);
  font-size: 14px; color: var(--gold-2);
}
.badge-soon svg { width: 18px; height: 18px; }
.note { font-size: 13px; color: var(--faint); margin-top: 16px; }
.hero-shot { position: relative; justify-self: center; }
.hero-shot img { width: min(340px, 78vw); border-radius: 34px; box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); }
/* Czysty ekran apki w ramce iPhone’a (bez grafiki sklepowej). */
.hero-shot .phone {
  width: min(320px, 74vw); border-radius: 54px; padding: 11px;
  background: linear-gradient(145deg, #3a3a3f, #111114 40%, #26262a);
  box-shadow: 0 70px 140px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hero-shot .phone img { width: 100%; display: block; border-radius: 44px; box-shadow: none; }
.hero-shot::before { content: ""; position: absolute; inset: 12% -18% -8%; background: radial-gradient(closest-side, rgba(212, 182, 122, 0.28), transparent); z-index: -1; filter: blur(20px); }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 280px);
  gap: 22px; overflow-x: auto; padding: 8px 24px 28px; margin: 0 -24px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.shots img { width: 100%; border-radius: 26px; scroll-snap-align: center; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); }

/* FAQ. */
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 500 21px/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font: 300 26px/1 var(--sans); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 14px 0 0; max-width: 680px; }

/* Kontakt. */
.contact { text-align: center; border-radius: 32px; padding: clamp(48px, 7vw, 88px) 24px; border: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 0%, rgba(212, 182, 122, 0.12), transparent 60%), var(--bg-2); }
.contact h2 { margin: 18px 0 16px; }
.contact .lead { margin: 0 auto 36px; }

/* Dokumenty prawne. */
.doc { padding-top: clamp(64px, 9vw, 120px); }
.doc h1 { font-size: clamp(38px, 5vw, 60px); margin: 22px 0 12px; }
.doc h2 { font-size: 27px; margin: 56px 0 14px; }
.doc h3 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: #d8d4cb; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc em { color: var(--text); }
.updated { color: var(--faint); font-size: 14px; letter-spacing: 0.04em; }
.doc .card { padding: 26px 28px; margin: 26px 0; }
.doc .card:hover { transform: none; }
.purpose { border: 1px solid var(--line); border-radius: 18px; padding: 6px 26px 18px; margin: 16px 0; background: var(--surface); }
.purpose h3 { margin: 20px 0 8px; font-size: 19px; }
.purpose dl { margin: 0; }
.purpose dt { color: var(--gold); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 14px; }
.purpose dd { margin: 4px 0 0; color: #d8d4cb; font-size: 16px; }
.links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }

/* Stopka. */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 40px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 24px; }

.draft { position: sticky; top: 0; z-index: 20; background: #b3261e; color: #fff; text-align: center; padding: 8px 12px; font-size: 13px; font-weight: 600; }

/* Wejście elementów. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); animation: reveal .9s cubic-bezier(.2, .7, .2, 1) forwards; }
  .reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .18s; } .reveal.d3 { animation-delay: .28s; } .reveal.d4 { animation-delay: .38s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
  .app-hero { grid-template-columns: 1fr; gap: 56px; }
  .nav .hide-sm { display: none; }
}
.contact .actions { justify-content: center; }

/* --- Strona firmowa --- */
.hero-xl { min-height: calc(100vh - 68px); display: flex; align-items: center; }
.hero-xl .display { font-size: clamp(46px, 8vw, 112px); }
.hero-xl::after {
  content: ""; position: absolute; right: -10%; top: 12%; width: min(620px, 60vw); aspect-ratio: 1;
  border-radius: 50%; border: 1px solid rgba(212, 182, 122, 0.18);
  box-shadow: inset 0 0 120px rgba(212, 182, 122, 0.06), 0 0 0 60px rgba(212, 182, 122, 0.02), 0 0 0 140px rgba(212, 182, 122, 0.015);
  pointer-events: none; z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-xl::after { animation: orbit 18s ease-in-out infinite alternate; }
  @keyframes orbit { to { transform: translate(-40px, 30px) scale(1.05); } }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stat { padding: 30px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font: 500 clamp(30px, 3.4vw, 42px)/1.1 var(--serif); letter-spacing: -0.02em; background: linear-gradient(120deg, var(--gold-2), var(--gold) 60%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: linear-gradient(90deg, var(--gold-3), rgba(212, 182, 122, 0.15)); }
.step { padding: 0 28px 0 0; position: relative; }
.step .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(212, 182, 122, 0.45); font-style: normal; position: relative; }
.step h3 { margin: 26px 0 10px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; gap: 40px 0; } .process::before { display: none; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.manifesto { margin: 0; text-align: center; padding: clamp(40px, 6vw, 80px) 0; }
.manifesto p { font: 400 clamp(32px, 4.6vw, 62px)/1.15 var(--serif); letter-spacing: -0.02em; margin: 0; }
.manifesto em { font-style: italic; background: linear-gradient(120deg, var(--gold-2), var(--gold) 45%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifesto footer { margin-top: 26px; color: var(--faint); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Wejście przy przewijaniu (JS dodaje .in; bez JS — widoczne od razu). */
.js .reveal-on-scroll { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal-on-scroll.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal-on-scroll { opacity: 1; transform: none; transition: none; } }

/* Złota kursywa: gradient przycina się do „pudełka” tekstu, a kursywa z niego wystaje —
   dodajemy zapas po bokach (i kompensujemy marginesem), żeby ostatnia litera nie była ucięta. */
.display em, h2 em, .manifesto em {
  padding: 0 0.14em 0.06em 0.04em;
  margin: 0 -0.1em 0 -0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
