/* V1 — Glina · ciepła editorial-serif */

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

html { background: #c8c8c8; }

body {
  font-family: 'Spectral', Georgia, serif;
  background: #F6EFE4;
  color: #3A2A1E;
  -webkit-font-smoothing: antialiased;
  margin: 0 auto;
  max-width: clamp(860px, 80vw, 1400px);
  box-shadow: 0 0 48px rgba(0,0,0,.14);
}

@media (max-width: 900px) {
  html { background: #F6EFE4; }
  body { max-width: 100%; box-shadow: none; }
}

a { text-decoration: none; color: inherit; }

/* ─── Topbar ─── */
.topbar {
  background: #33241A;
  padding: 20px 56px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-text {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -.01em;
  color: #F6EFE4;
}
.logo-dot { color: #CC8E55; }
.logo-img { height: 36px; width: auto; display: block; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-text-block { display: flex; flex-direction: column; }
.logo-tagline { font-family: 'Spline Sans Mono', monospace; font-size: 10px; letter-spacing: .01em; color: #9a8a76; margin-top: 2px; }
.footer-logo-row { display: flex; align-items: center; gap: 13px; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-family: 'Spectral', serif;
  font-size: 16px;
  color: #E9DDCC;
  white-space: nowrap;
}
.btn-nav {
  font-weight: 600;
  font-size: 15px !important;
  color: #33241A !important;
  background: #CC8E55;
  padding: 11px 20px;
  border-radius: 8px;
  white-space: nowrap;
}
.lang-switch {
  display: flex;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #9a8a76;
}
.lang-flag { color: #9a8a76; cursor: pointer; }
.lang-flag.active { color: #F6EFE4; }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 108px 56px 96px;
  text-align: center;
  overflow: hidden;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 420px at 50% -10%, rgba(204,142,85,.16), transparent 70%);
  pointer-events: none;
}
.hero-circle {
  position: absolute;
  pointer-events: none;
  background: no-repeat center/contain;
}
.hero-circle-tr {
  top: -120px; right: -80px;
  width: 380px; height: 380px;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='none' stroke='%239A5A2E' stroke-opacity='0.5' stroke-width='1'%3E%3Ccircle cx='180' cy='180' r='45'/%3E%3Ccircle cx='180' cy='180' r='82'/%3E%3Ccircle cx='180' cy='180' r='118'/%3E%3Ccircle cx='180' cy='180' r='152'/%3E%3Ccircle cx='180' cy='180' r='178'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-circle-bl {
  bottom: -110px; left: -90px;
  width: 300px; height: 300px;
  opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='none' stroke='%239A5A2E' stroke-opacity='0.45' stroke-width='1'%3E%3Ccircle cx='180' cy='180' r='60'/%3E%3Ccircle cx='180' cy='180' r='100'/%3E%3Ccircle cx='180' cy='180' r='140'/%3E%3Ccircle cx='180' cy='180' r='178'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; }

.hero-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9A5A2E;
  background: #EFE2CF;
  border: 1px solid #E0CDB1;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 30px;
}
.hero h1 {
  font-weight: 600;
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 880px;
  margin: 0 auto 26px;
}
.hero .lead {
  font-size: 21px;
  line-height: 1.62;
  color: #5C4A3B;
  max-width: 720px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.btn-primary {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 18px;
  color: #F6EFE4;
  background: #9A5A2E;
  padding: 16px 32px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(154,90,46,.28);
  display: inline-block;
}
.btn-secondary {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: 18px;
  color: #33241A;
  padding: 16px 8px;
  border-bottom: 1px solid #C9B69C;
}
.hero-tagline {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  font-family: 'Spline Sans Mono', monospace;
  font-size: 13px;
  letter-spacing: .01em;
  color: #6B5847;
}
.code-tag {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #9A5A2E;
  border: 1px solid #D9C3A4;
  border-radius: 5px;
  padding: 2px 7px;
}
.mono {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 14px;
  color: #9A5A2E;
}

/* ─── Steps ─── */
.section-steps { padding: 24px 56px 88px; }
.section-steps h2 {
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -.01em;
  margin-bottom: 36px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: #FFFDF8;
  border: 1px solid #E7D9C4;
  border-radius: 16px;
  padding: 32px 30px;
}
.step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #9A5A2E;
  color: #F6EFE4;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.step-card h3 {
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 12px;
}
.step-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #5C4A3B;
}

/* ─── Features ─── */
.section-features {
  background: #EFE3D2;
  padding: 80px 56px;
}
.section-features h2 {
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -.01em;
  margin-bottom: 36px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.features-col h3 {
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 20px;
  color: #9A5A2E;
}
.features-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item {
  font-size: 17px;
  color: #3A2A1E;
  border-bottom: 1px solid #DECBB0;
  padding-bottom: 14px;
}
.feature-item-last { border-bottom: none; padding-bottom: 0; }

/* ─── Modules ─── */
.section-modules { padding: 80px 56px; }
.section-modules h2 {
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -.01em;
  margin-bottom: 28px;
}
.modules-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.module-tag {
  font-family: 'Spectral', serif;
  font-size: 16px;
  color: #3A2A1E;
  background: #FFFDF8;
  border: 1px solid #E0CDB1;
  padding: 10px 18px;
  border-radius: 999px;
}

/* ─── CTA Banner ─── */
.cta-banner-wrap { padding: 0 56px 72px; }
.cta-banner {
  background: #33241A;
  border-radius: 20px;
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 120%, rgba(204,142,85,.30), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-banner h2 {
  font-weight: 600;
  font-size: 40px;
  color: #F6EFE4;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.cta-banner p {
  font-size: 19px;
  color: #D9C7B0;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-banner .btn {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 18px;
  color: #33241A;
  background: #CC8E55;
  padding: 16px 34px;
  border-radius: 10px;
  display: inline-block;
}

/* ─── Footer ─── */
.footer { border-top: 1px solid #E0CDB1; padding: 36px 56px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand .logo-text { color: #33241A; font-size: 18px; }
.footer-brand .logo-dot { color: #9A5A2E; }
.footer-tagline {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .01em;
  color: #9a8a76;
  margin-top: 4px;
}
.footer-tagline .code-tag {
  border: none;
  padding: 0;
  color: #9A5A2E;
  font-size: 10.5px;
}
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-size: 15px; color: #5C4A3B; }
.footer-copy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: #9a8a76;
}

/* ─── Flash messages ─── */
.flash-wrap { padding: 12px 56px; background: #33241A; }
.flash { font-family: 'Space Grotesk', sans-serif; font-size: 14px; padding: 8px 16px; border-radius: 6px; }
.flash-success { background: #EFE3D2; color: #33241A; }
.flash-error { background: #f8d7da; color: #721c24; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .topbar { padding: 16px 32px; }
  .hero { padding: 72px 32px 64px; }
  .section-steps, .section-modules { padding-inline: 32px; }
  .section-features { padding-inline: 32px; }
  .cta-banner-wrap { padding-inline: 32px; }
  .footer { padding-inline: 32px; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .topbar { padding: 16px 20px; }
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 17px; }
  .hero-cta { flex-direction: column; }
  .section-steps { padding: 40px 20px 60px; }
  .section-features { padding: 60px 20px; }
  .section-modules { padding: 60px 20px; }
  .cta-banner-wrap { padding: 0 20px 48px; }
  .cta-banner { padding: 48px 24px; }
  .cta-banner h2 { font-size: 28px; }
  .footer { padding: 28px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
