/* DrugsPlugin showcase — styled to match the Devonic.de brand family */

:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel2: #1d2129;
  --text: #e6e8ee;
  --muted: #9aa3b2;
  --border: #262b36;
  --radius: 12px;
  --blue: #5a86ff;
  --purple: #7c5cff;
  --ok: #3fbf7f;
  --err: #ff5a5a;
  --warn: #ffc857;
  --grad: linear-gradient(135deg, var(--blue), var(--purple));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #14161d 0%, #0f1115 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.brand .sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}

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

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}

nav.main-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.langswitch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.langswitch button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.langswitch button.active {
  background: var(--grad);
  color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(124, 92, 255, 0.55);
}

.btn-primary:hover { filter: brightness(1.08); }

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

.btn-ghost:hover { border-color: var(--blue); background: rgba(90,134,255,0.08); }

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(90,134,255,0.28), rgba(124,92,255,0.14) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--purple);
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #c8d3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }
section.tight { padding: 64px 0; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
}

.alt-bg { background: #12141a; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Cards ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.feature-card { display: flex; flex-direction: column; gap: 14px; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(90,134,255,0.18), rgba(124,92,255,0.18));
  border: 1px solid rgba(124,92,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 { margin: 0; font-size: 1.08rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Drugs section ---------- */

.drug-group { margin-bottom: 40px; }
.drug-group:last-child { margin-bottom: 0; }

.drug-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.drug-group-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.drug-group-head .tag {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--panel2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.drug-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.drug-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.drug-card .chain {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
  word-break: break-word;
}

/* ---------- Production flow ---------- */

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 0 0 50px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.flow .step {
  background: var(--panel2);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.flow .arrow { color: var(--muted); font-size: 1.1rem; }

.machine-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
}

/* ---------- Lists with checks ---------- */

ul.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

ul.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.94rem;
}

ul.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(63, 191, 127, 0.15);
  border: 1px solid rgba(63, 191, 127, 0.5);
}

/* ---------- Two column layout ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.two-col .card { height: 100%; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } }

.placeholder-box {
  background: var(--panel2);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
  color: var(--muted);
}

.placeholder-box svg {
  width: 30px;
  height: 30px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.5;
}

.placeholder-box .cap {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.placeholder-box .kind {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple);
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: #0a0d13;
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 16px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--blue); }

.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 340px; margin: 0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Misc ---------- */

.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.small-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
}
