:root {
  --bg-body: #0d1117;
  --bg-card: #161b22;
  --bg-blue: #0066ff;
  --bg-purple: #7b2cf5;
  --text-default: #c9d1d9;
  --text-silver: #8b949e;
  --text-blue: #58a6ff;
  --text-white: #ffffff;
  --pale-pink: #ffb3c6;
  --pale-blue: #a8d8ff;
  --pale-yellow: #ffd666;
  --footer-dark: #010409;
  --border-color: #333942;
  --radius: 0.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--bg-body);
  color: var(--text-default);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  line-height: 1.6;
}

a { color: var(--text-blue); text-decoration: none; }
a:hover { color: var(--text-white); }

/* ── Utilities ── */
.bg-blue    { background-color: var(--bg-blue) !important; }
.bg-purple  { background-color: var(--bg-purple) !important; }
.text-silver { color: var(--text-silver) !important; }
.text-blue  { color: var(--text-blue) !important; }
.text-plain { color: var(--text-default) !important; }
.box-bg     { background-color: var(--bg-card); }
.pale-pink  { color: var(--pale-pink); }
.pale-blue  { color: var(--pale-blue); }
.pale-yellow{ color: var(--pale-yellow); }
.p-2r       { padding: 2rem; }
.mb-2r      { margin-bottom: 2rem; }

.number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  display: block;
}

/* ── Buttons ── */
.btn-primary-custom {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--bg-blue);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.btn-primary-custom:hover { opacity: .88; color: #fff; transform: translateY(-1px); }

.btn-outline-custom {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border: 2px solid var(--bg-blue);
  color: var(--text-blue);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline-custom:hover { background: var(--bg-blue); color: #fff; }

/* ── Navbar ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,17,23,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
.navbar-brand svg { display: block; }
.navbar-toggler {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-default);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-link {
  color: var(--text-default) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link.active {
  background: rgba(88,166,255,.1);
  color: var(--text-blue) !important;
}
.offcanvas {
  background: #0d1117;
  border-right: 1px solid var(--border-color);
}
.offcanvas-header { border-bottom: 1px solid var(--border-color); }
.offcanvas-title { color: var(--text-white); font-weight: 700; }
.btn-close-white { filter: invert(1); }

/* ── Hero ── */
#hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url('../photo/hero-bg.webp') center center / cover no-repeat;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,17,23,.9) 40%, rgba(0,102,255,.25) 100%);
}
#hero .container { position: relative; z-index: 1; }
#hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.15;
}
.hero-badge {
  display: inline-block;
  background: var(--bg-purple);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Section titles ── */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-blue);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
}

/* ── Fact buckets ── */
#fact-buckets { background: var(--bg-card); }
#fact-buckets .fact-item span.label-top { color: var(--text-silver); font-size: .9rem; }
#fact-buckets .fact-item span.unit     { color: var(--text-silver); font-size: .9rem; }

/* ── Cards ── */
.course-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  height: 100%;
  transition: border-color .2s, transform .2s;
}
.course-card:hover { border-color: var(--bg-blue); transform: translateY(-3px); }
.course-card .icon-wrap {
  width: 52px; height: 52px;
  background: rgba(0,102,255,.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--text-blue);
  font-size: 1.4rem;
}

/* ── Pricing ── */
#pricing { background: linear-gradient(180deg, var(--bg-body) 0%, rgba(22,27,34,.5) 100%); }
.price-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border-color);
  height: 100%;
  position: relative;
  transition: border-color .2s;
}
.price-card.featured {
  border-color: var(--bg-blue);
  box-shadow: 0 0 40px rgba(0,102,255,.2);
}
.price-card .badge-featured {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-blue);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem 1.2rem;
  border-radius: 50px;
  white-space: nowrap;
}
.price-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1;
}
.price-amount sup { font-size: 1.5rem; vertical-align: top; margin-top: .4rem; }
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; }
.price-card ul li { padding: .4rem 0; color: var(--text-default); font-size: .95rem; }
.price-card ul li i { width: 20px; color: #4ade80; margin-right: .5rem; }
.price-card ul li.disabled { color: var(--text-silver); text-decoration: line-through; }
.price-card ul li.disabled i { color: var(--text-silver); }

/* ── Why section ── */
#why-klarttext .feature-img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  height: 100%;
}
.testimonial-card .stars { color: #ffd666; margin-bottom: .5rem; font-size: .9rem; }
.testimonial-card p { font-size: .95rem; color: var(--text-default); line-height: 1.6; font-style: italic; }
.testimonial-card .author { font-weight: 700; color: var(--text-white); margin-top: .75rem; font-size: .9rem; font-style: normal; }
.testimonial-card .author-role { color: var(--text-silver); font-size: .82rem; }

/* ── CTA banner ── */
#cta-section {
  background: linear-gradient(135deg, var(--bg-blue) 0%, var(--bg-purple) 100%);
  border-radius: var(--radius);
  margin: 0 1rem;
}

/* ── Footer ── */
footer {
  background: var(--footer-dark);
  border-top: 1px solid var(--border-color);
}
.footer-list p.footer-heading { color: var(--text-white); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; margin-bottom: .75rem; }
.footer-list ul { list-style: none; padding: 0; margin: 0; }
.footer-list ul li a { color: var(--text-silver); font-size: .9rem; transition: color .15s; }
.footer-list ul li a:hover { color: var(--text-white); }
.footer-list ul li { margin-bottom: .4rem; }
.footer-info { color: var(--text-silver); font-size: .82rem; }
.footer-info a { color: var(--text-silver); }
.footer-info a:hover { color: var(--text-white); }
.footer-divider { border-color: var(--border-color); margin: 2rem 0 1.5rem; }

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a1f27;
  border-top: 1px solid var(--border-color);
  z-index: 9999;
  padding: 1rem 1.5rem;
  display: none;
}
#cookie-banner.show { display: flex; }
#cookie-banner .cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
#cookie-banner p { margin: 0; font-size: .88rem; color: var(--text-default); }
.cookie-buttons { display: flex; gap: .5rem; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--bg-blue);
  color: #fff;
  border: none;
  padding: .5rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: .85rem;
  transition: opacity .2s;
}
.btn-cookie-accept:hover { opacity: .85; }
.btn-cookie-decline {
  background: transparent;
  color: var(--text-silver);
  border: 1px solid var(--border-color);
  padding: .5rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: .85rem;
  transition: color .2s, border-color .2s;
}
.btn-cookie-decline:hover { color: var(--text-white); border-color: var(--text-silver); }

/* ── Scroll-to-top ── */
#scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--bg-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  font-size: 1.1rem;
  transition: opacity .2s, transform .2s;
}
#scroll-top.visible { display: flex; }
#scroll-top:hover { opacity: .85; transform: translateY(-2px); }

/* ── Page header (inner pages) ── */
.page-header {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, rgba(0,102,255,.08) 0%, rgba(123,44,245,.08) 100%);
  border-bottom: 1px solid var(--border-color);
}
.page-header h1 { color: var(--text-white); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.page-header .breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item a { color: var(--text-silver); }
.breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before { color: var(--text-silver); }

/* ── Contact form ── */
.form-control, .form-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  border-radius: var(--radius);
  padding: .7rem 1rem;
}
.form-control:focus, .form-select:focus {
  background: var(--bg-card);
  border-color: var(--bg-blue);
  color: var(--text-white);
  box-shadow: 0 0 0 3px rgba(0,102,255,.2);
}
.form-control::placeholder { color: var(--text-silver); }
.form-label { color: var(--text-default); font-weight: 500; margin-bottom: .35rem; }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ── About section ── */
.about-img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
}
.about-stat { text-align: center; }
.about-stat .number { font-size: 2.2rem; }

/* ── Prose (legal pages) ── */
.prose { color: var(--text-default); line-height: 1.75; }
.prose h2 { color: var(--text-white); font-size: 1.4rem; font-weight: 700; margin-top: 2rem; margin-bottom: .75rem; }
.prose h3 { color: var(--text-white); font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: .5rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose a { color: var(--text-blue); }
.prose strong { color: var(--text-white); }

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
  #hero { min-height: 70vh; text-align: center; }
  #cta-section { margin: 0; border-radius: 0; }
  .price-card.featured { margin-top: 1.5rem; }
}
