/*
 * Conzept Sparx — Governance-First AI Advisory
 * Dark, editorial, intellectually authoritative design system.
 * Vanilla CSS only. No framework dependencies.
 */

/* ---------------------------------------------------------------------------
   GOOGLE FONTS
   --------------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600&family=Jost:wght@300;400;500;600&display=swap");

/* ---------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   --------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #262a48 /*#0a0b0c*/;
  --surface: #181a2c /*#1415168*/;
  --surface-raised: #1e1f20;
  --border: #2a2b2c;
  --border-light: #222324;

  /* Text */
  --text: #f0ede6;
  --text-muted: #9a9590;
  --text-faint: #5a5855;

  /* Accent & phase colors */
  --accent: #c8963e;
  --accent-hover: #d4a44e;
  --accent-dim: rgba(200, 150, 62, 0.12);
  --govern: #3d7a55;
  --build: #2d5fa0;
  --run: #c8963e;

  /* Layout */
  --max-width: 1200px;
  --section-pad: 100px;
  --section-pad-mobile: 60px;
  --radius: 4px;
  --transition: 0.2s ease;
}

/* ---------------------------------------------------------------------------
   GLOBAL RESET & BASE
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

::selection {
  background: var(--accent);
  color: #0a0b0c;
}

/* ---------------------------------------------------------------------------
   TYPOGRAPHY SCALE
   --------------------------------------------------------------------------- */
.display {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
}

h3 {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

p,
.body {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.lead {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.65;
}

/* ---------------------------------------------------------------------------
   LAYOUT UTILITIES
   --------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background-color: var(--surface);
}

.section--darker {
  background-color: #070808;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* ---------------------------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.nav--scrolled {
  background: #181a2c; /*rgba(10, 11, 12, 0.95);*/
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.nav__logo {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__links a.active {
  border-bottom: 1px solid var(--accent);
}

.nav__mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

/* ---------------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------------- */
.btn {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #0a0b0c;
  border: none;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text-faint);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--text {
  background: none;
  border: none;
  color: var(--accent);
  padding: 0;
}

.btn--text:hover {
  color: var(--accent-hover);
}

/* Arrow icon shift on hover for .btn--text (use inline SVG or ::after) */
.btn--text::after {
  content: "→";
  margin-left: 8px;
  transition: transform var(--transition);
}

.btn--text:hover::after {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------------------
   HERO SECTION
   --------------------------------------------------------------------------- */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
}

.hero__eyebrow {
  margin-bottom: 24px;
}

.hero__title {
  margin-bottom: 28px;
  max-width: 800px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__trust {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

/* ---------------------------------------------------------------------------
   TRUST BAR
   --------------------------------------------------------------------------- */
.trust {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust__label {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.trust__items {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust__item {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.trust__separator {
  color: var(--border);
  user-select: none;
}

/* ---------------------------------------------------------------------------
   PRODUCT / SERVICE CARDS (Phase badges & cards)
   --------------------------------------------------------------------------- */
.phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.phase-badge {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
}

.phase-badge--govern {
  background: rgba(61, 122, 85, 0.15);
  color: var(--govern);
  border: 1px solid rgba(61, 122, 85, 0.3);
}

.phase-badge--build {
  background: rgba(45, 95, 160, 0.15);
  color: var(--build);
  border: 1px solid rgba(45, 95, 160, 0.3);
}

.phase-badge--run {
  background: rgba(200, 150, 62, 0.15);
  color: var(--run);
  border: 1px solid rgba(200, 150, 62, 0.3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
}

.card__code {
  margin-bottom: 12px;
}

.card__title {
  color: var(--text);
  margin-bottom: 12px;
}

.card__desc {
  margin-bottom: 24px;
}

.card__meta {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.card__meta-item {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
}

.card__expand-btn {
  margin-top: 16px;
}

.card__detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.card__detail.is-expanded {
  max-height: 500px; /* Adjust as needed for content */
}

/* ---------------------------------------------------------------------------
   SECTOR TILES
   --------------------------------------------------------------------------- */
.sector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.sector-tile {
  background: var(--surface);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.sector-tile::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(
    to top right,
    transparent,
    rgba(200, 150, 62, 0.04)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.sector-tile:hover::before {
  opacity: 1;
}

.sector-tile:hover {
  border-color: var(--accent);
}

.sector-tile__title {
  margin-bottom: 12px;
  color: var(--text);
  text-decoration: none;
}

.sector-tile__desc {
  margin-bottom: 0;
  color: var(--text);
  text-decoration: none;
}

.sector-tile a {
  color: var(--text);
  text-decoration: none;
}

.sector-tile a:hover {
  color: var(--accent); /* amber on hover */
}

/* ---------------------------------------------------------------------------
   TESTIMONIAL
   --------------------------------------------------------------------------- */
.testimonial {
  padding: 64px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.testimonial__quote {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 28px;
}

.testimonial__attribution {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   CTA CLOSE SECTIONS
   --------------------------------------------------------------------------- */
.cta-close {
  background: #181a2c; /*#070808;*/
  padding: 120px 0;
  text-align: center;
}

.cta-close__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 44px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.cta-close__sub {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   JOURNEY / PATH VISUALIZATION
   --------------------------------------------------------------------------- */
.journey {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.journey__step {
  display: flex;
  align-items: center;
  gap: 0;
}

.journey__node {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 20px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 2px;
  white-space: nowrap;
}

.journey__arrow {
  color: var(--text-faint);
  padding: 0 8px;
  font-size: 18px;
}

/* ---------------------------------------------------------------------------
   PHILOSOPHY QUOTES
   --------------------------------------------------------------------------- */
.philosophy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.philosophy__item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.philosophy__item:first-child {
  border-top: 1px solid var(--border);
}

.philosophy__text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 32px;
  color: var(--text);
}

.philosophy__text em {
  color: var(--accent);
  font-style: normal;
}

/* ---------------------------------------------------------------------------
   FORMS
   --------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.form-input {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-family: "Jost", sans-serif;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.form-note {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 12px;
}

/* ---------------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------------- */
.footer {
  background: #181a2c; /*#070808;*/
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer__brand {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}

.footer__tagline {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__heading {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__frameworks {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 2;
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-faint);
}

.footer__motto {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-style: italic;
}

/* ---------------------------------------------------------------------------
   MOBILE MENU OVERLAY
   --------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.mobile-menu__links a {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 40px;
  color: var(--text);
  text-decoration: none;
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .btn--primary {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 18px;
}

/* ---------------------------------------------------------------------------
   UTILITY CLASSES
   --------------------------------------------------------------------------- */
.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mt-4 {
  margin-top: 32px;
}
.mt-5 {
  margin-top: 48px;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 8px;
}
.mb-2 {
  margin-bottom: 16px;
}
.mb-3 {
  margin-bottom: 24px;
}
.mb-4 {
  margin-bottom: 32px;
}
.mb-5 {
  margin-bottom: 48px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   ANIMATIONS (respect prefers-reduced-motion)
   --------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initial state: hidden until .is-visible is added by JS (scroll-in) */
.animate-in {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .animate-in.is-visible {
    animation: fadeInUp 0.6s ease forwards;
  }

  .animate-in.is-visible[data-delay="1"] {
    animation-delay: 0.1s;
  }
  .animate-in.is-visible[data-delay="2"] {
    animation-delay: 0.2s;
  }
  .animate-in.is-visible[data-delay="3"] {
    animation-delay: 0.3s;
  }
  .animate-in.is-visible[data-delay="4"] {
    animation-delay: 0.4s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-in.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   RESPONSIVE: TABLET (768px – 1199px)
   --------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .display {
    font-size: 62px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

  .grid-2 {
    gap: 48px;
  }

  .grid-3 {
    gap: 32px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .sector-tile {
    padding: 40px 32px;
  }

  .testimonial__quote {
    font-size: 22px;
  }

  .philosophy__text {
    font-size: 28px;
  }

  .cta-close__title {
    font-size: 38px;
  }
}

/* ---------------------------------------------------------------------------
   RESPONSIVE: MOBILE (below 768px)
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding: var(--section-pad-mobile) 0;
  }

  .display {
    font-size: 44px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav__inner {
    padding-left: 16px;
    padding-right: 12px;
  }

  .nav__logo {
    font-size: 16px;
  }

  .nav__logo img {
    height: 36px;
    margin-right: 7px;
  }

  .nav__links {
    display: none;
  }

  .nav__inner .btn {
    padding: 10px 14px;
    margin-left: 8px;
    font-size: 12px;
  }

  .nav__mobile-toggle {
    display: flex;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  main > .section:first-child {
    padding-top: 120px;
  }

  .hero__title {
    margin-bottom: 20px;
  }

  .hero__sub {
    margin-bottom: 32px;
  }

  .hero__ctas {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__ctas .btn {
    text-align: center;
    justify-content: center;
  }

  .hero__trust {
    margin-top: 48px;
    padding-top: 24px;
  }

  .trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .phase-header {
    margin-bottom: 32px;
  }

  .card {
    padding: 24px;
  }

  .card__meta {
    flex-wrap: wrap;
    gap: 16px;
  }

  .sector-grid {
    grid-template-columns: 1fr;
  }

  .sector-tile {
    padding: 32px 24px;
  }

  .testimonial {
    padding: 40px 24px;
  }

  .testimonial__quote {
    font-size: 20px;
  }

  .cta-close {
    padding: 80px 0;
  }

  .cta-close__title {
    font-size: 32px;
  }

  .cta-close__sub {
    margin-bottom: 32px;
  }

  /* Journey: wrap, arrows become down on mobile */
  .journey {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .journey__step {
    flex-direction: column;
    align-items: flex-start;
  }

  .journey__arrow {
    padding: 4px 0;
    transform: rotate(90deg);
  }

  .philosophy__item {
    padding: 24px 0;
  }

  .philosophy__text {
    font-size: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .mobile-menu__links a {
    font-size: 32px;
  }
}
