﻿/**
 * Joitec Design System
 * Tokens, composition rules and showcase components for the Joitec identity.
 */

body[data-theme="joitec"] {
  --font-family-heading: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --color-theme-primary: #4175fc;
  --color-theme-primary-light: #084af3;
  --color-theme-primary-dark: #00107c;
  --color-brand: #4175fc;
  --color-brand-light: #084af3;
  --color-brand-dark: #00107c;
  --color-brand-rgb: 65, 117, 252;
  --color-brand-surface: #edf5fb;
  --color-brand-surface-hover: #deedf8;
  --color-accent-500: #283ae4;
  --color-neutral-50: #f6f5f4;
  --color-neutral-100: #e8ecef;
  --color-neutral-200: #d0d8de;
  --color-neutral-300: #b6c0c8;
  --color-neutral-500: #5a6063;
  --color-neutral-600: #46515b;
  --color-neutral-700: #23313d;
  --color-neutral-800: #17222d;
  --color-neutral-900: #0b1620;
  --color-on-dark: rgba(255, 255, 255, 0.86);
  --color-on-dark-muted: rgba(255, 255, 255, 0.68);

  --joitec-color-ink: #0b1620;
  --joitec-color-steel: #5a6063;
  --joitec-color-ocean: #4175fc;
  --joitec-color-signal: #283ae4;
  --joitec-color-glow: #dfe8ff;
  --joitec-color-fog: #f6f5f4;
  --joitec-color-shell: #ffffff;
  --joitec-color-line: rgba(65, 117, 252, 0.12);

  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --ds-radius-btn: 999px;
  --ds-radius-card: 30px;
  --ds-radius-input: 20px;
  --ds-radius-tag: 999px;

  --shadow-sm: 0 10px 24px rgba(3, 33, 58, 0.06);
  --shadow-md: 0 18px 42px rgba(3, 33, 58, 0.1);
  --shadow-lg: 0 30px 72px rgba(3, 33, 58, 0.16);
  --ds-shadow-card: 0 18px 42px rgba(3, 33, 58, 0.08);
  --ds-shadow-card-hover: 0 28px 64px rgba(3, 33, 58, 0.14);

  --ds-btn-bg: linear-gradient(135deg, #4175fc 0%, #084af3 100%);
  --ds-btn-bg-hover: linear-gradient(135deg, #00107c 0%, #00107c 100%);
  --ds-btn-color: #ffffff;
  --ds-btn-secondary-bg: rgba(255, 255, 255, 0.82);
  --ds-btn-secondary-color: #4175fc;
  --ds-btn-secondary-border: rgba(65, 117, 252, 0.16);
  --ds-btn-secondary-hover-bg: #edf5fb;
  --ds-btn-padding: 15px 28px;
  --ds-btn-padding-lg: 18px 34px;
  --ds-btn-font-weight: 700;
  --ds-btn-letter-spacing: 0.06em;
  --ds-btn-transform: uppercase;

  --ds-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 245, 244, 0.98) 100%);
  --ds-card-border: 1px solid rgba(65, 117, 252, 0.1);
  --ds-card-border-left: none;
  --ds-hero-overlay: linear-gradient(180deg, rgba(3, 19, 34, 0.24) 0%, rgba(3, 33, 58, 0.82) 58%, rgba(3, 33, 58, 0.96) 100%);
  --ds-cta-bg: linear-gradient(135deg, #00107c 0%, #4175fc 52%, #084af3 100%);
  --ds-process-number-bg: linear-gradient(135deg, #4175fc 0%, #283ae4 100%);
}

body[data-theme="joitec"] .btn--primary {
  background: var(--ds-btn-bg);
  border-color: transparent;
}

body[data-theme="joitec"] .btn--primary:hover {
  background: var(--ds-btn-bg-hover);
  border-color: transparent;
}

body[data-theme="joitec"] .section-label,
body[data-theme="joitec"] .hero__tag,
body[data-theme="joitec"] .product-kicker {
  letter-spacing: 0.14em;
}

body[data-theme="joitec"] .section-header__title,
body[data-theme="joitec"] .hero__title,
body[data-theme="joitec"] .product-showcase__title,
body[data-theme="joitec"] .product-detail-hero__title {
  text-wrap: balance;
}

body[data-theme="joitec"] .section-header__text,
body[data-theme="joitec"] .card__text,
body[data-theme="joitec"] .product-line-card__text,
body[data-theme="joitec"] .catalog-item__text,
body[data-theme="joitec"] .product-proof-card__text,
body[data-theme="joitec"] .product-detail-hero__copy {
  color: var(--color-neutral-600);
}

body[data-theme="joitec"] .card,
body[data-theme="joitec"] .service-card,
body[data-theme="joitec"] .pillar,
body[data-theme="joitec"] .process__step,
body[data-theme="joitec"] .catalog-item,
body[data-theme="joitec"] .product-line-card,
body[data-theme="joitec"] .product-proof-card,
body[data-theme="joitec"] .product-detail-block,
body[data-theme="joitec"] .product-detail-hero__gallery {
  backdrop-filter: blur(8px);
}

body[data-theme="joitec"] .stats-bar__item,
body[data-theme="joitec"] .product-metric,
body[data-theme="joitec"] .product-detail-specs__item {
  border-radius: 24px;
}

body[data-theme="joitec"] .fade-in {
  animation: joitec-system-rise 0.8s var(--easing) both;
}

@keyframes joitec-system-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

body[data-theme="joitec"] .ds-system-page {
  background:
    radial-gradient(circle at top left, rgba(40, 58, 228, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(8, 74, 243, 0.12), transparent 22%),
    linear-gradient(180deg, #f7f8f8 0%, #edf3f7 100%);
}

body[data-theme="joitec"] .ds-system-shell {
  display: grid;
  gap: 24px;
}

body[data-theme="joitec"] .ds-system-hero {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border: 1px solid rgba(65, 117, 252, 0.1);
  border-radius: 36px;
  background:
    radial-gradient(circle at 12% 18%, rgba(40, 58, 228, 0.2), transparent 24%),
    radial-gradient(circle at 88% 20%, rgba(223, 232, 255, 0.26), transparent 24%),
    linear-gradient(135deg, #00107c 0%, #4175fc 56%, #084af3 100%);
  color: #ffffff;
  box-shadow: 0 36px 90px rgba(3, 33, 58, 0.18);
}

body[data-theme="joitec"] .ds-system-hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -150px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  pointer-events: none;
}

body[data-theme="joitec"] .ds-system-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-theme="joitec"] .ds-system-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #dfe8ff;
  box-shadow: 0 0 0 6px rgba(223, 232, 255, 0.14);
}

body[data-theme="joitec"] .ds-system-title {
  max-width: 10ch;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 0.98;
}

body[data-theme="joitec"] .ds-system-copy {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
  line-height: 1.8;
}

body[data-theme="joitec"] .ds-system-hero-grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

body[data-theme="joitec"] .ds-system-metric {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

body[data-theme="joitec"] .ds-system-metric span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-theme="joitec"] .ds-system-metric strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.5;
}

body[data-theme="joitec"] .ds-system-grid {
  display: grid;
  gap: 24px;
}

body[data-theme="joitec"] .ds-panel {
  padding: 30px;
  border: 1px solid rgba(65, 117, 252, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 56px rgba(3, 33, 58, 0.08);
  backdrop-filter: blur(14px);
}

body[data-theme="joitec"] .ds-panel--dark {
  background:
    radial-gradient(circle at top right, rgba(40, 58, 228, 0.12), transparent 28%),
    linear-gradient(160deg, #07243a 0%, #0c3759 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body[data-theme="joitec"] .ds-panel--dark .ds-panel__title,
body[data-theme="joitec"] .ds-panel--dark .ds-body,
body[data-theme="joitec"] .ds-panel--dark .ds-caption {
  color: inherit;
}

body[data-theme="joitec"] .ds-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

body[data-theme="joitec"] .ds-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--joitec-color-ocean);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-theme="joitec"] .ds-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.42;
}

body[data-theme="joitec"] .ds-panel__title,
body[data-theme="joitec"] .ds-title {
  margin: 0;
  color: var(--joitec-color-ink);
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  line-height: 1.08;
}

body[data-theme="joitec"] .ds-body {
  margin: 0;
  color: var(--color-neutral-600);
  line-height: 1.8;
}

body[data-theme="joitec"] .ds-caption {
  margin: 0;
  color: rgba(35, 49, 61, 0.64);
  font-size: 0.88rem;
  line-height: 1.6;
}

body[data-theme="joitec"] .ds-palette {
  display: grid;
  gap: 14px;
}

body[data-theme="joitec"] .ds-palette__item {
  overflow: hidden;
  border: 1px solid rgba(65, 117, 252, 0.1);
  border-radius: 24px;
  background: #fff;
}

body[data-theme="joitec"] .ds-palette__swatch {
  min-height: 112px;
}

body[data-theme="joitec"] .ds-palette__meta {
  padding: 16px 18px 18px;
}

body[data-theme="joitec"] .ds-palette__meta strong,
body[data-theme="joitec"] .ds-spec-list strong {
  display: block;
  color: var(--joitec-color-ink);
  font-size: 0.96rem;
}

body[data-theme="joitec"] .ds-palette__meta span,
body[data-theme="joitec"] .ds-spec-list span {
  display: block;
  margin-top: 6px;
  color: var(--color-neutral-500);
  font-size: 0.86rem;
}

body[data-theme="joitec"] .ds-spec-list {
  display: grid;
  gap: 14px;
}

body[data-theme="joitec"] .ds-spec-list__item {
  padding: 16px 18px;
  border: 1px solid rgba(65, 117, 252, 0.08);
  border-radius: 20px;
  background: rgba(237, 245, 251, 0.56);
}

body[data-theme="joitec"] .ds-type-scale {
  display: grid;
  gap: 16px;
}

body[data-theme="joitec"] .ds-type-row {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid rgba(65, 117, 252, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
}

body[data-theme="joitec"] .ds-type-row__meta {
  color: var(--color-neutral-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-theme="joitec"] .ds-display-xl {
  font-family: var(--font-family-heading);
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

body[data-theme="joitec"] .ds-display-lg {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

body[data-theme="joitec"] .ds-heading-md {
  font-family: var(--font-family-heading);
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

body[data-theme="joitec"] .ds-body-lg {
  font-size: 1.06rem;
  line-height: 1.8;
}

body[data-theme="joitec"] .ds-body-sm {
  font-size: 0.92rem;
  line-height: 1.7;
}

body[data-theme="joitec"] .ds-chip-row,
body[data-theme="joitec"] .ds-button-row,
body[data-theme="joitec"] .ds-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

body[data-theme="joitec"] .ds-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(65, 117, 252, 0.12);
  border-radius: 999px;
  background: rgba(237, 245, 251, 0.92);
  color: var(--joitec-color-ocean);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme="joitec"] .ds-chip--solid {
  background: linear-gradient(135deg, #4175fc 0%, #283ae4 100%);
  border-color: transparent;
  color: #ffffff;
}

body[data-theme="joitec"] .ds-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-theme="joitec"] .ds-system-card {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(65, 117, 252, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(40, 58, 228, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 245, 244, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(3, 33, 58, 0.08);
}

body[data-theme="joitec"] .ds-system-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(65, 117, 252, 0.14), rgba(40, 58, 228, 0.16));
}

body[data-theme="joitec"] .ds-system-card__icon--signal {
  background: linear-gradient(135deg, #4175fc 0%, #283ae4 100%);
}

body[data-theme="joitec"] .ds-system-card__icon--fog {
  background: linear-gradient(135deg, #d9e7f2 0%, #f6f5f4 100%);
}

body[data-theme="joitec"] .ds-system-card__title {
  margin: 0;
  color: var(--joitec-color-ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

body[data-theme="joitec"] .ds-system-card__text {
  margin: 0;
  color: var(--color-neutral-600);
  line-height: 1.75;
}

body[data-theme="joitec"] .ds-system-layout {
  display: grid;
  gap: 18px;
}

body[data-theme="joitec"] .ds-layout-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(65, 117, 252, 0.08);
}

body[data-theme="joitec"] .ds-layout-bar--hero {
  height: 220px;
  border-radius: 30px;
  background: linear-gradient(135deg, #00107c 0%, #4175fc 50%, #084af3 100%);
}

body[data-theme="joitec"] .ds-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

body[data-theme="joitec"] .ds-layout-block {
  min-height: 160px;
  border: 1px dashed rgba(65, 117, 252, 0.2);
  border-radius: 24px;
  background: rgba(237, 245, 251, 0.68);
}

body[data-theme="joitec"] .ds-do-grid {
  display: grid;
  gap: 14px;
}

body[data-theme="joitec"] .ds-do {
  padding: 18px 20px;
  border-radius: 22px;
  font-size: 0.94rem;
  line-height: 1.65;
}

body[data-theme="joitec"] .ds-do--yes {
  border: 1px solid rgba(21, 122, 80, 0.14);
  background: rgba(30, 157, 104, 0.08);
  color: #16573e;
}

body[data-theme="joitec"] .ds-do--no {
  border: 1px solid rgba(158, 54, 54, 0.14);
  background: rgba(191, 70, 70, 0.08);
  color: #7a2f2f;
}

body[data-theme="joitec"] .ds-token-code {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(3, 33, 58, 0.08);
  color: var(--joitec-color-ocean);
  font-family: Consolas, monospace;
  font-size: 0.84rem;
}

@media (min-width: 960px) {
  body[data-theme="joitec"] .ds-system-hero-grid,
  body[data-theme="joitec"] .ds-system-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-theme="joitec"] .ds-panel--span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 959px) {
  body[data-theme="joitec"] .ds-card-grid,
  body[data-theme="joitec"] .ds-layout-grid {
    grid-template-columns: 1fr;
  }

  body[data-theme="joitec"] .ds-system-hero,
  body[data-theme="joitec"] .ds-panel {
    padding: 24px;
  }
}

