/*
=========================================================
JCX360 MASTER STYLESHEET
Secure. Scale. Sustain.
=========================================================
*/


/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {

  /* JCX360 brand colours */

  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --ai-indigo: #4F46E5;
  --greenops: #16A34A;
  --amber: #F59E0B;
  --accent: #22D3EE;

  /* Backgrounds */

  --bg: #0B1220;
  --bg-alt: #0F1A30;
  --surface: #0F172A;
  --card: #111827;

  /* Text */

  --text: #E5E7EB;
  --text-strong: #F8FAFC;
  --muted: #9CA3AF;
  --subtle: #64748B;

  /* Borders */

  --border: #1F2933;
  --border-light: #334155;

  /* Layout */

  --container-width: 1100px;

  /* Radius */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Effects */

  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   2. RESET / GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background:
    radial-gradient(
      1200px 600px at 10% -10%,
      #13224A 0%,
      var(--bg) 40%
    ),
    var(--bg);

  color: var(--text);

  line-height: 1.7;

  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

strong {
  color: var(--text-strong);
}

::selection {
  background: rgba(37, 99, 235, 0.35);
  color: var(--text-strong);
}


/* =========================================================
   3. LINKS
   ========================================================= */

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: #60A5FA;
  text-decoration: underline;
}


/* =========================================================
   4. GLOBAL CONTAINER
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container-width);

  margin: 0 auto;

  padding: 0 24px;
}


/* =========================================================
   5. HEADER / NAVIGATION
   ========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;

  border-bottom: 1px solid var(--border);

  background: rgba(11, 18, 32, 0.90);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  min-height: 72px;

  display: flex;

  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;

  align-items: center;

  gap: 12px;

  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 50px;

  display: block;

  flex-shrink: 0;
}

.brand h1 {
  margin: 0;

  color: var(--text-strong);

  font-size: 16px;
  line-height: 1.3;

  white-space: nowrap;
}

.brand span {
  display: block;

  margin-top: 2px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 400;

  white-space: nowrap;
}

.nav-links {
  display: flex;

  align-items: center;

  flex-shrink: 0;
}

.nav-links a {
  margin-left: 20px;

  color: var(--text);

  font-size: 14px;

  opacity: 0.85;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);

  opacity: 1;

  text-decoration: none;
}


/* =========================================================
   6. PAGE HEADER
   ========================================================= */

.page-header {
  padding: 40px 0 26px;

  border-bottom: 1px solid var(--border);
}

.page-header h2 {
  margin: 0 0 14px;

  color: var(--text-strong);

  font-size: 34px;

  line-height: 1.2;

  letter-spacing: -0.4px;
}

.page-header p {
  max-width: 850px;

  margin: 0;

  color: var(--muted);

  font-size: 16px;

  line-height: 1.65;
}


/* =========================================================
   7. BADGES
   ========================================================= */

.badge,
.badge1 {
  display: inline-block;

  padding: 8px 16px;

  margin-bottom: 18px;

  border-radius: var(--radius-pill);

  background: rgba(37, 99, 235, 0.14);

  color: var(--primary);

  font-size: 13px;

  font-weight: 600;

  line-height: 1.4;
}

.chevron {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 7px 14px;

  background: rgba(37, 99, 235, 0.10);

  border: 1px solid rgba(37, 99, 235, 0.22);

  border-radius: var(--radius-pill);

  color: var(--primary);

  font-size: 12px;

  font-weight: 600;
}


/* =========================================================
   8. GENERAL SECTIONS
   ========================================================= */

.section {
  margin: 40px 0;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 8px;

  color: var(--text-strong);

  font-size: 28px;

  line-height: 1.25;
}

.section-header p {
  margin: 0;

  color: var(--muted);
}


/* =========================================================
   9. CARDS
   ========================================================= */

.card {
  width: 100%;

  padding: 30px 34px;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-card);
}

.card h3,
.card h4 {
  margin-top: 0;

  color: var(--text-strong);
}

.card p {
  color: var(--muted);
}

.card-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;
}


/* =========================================================
   10. INTRODUCTION
   ========================================================= */

.intro {
  width: 100%;

  padding: 28px 0 12px;
}

.intro p {
  margin: 14px 0;

  color: var(--muted);
}

.intro strong {
  color: var(--text-strong);
}


/* =========================================================
   11. HERO
   ========================================================= */

.hero {
  padding: 44px 0;
}

.hero h1 {
  margin: 0 0 16px;

  color: var(--text-strong);

  font-size: clamp(36px, 5vw, 52px);

  line-height: 1.1;

  letter-spacing: -0.8px;
}

.hero p {
  max-width: 900px;

  margin: 0 0 22px;

  color: var(--muted);

  font-size: 17px;

  line-height: 1.65;
}

.hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;
}


/* =========================================================
   12. ARTICLE HEADER
   ========================================================= */

.post-header {
  width: 100%;

  padding-bottom: 26px;

  border-bottom: 1px solid var(--border);
}

.post-header h1,
.post-header h2 {
  margin: 0 0 20px;

  color: var(--text-strong);

  /*
     Aligned closer to the JCX360 landing page.
     Deliberately reduced from the previous 64px.
  */

  font-size: clamp(32px, 4vw, 48px);

  line-height: 1.12;

  letter-spacing: -0.8px;
}

.post-subtitle {
  max-width: 900px;

  margin: 0 0 18px;

  color: var(--muted);

  font-size: 16px;

  line-height: 1.65;
}

.post-header .post-meta {
  margin: 0;

  color: var(--muted);

  font-size: 13px;
}


/* =========================================================
   13. ARTICLE CONTENT
   ========================================================= */

/*
   Article content deliberately uses the available
   card width.

   Do not introduce a narrow 800px / 900px content
   restriction here.
*/

.post-content {
  width: 100%;

  max-width: none;

  margin: 0;

  padding: 24px 0 0;
}


/* Main article headings */

.post-content h2 {
  margin: 0 0 20px;

  color: var(--text-strong);

  font-size: 28px;

  line-height: 1.25;

  letter-spacing: -0.3px;
}

.post-content h3 {
  margin-top: 32px;

  margin-bottom: 12px;

  color: var(--text-strong);

  font-size: 21px;

  line-height: 1.3;

  letter-spacing: -0.1px;
}

.post-content > h3:first-child {
  margin-top: 0;
}


/* Article paragraphs */

.post-content p {
  margin: 0 0 16px;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.7;
}


/* Article lists */

.post-content ul,
.post-content ol {
  margin: 14px 0 18px;

  padding-left: 22px;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.7;
}

.post-content li {
  margin-bottom: 6px;
}


/* =========================================================
   14. GENERIC ARTICLE
   ========================================================= */

.article {
  width: 100%;

  max-width: none;

  margin: 0;

  padding: 24px 0 0;
}

.article h2 {
  margin-top: 32px;

  margin-bottom: 14px;

  color: var(--text-strong);

  font-size: 24px;

  line-height: 1.3;
}

.article h3 {
  margin-top: 32px;

  margin-bottom: 14px;

  color: var(--text-strong);

  font-size: 21px;

  line-height: 1.3;
}

.article p {
  margin: 0 0 16px;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.7;
}

.article ul,
.article ol {
  margin: 14px 0 18px;

  padding-left: 22px;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.7;
}

.article li {
  margin-bottom: 6px;
}


/* =========================================================
   15. ARTICLE CALLOUT
   ========================================================= */

.callout {
  margin: 24px 0;

  padding: 20px 22px;

  background: rgba(17, 24, 39, 0.60);

  border-left: 3px solid var(--primary);

  border-radius: var(--radius-md);

  color: var(--muted);
}

.callout p {
  margin-bottom: 10px;
}

.callout p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   16. BLOCKQUOTE
   ========================================================= */

blockquote {
  margin: 24px 0;

  padding: 18px 22px;

  border-left: 3px solid var(--primary);

  background: rgba(15, 23, 42, 0.55);

  color: var(--muted);
}


/* =========================================================
   17. EXPERIENCE
   ========================================================= */

.experience {
  padding: 18px 0;
}

.experience-item {
  padding: 30px 0;

  border-top: 1px solid var(--border);
}

.experience-item:first-child {
  border-top: none;
}

.experience-meta {
  margin-bottom: 7px;

  color: var(--primary);

  font-size: 13px;

  font-weight: 600;
}

.experience-item h3 {
  margin: 0 0 4px;

  color: var(--text-strong);

  font-size: 21px;

  line-height: 1.3;
}

.experience-role {
  margin-bottom: 16px;

  color: var(--muted);

  font-size: 14px;
}

.experience-item p {
  margin: 12px 0;

  color: var(--muted);
}

.experience-item ul {
  margin: 14px 0;

  padding-left: 22px;

  color: var(--muted);
}

.experience-item li {
  margin-bottom: 7px;
}


/* =========================================================
   18. PROJECT SECTION
   ========================================================= */

.project-section {
  padding: 30px 0;

  border-top: 1px solid var(--border);
}

.project-section:first-child {
  border-top: none;
}

.project-title h3 {
  margin: 0 0 4px;

  color: var(--text-strong);

  font-size: 21px;

  line-height: 1.3;
}

.project-role {
  color: var(--muted);

  font-size: 14px;
}

.project-description {
  max-width: 1000px;

  margin: 16px 0;

  color: var(--muted);
}


/* =========================================================
   19. CLOSING SECTION
   ========================================================= */

.closing {
  margin: 26px 0 10px;

  padding: 26px;

  background: rgba(17, 24, 39, 0.55);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);
}

.closing h3 {
  margin-top: 0;

  color: var(--text-strong);

  font-size: 20px;
}

.closing p {
  margin-bottom: 10px;

  color: var(--muted);
}

.three-s {
  color: var(--primary);

  font-weight: 600;
}


/* =========================================================
   20. TIMELINE
   ========================================================= */

.timeline {
  position: relative;

  margin: 28px 0;

  padding-left: 30px;
}

.timeline::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;
  left: 8px;

  width: 1px;

  background: var(--border-light);
}

.timeline-item {
  position: relative;

  margin-bottom: 28px;
}

.timeline-item::before {
  content: "";

  position: absolute;

  left: -26px;

  top: 7px;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: var(--primary);
}

.timeline-item h3 {
  margin: 0 0 4px;

  color: var(--text-strong);

  font-size: 19px;
}

.timeline-item p {
  margin: 0;

  color: var(--muted);
}


/* =========================================================
   21. TABLES
   ========================================================= */

table {
  width: 100%;

  margin: 22px 0;

  border-collapse: collapse;

  font-size: 14px;
}

th,
td {
  padding: 11px 13px;

  border: 1px solid var(--border);

  text-align: left;
}

th {
  background: var(--surface);

  color: var(--text-strong);

  font-weight: 600;
}

td {
  color: var(--muted);
}


/* =========================================================
   22. LISTS
   ========================================================= */

ul,
ol {
  color: var(--muted);
}

li {
  margin-bottom: 7px;
}


/* =========================================================
   23. CODE
   ========================================================= */

code {
  padding: 2px 6px;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 5px;

  color: var(--text);
}

pre {
  overflow-x: auto;

  margin: 22px 0;

  padding: 18px;

  background: #070D18;

  border: 1px solid var(--border);

  border-radius: var(--radius-md);
}

pre code {
  padding: 0;

  background: transparent;

  border: none;
}


/* =========================================================
   24. EXTERNAL LINKS
   ========================================================= */

.external-link::after {
  content: " ↗";

  color: var(--muted);

  font-size: 11px;
}


/* =========================================================
   25. PAGE / POST NAVIGATION
   ========================================================= */

.page-nav,
.post-footer-nav {
  width: 100%;

  margin: 26px 0 0;

  padding: 22px 0;

  border-top: 1px solid var(--border);

  display: flex;

  align-items: center;

  justify-content: space-between;

  font-size: 13px;
}

.post-footer-nav a {
  color: var(--primary);
}

.post-footer-nav a:hover {
  text-decoration: underline;
}


/* =========================================================
   26. FOOTER
   ========================================================= */

footer {
  margin-top: 40px;

  padding: 36px 0;

  border-top: 1px solid var(--border);

  text-align: center;

  color: var(--muted);

  font-size: 13px;
}

.footer-note {
  display: block;

  margin-top: 10px;

  line-height: 1.6;
}


/* =========================================================
   27. BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 9px 17px;

  border: 1px solid var(--primary);

  border-radius: var(--radius-sm);

  background: var(--primary);

  color: #FFFFFF;

  font-size: 14px;

  font-weight: 600;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);

  border-color: var(--primary-dark);

  color: #FFFFFF;

  text-decoration: none;

  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;

  border-color: var(--border-light);

  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface);

  border-color: var(--primary);

  color: var(--text);
}


/* =========================================================
   28. HIGHLIGHTS
   ========================================================= */

.highlight {
  color: var(--primary);

  font-weight: 600;
}

.ai-highlight {
  color: var(--ai-indigo);

  font-weight: 600;
}

.greenops-highlight {
  color: var(--greenops);

  font-weight: 600;
}

.warning {
  color: var(--amber);

  font-weight: 600;
}


/* =========================================================
   29. LANDING PAGE GRID
   ========================================================= */

.feature-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;

  margin: 36px 0;
}

.feature-card {
  padding: 22px;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);
}

.feature-card h3 {
  margin: 0 0 8px;

  color: var(--text-strong);

  font-size: 18px;
}

.feature-card p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;
}


/* =========================================================
   30. SERIES
   ========================================================= */

.series-card {
  padding: 26px;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);
}

.series-card h3 {
  margin: 0 0 8px;

  color: var(--text-strong);

  font-size: 21px;
}

.series-card p {
  margin: 0 0 14px;

  color: var(--muted);
}

.series-nav {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin: 24px 0;
}

.series-nav a {
  padding: 7px 13px;

  border: 1px solid var(--border);

  border-radius: var(--radius-pill);

  color: var(--muted);

  font-size: 13px;
}

.series-nav a:hover {
  border-color: var(--primary);

  color: var(--primary);

  text-decoration: none;
}


/* =========================================================
   31. CONTACT
   ========================================================= */

.contact {
  width: 100%;

  margin: 0 auto;

  padding: 36px 0;
}

.contact h2 {
  margin-top: 0;

  color: var(--text-strong);
}

.contact p {
  color: var(--muted);
}


/* =========================================================
   32. TABLET
   ========================================================= */

@media (max-width: 900px) {

  .feature-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   33. MOBILE
   ========================================================= */

@media (max-width: 700px) {

  /* Container */

  .container {
    padding: 0 12px;
  }


  /* Header */

  .nav {
    min-height: auto;

    padding: 14px 0;

    align-items: flex-start;

    flex-direction: column;

    gap: 12px;
  }

  .brand {
    width: 100%;

    gap: 10px;
  }

  .brand-logo {
    height: 44px;

    flex-shrink: 0;
  }

  .brand h1 {
    font-size: 15px;
  }

  .brand span {
    font-size: 11px;

    line-height: 1.35;
  }

  /*
     Navigation stays inside the viewport.
  */

  .nav-links {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    flex-wrap: wrap;

    gap: 8px 18px;
  }

  .nav-links a {
    margin-left: 0;

    font-size: 14px;

    white-space: nowrap;
  }


  /* Hero */

  .hero {
    padding: 32px 0;
  }


  /* Card */

  .card {
    padding: 22px 20px;
  }


  /* Page header */

  .page-header {
    padding: 32px 0 22px;
  }

  .page-header h2 {
    font-size: 30px;
  }

  .page-header p {
    font-size: 15px;
  }


  /* Article header */

  .post-header {
    padding-bottom: 24px;
  }

  .post-header h1,
  .post-header h2 {
    margin-bottom: 16px;

    font-size: 34px;

    line-height: 1.12;

    letter-spacing: -0.6px;
  }

  .post-subtitle {
    margin-bottom: 16px;

    font-size: 16px;

    line-height: 1.6;
  }


  /* Article body */

  .post-content {
    width: 100%;

    max-width: none;

    padding-top: 20px;
  }

  .post-content > h3:first-child {
    margin-top: 0;
  }

  .post-content h2 {
    font-size: 25px;
  }

  .post-content h3 {
    margin-top: 28px;

    margin-bottom: 12px;

    font-size: 20px;
  }

  .post-content p {
    margin-bottom: 14px;

    font-size: 15px;

    line-height: 1.7;
  }

  .post-content ul,
  .post-content ol {
    font-size: 15px;

    line-height: 1.7;
  }


  /* Generic article */

  .article {
    width: 100%;

    max-width: none;

    padding-top: 20px;
  }

  .article h2,
  .article h3 {
    margin-top: 28px;

    font-size: 20px;
  }

  .article p {
    font-size: 15px;

    line-height: 1.7;
  }


  /* Grids */

  .card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }


  /* Experience */

  .experience-item {
    padding: 26px 0;
  }

  .experience-item h3,
  .project-title h3 {
    font-size: 20px;
  }


  /* Navigation footer */

  .page-nav,
  .post-footer-nav {
    flex-direction: column;

    align-items: flex-start;

    gap: 12px;
  }


  /* Footer */

  footer {
    margin-top: 36px;

    padding: 30px 0;
  }

}


/* =========================================================
   34. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .container {
    padding: 0 8px;
  }


  /* Header */

  .nav {
    padding: 12px 0;

    gap: 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    height: 40px;
  }

  .brand h1 {
    font-size: 14px;
  }

  .brand span {
    font-size: 10px;
  }

  .nav-links {
    gap: 8px 16px;
  }

  .nav-links a {
    font-size: 13px;
  }


  /* Card */

  .card {
    padding: 20px 16px;
  }


  /* Badge */

  .badge,
  .badge1 {
    max-width: 100%;

    padding: 6px 10px;

    font-size: 11px;
  }


  /* Article header */

  .post-header h1,
  .post-header h2 {
    font-size: 32px;

    line-height: 1.12;

    letter-spacing: -0.6px;
  }

  .post-subtitle {
    font-size: 15px;
  }


  /* Article */

  .post-content {
    padding-top: 20px;
  }

  .post-content h2 {
    font-size: 24px;
  }

  .post-content h3 {
    font-size: 19px;
  }

  .post-content p {
    font-size: 15px;
  }


  /* Footer */

  .footer-note {
    font-size: 12px;

    line-height: 1.55;
  }

}


/* =========================================================
   35. ACCESSIBILITY
   ========================================================= */

:focus-visible {
  outline: 2px solid var(--primary);

  outline-offset: 3px;
}


/* =========================================================
   END OF JCX360 MASTER STYLESHEET
   ========================================================= */