:root {
  --bg-dark: #050816;
  --bg-card: #0f172a;
  --accent: #eab308;
  --accent-soft: rgba(234, 179, 8, 0.15);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.35);
  --radius-xl: 18px;
  --transition-fast: 0.25s ease;
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.45);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 64px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom,
      rgba(15, 23, 42, 0.85),
      rgba(15, 23, 42, 0));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 10%, #facc15, #a16207);
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.6);
  position: relative;
}

.brand-logo::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 1px solid rgba(15, 23, 42, 0.95);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text span:first-child {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
}

.brand-text span:last-child {
  font-size: 0.75rem;
  color: var(--text-muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.86rem;
}

nav a {
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #facc15, #f97316);
  border-radius: 999px;
  transition: width var(--transition-fast);
}

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

nav a:hover::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-pill {
  border-radius: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: default;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 28px;
  padding: 40px 4px 24px;
  align-items: center;
  position: relative;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 5% 10%, rgba(56, 189, 248, 0.15), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(250, 204, 21, 0.1), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

.hero-main {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

h1 {
  font-size: clamp(2.3rem, 3vw + 1rem, 3.1rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

h1 span.accent {
  background: linear-gradient(to right, #facc15, #f97316);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 20px;
}

.hero-subtitle strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(to right, #facc15, #f97316);
  color: #0b1120;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.6);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(250, 204, 21, 0.9);
  color: #facc15;
}

.btn-ghost:hover {
  background: rgba(234, 179, 8, 0.14);
  color: #fefce8;
  border-color: #facc15;
  transform: translateY(-1px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.55);
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 30rem;
}

.hero-note strong {
  color: var(--text-main);
  font-weight: 500;
}

.hero-card {
  background: radial-gradient(circle at top, #1f2937, #020617);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(250, 204, 21, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.18), transparent 55%);
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.hero-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.hero-badges {
  margin-top: 8px;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  font-size: 1.4rem;
  padding: 0;
  border: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  backdrop-filter: blur(6px);
  position: relative;
  margin-top: 10px;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.hero-orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.9);
  animation: float 7s ease-in-out infinite;
}

.hero-orbit-dot:nth-child(1) {
  top: 18%;
  left: 8%;
}

.hero-orbit-dot:nth-child(2) {
  top: 70%;
  right: 10%;
  animation-delay: 1.4s;
}

.hero-orbit-dot:nth-child(3) {
  bottom: 8%;
  left: 40%;
  animation-delay: 2.1s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 16px 4px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #facc15, #f97316);
  transition: width var(--transition-fast);
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  padding: 12px 16px;
  display: none;
}

.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cookie-banner-text {
  max-width: 560px;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-btn {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 1);
  color: var(--text-main);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast);
}

.cookie-btn-primary {
  background: linear-gradient(to right, #facc15, #f97316);
  border-color: transparent;
  color: #020617;
  font-weight: 600;
}

.cookie-btn-primary:hover {
  transform: translateY(-1px);
}

.cookie-btn-secondary:hover {
  border-color: rgba(249, 115, 22, 0.85);
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    align-items: flex-start;
  }
}

section {
  margin-top: 40px;
  padding: 0 4px;
}

.section-header {
  margin-bottom: 18px;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #facc15;
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (max-width: 720px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 12px 12px 10px;
    font-size: 0.84rem;
  }
}

.card {
  position: relative;
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-soft);
  padding: 14px 14px 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
  overflow: hidden;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    translate var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(250, 204, 21, 0.7);
  background: radial-gradient(circle at top, #111827, #020617);
}

.card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.card-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card ul {
  margin-left: 1.1rem;
  margin-top: 4px;
}

.card li {
  margin-bottom: 3px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pill {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
}

.pill-accent {
  background: var(--accent-soft);
  border-color: rgba(234, 179, 8, 0.8);
  color: #fde68a;
}

.list-compact {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.list-compact li+li {
  margin-top: 4px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 14px 16px;
  margin-top: 8px;
}

.contact-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.contact-text strong {
  color: var(--text-main);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


.stats-strip {
  margin: 4px 4px 32px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  min-width: 110px;
  align-items: center;
}

.stat-number {
  font-size: 1rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .stats-strip {
    border-radius: 18px;
    padding: 12px 10px;
    margin: 8px 0 24px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Sections */

section {
  margin-top: 32px;
  padding: 0 4px;
}

.section-header {
  margin-bottom: 18px;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #facc15;
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (max-width: 720px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-soft);
  padding: 14px 14px 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
  overflow: hidden;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    translate var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(250, 204, 21, 0.7);
  background: radial-gradient(circle at top, #111827, #020617);
}

.card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.card-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card ul {
  margin-left: 1.1rem;
  margin-top: 4px;
}

.card li {
  margin-bottom: 3px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pill {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
}

.pill-accent {
  background: var(--accent-soft);
  border-color: rgba(234, 179, 8, 0.8);
  color: #fde68a;
}

.list-compact {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.list-compact li+li {
  margin-top: 4px;
}

/* Timeline */

.timeline {
  position: relative;
  margin-top: 8px;
  padding-left: 20px;
  border-left: 1px solid rgba(148, 163, 184, 0.45);
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
}

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.8);
}

.timeline-year {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 2px;
  padding-left: 10px;
}

.timeline-role {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-place {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.timeline-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.crisis-dashboard {
  margin: 32px 0 32px;
}

/* Subtelne, mniejsze kwadraty */
.crisis-dashboard .card {
  padding: 10px 12px 10px;
  font-size: 0.78rem;
}

.crisis-dashboard .card-kicker {
  font-size: 0.65rem;
  margin-bottom: 4px;
  opacity: 0.8;
}

.crisis-dashboard .card-title {
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.crisis-dashboard .card-text,
.crisis-dashboard .list-compact li {
  font-size: 0.76rem;
  line-height: 1.35;
}

.crisis-dashboard .card {
  background: transparent;
  border: 1px solid var(--border-soft);
}

.crisis-dashboard .card:hover {
  background: transparent;
}


.card-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.crisis-cases {
  margin-top: 32px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}



.case-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  transition: box-shadow var(--transition-slow),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.case-card:hover .case-inner {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.45),
    0 18px 40px rgba(15, 23, 42, 0.85);
  border-color: rgba(234, 179, 8, 0.8);
}

.case-front,
.case-back {
  width: 100%;
}

.case-front {
  margin-bottom: auto;
}

.case-back {
  position: relative;
  margin-top: 6px;
}

.case-back {
  position: relative;
  margin-top: 6px;
}

.case-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 6px;
}


.case-example {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.case-example>div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-example .case-label {
  margin-bottom: 8px;
}

.case-box {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.35);
  font-size: 0.9rem;
  line-height: 1.5;
}

.case-heading {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.case-front p,
.case-back p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.process-step {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.process-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(234, 179, 8, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: var(--accent);
}

.process-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.ai-chat-demo {
  margin-top: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at top left, rgba(234, 179, 8, 0.12), rgba(15, 23, 42, 0.98));
  padding: 14px;
  display: grid;
  gap: 8px;
}

.ai-bubble {
  max-width: 480px;
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 0.86rem;
  color: var(--text-main);
}

.ai-bubble.client {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  justify-self: flex-start;
}

.ai-bubble.marta {
  background: rgba(234, 179, 8, 0.09);
  border: 1px solid rgba(234, 179, 8, 0.7);
  justify-self: flex-end;
}

.ai-bubble strong {
  color: #fde68a;
  font-weight: 500;
}

.hero-usp {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.crisis-dashboard {
  margin: 32px 0 32px;
}

/* Subtelne, mniejsze kwadraty */
.crisis-dashboard .card {
  padding: 10px 12px 10px;
  font-size: 0.78rem;
}

.crisis-dashboard .card-kicker {
  font-size: 0.65rem;
  margin-bottom: 4px;
  opacity: 0.8;
}

.crisis-dashboard .card-title {
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.crisis-dashboard .card-text,
.crisis-dashboard .list-compact li {
  font-size: 0.76rem;
  line-height: 1.35;
}

.crisis-dashboard .card {
  background: transparent;
  border: 1px solid var(--border-soft);
}

.crisis-dashboard .card:hover {
  background: transparent;
}


.card-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.crisis-cases {
  margin-top: 32px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}



.case-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  transition: box-shadow var(--transition-slow),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.case-card:hover .case-inner {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.45),
    0 18px 40px rgba(15, 23, 42, 0.85);
  border-color: rgba(234, 179, 8, 0.8);
}

.case-front,
.case-back {
  width: 100%;
}

.case-front {
  margin-bottom: auto;
}

.case-back {
  position: relative;
  margin-top: 6px;
}

.case-back {
  position: relative;
  margin-top: 6px;
}

.case-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 6px;
}

.case-heading {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.case-front p,
.case-back p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.process-step {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.process-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(234, 179, 8, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: var(--accent);
}

.process-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.ai-chat-demo {
  margin-top: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at top left, rgba(234, 179, 8, 0.12), rgba(15, 23, 42, 0.98));
  padding: 14px;
  display: grid;
  gap: 8px;
}

.ai-bubble {
  max-width: 480px;
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 0.86rem;
  color: var(--text-main);
}

.ai-bubble.client {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  justify-self: flex-start;
}

.ai-bubble.marta {
  background: rgba(234, 179, 8, 0.09);
  border: 1px solid rgba(234, 179, 8, 0.7);
  justify-self: flex-end;
}

.ai-bubble strong {
  color: #fde68a;
  font-weight: 500;
}

.hero-usp {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 6px 0 4px;
  max-width: 32rem;
}

/* Captcha Modal */
.captcha-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.captcha-content {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-soft);
  text-align: center;
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.captcha-content h3 {
  margin-bottom: 8px;
  color: var(--text-main);
}

.captcha-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Slider Captcha Styles */
.slider-captcha-container {
  position: relative;
  width: 100%;
  height: 50px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  margin-bottom: 20px;
  user-select: none;
  touch-action: none;
}

.slider-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slider-track.verified {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
}

.slider-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: opacity 0.2s;
}

.slider-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 40px;
  height: 40px;
  background: linear-gradient(to right, #facc15, #f97316);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: #020617;
  font-weight: bold;
  font-size: 1.1rem;
  z-index: 2;
}

.slider-handle:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.slider-handle.verified {
  background: #22c55e;
  color: white;
  cursor: default;
}

.captcha-actions {
  display: flex;
  justify-content: center;
}

.back-to-profile-fixed {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #facc15;
  color: #000;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 9999;
}

.back-to-profile-fixed::before {
  content: "← ";
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Tablet devices (768px and below) */
@media (max-width: 768px) {

  /* Navigation adjustments */
  header {
    padding: 10px 8px 20px;
  }

  nav {
    gap: 14px;
    font-size: 0.82rem;
  }

  .brand-text span:first-child {
    font-size: 0.85rem;
  }

  .brand-text span:last-child {
    font-size: 0.7rem;
  }

  /* Hero section */
  .hero {
    gap: 24px;
    padding: 32px 8px 20px;
  }

  h1 {
    font-size: clamp(2rem, 4vw + 0.5rem, 2.8rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-card {
    padding: 16px;
  }

  /* Sections */
  section {
    margin-top: 32px;
  }

  .section-title {
    font-size: 1.05rem;
  }

  /* Process and case grids */
  .process-grid,
  .case-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  /* Case example - stack on tablet */
  .case-example {
    flex-direction: column;
    gap: 16px;
  }

  /* AI chat bubbles */
  .ai-bubble {
    max-width: 90%;
  }

  /* Contact card */
  .contact-card {
    padding: 12px 14px;
  }

  /* Footer */
  .site-footer {
    font-size: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

/* Mobile devices (640px and below) */
@media (max-width: 640px) {

  /* Page container */
  .page {
    padding: 12px 12px 48px;
  }

  /* Header and navigation */
  header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 4px 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  nav {
    gap: 12px;
    font-size: 0.78rem;
    flex-wrap: wrap;
  }

  nav a {
    padding: 4px 0;
  }

  .lang-switch {
    gap: 6px;
  }

  .lang-pill {
    padding: 2px 7px;
    font-size: 0.7rem;
  }

  /* Hero section */
  .hero {
    padding: 20px 4px 16px;
    gap: 20px;
  }

  h1 {
    font-size: clamp(1.8rem, 5vw + 0.5rem, 2.3rem);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .hero-note {
    font-size: 0.78rem;
  }

  .hero-card {
    padding: 14px;
    border-radius: 20px;
  }

  .hero-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .hero-title {
    font-size: 0.88rem;
  }

  .hero-text {
    font-size: 0.78rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .eyebrow {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  /* Sections */
  section {
    margin-top: 28px;
    padding: 0 4px;
  }

  .section-kicker {
    font-size: 0.72rem;
  }

  .section-title {
    font-size: 1rem;
  }

  .section-subtitle {
    font-size: 0.82rem;
  }

  /* Cards */
  .card {
    padding: 12px;
    font-size: 0.82rem;
  }

  .card-title {
    font-size: 0.88rem;
  }

  .card-tagline,
  .card-kicker {
    font-size: 0.72rem;
  }

  .pill {
    font-size: 0.7rem;
    padding: 2px 7px;
  }

  /* Timeline */
  .timeline {
    padding-left: 16px;
  }

  .timeline-year {
    font-size: 0.72rem;
  }

  .timeline-role {
    font-size: 0.85rem;
  }

  .timeline-place,
  .timeline-text {
    font-size: 0.78rem;
  }

  /* Process and case grids */
  .process-grid,
  .case-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-step,
  .case-inner {
    padding: 12px;
  }

  .process-number {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .process-title,
  .case-heading {
    font-size: 0.88rem;
  }

  /* AI chat demo */
  .ai-chat-demo {
    padding: 12px;
    gap: 6px;
  }

  .ai-bubble {
    max-width: 100%;
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  /* Contact card */
  .contact-card {
    padding: 12px;
    gap: 10px;
  }

  .contact-text {
    font-size: 0.82rem;
  }

  /* Stats strip - already handled above */
  .stat-item {
    min-width: auto;
  }

  .stat-number {
    font-size: 0.95rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Captcha modal */
  .captcha-content {
    padding: 20px;
    max-width: 340px;
  }

  .captcha-content h3 {
    font-size: 1rem;
  }

  .captcha-content p {
    font-size: 0.85rem;
  }

  .slider-captcha-container {
    height: 48px;
  }

  .slider-handle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .slider-text {
    font-size: 0.8rem;
  }

  /* Cookie banner - already handled above */
  .cookie-btn {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  /* Back to profile button */
  .back-to-profile-fixed {
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {

  /* Further reduce spacing */
  .page {
    padding: 10px 10px 40px;
  }

  header {
    padding: 6px 2px 12px;
  }

  /* Navigation - make it more compact */
  nav {
    gap: 10px;
    font-size: 0.75rem;
    width: 100%;
    justify-content: space-between;
  }

  .brand-text span:first-child {
    font-size: 0.8rem;
  }

  .brand-text span:last-child {
    font-size: 0.68rem;
  }

  /* Hero */
  h1 {
    font-size: clamp(1.6rem, 6vw + 0.3rem, 2rem);
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  /* Reduce card spacing */
  .cards-grid {
    gap: 12px;
  }

  .card {
    padding: 10px;
  }

  /* Process grid */
  .process-grid {
    gap: 10px;
  }

  .process-step {
    padding: 10px;
  }

  /* Captcha */
  .captcha-modal {
    padding: 12px;
  }

  .captcha-content {
    padding: 16px;
  }

  .slider-captcha-container {
    height: 44px;
  }

  .slider-handle {
    width: 36px;
    height: 36px;
    top: 3px;
    left: 3px;
  }

  .slider-text {
    font-size: 0.75rem;
  }

  /* Timeline */
  .timeline {
    padding-left: 14px;
  }

  .timeline-dot {
    left: -6px;
    width: 8px;
    height: 8px;
  }
}

/* Extra small devices (375px and below) */
@media (max-width: 375px) {

  /* Minimum sizes for very small screens */
  h1 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.82rem;
  }

  .section-title {
    font-size: 0.95rem;
  }

  .btn {
    padding: 7px 14px;
    font-size: 0.78rem;
  }

  nav {
    font-size: 0.72rem;
  }

  .card {
    padding: 8px;
    font-size: 0.78rem;
  }

  .card-title {
    font-size: 0.82rem;
  }

  /* Ensure touch targets are at least 40px */
  .cookie-btn,
  .btn {
    min-height: 40px;
  }

  /* Stack language switcher if needed */
  .lang-switch {
    flex-wrap: wrap;
  }
}