/* ============================================================
   SOMA AI — style produkcyjny (bez frameworka, gotowy na hosting)
   ============================================================ */

:root {
  --blue: #2998ff;
  --purple: #9333ea;
  --magenta: #c026d3;
  --bg: #020617;
  --grad: linear-gradient(100deg, var(--blue) 0%, var(--purple) 60%, var(--magenta) 100%);
  --grad-text: linear-gradient(100deg, var(--blue) 0%, var(--purple) 55%, var(--magenta) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: #e2e8f0;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.soma-display { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; }

.lucide-icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; flex-shrink: 0; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-btn { background: var(--grad); }

/* Gradient dopasowany do logo (tylko niebieski -> fiolet, bez magenty) — używany w napisie "AI" przy logo */
.logo-grad {
  background: linear-gradient(135deg, var(--blue) 10%, #6d5bf0 55%, var(--purple) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- layout helpers ---------- */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; position: relative; }
@media (min-width: 640px) { .container { padding: 0 2rem; } }

.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-glow .g1 {
  position: absolute; top: -10rem; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 48rem; height: 24rem; border-radius: 999px; opacity: .25;
  background: radial-gradient(closest-side, var(--blue), transparent 70%); filter: blur(80px);
}
.bg-glow .g2 {
  position: absolute; bottom: 0; right: 0; width: 24rem; height: 24rem; border-radius: 999px; opacity: .2;
  background: radial-gradient(closest-side, var(--magenta), transparent 70%); filter: blur(90px);
}

/* ---------- glass / cards ---------- */
.glass {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.glass:hover {
  transform: translateY(-4px);
  border-color: rgba(41,152,255,0.35);
  box-shadow: 0 20px 50px -20px rgba(41,152,255,0.35);
}

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; padding: .35rem 1rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #bbd9ff; background: rgba(41,152,255,0.08); border: 1px solid rgba(41,152,255,0.25);
  backdrop-filter: blur(8px);
}
.badge svg { color: var(--blue); width: 14px; height: 14px; }

.icon-tile {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: .75rem; color: #fff;
}
.icon-tile svg { width: 24px; height: 24px; stroke-width: 2.2; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 1rem; padding: 1rem 2rem; font-weight: 700; color: #fff; font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 14px 40px -10px rgba(147,51,234,0.6); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn-ghost {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); color: #e2e8f0;
  font-weight: 600;
}

.btn-sm { border-radius: .75rem; padding: .6rem 1.25rem; font-size: .875rem; }

@keyframes somaPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(41,152,255,0.55), 0 10px 40px -10px rgba(192,38,211,0.6); }
  50% { box-shadow: 0 0 0 14px rgba(41,152,255,0), 0 10px 50px -8px rgba(192,38,211,0.8); }
}
.pulse { animation: somaPulseGlow 2.4s ease-in-out infinite; }

@keyframes somaFloat { 0%, 100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }
.float { animation: somaFloat 7s ease-in-out infinite; }

@keyframes somaToastIn {
  0%, 25% { opacity: 0; transform: translateY(12px) scale(.96); }
  40%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-anim { animation: somaToastIn 4s ease-out both; }

@keyframes somaDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.dot-pulse { animation: somaDot 1.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .pulse, .float, .toast-anim, .dot-pulse { animation: none !important; }
  .glass, .btn { transition: none; }
}

/* ---------- navbar ---------- */
header.navbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 0; padding: 1.25rem 0;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { width: 2.5rem; height: 2.5rem; border-radius: .75rem; box-shadow: 0 6px 20px -4px rgba(147,51,234,0.53); }
.brand > span { font-size: 1.25rem; font-weight: 700; color: #fff; }

nav.mainnav { order: 3; width: 100%; display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
@media (min-width: 640px) { nav.mainnav { order: 0; width: auto; } }
.navlink {
  position: relative; padding-bottom: .25rem; font-size: .875rem; font-weight: 600; color: #94a3b8;
  transition: color .2s ease;
}
.navlink.active { color: #fff; }
.navlink .underline {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 999px;
  background: var(--grad); opacity: 0; transition: opacity .2s ease;
}
.navlink.active .underline { opacity: 1; }

/* ---------- hero ---------- */
.hero {
  display: flex; flex-direction: column; align-items: center; gap: 3rem;
  padding: 3rem 0 6rem;
}
@media (min-width: 1024px) { .hero { flex-direction: row; gap: 2.5rem; padding: 5rem 0 6rem; } }
.hero-copy { max-width: 36rem; text-align: center; }
@media (min-width: 1024px) { .hero-copy { text-align: left; } }
.hero-copy h1 { font-size: 2.25rem; line-height: 1.15; font-weight: 700; color: #fff; margin: 1.5rem 0 0; }
@media (min-width: 640px) { .hero-copy h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-copy h1 { font-size: 3.75rem; } }
.hero-copy p.sub { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.7; color: #94a3b8; }
.hero-ctas { margin-top: 2.25rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; justify-content: center; } }
@media (min-width: 1024px) { .hero-ctas { justify-content: flex-start; } }
.hero-trust {
  margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem;
  font-size: .875rem; color: #64748b;
}
@media (min-width: 1024px) { .hero-trust { justify-content: flex-start; } }
.hero-trust span { display: flex; align-items: center; gap: .4rem; }
.hero-trust svg { width: 14px; height: 14px; }
.hero-visual { display: flex; width: 100%; justify-content: center; }
@media (min-width: 1024px) { .hero-visual { width: auto; flex: 1; } }

/* ---------- schedule mockup ---------- */
.schedule-wrap { position: relative; width: 100%; max-width: 28rem; }
.schedule-glow {
  position: absolute; inset: -2rem; border-radius: 999px; opacity: .4;
  background: radial-gradient(closest-side, rgba(147,51,234,.55), transparent 70%); filter: blur(40px);
}
.schedule-card { position: relative; padding: 1.25rem; }
.schedule-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.schedule-head .left { display: flex; align-items: center; gap: .5rem; }
.schedule-head .left svg { width: 16px; height: 16px; color: var(--blue); }
.schedule-head .left span { font-size: .875rem; font-weight: 600; color: #fff; }
.schedule-badge { border-radius: 999px; padding: .25rem .6rem; font-size: .75rem; font-weight: 500; color: #a7f3d0; background: rgba(52,211,153,0.1); }
.schedule-rows { display: flex; flex-direction: column; gap: .6rem; }
.schedule-row {
  display: flex; align-items: center; gap: .75rem; border-radius: .75rem; padding: .6rem .75rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.schedule-row .time { width: 3rem; font-size: .875rem; font-weight: 700; color: #93c5fd; }
.schedule-row .who { min-width: 0; flex: 1; }
.schedule-row .who p:first-child { margin: 0; font-size: .875rem; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-row .who p:last-child { margin: 0; font-size: .75rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.state-chip { display: flex; align-items: center; gap: .35rem; white-space: nowrap; border-radius: 999px; padding: .25rem .6rem; font-size: .75rem; font-weight: 500; color: #e2e8f0; }
.state-dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; }
.sms-toast {
  position: absolute; bottom: -1.25rem; right: -0.75rem; display: flex; align-items: center; gap: .5rem;
  border-radius: .75rem; padding: .6rem .85rem;
  background: rgba(2,6,23,0.9); border: 1px solid rgba(41,152,255,0.35);
  box-shadow: 0 12px 40px -8px rgba(41,152,255,0.35); backdrop-filter: blur(10px);
}
@media (min-width: 640px) { .sms-toast { right: -2rem; } }
.sms-toast svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.sms-toast p:first-child { margin: 0; font-size: .75rem; font-weight: 600; color: #fff; }
.sms-toast p:last-child { margin: 0; font-size: .75rem; color: #94a3b8; }

/* ---------- generic sections ---------- */
section.pad { padding-bottom: 6rem; }
.sec-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.sec-head h2 { font-size: 1.875rem; font-weight: 700; color: #fff; margin: 1.25rem 0 0; }
@media (min-width: 640px) { .sec-head h2 { font-size: 2.25rem; } }
.sec-head p { margin-top: 1rem; color: #94a3b8; }

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

.card-title { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 1.25rem 0 0; }
.card-text { margin-top: .75rem; font-size: .9rem; line-height: 1.7; color: #94a3b8; }

/* ---------- feature rows ---------- */
.feature-row { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .feature-row { flex-direction: row; align-items: center; } }
.feature-row.reverse { flex-direction: column; }
@media (min-width: 768px) { .feature-row.reverse { flex-direction: row-reverse; } }
.feature-half { flex: 0 0 100%; }
@media (min-width: 768px) { .feature-half { flex: 0 0 50%; } }
.feature-list { display: flex; flex-direction: column; gap: .75rem; }
.feature-list li {
  display: flex; align-items: center; gap: .75rem; border-radius: .75rem; padding: .75rem 1rem;
  font-size: .875rem; color: #e2e8f0; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  list-style: none;
}
.feature-list ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.check-dot {
  flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.check-dot svg { width: 13px; height: 13px; color: #fff; stroke-width: 3; }

/* ---------- pricing card ---------- */
.price-wrap { max-width: 32rem; margin: 0 auto; }
.price-outer { position: relative; }
.price-glow { position: absolute; inset: -4px; border-radius: 1.75rem; opacity: .7; filter: blur(18px); }
.price-card {
  position: relative; border-radius: 1.5rem; padding: 2rem;
  background: rgba(2,6,23,0.92); border: 1px solid rgba(41,152,255,0.35); backdrop-filter: blur(16px);
}
@media (min-width: 640px) { .price-card { padding: 2.5rem; } }
.price-tag {
  display: inline-block; border-radius: 999px; padding: .35rem 1rem; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: #fff;
}
.price-amount { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 .75rem; margin-top: 1.5rem; }
.price-amount .num { font-size: 3rem; font-weight: 700; color: #fff; }
.price-amount .num small { font-size: 1.875rem; }
.price-amount .per { padding-bottom: .35rem; color: #94a3b8; }
.price-sub { margin-top: .5rem; font-size: .875rem; color: #94a3b8; }
.price-sub strong { color: #fff; font-weight: 600; }
.price-divider { margin: 1.75rem 0; height: 1px; width: 100%; background: linear-gradient(90deg, transparent, rgba(41,152,255,.4), rgba(192,38,211,.4), transparent); }
.price-list { display: flex; flex-direction: column; gap: .875rem; margin: 0; padding: 0; }
.price-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; color: #e2e8f0; list-style: none; }
.price-list .check-dot { width: 1.25rem; height: 1.25rem; margin-top: .1rem; }
.price-list .check-dot svg { width: 12px; height: 12px; }
.price-foot { margin-top: 1rem; text-align: center; font-size: .75rem; color: #64748b; }

/* ---------- footer ---------- */
footer.sitefoot { padding: 1rem 0 3rem; }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand-row { display: flex; align-items: center; gap: .75rem; }
.foot-brand-row img { width: 2.5rem; height: 2.5rem; border-radius: .75rem; }
.foot-brand-row > span { font-size: 1.25rem; font-weight: 700; color: #fff; }
.foot-tagline { margin: .5rem 0 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #64748b; }
.foot-desc { margin-top: 1.5rem; max-width: 24rem; line-height: 1.7; color: #94a3b8; }
.foot-services-label { margin: 0 0 .75rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #64748b; }
.foot-services { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; font-size: .875rem; }
.foot-services button { display: flex; align-items: center; gap: .5rem; color: #cbd5e1; transition: color .2s ease; }
.foot-services button:hover { color: #fff; }
.foot-services svg { width: 13px; height: 13px; color: var(--blue); }
.foot-contact { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; }
.foot-contact a { display: flex; align-items: center; gap: .75rem; color: #cbd5e1; transition: color .2s ease; }
.foot-contact a:hover { color: #fff; }
.foot-contact .ic { width: 2.25rem; height: 2.25rem; border-radius: .5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.foot-contact .ic svg { width: 15px; height: 15px; }
.foot-bottom {
  margin-top: 3.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: .75rem; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; font-size: .75rem; color: #475569;
}
@media (min-width: 640px) { .foot-bottom { flex-direction: row; } }
.foot-bottom button { color: #475569; transition: color .2s ease; }
.foot-bottom button:hover { color: #cbd5e1; }

/* ---------- form ---------- */
.form-title { margin: 0 0 .25rem; font-size: 1.25rem; font-weight: 700; color: #fff; }
.form-desc { margin: 0 0 1.25rem; font-size: .875rem; color: #94a3b8; }
.form-col { display: flex; flex-direction: column; gap: .75rem; }
.form-grid2 { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid2 { grid-template-columns: 1fr 1fr; } }
.soma-input {
  width: 100%; border-radius: .75rem; padding: .75rem 1rem; font-size: .875rem; outline: none;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-family: inherit;
}
textarea.soma-input { resize: none; }
.soma-input::placeholder { color: #64748b; }
.soma-input:focus { border-color: rgba(41,152,255,0.6); box-shadow: 0 0 0 3px rgba(41,152,255,0.15); }
.form-note { text-align: center; font-size: .75rem; color: #64748b; margin: 0; }
.form-note button { color: #94a3b8; text-decoration: underline; text-underline-offset: 2px; }
.form-note button:hover { color: #cbd5e1; }
.form-error { text-align: center; font-size: .75rem; font-weight: 500; color: #fca5a5; margin: 0; }

.success-box { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
.success-icon { width: 3.5rem; height: 3.5rem; border-radius: 999px; background: rgba(52,211,153,0.12); display: flex; align-items: center; justify-content: center; }
.success-icon svg { width: 28px; height: 28px; color: #34d399; }
.success-box h3 { margin: 0; font-size: 1.25rem; font-weight: 700; color: #fff; }
.success-box p { margin: 0; font-size: .875rem; color: #94a3b8; }
.success-box .again { margin-top: .5rem; font-size: .875rem; font-weight: 500; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- privacy page ---------- */
.privacy-wrap { max-width: 48rem; margin: 0 auto; }
.privacy-wrap h1 { font-size: 2.25rem; font-weight: 700; color: #fff; margin: 1.5rem 0 0; }
@media (min-width: 640px) { .privacy-wrap h1 { font-size: 3rem; } }
.privacy-date { margin-top: 1rem; font-size: .875rem; color: #64748b; }
.privacy-intro { margin-top: 1.5rem; line-height: 1.7; color: #94a3b8; }
.privacy-sections { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.privacy-sections h2 { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0; }
.privacy-sections p { margin-top: .75rem; line-height: 1.7; color: #94a3b8; }

/* ---------- pages visibility ---------- */
.page-section { display: none; }
.page-section.visible { display: block; }

/* ---------- utility ---------- */
.hidden { display: none !important; }
