/* ==========================================================================
   IT Buddy — Design tokens
   Palette drawn from the finalized logo mark (indigo field, cyan→emerald
   gradient ring around a data-cube/neural-node monogram).
   ========================================================================== */

:root {
  --ink: #1f2937;
  --indigo: #1f2937;
  --indigo-deep: #141b23;
  --paper: #fdfbf9;
  --paper-dim: #ffe3c7;
  --line: #ece5db;
  --line-dark: #32404f;
  --slate: #5b6472;
  --slate-soft: #8b93a0;
  --cyan: #ff7a00;
  --emerald: #ffa64d;
  --gradient: linear-gradient(120deg, var(--cyan), var(--emerald));

  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --max-w: 1180px;
  --radius: 10px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
section { padding-block: clamp(2.5rem, 5.5vw, 4.5rem); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}
.btn-primary:hover { box-shadow: 0 8px 20px -8px rgba(11,12,26,0.45); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--slate-soft); }
.btn-on-dark {
  background: #fff;
  color: var(--indigo-deep);
}
.btn-on-dark:hover { box-shadow: 0 8px 24px -10px rgba(0,0,0,0.5); }
.btn-ghost-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost-on-dark:hover { border-color: rgba(255,255,255,0.55); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247,248,251,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-block: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.015em;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  padding: 3px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.1rem; }
.brand-it { font-weight: 600; }
.brand-buddy { font-weight: 400; }
.brand-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.01em;
  margin-top: 1px;
}
@media (max-width: 560px) {
  .brand-tagline { display: none; }
}
.brand-mark svg { width: 20px; height: 20px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a { text-decoration: none; color: var(--slate); }
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 0.85rem 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-dim);
  font-weight: 500;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--indigo);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 3.25rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
}
.hero-eyebrow {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
}
.hero-ctas {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero-figure { position: relative; }
.hero-figure svg { width: 100%; height: auto; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.trust-bar .wrap {
  padding-block: 1.6rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 760px) {
  .trust-bar .wrap { grid-template-columns: repeat(3, 1fr); }
}
.trust-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.trust-item strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.trust-item span { color: var(--slate); font-size: 0.9rem; }

/* ---------- Section headings ---------- */
.section-head {
  max-width: 640px;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.2rem);
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 600;
  margin-top: 0.8rem;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 0.9rem;
  color: var(--slate);
  font-size: 1.02rem;
}

/* ---------- Problem / solution ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 900px) {
  .split-2 { grid-template-columns: repeat(2, 1fr); }
}
.pain-list { display: grid; gap: 1.1rem; }
.pain-item {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.pain-item:first-child { border-top: none; }
.pain-item .mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-dim);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 0.15rem;
}
.pain-item h3 { font-size: 1rem; font-weight: 600; }
.pain-item p { margin-top: 0.3rem; color: var(--slate); font-size: 0.96rem; }

.solution-card {
  background: var(--indigo);
  color: #fff;
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.solution-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.solution-card p { color: rgba(255,255,255,0.78); }
.solution-list { margin-top: 1.5rem; display: grid; gap: 0.9rem; }
.solution-list li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.96rem;
  color: rgba(255,255,255,0.9);
}
.solution-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 0.55rem;
  background: var(--cyan);
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--paper-dim);
  display: grid;
  place-items: center;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.12rem; font-weight: 600; }
.service-card p { color: var(--slate); font-size: 0.97rem; }
.service-card .learn {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

/* ---------- Why choose ---------- */
.why-band { background: var(--paper-dim); }
.why-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 760px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
.why-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.why-item h3 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}
.why-item p { margin-top: 0.55rem; color: var(--slate); font-size: 0.97rem; padding-left: 1.5rem; }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  gap: 0;
}
.process-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--cyan);
}
.process-item h3 { font-size: 1.02rem; font-weight: 600; }
.process-item p { margin-top: 0.35rem; color: var(--slate); font-size: 0.95rem; max-width: 62ch; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.75rem; max-width: 760px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.2rem 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding-block: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-weight: 400;
  color: var(--slate-soft);
  font-size: 1.3rem;
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--slate); padding-bottom: 1.1rem; font-size: 0.97rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--indigo);
  color: #fff;
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  margin-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.final-cta h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 600;
  max-width: 24ch;
  margin-inline: auto;
}
.final-cta p {
  margin-top: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 50ch;
  margin-inline: auto;
}
.final-cta .hero-ctas { justify-content: center; margin-top: 1.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo-deep);
  color: rgba(255,255,255,0.7);
  padding-block: clamp(3rem, 6vw, 4rem) 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; }
}
.footer-brand .brand { color: #fff; margin-bottom: 0.9rem; }
.footer-brand p { max-width: 32ch; font-size: 0.92rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------- Modal (Privacy / Terms) ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15,17,20,0.55);
  padding: clamp(1rem, 4vw, 2.5rem);
  align-items: center;
  justify-content: center;
}
.modal.is-open { display: flex; }
.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4);
}
.modal-head {
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.modal-close {
  background: var(--cyan);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  flex: none;
}
.modal-close:hover { background: var(--emerald); }
.modal-body { padding: 1.5rem; color: var(--slate); font-size: 0.95rem; }
.modal-body h3 { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-top: 1.3rem; margin-bottom: 0.4rem; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 0.5rem; }
.modal-body a { color: var(--cyan); font-weight: 600; text-decoration: none; }

/* ---------- Reveal on scroll (single orchestrated pass) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
