/* Biopartner Junak — mobile-first, zero dependencies */

:root {
  color-scheme: light dark;

  --bg: #f6f9f7;
  --surface: #ffffff;
  --surface-elevated: #eef4f0;
  --text: #1a2e22;
  --text-muted: #4a6358;
  --accent: #3d6b52;
  --accent-soft: #5a8f72;
  --accent-muted: rgba(61, 107, 82, 0.12);
  --border: rgba(61, 107, 82, 0.15);
  --shadow: 0 4px 24px rgba(26, 46, 34, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --space: clamp(1rem, 4vw, 1.5rem);
  --max-width: 640px;
  --font-base: clamp(1rem, 2.5vw, 1.0625rem);
  --font-h1: clamp(1.75rem, 5vw, 2.25rem);
  --font-h2: clamp(1.25rem, 3.5vw, 1.5rem);
}

[data-theme="dark"] {
  --bg: #121a16;
  --surface: #1a2420;
  --surface-elevated: #222e28;
  --text: #e8f2ec;
  --text-muted: #9bb5a8;
  --accent: #6baf88;
  --accent-soft: #8ec9a4;
  --accent-muted: rgba(107, 175, 136, 0.14);
  --border: rgba(107, 175, 136, 0.18);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a16;
    --surface: #1a2420;
    --surface-elevated: #222e28;
    --text: #e8f2ec;
    --text-muted: #9bb5a8;
    --accent: #6baf88;
    --accent-soft: #8ec9a4;
    --accent-muted: rgba(107, 175, 136, 0.14);
    --border: rgba(107, 175, 136, 0.18);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--font-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space);
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--max-width) + 2 * var(--space));
  margin-inline: auto;
  padding: 0.875rem var(--space);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--surface-elevated);
  color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon,
:root:not([data-theme]) .theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon {
    display: none;
  }
}

/* Layout */

.wrap {
  max-width: calc(var(--max-width) + 2 * var(--space));
  margin-inline: auto;
  padding-inline: var(--space);
}

section {
  padding-block: clamp(2rem, 6vw, 3rem);
}

section + section {
  border-top: 1px solid var(--border);
}

h1,
h2 {
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-h1);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: var(--font-h2);
  margin: 0 0 1rem;
  color: var(--text);
}

.lead {
  font-size: clamp(1.0625rem, 2.8vw, 1.1875rem);
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 38ch;
}

.muted {
  color: var(--text-muted);
}

/* Hero */

.hero {
  padding-top: clamp(2.5rem, 8vw, 4rem);
  padding-bottom: clamp(2rem, 6vw, 3rem);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  border-radius: 999px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 480px) {
  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
}

.btn-block {
  width: 100%;
}

/* Cards */

.card-grid {
  display: grid;
  gap: 1rem;
}

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

.card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: var(--accent);
}

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

/* List */

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--accent-soft);
  border-radius: 2px;
  transform: rotate(45deg);
}

.check-list li:last-child {
  margin-bottom: 0;
}

/* Contact */

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-note {
  margin-top: 1.25rem;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

/* Footer */

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.35rem;
}
