/* ==========================================================================
   Jilanuo — Computer Systems Design & Integration
   Palette: neutral ink + warm brass + sage (unique, not reused)
   ========================================================================== */

:root {
  --bg: #0F1014;
  --bg-soft: #14151B;
  --surface: #1A1C23;
  --surface-2: #21242D;
  --line: #2B2E38;
  --line-soft: #252833;

  --text: #F2F0EA;
  --text-strong: #FFFFFF;
  --muted: #A8AEB9;
  --muted-2: #7E848F;

  --accent: #E3A94F;
  --accent-strong: #C88C2E;
  --accent-ink: #1A1408;

  --sage: #9DBFA9;
  --sage-strong: #6F9A78;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.home-page {
  background-color: var(--bg);
}

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

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

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

ul,
ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Floating pill navigation (class selector, fixed)
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 26px;
  width: auto;
  max-width: calc(100% - 32px);
  padding: 10px 12px 10px 20px;
  background-color: #16171D;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.site-nav.is-scrolled {
  background-color: #131419;
  border-color: #353946;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-brand:hover {
  color: var(--text-strong);
}

.nav-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #E3A94F, #C88C2E);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 17px;
}

.nav-brand-name {
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--accent-strong);
  color: var(--accent-ink);
}

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

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background-color: var(--accent-strong);
  color: var(--accent-ink);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text);
  border-color: var(--line);
}

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

/* --------------------------------------------------------------------------
   Hero — centered title + floating stat card cluster
   -------------------------------------------------------------------------- */

.hero-section {
  position: relative;
  padding: 176px 24px 0;
  text-align: center;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(227, 169, 79, 0.16), transparent 62%),
    radial-gradient(820px 480px at 82% 24%, rgba(157, 191, 169, 0.10), transparent 60%),
    var(--bg);
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-strong);
  margin-bottom: 24px;
}

.hero-subtitle {
  max-width: 660px;
  margin: 0 auto 34px;
  font-size: 19px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 60px;
}

.hero-stat-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.stat-card {
  flex: 1 1 200px;
  max-width: 240px;
  padding: 26px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
}

.stat-value {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Section primitives
   -------------------------------------------------------------------------- */

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-strong);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
}

.section-head {
  margin-bottom: 44px;
}

/* --------------------------------------------------------------------------
   Statement section
   -------------------------------------------------------------------------- */

.statement-section {
  padding: 96px 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.statement-heading {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-strong);
  max-width: 900px;
  margin-bottom: 34px;
}

.statement-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.statement-lead {
  font-size: 17px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Capabilities — numbered list with big numerals
   -------------------------------------------------------------------------- */

.capabilities-section {
  padding: 96px 0;
  background-color: var(--bg);
}

.capability-list {
  display: grid;
  gap: 22px;
}

.capability-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  padding: 34px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.capability-item:hover {
  border-color: var(--accent-strong);
  transform: translateY(-3px);
}

.capability-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
}

.capability-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
}

.capability-text {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 760px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li {
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--sage);
  font-size: 13px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Approach — alternating two-column rows
   -------------------------------------------------------------------------- */

.approach-section {
  padding: 96px 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.approach-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}

.approach-row:last-child {
  border-bottom: none;
}

.approach-row-reverse .approach-visual {
  order: 2;
}

.approach-row-reverse .approach-copy {
  order: 1;
}

.approach-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 220px;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.approach-phase {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage);
}

.approach-glyph {
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -2px;
}

.approach-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 12px;
}

.approach-text {
  color: var(--muted);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Results — metric grid
   -------------------------------------------------------------------------- */

.results-section {
  padding: 96px 0;
  background-color: var(--bg);
}

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

.metric-card {
  padding: 32px 26px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.metric-value {
  display: block;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact section
   -------------------------------------------------------------------------- */

.contact-section {
  padding: 96px 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-strong);
  margin-bottom: 18px;
}

.contact-text {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-detail-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contact-details a {
  font-size: 17px;
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 14px;
  color: var(--sage);
  min-height: 20px;
}

/* --------------------------------------------------------------------------
   Footer — newsletter band + multi-column
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: #0C0D11;
  border-top: 1px solid var(--line-soft);
}

.newsletter-band {
  padding: 56px 0;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(120deg, rgba(227, 169, 79, 0.08), transparent 55%);
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.newsletter-copy {
  max-width: 520px;
}

.newsletter-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-strong);
  margin-bottom: 10px;
}

.newsletter-text {
  color: var(--muted);
  font-size: 15px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1 1 360px;
  max-width: 440px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.footer-main {
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 15px;
  max-width: 300px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 18px;
}

.footer-links {
  display: grid;
  gap: 11px;
}

.footer-links a {
  color: var(--muted);
  font-size: 15px;
}

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

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--muted-2);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Scroll reveal (safe without JS)
   -------------------------------------------------------------------------- */

.fade-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .fade-up:not(.visible) {
  opacity: 0;
  transform: translateY(26px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .statement-cols {
    grid-template-columns: 1fr;
  }

  .approach-row,
  .approach-row-reverse {
    grid-template-columns: 1fr;
  }

  .approach-row-reverse .approach-visual {
    order: 1;
  }

  .approach-row-reverse .approach-copy {
    order: 2;
  }

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

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

@media (max-width: 720px) {
  .site-nav {
    gap: 0;
    width: calc(100% - 32px);
    justify-content: space-between;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background-color: #16171D;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 16px;
  }

  .nav-links a:hover {
    background-color: var(--surface-2);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-section {
    padding-top: 140px;
  }

  .capability-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
