:root {
  --color-bg: #020b26;
  --color-surface: #061a3d;
  --color-accent: #dbaa67;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(18, 58, 125, 0.35) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 100%, rgba(219, 170, 103, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Subtle grid pattern helper */
.bg-grid {
  position: relative;
}
.bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(219, 170, 103, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(219, 170, 103, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  z-index: -1;
}

/* Dot pattern helper */
.bg-dots {
  position: relative;
}
.bg-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(219, 170, 103, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: -1;
}

/* Gradient gold text */
.text-gold-gradient {
  background: linear-gradient(135deg, #f3ce92 0%, #dbaa67 45%, #a87b37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(219, 170, 103, 0.35), transparent);
  margin: 0 auto;
  max-width: 60%;
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #e6b977, #b8873f);
  color: #020b26;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px -10px rgba(219, 170, 103, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px -10px rgba(219, 170, 103, 0.7);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 100%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.05);
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.18);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(219, 170, 103, 0.5);
}

/* ============ CARDS ============ */
.card {
  background: rgba(6, 26, 61, 0.65);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.card-feature {
  position: relative;
  background: linear-gradient(160deg, rgba(13, 31, 77, 0.7), rgba(6, 26, 61, 0.4));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card-feature:hover {
  border-color: rgba(219, 170, 103, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(219, 170, 103, 0.18), 0 0 0 1px rgba(219, 170, 103, 0.15);
}
.card-feature > * { position: relative; z-index: 1; }

.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: rgba(219, 170, 103, 0.14);
  border: 1px solid rgba(219, 170, 103, 0.45);
  display: grid;
  place-items: center;
}

.card-usecase {
  position: relative;
  background: linear-gradient(180deg, rgba(13, 31, 77, 0.85), rgba(6, 26, 61, 0.5));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card-usecase::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(219, 170, 103, 0.12) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card-usecase:hover {
  border-color: rgba(219, 170, 103, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 25px 60px -25px rgba(219, 170, 103, 0.25);
}
.card-usecase:hover::after { opacity: 1; }
.card-usecase > * { position: relative; z-index: 1; }

/* ============ STEPS V2 (How It Works) ============ */
.step-v2 {
  position: relative;
  background: linear-gradient(165deg, rgba(13, 31, 77, 0.78), rgba(6, 26, 61, 0.45));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem 1.5rem;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  margin-top: 1rem;
}
.step-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #dbaa67 50%, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.step-v2::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(219, 170, 103, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.step-v2:hover {
  transform: translateY(-8px);
  border-color: rgba(219, 170, 103, 0.5);
  box-shadow: 0 30px 60px -25px rgba(219, 170, 103, 0.35), 0 0 0 1px rgba(219, 170, 103, 0.2);
}
.step-v2:hover::before { opacity: 1; }
.step-v2:hover::after { opacity: 1; }
.step-v2 > * { position: relative; z-index: 1; }

.step-v2-num {
  position: absolute;
  top: -20px;
  left: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3ce92, #b8873f);
  color: #020b26;
  font-weight: 900;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px rgba(219, 170, 103, 0.6), 0 0 0 6px rgba(2, 11, 38, 1);
  z-index: 2;
}
.step-v2:hover .step-v2-num {
  animation: stepPulse 1.2s ease-out;
}
@keyframes stepPulse {
  0%   { box-shadow: 0 10px 30px -8px rgba(219, 170, 103, 0.6), 0 0 0 6px rgba(2, 11, 38, 1), 0 0 0 0 rgba(219, 170, 103, 0.5); }
  100% { box-shadow: 0 10px 30px -8px rgba(219, 170, 103, 0.6), 0 0 0 6px rgba(2, 11, 38, 1), 0 0 0 20px rgba(219, 170, 103, 0); }
}

.step-v2-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: rgba(219, 170, 103, 0.14);
  border: 1px solid rgba(219, 170, 103, 0.4);
  display: grid;
  place-items: center;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  margin-left: auto;
  transition: transform 0.35s ease, background 0.35s ease;
}
.step-v2:hover .step-v2-icon {
  transform: rotate(-5deg) scale(1.05);
  background: rgba(219, 170, 103, 0.22);
}

.step-v2-time {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.7rem;
  color: #dbaa67;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.step-v2-time::before {
  content: '';
  width: 0.9rem;
  height: 0.9rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23dbaa67' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ============ TABS ============ */
.tab {
  padding: 0.6rem 1.1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab:hover { background: rgba(255,255,255,0.08); }
.tab.tab-active {
  background: rgba(219, 170, 103, 0.18);
  border-color: rgba(219, 170, 103, 0.5);
  color: #dbaa67;
}

/* ============ FAQ ============ */
.faq-item {
  background: rgba(6, 26, 61, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: #dbaa67;
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body {
  padding: 0 1.5rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============ FORM ============ */
.form-input {
  width: 100%;
  background: rgba(2, 11, 38, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #e5e7eb;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  outline: none;
}
.form-input::placeholder { color: rgba(159, 176, 212, 0.5); }
.form-input:focus {
  border-color: rgba(219, 170, 103, 0.6);
  background: rgba(2, 11, 38, 0.9);
}
.form-input:invalid:not(:placeholder-shown) {
  border-color: rgba(248, 113, 113, 0.45);
}

.form-check {
  appearance: none;
  -webkit-appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(2, 11, 38, 0.7);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 0.1rem;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.form-check:checked {
  background: #dbaa67;
  border-color: #dbaa67;
}
.form-check:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: solid #020b26;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.btn-primary[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary .btn-spinner { display: none; }
.btn-primary.loading .btn-label { display: none; }
.btn-primary.loading .btn-spinner { display: inline-flex; }

.form-message-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.form-message-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: modalFadeIn 0.2s ease-out;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 11, 38, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0b2352, #061a3d);
  border: 1px solid rgba(219, 170, 103, 0.35);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
  animation: modalPop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e5e7eb;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.modal-close:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(219, 170, 103, 0.5);
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
body.modal-open { overflow: hidden; }

/* ============ MITCHELLIGENCE AVATAR ============ */
.avatar-stage {
  position: relative;
  display: inline-block;
}
.avatar-float {
  animation: avatarFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(219, 170, 103, 0.3));
}
.avatar-halo {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px solid rgba(219, 170, 103, 0.35);
  animation: haloPulse 4s ease-in-out infinite;
  pointer-events: none;
}
.avatar-halo-2 {
  inset: -22%;
  border-color: rgba(219, 170, 103, 0.15);
  animation-delay: 1s;
  animation-duration: 5s;
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(0.5deg); }
}
@keyframes haloPulse {
  0%, 100% { transform: scale(1);    opacity: 0.9; }
  50%      { transform: scale(1.05); opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-float, .avatar-halo { animation: none; }
}

/* ============ LOGOS MARQUEE ============ */
.logos-marquee {
  overflow: hidden;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem 0;
  border: 1px solid rgba(255,255,255,0.08);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: max-content;
  padding-left: 5rem;
  animation: logos-scroll-lr 35s linear infinite;
}
.logos-track img {
  height: 80px;
  max-width: 220px;
  flex-shrink: 0;
  object-fit: contain;
  filter: grayscale(0);
}
@media (min-width: 768px) {
  .logos-track img { height: 100px; max-width: 260px; }
  .logos-track { gap: 6rem; padding-left: 6rem; }
}
/* Bewegung von links nach rechts */
@keyframes logos-scroll-lr {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.logos-marquee:hover .logos-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
}

/* ============ TIMELINE (Heldenreise) ============ */
.timeline {
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1.75rem;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(219,170,103,0.6), rgba(219,170,103,0.25) 60%, rgba(219,170,103,0));
}
.timeline-step {
  position: relative;
  padding-left: 5rem;
  padding-bottom: 2rem;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5d49a, #dbaa67 50%, #a87b37);
  color: #020b26;
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 7px #020b26,
    0 0 0 8px rgba(219, 170, 103, 0.6),
    0 12px 30px -8px rgba(219, 170, 103, 0.65);
  z-index: 2;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
@media (min-width: 768px) {
  .timeline-dot { width: 3.75rem; height: 3.75rem; font-size: 1.9rem; }
}
.timeline-card {
  background: rgba(6, 26, 61, 0.65);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.timeline-card:hover {
  border-color: rgba(219, 170, 103, 0.4);
  transform: translateY(-2px);
}
.timeline-image {
  flex-shrink: 0;
  width: 100%;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #0b2352;
}
.timeline-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.timeline-content { flex: 1; min-width: 0; }

@media (min-width: 768px) {
  .timeline-card {
    flex-direction: row;
    padding: 1.5rem;
  }
  .timeline-image {
    width: 200px;
    align-self: stretch;
  }
  .timeline-image img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 220px;
  }
}

/* ============ DASHBOARD (real screenshot, text unleserlich) ============ */
.dashboard-wrap {
  position: relative;
  line-height: 0;
}
.dashboard-wrap img {
  display: block;
  width: 100%;
}
.dashboard-img {
  filter: blur(3.5px) saturate(1.1) brightness(0.95);
  transform: scale(1.02); /* verhindert weiße Blur-Ränder */
}
.dashboard-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(6, 26, 61, 0.35) 100%),
    linear-gradient(180deg, rgba(2, 11, 38, 0.05), rgba(2, 11, 38, 0.25));
  pointer-events: none;
}

/* ============ DASHBOARD MOCKUPS ============ */
.mock-kpi {
  background: rgba(11, 35, 82, 0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 1.25rem;
}
.mock-bar {
  background: linear-gradient(180deg, #e6b977, #b8873f);
  border-radius: 4px 4px 0 0;
}
