:root {
  --bg: #0a1628;
  --bg-alt: #0d1b2e;
  --surface: #0d1b2e;
  --border: #1c2d45;
  --border-soft: #24344c;
  --text: #f1f4f8;
  --text-bright: #f8fafc;
  --text-muted: #a9b4c4;
  --text-dim: #8294aa;
  --text-dimmer: #6b7a91;
  --accent: #4fc3f7;
  --gradient-start: #0b5fa8;
  --gradient-end: #2f8fe0;
  --radius: 3px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-muted);
  line-height: 1.6;
}

h1, h2, h3, .brand-name {
  font-family: "Fraunces", Georgia, serif;
}

.eyebrow, .step-label, .product-label {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; font-weight: 600; color: var(--text-bright); }
p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 15px;
  background: var(--accent);
  clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%);
  flex-shrink: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-bright);
}

.nav { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: #ffffff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--border-soft);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-small { padding: 10px 20px; font-size: 13px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  padding: 15px 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  padding: 140px 0 120px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

#hero-threads.hero-effect {
  position: absolute !important;
  inset: 0;
  height: auto;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero > .hero-actions {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  z-index: 1;
}

.hero-actions-inner {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
}


/* Sections */
.section { padding: 100px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }

.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.section-head .eyebrow, .section-head h2 { margin-bottom: 0; }
.section-head h2 { margin-top: 12px; }

.section-lead {
  max-width: 340px;
  font-size: 15px;
  margin: 0;
}

/* Discipline list (editorial rows, numbered like a formal document) */
.discipline-list {
  border-top: 1px solid var(--border);
}

.discipline-row {
  display: grid;
  grid-template-columns: 36px 1fr 1.7fr;
  gap: 32px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.discipline-mark {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: var(--text-dimmer);
  align-self: center;
}

.discipline-row h3 { font-size: 18px; margin: 0; }
.discipline-row p { font-size: 14.5px; margin: 0; }

/* Carousel */
.carousel { position: relative; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.carousel-btn:hover { border-color: var(--accent); background: var(--bg-alt); }

.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.carousel-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.carousel-image {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  overflow: hidden;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-label { font-size: 14px; color: var(--accent); }

.carousel-body h3 { font-size: 19px; margin: 0; }
.carousel-body p { font-size: 14px; margin: 0; }

.product-link {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step {
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.step-active { border-top-color: var(--accent); }

.step-label {
  display: block;
  font-size: 14.5px;
  color: var(--text-dimmer);
  margin-bottom: 12px;
}

.step p { font-size: 14.5px; margin-bottom: 0; }

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-inner p { font-size: 15px; }

.stats {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat {
  background: var(--surface);
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label { font-style: italic; font-family: "Fraunces", Georgia, serif; color: var(--text-dim); font-size: 14px; }
.stat-value { font-size: 15.5px; font-weight: 600; color: var(--text-bright); }

/* CTA */
.section-cta {
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.cta-inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.cta-inner .eyebrow { margin-bottom: 8px; }
.cta-inner .btn { margin-top: 10px; }

/* Footer */
.site-footer { padding: 32px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dimmer);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img { border-radius: 3px; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .discipline-row { grid-template-columns: 24px 1fr; }
  .discipline-row p { grid-column: 2; }
  .carousel-card { flex-basis: 280px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 20px;
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; padding-top: 16px; }

  .steps { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  .carousel-prev, .carousel-next { display: none; }
}

/* The policies Payfast asks for, and the company's registered name, under the footer */
.footer-legal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer-legal p { margin: 6px 0; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--text); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 8px; }
