
/* Local Inter Font */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/JZ005js6uzIE.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/JZ005js6uzIE.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/JZ005js6uzIE.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/JZ005js6uzIE.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/JZ005js6uzIE.woff2) format('woff2'); }

/* ============================================================
   mindmelt KI – Brand-on-Fire Style
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:   #08091A;
  --light:  #ffffff;
  --grey:   #f0f0f8;
  --accent: #CC88D4;
  --accent2: #4EC8E5;
  --purple: #3C1954;
  --t-dark: #ffffff;
  --t-light: #000000;
  --muted:  rgba(255,255,255,0.55);
  --border-light: rgba(0,0,0,0.08);
  --border-dark:  rgba(150,100,220,0.15);
}

html, body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1;
  overflow: hidden;
  height: 100%;
  background: #08091A;
}

/* ---- Fullpage Scroll ---------------------------------------- */
#fp {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  background: #08091A;
}

@media (max-width: 767px) {
  #fp { scroll-snap-type: y proximity; }
}

.s {
  scroll-snap-align: start;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #08091A;
  color: #ffffff;
  margin: 0;
}

/* Section color modes */
.s-dark  { background: #08091A;   color: var(--t-dark); }
.s-light { background: var(--light);  color: var(--t-light); }
.s-grey  { background: var(--grey);   color: var(--t-light); }
.s-accent{ background: linear-gradient(135deg, #3C1954 0%, #0D3060 100%); color: #fff; }

/* ---- Fixed Navigation -------------------------------------- */
#nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 4rem;
  transition: padding .4s ease, background .4s ease;
}
#nav.solid {
  background: rgba(8,9,26,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.25rem 4rem;
}

.nav-logo { font-size: 1.5rem; font-weight: 300;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
@media (min-width: 701px) and (max-width: 1200px) {
  .nav-logo { font-size: clamp(1rem, 2vw, 1.5rem); letter-spacing: 0.06em; }
}
.nav-logo em { color: #fff; font-style: normal; font-weight: 700; }

/* Hamburger */
#burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 950;
}
#burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  transition: transform .35s ease, opacity .35s ease, background .35s ease;
}
#burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Nav right group: lang-switcher + burger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---- Fullscreen Overlay Nav -------------------------------- */
#overlay {
  position: fixed;
  inset: 0;
  background: #08091A;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
  -webkit-backface-visibility: hidden;
}
#overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility 0s linear 0s;
}

.ov-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.ov-links > li > a {
  font-size: clamp(2.25rem,4vw,4rem);
  font-weight: 700;
  color: var(--t-dark);
  text-decoration: none;
  letter-spacing: -0.04em;
  line-height: 1.05;
  display: block;
  transition: color .2s ease;
}
.ov-links > li.has-sub > a {
  display: inline;
}
.ov-links a:hover,
.ov-links a.active { background: linear-gradient(135deg, #CC88D4, #4EC8E5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Sub-Navigation */
.ov-sub {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
}
.ov-sub a {
  font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.7) !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  -webkit-text-fill-color: initial !important;
  background: none !important;
  transition: color .2s ease !important;
}
.ov-sub a:hover {
  color: #fff !important;
  -webkit-text-fill-color: initial !important;
  background: none !important;
}
.ov-sub a.active {
  color: var(--accent2) !important;
  -webkit-text-fill-color: initial !important;
  background: none !important;
}

.ov-contact {
  margin-top: 2.5rem;
  text-align: left;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}
.ov-contact a { color: var(--muted); text-decoration: none; }
.ov-contact a:hover { color: var(--accent2); }

/* ---- Section Dot Navigation -------------------------------- */
#dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#dots button {
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s ease, transform .3s ease;
}
#dots button.on {
  background: linear-gradient(135deg, #CC88D4, #4EC8E5);
  transform: scale(1.5);
}

/* ---- Layout Utilities -------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4rem;
}
.pad { padding: 6rem 0; }
.pad-hero { padding: 9rem 0 5rem; }

/* ---- Typography -------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 1.75rem;
  color: rgba(255,255,255,0.65);
}

h1, .t1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
}
h2, .t2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
}
.t2 {
  background: linear-gradient(135deg, #CC88D4, #4EC8E5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h3, .t3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.lead {
  font-size: 1.32rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 52ch;
}
p {
  font-size: 1.32rem;
  font-weight: 300;
  line-height: 1.6;
  color: #ffffff;
}

/* ---- Buttons ----------------------------------------------- */
.btn {
  display: inline-block;
  padding: .875rem 2rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-accent   { background: linear-gradient(135deg, #CC88D4 0%, #4EC8E5 100%); color: #fff; border-color: transparent; }
.btn-accent:hover { background: linear-gradient(135deg, #D89AE0 0%, #62D4EF 100%); border-color: transparent; }
.btn-dark     { background: #08091A; color: #fff; border-color: var(--dark); }
.btn-dark:hover { background: linear-gradient(135deg, #CC88D4 0%, #4EC8E5 100%); border-color: transparent; }
.btn-outline-w{ background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.8); }
.btn-outline-w:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-outline-d{ background: transparent; color: var(--t-light); border: 2px solid rgba(18,18,42,0.6); }
.btn-outline-d:hover { background: #08091A; color: #fff; }

/* ---- Scroll-in Animations ---------------------------------- */
[data-a] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s ease, transform .9s ease;
}
[data-a].on { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .45s; }
[data-delay="5"] { transition-delay: .6s; }
[data-delay="6"] { transition-delay: .75s; }

/* ---- Image helpers ----------------------------------------- */
.fill-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.overlay-50  { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.overlay-65  { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.rel { position: relative; }
.z1 { position: relative; z-index: 1; }

/* ---- Footer ----------------------------------------------- */
#footer {
  scroll-snap-align: start;
  background: #08091A;
  color: var(--muted);
  border-top: 1px solid var(--border-dark);
  min-height: auto !important;
}
/* ---- Toggle for sub-navigation (BEFORE media query) ------- */
.ov-links > li.has-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.ov-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #CC88D4;
  font-size: inherit;
  cursor: pointer;
  margin-left: 0.4em;
  transition: color .3s ease;
  line-height: 1;
  padding: 0.3em;
  vertical-align: middle;
}
.ov-toggle svg {
  display: block;
  width: 2em;
  height: 2em;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  transform: rotate(-90deg);
  pointer-events: none;
}
.ov-toggle.open svg {
  transform: rotate(0deg);
}
.ov-toggle:hover,
.ov-toggle.open {
  color: var(--accent2);
}
.ov-sub.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

/* ---- Mobile ----------------------------------------------- */
@media (max-width: 900px) {
  #nav { padding: 1.5rem 1.5rem; }
  #nav.solid { padding: 1rem 1.5rem; }
  .wrap { padding: 0 1.5rem; }
  .pad  { padding: 4rem 0; }
  .pad-hero { padding: 7rem 0 4rem; }
  #overlay  { padding: 6rem 1.5rem 2rem; justify-content: flex-start; }
  #ov-close { right: 1.5rem !important; top: 1.5rem !important; }
  .ov-links { gap: 0.35rem; }
  .ov-links > li { padding: 0; }
  .ov-links > li > a { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.15; }
  .ov-links > li.has-sub > a { display: inline; }
  .ov-links > li.has-sub { position: relative; display: block !important; font-size: 0; }
  .ov-links > li.has-sub > a { font-size: clamp(2rem, 8vw, 2.8rem); }
  /* Sub-Navigation mobile */
  .ov-sub {
    padding: 0.2rem 0 0 0.8rem;
    margin: 0;
    flex-direction: column;
    gap: 0;
    width: 100%;
    font-size: 0;
  }
  .ov-sub li {
    font-size: 1rem;
  }
  .ov-sub a {
    font-size: 1rem !important;
    line-height: 1.35 !important;
  }
  .ov-toggle {
    position: static;
    display: inline-flex !important;
    padding: 0 4px;
    min-width: auto;
    min-height: auto;
    font-size: 16px;
    vertical-align: baseline;
  }
  .ov-toggle svg {
    width: 18px;
    height: 18px;
  }
  .ov-contact { margin-top: auto; padding-bottom: 1rem; }
  #dots { display: none; }
  }

/* ---- RTE / CKE5 Content Styles ----------------------------- */
.rte-content p { font-size: 1.32rem; font-weight: 300; line-height: 1.6; margin-bottom: 1.1rem; color: #ffffff; }
.rte-content h3 { font-size: clamp(1.75rem,3vw,2.25rem); font-weight: 600; letter-spacing: -.02em; margin: 1.5rem 0 .5rem; }
.rte-content ul, .rte-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.rte-content ul li { font-size: 1.32rem; line-height: 1.55; font-weight: 300; margin-bottom: .3rem; }
.rte-content a { color: var(--accent2); text-decoration: none; }
.rte-content a:hover { color: var(--accent); }
.rte-content strong { font-weight: 600; }
.s-dark .rte-content p, .s-dark .rte-content li { color: #ffffff; }
.s-light .rte-content p, .s-grey .rte-content p, .s-light .rte-content li { color: #000000; }
.s-light .rte-content p, .s-grey .rte-content p { color: #000000; }

/* Language Switcher */
#lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
#lang-switcher .lang-item {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 2px 0;
  transition: opacity 0.15s;
}
#lang-switcher .lang-item:hover { opacity: 0.7; }
#lang-switcher .lang-active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  cursor: default;
}
#lang-switcher .lang-unavailable { opacity: 0.35; cursor: not-allowed; }
@media (max-width: 900px) {
  #lang-switcher { display: none; }
}
