/* ═══════════════════════════════════════
   IntegrationOS — Design System
   Black & white. Editorial. Typographic.
═══════════════════════════════════════ */

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

:root {
  --black:   #0A0A0A;
  --s1:      #111111;
  --s2:      #191919;
  --s3:      #232323;
  --border:  #222222;
  --text:    #EDECEA;
  --text-2:  #727070;
  --text-3:  #383636;
  --paper:   #F3EFE8;
  --paper-2: #E9E4DA;
  --ink:     #100F0E;
  --ink-2:   #555350;
  --ink-3:   #9E9B97;
}

html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--text); font-family: 'DM Sans', sans-serif; overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── Typography ───────────────────────── */
.serif { font-family: 'DM Serif Display', Georgia, serif; }
.serif-italic { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; }

/* ── Reveal ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Navigation ───────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 72px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo strong { font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-cta {
  font-size: 13.5px;
  font-weight: 500;
  background: var(--text);
  color: var(--black);
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
}
.nav-cta:hover { opacity: 0.88; }

/* Mobile nav */
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 4px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--s1);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  flex-direction: column;
  gap: 16px;
  z-index: 49;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; color: var(--text-2); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
}

/* ── Buttons ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: none;
}
.btn-white {
  background: var(--text);
  color: var(--black);
}
.btn-white:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: #444; background: var(--s2); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid #C5C0B8;
}
.btn-outline-dark:hover { border-color: var(--ink); background: var(--paper-2); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { opacity: 0.88; }

/* ── Section containers ───────────────── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.section-dark { background: var(--black); }
.section-mid { background: var(--s1); }
.section-light { background: var(--paper); color: var(--ink); }
.section-light-2 { background: var(--paper-2); color: var(--ink); }

/* ── Dividers ─────────────────────────── */
.rule { height: 1px; background: var(--border); }
.rule-light { height: 1px; background: #D8D3C9; }

/* ── Form elements ────────────────────── */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.form-label-dark { color: var(--ink-2); }
.input {
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  border-radius: 6px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
.input-dark {
  background: var(--s2);
  border: 1px solid var(--border);
  color: var(--text);
}
.input-dark::placeholder { color: var(--text-3); }
.input-dark:focus { border-color: #555; }
.input-light {
  background: white;
  border: 1px solid #D0CBC0;
  color: var(--ink);
}
.input-light::placeholder { color: var(--ink-3); }
.input-light:focus { border-color: var(--ink); }

/* ── Service rows ─────────────────────── */
.service-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
  cursor: default;
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row .num {
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  color: var(--text-3);
  min-width: 32px;
  padding-top: 2px;
}
.service-row:hover { background: var(--s2); margin: 0 -32px; padding-left: 32px; padding-right: 32px; }

.service-row-light {
  border-top-color: #D8D3C9;
}
.service-row-light:last-child { border-bottom-color: #D8D3C9; }
.service-row-light:hover { background: var(--paper-2); }
.service-row-light .num { color: var(--ink-3); }

/* ── Tag pills ────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.15s, color 0.15s;
}
.tag:hover { border-color: #444; color: var(--text); }
.tag-light {
  color: var(--ink-2);
  border-color: #C8C3B9;
}
.tag-light:hover { border-color: var(--ink); color: var(--ink); }

/* ── Step indicators ──────────────────── */
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  flex-shrink: 0;
}
.step-num-active { background: var(--text); color: var(--black); }
.step-num-idle { background: transparent; border: 1px solid var(--border); color: var(--text-2); }
.step-num-dark { background: transparent; border: 1px solid #C8C3B9; color: var(--ink-2); }

/* ── Check list ───────────────────────── */
.check { display: flex; align-items: flex-start; gap: 12px; }
.check-mark {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.check-mark svg { color: var(--text); }
.check-mark-dark svg { color: var(--ink); }

/* ── Blockquote ───────────────────────── */
.blockquote {
  border-left: 2px solid var(--text-3);
  padding-left: 24px;
}
.blockquote-light { border-left-color: #C8C3B9; }

/* ── Accordion / FAQ ──────────────────── */
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.faq-btn:last-of-type { border-bottom: 1px solid var(--border); }
.faq-icon { transition: transform 0.2s ease; flex-shrink: 0; color: var(--text-2); }
.faq-icon.open { transform: rotate(180deg); }
.faq-answer { display: none; padding-bottom: 20px; }
.faq-answer.open { display: block; }

.faq-btn-light { border-top-color: #D8D3C9; }
.faq-btn-light:last-of-type { border-bottom-color: #D8D3C9; }

/* ── Footer ───────────────────────────── */
.footer { background: var(--black); border-top: 1px solid var(--border); }

/* ── Mobile menu ──────────────────────── */
#mobile-menu { display: none; }
#mobile-menu.open { display: flex; }

@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .service-row:hover { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
}
