/* ============================================
   CLARK — Krypton Page
   Dark green theme from Figma Design System
   Fluid: designed at 1512px, scales to ~2560px+
   ============================================ */

:root {
  --kr-bg: #121A15;
  --kr-card: #1F2622;
  --kr-card-highlight: #29332D;
  --kr-card-dark: #1D2621;
  --kr-green: #4CC87D;
  --kr-light: #F0FFF6;
  --kr-muted: #B7C7BD;
  --kr-dim: #87998E;
  --kr-border: #404D45;
  --kr-footer: #0D0707;
  --kr-green-faint: rgba(76, 200, 125, 0.05);
}

body.krypton-page {
  background-color: var(--kr-bg);
  color: var(--kr-light);
}

/* --- Header override for dark-green theme --- */
.header--krypton {
  background-color: var(--kr-green);
  border-bottom: none;
}
.header--krypton .nav-link {
  color: var(--kr-bg);
}
.header--krypton .header__menu-toggle span {
  background: var(--kr-bg);
}

/* ============================================
   HERO
   ============================================ */
.kr-hero {
  padding-top: 103px;
  padding-bottom: clamp(60px, 5vw, 120px);
  display: flex;
  align-items: flex-start;
}

.kr-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(40px, 4vw, 80px) 80px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.kr-hero__content {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.4vw, 48px);
  max-width: 55%;
  flex-shrink: 0;
}

.kr-hero__text {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 32px);
}

.kr-hero__title {
  font-family: 'Youth', sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 5.82vw, 140px);
  line-height: 1.09;
  color: var(--kr-green);
}

.kr-hero__body {
  font-weight: 400;
  font-size: clamp(14px, 1.32vw, 30px);
  line-height: 1.4;
  color: var(--kr-light);
  max-width: clamp(280px, 43.6vw, 820px);
}

.kr-hero__body--secondary {
  color: var(--kr-muted);
}

.kr-hero__actions {
  display: flex;
  gap: clamp(16px, 2.12vw, 32px);
  flex-wrap: wrap;
}

.kr-hero__media {
  position: absolute;
  right: var(--pad-x);
  top: clamp(100px, 10vw, 160px);
  width: clamp(280px, 36vw, 680px);
  height: clamp(280px, 36vw, 680px);
}

.kr-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* --- Special button with green gradient stroke + glow --- */
.kr-btn-special {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
}

.kr-btn-special__bg {
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0px 0px 4.8px rgba(76, 200, 125, 0.4);
}

.kr-btn-special__bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    rgba(76, 200, 125, 0.9) 0%,
    rgba(76, 200, 125, 0.5) 12%,
    rgba(76, 200, 125, 0.2) 25%,
    rgba(76, 200, 125, 0) 35%,
    rgba(76, 200, 125, 0) 65%,
    rgba(76, 200, 125, 0.2) 75%,
    rgba(76, 200, 125, 0.5) 88%,
    rgba(76, 200, 125, 0.9) 100%
  );
  animation: btnSpin 4s linear infinite;
}

.kr-btn-special__bg::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 100px;
  background: var(--kr-bg);
}

@keyframes btnSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.kr-btn-special__label {
  position: relative;
  z-index: 1;
  font-family: 'Youth', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.32vw, 24px);
  line-height: 1.6;
  color: var(--white);
}

.kr-btn-special:hover {
  transform: translateY(-2px);
  box-shadow: 0px 0px 12px rgba(76, 200, 125, 0.5);
}

/* --- Primary button (green bg) --- */
.kr-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  border-radius: 32px;
  background: var(--kr-green);
  color: var(--kr-card-dark);
  font-family: 'Youth', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.32vw, 24px);
  line-height: 1.6;
  text-decoration: none;
  transition: all 0.3s ease;
}

.kr-btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ============================================
   SECTIONS — shared
   ============================================ */
.kr-section {
  padding: clamp(80px, 8vw, 160px) 0;
}

.kr-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 80px;
}

.kr-section__title {
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 68px);
  line-height: 1.1;
  color: var(--kr-green);
  margin-bottom: clamp(24px, 3vw, 48px);
}

/* ============================================
   WAAROM KRYPTON
   ============================================ */
.kr-why__text {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 24px);
  max-width: clamp(500px, 74vw, 1120px);
}

.kr-why__text p {
  font-size: clamp(14px, 1.32vw, 30px);
  line-height: 1.4;
  color: var(--kr-light);
}

.kr-why__text strong {
  color: var(--kr-green);
  font-weight: 500;
}

/* ============================================
   STACKED BLOCKS
   ============================================ */
.kr-blocks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 48px);
}

.kr-blocks__list {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.3vw, 24px);
  max-width: clamp(300px, 30vw, 500px);
}

.kr-blocks__item {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 16px);
}

.kr-blocks__icon {
  flex-shrink: 0;
  width: clamp(36px, 3.17vw, 48px);
  height: clamp(36px, 3.17vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.kr-blocks__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kr-blocks__item span {
  font-size: clamp(14px, 1.32vw, 30px);
  line-height: 1.4;
  color: var(--white);
}

.kr-blocks__logo {
  flex-shrink: 0;
}

.kr-blocks__logo-ring {
  width: clamp(100px, 10.6vw, 200px);
  height: clamp(100px, 10.6vw, 200px);
  border-radius: 50%;
  background: var(--kr-bg);
  border: 1px solid transparent;
  box-shadow:
    0px 4px 4px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px var(--kr-green);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.kr-blocks__logo-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from var(--ring-angle, 0deg),
    rgba(76, 200, 125, 0.9) 0%,
    rgba(76, 200, 125, 0.3) 8%,
    rgba(76, 200, 125, 0) 20%,
    rgba(76, 200, 125, 0) 80%,
    rgba(76, 200, 125, 0.1) 92%,
    rgba(76, 200, 125, 0.9) 100%
  );
  z-index: -1;
  animation: ringRotate 5s linear infinite;
}

@property --ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes ringRotate {
  to { --ring-angle: 360deg; }
}

.kr-blocks__logo-ring img {
  width: 40%;
  height: auto;
  position: relative;
  z-index: 1;
}


.kr-blocks__desc {
  max-width: clamp(300px, 30vw, 500px);
}

.kr-blocks__desc p {
  font-size: clamp(14px, 1.32vw, 30px);
  line-height: 1.4;
  color: var(--white);
}

/* ============================================
   HOE WERKT HET — two-column layout + sticky mockup
   ============================================ */
.kr-how__layout {
  display: flex;
  gap: clamp(40px, 4vw, 80px);
  align-items: flex-start;
}

.kr-how__left {
  flex: 1;
  min-width: 0;
}

.kr-how__right {
  flex: 0 0 clamp(380px, 42vw, 720px);
  position: sticky;
  top: clamp(80px, 8vw, 140px);
}

.kr-how__mockup {
  width: 100%;
}

/* MacBook mockup */
.kr-mockup {
  background: #1a1a1a;
  border-radius: clamp(12px, 1.2vw, 20px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.kr-mockup__top {
  padding: clamp(8px, 0.7vw, 12px) clamp(12px, 1vw, 16px);
  background: #2a2a2a;
}

.kr-mockup__dots {
  display: flex;
  gap: clamp(5px, 0.4vw, 8px);
}

.kr-mockup__dots span {
  width: clamp(8px, 0.7vw, 12px);
  height: clamp(8px, 0.7vw, 12px);
  border-radius: 50%;
  background: #444;
}

.kr-mockup__dots span:first-child { background: #ff5f57; }
.kr-mockup__dots span:nth-child(2) { background: #febc2e; }
.kr-mockup__dots span:nth-child(3) { background: #28c840; }

.kr-mockup__screen {
  background: #fff;
}

.kr-mockup__screen img {
  width: 100%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.kr-mockup__bottom {
  height: clamp(16px, 1.5vw, 28px);
  background: #2a2a2a;
  border-radius: 0 0 clamp(4px, 0.4vw, 8px) clamp(4px, 0.4vw, 8px);
}

.kr-steps {
  display: flex;
  gap: clamp(24px, 3.17vw, 48px);
}

.kr-steps__numbers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  width: clamp(56px, 5.29vw, 100px);
}

.kr-step-num__circle {
  width: clamp(56px, 5.29vw, 100px);
  height: clamp(56px, 5.29vw, 100px);
  border-radius: 50%;
  background: var(--kr-card);
  border: 1px solid var(--kr-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kr-step-num__circle span {
  font-family: 'Youth', sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.12vw, 40px);
  line-height: 1.25;
  color: var(--kr-light);
}

.kr-step-num__line {
  width: 1px;
  flex: 1;
  min-height: 16px;
  border-left: 1px dashed var(--kr-border);
}

.kr-steps__content {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.17vw, 48px);
}

.kr-step {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.6vw, 12px);
}

.kr-step__title {
  font-weight: 500;
  font-size: clamp(20px, 2.64vw, 40px);
  line-height: 1.25;
  color: var(--kr-light);
}

.kr-step__desc {
  font-size: clamp(14px, 1.32vw, 30px);
  line-height: 1.4;
  color: var(--kr-muted);
  max-width: clamp(400px, 50vw, 800px);
}

/* ============================================
   DATA CARDS
   ============================================ */
.kr-data__intro {
  font-size: clamp(14px, 1.32vw, 30px);
  line-height: 1.4;
  color: var(--kr-light);
  max-width: clamp(500px, 74vw, 1120px);
  margin-bottom: clamp(24px, 3vw, 48px);
}

.kr-cards {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.12vw, 32px);
}

.kr-card {
  flex: 1 1 calc(20% - clamp(16px, 2.12vw, 32px));
  min-width: clamp(200px, 16vw, 280px);
  background: var(--kr-card);
  border-radius: clamp(16px, 2.12vw, 32px);
  padding: 0;
  overflow: hidden;
}

.kr-card__title {
  font-weight: 500;
  font-size: clamp(16px, 1.59vw, 28px);
  line-height: 1.33;
  color: var(--kr-light);
  text-align: right;
  padding: clamp(16px, 1.6vw, 24px) clamp(16px, 1.6vw, 24px) clamp(10px, 1vw, 16px);
}

.kr-card__desc {
  font-size: clamp(12px, 0.93vw, 18px);
  line-height: 1.5;
  color: var(--kr-muted);
  padding: 0 clamp(16px, 1.6vw, 24px) clamp(16px, 1.6vw, 24px);
}

.kr-data__outro {
  font-size: clamp(14px, 1.32vw, 30px);
  line-height: 1.4;
  color: var(--kr-light);
  max-width: clamp(500px, 74vw, 1120px);
  margin-top: clamp(32px, 4vw, 64px);
}

.kr-data__outro p {
  margin-bottom: clamp(8px, 0.8vw, 16px);
}

.kr-data__outro p:last-child {
  margin-bottom: 0;
}


/* ============================================
   PRICING
   ============================================ */
.kr-pricing {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  position: relative;
}

.kr-pricing__card {
  flex: 1 1 0;
  max-width: clamp(280px, 26.5vw, 440px);
  background: var(--kr-bg);
  border: 1px solid var(--kr-border);
  border-radius: clamp(16px, 2.12vw, 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.kr-pricing__card--highlight {
  background: var(--kr-card-dark);
  border: 2px solid transparent;
  z-index: 1;
  transform: scale(1.04);
}

.kr-pricing__card--highlight::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: clamp(16px, 2.12vw, 32px);
  background: linear-gradient(180deg, rgba(76, 200, 125, 1) 0%, rgba(76, 200, 125, 0) 50%);
  z-index: -1;
}

.kr-pricing__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6px, 0.5vw, 8px) clamp(10px, 1vw, 16px);
  background: var(--kr-green-faint);
  border: 1px solid var(--kr-green);
  border-radius: 100px;
  font-weight: 500;
  font-size: clamp(11px, 0.93vw, 16px);
  line-height: 1.43;
  color: var(--kr-green);
  position: absolute;
  top: clamp(16px, 1.6vw, 24px);
  right: clamp(16px, 1.6vw, 24px);
}

.kr-pricing__header {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 24px);
  padding: clamp(16px, 1.6vw, 24px);
}

.kr-pricing__name h3 {
  font-weight: 500;
  font-size: clamp(18px, 1.59vw, 28px);
  line-height: 1.33;
  color: var(--kr-light);
}

.kr-pricing__sub {
  font-size: clamp(12px, 0.93vw, 18px);
  line-height: 1.43;
  color: var(--kr-muted);
  margin-top: 4px;
}

.kr-pricing__price {
  font-weight: 700;
  font-size: clamp(28px, 2.64vw, 50px);
  line-height: 1.2;
  color: var(--kr-light);
}

.kr-pricing__price span {
  font-weight: 400;
  font-size: clamp(14px, 1.32vw, 24px);
  color: var(--kr-muted);
}

.kr-pricing__features {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.1vw, 16px);
  padding: clamp(16px, 1.6vw, 24px);
  flex: 1;
  background: var(--kr-card);
  border-radius: clamp(16px, 2.12vw, 32px) clamp(16px, 2.12vw, 32px) 0 0;
}

.kr-pricing__card--highlight .kr-pricing__features {
  background: var(--kr-card-highlight);
}

.kr-feature {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1vw, 16px);
}

.kr-feature img {
  flex-shrink: 0;
  margin-top: 2px;
  width: clamp(16px, 1.3vw, 22px);
  height: auto;
}

.kr-feature span {
  font-size: clamp(12px, 0.93vw, 18px);
  line-height: 1.5;
}

.kr-feature--yes span {
  color: var(--kr-muted);
}

.kr-feature--no span {
  color: var(--kr-dim);
}

.kr-pricing__action {
  padding: clamp(10px, 1vw, 16px);
  background: var(--kr-card);
}

.kr-pricing__card--highlight .kr-pricing__action {
  background: var(--kr-card-highlight);
}

/* ============================================
   FOOTER OVERRIDE
   ============================================ */
.footer--krypton {
  background: var(--kr-footer);
}

.footer--krypton .footer__contact-list p,
.footer--krypton .footer__contact-list a {
  color: var(--kr-light);
}

.footer--krypton .faq-item span {
  color: var(--kr-light);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.kr-cards .kr-card:nth-child(2) { transition-delay: 0.1s; }
.kr-cards .kr-card:nth-child(3) { transition-delay: 0.2s; }
.kr-cards .kr-card:nth-child(4) { transition-delay: 0.3s; }
.kr-cards .kr-card:nth-child(5) { transition-delay: 0.4s; }

.kr-blocks__item:nth-child(2) { transition-delay: 0.15s; }
.kr-blocks__item:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   DEMO CTA
   ============================================ */
.kr-section--cta {
  padding: clamp(80px, 8vw, 200px) 0;
}

.kr-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kr-cta__content {
  max-width: clamp(500px, 50vw, 900px);
}

.kr-cta .kr-section__title {
  margin-bottom: clamp(16px, 1.6vw, 32px);
}

.kr-cta__body {
  font-size: clamp(16px, 1.32vw, 24px);
  line-height: 1.6;
  color: var(--kr-muted);
  margin-bottom: clamp(32px, 3vw, 56px);
}

.kr-cta__actions {
  display: flex;
  justify-content: center;
}

/* ============================================
   TABLET
   ============================================ */
@media (max-width: 1024px) {
  .kr-hero__inner {
    padding: clamp(40px, 4vw, 80px) 40px 0;
  }

  .kr-section__inner {
    padding: 0 40px;
  }

  .kr-blocks {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .kr-blocks__logo {
    align-self: center;
  }

  .kr-blocks__list,
  .kr-blocks__desc {
    max-width: 100%;
  }

  .kr-how__layout {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .kr-how__right {
    flex: none;
    position: relative;
    top: auto;
    width: 100%;
    max-width: 500px;
  }

  .kr-steps {
    flex-direction: column;
    gap: 0;
  }

  .kr-steps__numbers {
    flex-direction: row;
    width: 100%;
    margin-bottom: 32px;
  }

  .kr-step-num__line {
    width: auto;
    min-height: 0;
    height: 1px;
    flex: 1;
    border-left: none;
    border-top: 1px dashed var(--kr-border);
  }

  .kr-cta__content {
    max-width: 100%;
  }
}

/* ============================================
   TABLET PORTRAIT
   ============================================ */
@media (max-width: 850px) {
  .header--krypton .header__nav { display: none; }
  .header--krypton .header__menu-toggle { display: flex; }

  .kr-hero__content {
    max-width: 100%;
  }

  .kr-hero__body {
    max-width: 100%;
  }

  .kr-hero__actions {
    justify-content: center;
    width: 100%;
  }

  .kr-hero__media {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: auto;
  }

  .kr-hero__media img {
    aspect-ratio: auto;
    width: 100%;
    height: auto;
  }

  .kr-hero__inner {
    flex-direction: column;
    gap: 32px;
  }

  .kr-cards .kr-card {
    min-width: calc(50% - 32px);
  }
}

/* ============================================
   PHONE
   ============================================ */
@media (max-width: 600px) {
  .kr-hero__inner {
    padding: clamp(24px, 4vw, 40px) 24px 0;
  }

  .kr-section__inner {
    padding: 0 24px;
  }

  .kr-hero__title {
    font-size: clamp(48px, 15vw, 80px);
  }

  .kr-btn-special__label {
    font-size: 18px;
  }

  .kr-steps__numbers {
    display: none;
  }

  .kr-steps__content {
    padding-left: 24px;
    border-left: 1px dashed var(--kr-border);
  }

  .kr-step {
    position: relative;
  }

  .kr-step::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--kr-green);
  }

  .kr-cards .kr-card {
    min-width: 100%;
  }

  .kr-step__desc {
    max-width: 100%;
  }
}
