/* ==========================================================================
   Xintesys — Design system (2wombats editorial theme)
   ========================================================================== */

/* 0 · Design tokens
   ========================================================================== */
:root {
  --bg:           #FFFFFF;
  --bg-subtle:    #F6F5F2;
  --ink:          #0C0C0B;
  --ink-mid:      #3A3A38;
  --ink-soft:     #747472;
  --ink-faint:    #ADADAB;
  --rule:         #E6E5E2;
  --accent:       #0B3354;
  --accent-hover: #0F4873;
  --accent-warm:  #c4920a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --s1: 0.5rem;  --s2: 1rem;    --s3: 1.5rem;  --s4: 2rem;
  --s5: 3rem;    --s6: 5rem;    --s7: 8rem;

  --max-wide: 1080px;
}

/* 1 · Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-mid);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong  { color: var(--ink); font-weight: 500; }

/* 2 · Sub-header notice bar
   ========================================================================== */
.sub-header-notice {
  border-bottom: 1px solid var(--rule);
  background: var(--bg-subtle);
}
.sub-header-notice-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.45rem var(--s4);
  font-size: 0.775rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.sub-header-notice-inner a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.sub-header-notice-inner a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

/* 2 · Site header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1rem var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand-logo { height: 40px; width: auto; flex-shrink: 0; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.site-nav a:hover              { color: var(--ink); text-decoration: none; }
.site-nav a:hover::after       { width: 100%; }
.site-nav a[aria-current]      { color: var(--accent); }
.site-nav a[aria-current]::after { width: 100%; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

/* 3 · Site footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: var(--s3) var(--s4);
}

.footer-inner { max-width: var(--max-wide); margin: 0 auto; }

.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

.footer-copy a          { color: var(--ink-faint); }
.footer-copy a:hover    { color: var(--accent); text-decoration: underline; }
.footer-sep             { margin: 0 0.5rem; }

/* 4 · Animations
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim    { animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both; }
.anim-d1 { animation-delay: 0.05s; }
.anim-d2 { animation-delay: 0.18s; }
.anim-d3 { animation-delay: 0.32s; }
.anim-d4 { animation-delay: 0.46s; }

/* 5 · Hero
   ========================================================================== */
.hero {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: clamp(4rem,10vw,var(--s7)) var(--s4) var(--s6);
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, #C6C5C1 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 85%);
}

.hero-content { position: relative; z-index: 1; max-width: 860px; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: var(--s3);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--s3);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--ink-soft);
  max-width: 580px;
  line-height: 1.7;
}

/* 6 · Content sections — editorial grid
   ========================================================================== */
.content-section {
  border-top: 1px solid var(--rule);
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--s6) var(--s4);
}

.section-inner {
  display: grid;
  gap: var(--s4);
}

@media (min-width: 700px) {
  .section-inner {
    grid-template-columns: 200px 1fr;
    gap: var(--s6);
    align-items: start;
  }
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.25rem;
}

.section-body > p {
  color: var(--ink-mid);
  margin-bottom: var(--s3);
}
.section-body > p:last-child { margin-bottom: 0; }

/* Topic line art (inline SVG, original illustrations) */
.topic-line-art {
  margin: 0 0 var(--s4);
  max-width: 11.25rem;
  width: 100%;
  color: var(--accent);
  opacity: 0.92;
}
.topic-line-art svg {
  width: 100%;
  height: auto;
  display: block;
}
.topic-line-art path,
.topic-line-art circle,
.topic-line-art line,
.topic-line-art polyline,
.topic-line-art rect,
.topic-line-art ellipse {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topic-line-art .hair {
  stroke-width: 0.9;
  opacity: 0.55;
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: var(--s4) !important;
}

/* In-body headings */
.section-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-top: var(--s5);
  margin-bottom: var(--s2);
}
.section-body h2:first-child { margin-top: 0; }

.section-body h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: var(--s3);
  margin-bottom: var(--s1);
}

/* 7 · Feature list
   ========================================================================== */
.feature-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: var(--s2);
}

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-mid);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* 8 · ERP module cards
   ========================================================================== */
.module-grid {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s3);
}

.module-card {
  border: 1px solid var(--rule);
  padding: var(--s3) var(--s4);
}

.module-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.module-tagline {
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: var(--s3);
  line-height: 1.5;
}

.module-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

@media (max-width: 540px) {
  .module-detail { grid-template-columns: 1fr; }
}

.micro-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s1);
}

/* 9 · Values tags
   ========================================================================== */
.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s2);
}

.value-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  border: 1px solid var(--rule);
  padding: 0.4rem 0.9rem;
}

/* 10 · Two-column grid (mission/vision)
   ========================================================================== */
.two-col {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s3);
}

@media (min-width: 600px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.two-col-item > .col-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.two-col-item > p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  font-style: italic;
  line-height: 1.35;
}

/* 11 · Contact
   ========================================================================== */
.contact-block { margin-bottom: var(--s4); }

.contact-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

.contact-value { font-size: 1rem; color: var(--ink-mid); }
.contact-value a { color: var(--accent); }

/* 12 · CTA link
   ========================================================================== */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-top: var(--s3);
  transition: gap 0.2s ease;
}
.cta-link:hover { gap: 0.7rem; text-decoration: none; }
.cta-link::after { content: '\2192'; }

/* 13 · Jobs notice
   ========================================================================== */
.jobs-notice {
  border: 1px solid var(--rule);
  padding: var(--s3) var(--s4);
  margin-top: var(--s3);
  background: var(--bg-subtle);
}
.jobs-notice p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }

/* 14 · 404 page
   ========================================================================== */
.error-page {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--s7) var(--s4);
  text-align: center;
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--s3);
}
.error-page p { color: var(--ink-soft); margin-bottom: var(--s4); }

.error-page .topic-line-art {
  margin: 0 auto var(--s3);
}

/* 15 · Responsive
   ========================================================================== */
@media (max-width: 700px) {
  .header-inner  { padding: 1rem var(--s3); }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: var(--s3) var(--s4);
    flex-direction: column;
    gap: var(--s3);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
  }
  .site-nav.nav-open { display: flex; }
  .site-nav a        { font-size: 0.9rem; letter-spacing: 0.06em; }
  .nav-toggle        { display: flex; }
  .site-header       { position: relative; }
  .hero              { padding: var(--s5) var(--s3) var(--s4); }
  .content-section   { padding: var(--s4) var(--s3); }
  .site-footer       { padding: var(--s3) var(--s3); }
}

@media (max-width: 480px) {
  .brand-tagline { display: none; }
  .module-card   { padding: var(--s3); }
}
