/* ============================================================
   enarex landing page — custom styles
   ============================================================ */

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { overflow-x: hidden; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.125rem; border-radius: 0.625rem;
  font-size: 0.875rem; font-weight: 600; white-space: nowrap;
  color: white; background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  box-shadow: 0 10px 30px -10px rgba(139,92,246,0.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(139,92,246,0.7); }

.btn-primary-lg {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.5rem; border-radius: 0.75rem;
  font-size: 0.95rem; font-weight: 600; white-space: nowrap;
  color: white; background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  box-shadow: 0 12px 32px -10px rgba(139,92,246,0.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary-lg:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -10px rgba(139,92,246,0.75); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.125rem; border-radius: 0.625rem;
  font-size: 0.875rem; font-weight: 600; white-space: nowrap;
  color: white; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  transition: background .2s ease, border-color .2s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }

.btn-secondary-lg {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.5rem; border-radius: 0.75rem;
  font-size: 0.95rem; font-weight: 600; white-space: nowrap;
  color: white; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  transition: background .2s ease, border-color .2s ease;
}
.btn-secondary-lg:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); }

/* ---------- Sticky Header ---------- */
#nav.scrolled { background: rgba(11,15,31,0.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }

/* ---------- Browser Frame ---------- */
.browser-frame, .browser-frame-lg {
  border-radius: 14px; overflow: hidden;
  background: #1a1f36; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 10px 30px -10px rgba(139,92,246,0.2);
}
.browser-frame-lg { box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7), 0 20px 50px -15px rgba(139,92,246,0.25); }

.browser-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #0f1424; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-chrome span {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
}
.browser-chrome span:nth-child(1) { background: #ff5f57; }
.browser-chrome span:nth-child(2) { background: #febc2e; }
.browser-chrome span:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1; margin-left: 14px; padding: 4px 12px;
  background: rgba(255,255,255,0.05); border-radius: 6px;
  font-size: 11px; color: #94a3b8; font-family: ui-monospace, monospace;
  text-align: center; max-width: 400px; margin-right: auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Problem Cards ---------- */
.problem-card {
  padding: 2rem; border-radius: 1rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  transition: border-color .3s ease, transform .3s ease;
}
.problem-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-3px); }
.problem-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

/* ---------- Feature Cards ---------- */
.feature-card {
  padding: 1.75rem; border-radius: 1rem;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.feature-card:hover {
  border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.04);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: white;
  box-shadow: 0 8px 20px -8px rgba(139,92,246,0.4);
}

/* ---------- Screenshot Tabs ---------- */
.shot-tab {
  padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
  color: #cbd5e1; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all .2s ease;
}
.shot-tab:hover { color: white; background: rgba(255,255,255,0.1); }
.shot-tab.active {
  color: white;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  border-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(139,92,246,0.5);
}

/* ---------- Deep Dive Tabs ---------- */
.dd-tab {
  padding: 0.625rem 1.25rem; border-radius: 0.625rem;
  font-size: 0.875rem; font-weight: 600;
  color: #cbd5e1; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all .2s ease;
}
.dd-tab:hover { color: white; background: rgba(255,255,255,0.08); }
.dd-tab.active {
  color: white; background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.4);
}
.dd-panel { display: none; }
.dd-panel.active { display: block; animation: fadeIn .3s ease; }
.dd-item {
  padding: 1.25rem; border-radius: 0.875rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.dd-item strong { display: block; color: white; font-weight: 600; margin-bottom: 0.25rem; }
.dd-item span { font-size: 0.825rem; color: #94a3b8; line-height: 1.55; }

/* ---------- KI Cards ---------- */
.ki-card {
  position: relative;
  padding: 2rem; border-radius: 1.25rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  transition: border-color .3s ease, transform .3s ease;
}
.ki-card:hover { border-color: rgba(139,92,246,0.5); transform: translateY(-4px); }
.ki-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem; border-radius: 6px;
  background: rgba(139,92,246,0.15); color: #c4b5fd;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* ---------- Wissen Cards (light bg section) ---------- */
.wissen-card {
  padding: 2rem; border-radius: 1rem;
  background: white; border: 1px solid rgb(226, 232, 240);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.wissen-card:hover { border-color: #8b5cf6; transform: translateY(-3px); box-shadow: 0 10px 30px -10px rgba(139,92,246,0.2); }

/* ---------- Bundle Cards ---------- */
.bundle-card {
  position: relative;
  padding: 2rem; border-radius: 1.25rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
}
.bundle-card:hover { transform: translateY(-3px); }
.bundle-card-featured {
  background: linear-gradient(180deg, rgba(139,92,246,0.08) 0%, rgba(139,92,246,0.02) 100%);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 20px 50px -15px rgba(139,92,246,0.3);
  transform: scale(1.02);
}
.bundle-card-featured:hover { transform: scale(1.02) translateY(-3px); }
.bundle-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem; border-radius: 6px;
  background: rgba(255,255,255,0.06); color: #c4b5fd;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1rem; width: fit-content;
}
.bundle-check {
  position: relative; padding-left: 1.625rem; color: #cbd5e1;
}
.bundle-check::before {
  content: ''; position: absolute; left: 0; top: 0.375rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(139,92,246,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.bundle-check-highlight {
  position: relative; padding-left: 1.625rem; color: #f5f3ff; font-weight: 500;
}
.bundle-check-highlight::before {
  content: ''; position: absolute; left: 0; top: 0.375rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Feature Matrix Table ---------- */
.feature-matrix {
  width: 100%; border-collapse: collapse; min-width: 640px;
}
.feature-matrix thead th {
  padding: 1rem 1.25rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #cbd5e1; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.feature-matrix thead th.featured {
  color: #c4b5fd; background: rgba(139,92,246,0.12);
}
.feature-matrix tbody td {
  padding: 0.875rem 1.25rem; font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-align: center; color: #e2e8f0;
}
.feature-matrix tbody td:first-child { text-align: left; color: #cbd5e1; }
.feature-matrix tbody td.featured { background: rgba(139,92,246,0.05); color: #f5f3ff; font-weight: 600; }
.feature-matrix tbody td.fm-no { color: #475569; }
.feature-matrix tbody tr.fm-group td {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  color: #a78bfa; background: rgba(139,92,246,0.08);
  padding-top: 1.125rem; padding-bottom: 0.75rem;
  text-align: left;
}

/* ---------- Blog Cards ---------- */
.blog-card {
  border-radius: 1rem; overflow: hidden; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  transition: transform .3s ease, border-color .3s ease;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,0.4); }
.blog-card-image {
  position: relative; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
}
.blog-card-tag {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.25rem 0.625rem; border-radius: 6px;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: white;
}

.blog-mini-card {
  display: block; padding: 1.25rem;
  border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: border-color .3s ease, background .3s ease;
}
.blog-mini-card:hover { border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.03); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  padding: 2rem; border-radius: 1.25rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-radius: 0.75rem; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.25rem 1.5rem;
  font-weight: 600; font-size: 0.95rem; color: white;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.25rem; font-weight: 300; color: #a78bfa;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body {
  padding: 0 1.5rem 1.25rem; color: #94a3b8; font-size: 0.9rem; line-height: 1.65;
}

/* ---------- Form ---------- */
.form-input {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.625rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); color: white;
  font-size: 0.9rem;
  transition: border-color .2s ease, background .2s ease;
}
.form-input::placeholder { color: #64748b; }
.form-input:focus {
  outline: none; border-color: #8b5cf6;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

/* ---------- Article Modal Prose ---------- */
#article-body h1, #article-body h2, #article-body h3 {
  color: #0f172a; font-weight: 800; letter-spacing: -0.01em;
}
#article-body h1 { font-size: 1.875rem; line-height: 1.2; margin-bottom: 1rem; }
#article-body h2 { font-size: 1.375rem; line-height: 1.3; margin: 2rem 0 0.875rem; }
#article-body h3 { font-size: 1.125rem; line-height: 1.3; margin: 1.5rem 0 0.625rem; }
#article-body p { color: #334155; line-height: 1.75; margin-bottom: 1rem; }
#article-body ul, #article-body ol { margin: 0 0 1.25rem 1.25rem; color: #334155; line-height: 1.75; }
#article-body ul li { list-style: disc; margin-bottom: 0.375rem; }
#article-body ol li { list-style: decimal; margin-bottom: 0.375rem; }
#article-body strong { color: #0f172a; font-weight: 700; }
#article-body blockquote {
  padding: 1rem 1.25rem; border-left: 4px solid #8b5cf6;
  background: #f5f3ff; color: #334155; font-style: italic;
  margin: 1.5rem 0; border-radius: 0 0.5rem 0.5rem 0;
}
#article-body .lead { font-size: 1.05rem; color: #475569; line-height: 1.7; margin-bottom: 1.5rem; }
#article-body .meta {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
  font-size: 0.825rem; color: #64748b;
}

/* ---------- Blog Card Image ---------- */
.blog-card-image {
  background-size: cover; background-position: center;
}
.blog-card-soon {
  opacity: 0.55; pointer-events: none; cursor: default;
}
.blog-card-soon:hover { transform: none; border-color: rgba(255,255,255,0.06); }

/* ---------- Article Prose ---------- */
.article-prose h2 {
  font-size: 1.375rem; font-weight: 800; color: #0f172a;
  margin: 2.5rem 0 0.875rem; letter-spacing: -0.01em;
}
.article-prose h3 {
  font-size: 1.125rem; font-weight: 700; color: #0f172a;
  margin: 1.75rem 0 0.625rem;
}
.article-prose p {
  color: #334155; line-height: 1.8; margin-bottom: 1.125rem;
}
.article-prose .lead {
  font-size: 1.1rem; color: #475569; line-height: 1.75; margin-bottom: 1.75rem;
  border-left: 3px solid #8b5cf6; padding-left: 1.25rem;
}
.article-prose ul, .article-prose ol {
  margin: 0 0 1.25rem 1.25rem; color: #334155; line-height: 1.8;
}
.article-prose ul li { list-style: disc; margin-bottom: 0.375rem; }
.article-prose ol li { list-style: decimal; margin-bottom: 0.375rem; }
.article-prose strong { color: #0f172a; font-weight: 700; }
.article-prose blockquote {
  padding: 1.25rem 1.5rem; border-left: 4px solid #8b5cf6;
  background: #f5f3ff; color: #334155; font-style: italic;
  margin: 2rem 0; border-radius: 0 0.5rem 0.5rem 0;
  line-height: 1.7;
}

/* ---------- Article Figure ---------- */
.article-figure {
  margin: 2rem -1rem; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
}
.article-figure img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption {
  text-align: center; padding: 0.75rem; font-size: 0.75rem; color: #64748b;
  background: #f8fafc;
}

/* ---------- Article CTA Box ---------- */
.article-cta {
  margin: 2.5rem 0; padding: 2rem; border-radius: 1rem;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid #ddd6fe; text-align: center;
}
.article-cta h3 { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; }
.article-cta p { color: #475569; font-size: 0.95rem; margin-bottom: 1.25rem; }

/* ---------- Related Cards (article pages) ---------- */
.related-card {
  display: flex; flex-direction: column; border-radius: 1rem; overflow: hidden;
  background: white; border: 1px solid #e2e8f0;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.related-card:hover {
  transform: translateY(-3px); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.12);
  border-color: #8b5cf6;
}
.related-card-image {
  aspect-ratio: 16 / 9; background-size: cover; background-position: center;
}

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive polish ---------- */
@media (max-width: 768px) {
  .browser-url { font-size: 10px; }
  .feature-matrix { font-size: 0.8rem; }
  .bundle-card-featured { transform: none; }
  .bundle-card-featured:hover { transform: translateY(-3px); }
}
