/* ============================================================
   ARIBITRIX — Monochromatic Professional Design System
   ============================================================ */

/* ── RESET & VARIABLES ────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
}

:root {
  /* Colors */
  --bg-primary: #FFFFFF;
  --bg-alt: #F7F7F5;
  --text-primary: #0D0D0D;
  --text-secondary: #3B3B3B;
  --accent: #1A1A1A;
  --divider: #E5E5E0;
  --black: #0D0D0D;
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1160px;
  --section-py: 100px;
  --gap: 48px;

  /* Transitions */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY & UTILITIES ───────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: 52px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 38px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.3; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-md { max-width: 960px; }
.container-sm { max-width: 860px; }

section { padding: var(--section-py) 0; }
.bg-alt { background-color: var(--bg-alt); }
.text-center { text-align: center; }

.gap-48 { 
  display: grid;
  gap: var(--gap);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--black);
  transition: background-color 0.2s var(--ease);
  cursor: pointer;
}
.btn-primary:hover { background-color: #2b2b2b; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  color: var(--black);
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--black);
  transition: background-color 0.2s var(--ease);
  cursor: pointer;
}
.btn-ghost:hover { background-color: var(--bg-alt); }

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.section-title { margin-bottom: 24px; }
.section-body { color: var(--text-secondary); margin-bottom: 48px; }
.center-block { margin-left: auto; margin-right: auto; max-width: 680px; }

/* ── NAVIGATION ──────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--divider);
  z-index: 1000;
  transition: background-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
  background-color: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--divider);
  border-bottom-color: transparent;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo { height: 56px; width: auto; max-width: 240px; object-fit: contain; }

.nav-center {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.6; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.ham-bar {
  width: 24px; height: 2px;
  background-color: var(--black);
  transition: 0.3s;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero { padding: 180px 0 100px; }
.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap);
  align-items: center;
}

.hero-headline { font-size: 56px; margin-bottom: 24px; }
.hero-sub { color: var(--text-secondary); max-width: 480px; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; }

.illustration-split {
  display: flex;
  align-items: stretch;
  background: var(--bg-primary);
  border-radius: 4px;
}

.ill-box {
  flex: 1;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 24px;
}

.ill-before { background-color: var(--bg-primary); }
.ill-after { background-color: var(--bg-alt); }

.ill-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ill-list { display: flex; flex-direction: column; gap: 16px; }
.ill-item { display: flex; flex-direction: column; gap: 8px; }

.ill-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.auto-tag { color: var(--black); font-weight: 500; }

.ill-bar-track {
  width: 100%;
  height: 6px;
  background: var(--divider);
  border-radius: 3px;
  overflow: hidden;
}

.ill-bar { height: 100%; background: var(--black); border-radius: 3px; }
.ill-bar-90 { width: 90%; }
.ill-bar-15 { width: 15%; }

.ill-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  position: relative;
}
.ill-center::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--divider);
}
.ill-center-text {
  background: var(--bg-primary);
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--black);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  z-index: 1;
}


/* ── PROBLEM ─────────────────────────────────────────────── */
.stat-row {
  display: flex;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  margin-top: 48px;
}

.stat-item {
  flex: 1;
  padding: 40px 24px;
  border-right: 1px solid var(--divider);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 16px;
}

.stat-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ── HOW IT WORKS ────────────────────────────────────────── */
.diagram {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin: 64px 0;
}

.diag-stage {
  flex: 1;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
}

.diag-before { background: #F0F0F0; }
.diag-after { background: #FAFAFA; }

.diag-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}

.svg-wrapper { width: 160px; height: 160px; margin: 0 auto 24px; }
.pie-svg { width: 100%; height: 100%; transform: rotate(0); }
.pie-arc { transition: stroke-dasharray 1.2s var(--ease); }

.pie-legend {
  text-align: left;
  display: inline-block;
  margin-bottom: 24px;
}

.legend-item {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.legend-box { width: 12px; height: 12px; border-radius: 2px; border: 1px solid var(--divider); }
.lb-dark { background: var(--black); border: none; }
.lb-light { background: var(--bg-alt); }
.lb-gray { background: var(--black); border: none; }
.lb-white { background: var(--divider); border: none; }

.diag-caption {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--black);
}

.diag-center {
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.diag-line-vertical {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  border-left: 1px dashed var(--divider);
}

.diag-box {
  background: var(--bg-primary);
  border: 1px solid var(--black);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 16px;
  z-index: 1;
  margin-bottom: 16px;
}

.diag-center-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  background: var(--bg-primary);
  padding: 4px 0;
  z-index: 1;
  margin-bottom: 16px;
}

.diag-arrow {
  font-size: 24px;
  color: var(--black);
  animation: pulse-arrow 2s infinite ease-in-out;
  background: var(--bg-primary);
  z-index: 1;
}

@keyframes pulse-arrow {
  0%, 100% { transform: scale(1) translateX(0); }
  50% { transform: scale(1.2) translateX(4px); }
}

.how-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

.how-col { padding-right: 24px; }
.how-subheading { font-size: 22px; margin-bottom: 16px; }
.how-copy { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; }
.how-result { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--black); }

.how-closing { text-align: center; margin-top: 48px; }
.italic-closing { font-family: var(--font-display); font-size: 24px; font-style: italic; color: var(--black); }


/* ── SERVICES ────────────────────────────────────────────── */
.services-grid { grid-template-columns: 1fr 1fr; }

.service-card {
  background: var(--bg-primary);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.card-heading { margin-bottom: 8px; }
.card-descriptor {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.card-divider { border: none; border-top: 1px solid var(--divider); margin-bottom: 24px; }

.card-list { flex: 1; margin-bottom: 32px; }
.card-list li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  line-height: 2;
}
.card-list li::before {
  content: '— ';
  color: var(--text-secondary);
}

.service-note {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  text-align: center;
  color: var(--black);
  margin-top: 48px;
  padding: 0 16px;
}


/* ── WHO THIS IS FOR ─────────────────────────────────────── */
.who-grid { grid-template-columns: repeat(3, 1fr); }

.who-card {
  background: var(--bg-primary);
  border: 1px solid var(--divider);
  padding: 32px;
}

.who-heading { margin-bottom: 16px; font-size: 22px; }
.who-body { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }


/* ── RESULTS ─────────────────────────────────────────────── */
.results-grid { grid-template-columns: 1fr 1fr; gap: 0; }
.res-item {
  border: 1px solid var(--divider);
  padding: 48px 24px;
  margin: -1px 0 0 -1px; /* collapse borders */
}
.results-sub { font-size: 16px; margin: 48px auto 0; max-width: 640px; }


/* ── TESTIMONIALS ────────────────────────────────────────── */
.test-grid { grid-template-columns: repeat(3, 1fr); }
.test-card {
  background: var(--bg-primary);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.quote {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--black);
  flex: 1;
}

.test-attr {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 24px;
  margin-bottom: 16px;
}

.test-stars { display: flex; gap: 4px; }
.star { width: 12px; height: 12px; background: var(--black); }


/* ── WHY ARIBITRIX ───────────────────────────────────────── */
.why-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.why-col { display: flex; flex-direction: column; gap: 40px; }

.why-item { display: flex; gap: 24px; }
.why-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--text-secondary);
  line-height: 1;
}
.why-head { font-family: var(--font-display); font-size: 22px; color: var(--black); margin-bottom: 8px; }
.why-body { font-size: 15px; color: var(--text-secondary); }


/* ── FAQ ─────────────────────────────────────────────────── */
.faq-accordion { border-top: 1px solid var(--divider); margin-top: 48px; }

.faq-item { border-bottom: 1px solid var(--divider); }

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon { font-size: 20px; font-weight: 400; transition: transform 0.3s; }
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-content { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.faq-content:not([hidden]) { max-height: 400px; display: block; }
.faq-content[hidden] { display: none; }

.faq-content p { font-size: 15px; color: var(--text-secondary); padding-bottom: 24px; }


/* ── CONTACT ─────────────────────────────────────────────── */
.contact { background: var(--black); color: var(--white); padding: 120px 0; }
.contact .contact-title { font-size: 44px; color: var(--white); margin-bottom: 24px; }
.contact-sub {
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto 48px;
}

.contact-card {
  background: var(--bg-primary);
  border-radius: 4px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--black);
  text-align: left;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--divider);
  border-radius: 4px;
  outline: none;
  background: var(--bg-primary);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--black); }

.form-submit { width: 100%; margin-top: 8px; }

.contact-footer { font-size: 12px; color: rgba(255,255,255,0.45); text-align: center; }


/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--bg-alt); border-top: 1px solid var(--divider); }
.footer-container { display: flex; justify-content: space-between; align-items: center; padding: 48px 24px; }

.footer-logo { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.footer-center { font-size: 14px; color: var(--text-secondary); }
.footer-right { display: flex; gap: 32px; }
.footer-right a { font-size: 13px; color: var(--text-secondary); transition: color 0.2s; }
.footer-right a:hover { color: var(--black); }

.footer-social-row { padding: 0 0 48px; }
.social-link { display: inline-block; font-size: 13px; color: var(--text-secondary); margin: 0 10px; transition: color 0.2s; }
.social-link:hover { color: var(--black); }

.footer-bottom { border-top: 1px solid var(--divider); padding: 16px 0; font-size: 13px; color: var(--text-secondary); }


/* ── ANIMATIONS ──────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }


/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-center, .nav-right { display: none; }
  .hamburger { display: flex; }
  
  .hero-container { grid-template-columns: 1fr; }
  .hero-headline { font-size: 44px; }
  .illustration-split { flex-direction: column; }
  .ill-center::before { width: 100%; height: 1px; top: 50%; left: 0; }
  .ill-center-text { writing-mode: horizontal-tb; transform: none; }
  .ill-center { width: 100%; height: 32px; }

  .stat-row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--divider); }
  .stat-item:last-child { border-bottom: none; }

  .diagram { flex-direction: column; gap: 24px; }
  .diag-center { width: 100%; height: 80px; flex-direction: row; gap: 16px; }
  .diag-line-vertical { display: none; }
  .diag-box, .diag-center-sub { margin-bottom: 0; }

  .how-columns { grid-template-columns: 1fr; gap: 48px; }
  .how-col { padding-right: 0; }

  .services-grid, .who-grid, .why-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .test-grid { grid-template-columns: 1fr; }

  .footer-container { flex-direction: column; gap: 24px; text-align: center; }

  /* Mobile Nav Overlay */
  .nav-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 90px; left: 0; right: 0; 
    height: calc(100vh - 90px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 32px 24px;
    align-items: center;
    gap: 32px;
    z-index: 9999;
    overflow-y: auto;
  }
  .nav-open .nav-link { font-size: 18px; }
}

@media (max-width: 600px) {
  .results-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .contact .contact-title { font-size: 36px; }
}
