/* ========================================
   JD Labs Ltd — Style Sheet
   Edit colours, fonts, and spacing below.
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* — Palette (edit here) — */
  --bg:        #0e0f11;
  --bg-card:   #16171b;
  --bg-subtle: #1c1d22;
  --border:    #25262c;
  --text:      #d4d4d8;
  --text-muted:#8b8b96;
  --heading:   #f0f0f3;
  --accent:    #7c8aff;
  --accent-dim:#5c67c7;
  --glow:      rgba(124, 138, 255, .08);

  /* — Typography — */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;

  /* — Sizing — */
  --max-w: 720px;
  --nav-h: 64px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Links ---------- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}
a:hover,
a:focus-visible {
  color: var(--heading);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(14, 15, 17, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav .logo {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--heading);
  text-transform: uppercase;
}

.site-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.site-nav .nav-links a {
  font-size: .85rem;
  color: var(--text-muted);
  letter-spacing: .02em;
  transition: color .2s;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a:focus-visible {
  color: var(--heading);
}

/* ---------- Main content ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem clamp(1.25rem, 4vw, 2.5rem) 5rem;
}

/* ---------- Hero (homepage) ---------- */
.hero {
  padding: 4rem 0 3rem;
  text-align: left;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ---------- Sections ---------- */
section {
  margin-top: 3.5rem;
}

section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

section p,
section li {
  color: var(--text);
  font-size: .95rem;
}

section p + p {
  margin-top: .75rem;
}

/* ---------- Card / Box ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin-top: 1.5rem;
  box-shadow: 0 0 40px var(--glow);
}

.card p {
  margin-top: .5rem;
}

/* ---------- Page titles (inner pages) ---------- */
.page-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
  margin-bottom: .5rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 2.5rem;
}

/* ---------- Policy / Legal content ---------- */
.legal h2 {
  font-size: 1rem;
  margin-top: 2.5rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  font-size: .9rem;
  line-height: 1.75;
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: .5rem;
  margin-bottom: .5rem;
}

.legal li {
  margin-top: .35rem;
}

/* ---------- Lists (support page) ---------- */
ul.clean {
  list-style: none;
  padding: 0;
}

ul.clean li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: .5rem;
}

ul.clean li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
}

.site-footer .footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: .75rem;
}

.site-footer .footer-links a {
  color: var(--text-muted);
  font-size: .8rem;
}

.site-footer .footer-links a:hover {
  color: var(--heading);
}

/* ---------- Decorative gradient line ---------- */
.gradient-rule {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  margin: 3rem 0;
  opacity: .4;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .site-nav {
    padding: 0 1rem;
  }

  .site-nav .nav-links {
    gap: 1.25rem;
  }

  .site-nav .nav-links a {
    font-size: .8rem;
  }

  main {
    padding: 2.5rem 1rem 3.5rem;
  }

  .hero {
    padding: 2rem 0 2rem;
  }

  .card {
    padding: 1.25rem 1.25rem;
  }

  section {
    margin-top: 2.5rem;
  }
}
