/* BiznesGraf.pl landing — dark slate / navy + indigo, spójne z aplikacją */

:root {
  --bg-deep: #0b0f19;
  --bg-mid: #111827;
  --bg-elevated: #1f2937;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --steel: #6b7280;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-dim: rgba(59, 130, 246, 0.14);
  --accent-glow: rgba(59, 130, 246, 0.28);
  --gold: #d4a24c;
  --gold-dim: rgba(212, 162, 76, 0.18);
  --glass: rgba(17, 24, 39, 0.72);
  --border: rgba(148, 163, 184, 0.18);
  --font-display: "Bitter", Georgia, serif;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --max: 72rem;
  --header-h: 4rem;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.logo-accent {
  color: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: auto;
}

.logo-mark,
.hero-brand-mark {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: rotate(45deg);
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
}

.nav-desktop a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.25rem;
  background: var(--text);
  transition: transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 0 1.25rem 1rem;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-mid);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: 500;
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
  .btn-header {
    flex-shrink: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(148, 163, 184, 0.35);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--steel);
}

.btn-pro {
  background: var(--gold);
  color: #111827;
}

.btn-pro:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* App CTA disabled (SEO landing, app not live yet) */
.btn-disabled,
a.is-app-disabled,
body[data-app-enabled="false"] .js-radar,
body[data-app-enabled="false"] .js-radar-market,
body[data-app-enabled="false"] .js-example {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: auto;
}

.btn-disabled:hover,
a.is-app-disabled:hover,
body[data-app-enabled="false"] .js-radar:hover,
body[data-app-enabled="false"] .js-radar-market:hover {
  transform: none;
  filter: none;
}

body[data-app-enabled="false"] .hero-search.is-app-disabled .btn-search {
  opacity: 0.55;
  cursor: not-allowed;
}

.hero-app-soon {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--steel);
}

.btn-search {
  white-space: nowrap;
  padding: 0.85rem 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 35%, rgba(59, 130, 246, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 40% at 8% 85%, rgba(212, 162, 76, 0.06), transparent 50%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 50%, #0a1220 100%);
  pointer-events: none;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='%2364748b' stroke-opacity='0.07'/%3E%3C/svg%3E");
  opacity: 0.55;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.hero-copy {
  animation: fade-up 0.8s ease both;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-support {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 44ch;
}

.hero-search {
  max-width: 36rem;
}

.hero-search-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.55rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .hero-search-row {
    flex-direction: row;
    align-items: stretch;
  }
}

.hero-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(11, 15, 25, 0.65);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  outline: none;
}

.hero-search-input::placeholder {
  color: var(--steel);
}

.hero-search-input:focus {
  border-color: rgba(59, 130, 246, 0.45);
}

.hero-examples {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--steel);
}

.hero-examples a {
  color: var(--accent);
  text-decoration: none;
}

.hero-examples a:hover {
  text-decoration: underline;
}

/* Early Access pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: #93c5fd;
  margin: 0 0 1.1rem;
  max-width: 100%;
  line-height: 1.35;
}

.hero-status-pill strong {
  color: #bfdbfe;
  font-weight: 700;
}

.status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-visual {
  width: 100%;
  margin: 0;
  line-height: 0;
}

.hero-graph,
.landing-shot {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 48px rgba(0, 0, 0, 0.45);
}

.hero-graph--product {
  max-height: min(58vh, 620px);
  animation: hero-drift 12s ease-in-out infinite;
}

.landing-shot {
  max-height: min(62vh, 680px);
}

@keyframes hero-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trust bar */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.85);
}

.trust-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
}

.trust-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trust-sources {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--steel);
  font-size: 0.9rem;
}

.trust-sources strong {
  color: var(--text);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-inner--narrow {
  max-width: 44rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 62ch;
  margin: 0 0 2rem;
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-accent-band {
  background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
}

/* Problem */
.problem-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.problem-grid li {
  padding: 1.35rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.problem-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.problem-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Value cards */
.offer-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.offer-card {
  padding: 1.5rem 1.35rem;
  background: rgba(31, 41, 55, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.offer-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

.offer-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
}

.offer-card h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  margin-right: 0.5rem;
  vertical-align: middle;
  transform: rotate(45deg);
}

.offer-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Radar market */
.section-radar-market {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
}

.radar-market-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .radar-market-layout {
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
  }
}

.radar-market-points {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--text-muted);
}

.radar-market-points li {
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

.radar-market-visual {
  margin: 0;
}

/* Early Access waitlist */
.section-early-access {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0f172a 50%, var(--bg-mid) 100%);
}

.early-access-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
  .early-access-card {
    padding: 2.5rem;
  }
}

.early-access-header .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.early-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.early-access-form .form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 540px;
  margin: 24px auto 0;
}

.early-access-form input[type="email"],
.early-access-form input[type="text"] {
  width: 100%;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(11, 15, 25, 0.75);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  outline: none;
}

.early-access-form input::placeholder {
  color: var(--steel);
}

.early-access-form input:focus {
  border-color: rgba(59, 130, 246, 0.5);
}

@media (min-width: 640px) {
  .early-access-form .form-grid {
    flex-direction: row;
    align-items: stretch;
  }
  .early-access-form input[type="email"] { flex: 2; }
  .early-access-form input[type="text"] { flex: 1.5; }
  .early-access-form button { flex: 1.8; white-space: nowrap; }
}

.form-success-msg {
  color: #34d399;
  font-size: 0.9rem;
  margin-top: 14px;
}

.form-error-msg {
  color: #fca5a5;
  font-size: 0.9rem;
  margin-top: 14px;
}

.form-error-msg a {
  color: #93c5fd;
}

.hidden {
  display: none !important;
}

/* Pricing */
.section-pricing {
  background: var(--bg-mid);
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: rgba(11, 15, 25, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.price-card--featured {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 20px 40px rgba(0, 0, 0, 0.35);
}

.price-card--pro {
  border-color: rgba(212, 162, 76, 0.4);
}

.price-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.25rem;
  margin: 0;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-strong);
  border-radius: 4px;
}

.price-card h3 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.price-amount {
  margin: 0 0 1.25rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.price-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-cur {
  font-weight: 600;
  color: var(--text-muted);
}

.price-note {
  font-size: 0.9rem;
  color: var(--steel);
}

.price-features {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-features li {
  padding-left: 1.1rem;
  position: relative;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

.price-card--pro .price-features li::before {
  background: var(--gold);
}

.price-features code {
  font-size: 0.85em;
  color: var(--text);
  background: rgba(59, 130, 246, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.65);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-copy {
  margin: 0;
  color: var(--steel);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  width: 100%;
}

@media (min-width: 720px) {
  .footer-nav {
    width: auto;
    margin-left: auto;
  }
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
}

/* Legal links zawsze czytelne (nie dziedziczą stylu disabled z CTA app) */
.footer-nav a:not(.js-radar) {
  opacity: 1;
  cursor: pointer;
  color: #cbd5e1;
}

.footer-nav a:not(.js-radar):hover {
  color: #fff;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-nav a:hover::after {
  width: 100%;
}
