/* =========================================================================
   Software Hub Inc — design system
   Dark AI-technology theme. Tokens → base → layout → components → sections.
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #07080b;
  --bg-2: #0b0d13;
  --surface: #0f1219;
  --surface-2: #141824;
  --surface-3: #1a1f2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #eef0f6;
  --text-muted: #9aa3b6;
  --text-dim: #6b7386;

  /* Accents */
  --accent: #3f86f7;          /* intelligence / primary */
  --accent-bright: #6ea8ff;
  --teal: #35e0c5;            /* data */
  --violet: #b98bff;          /* automation */
  --amber: #ffb15c;

  --accent-glow: rgba(63, 134, 247, 0.35);
  --teal-glow: rgba(53, 224, 197, 0.28);

  /* Gradients */
  --grad-brand: linear-gradient(120deg, #3f86f7 0%, #35e0c5 100%);
  --grad-soft: linear-gradient(180deg, rgba(63, 134, 247, 0.14), rgba(53, 224, 197, 0.04));

  /* Type */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 60px -12px var(--accent-glow);

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #06080f; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.3vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.45rem); }
p { color: var(--text-muted); }
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem); color: var(--text); }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--space-4); font-size: 1.08rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-bright);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(63, 134, 247, 0.07);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px 2px var(--accent-glow);
}

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 0.9rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn--primary { background: var(--grad-brand); color: #05070d; box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--accent-glow); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--accent); background: rgba(63, 134, 247, 0.1); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.textlink {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-head); font-weight: 600; color: var(--accent-bright);
}
.textlink svg { transition: transform 0.2s var(--ease); }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  position: relative;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.card--hover:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: var(--space-4);
  background: rgba(63, 134, 247, 0.12); color: var(--accent-bright);
  border: 1px solid var(--line-strong);
}
.card h3 { margin-bottom: var(--space-2); }
.card p { font-size: 0.97rem; }

.pill {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.7rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 11, 0.7);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled { background: rgba(7, 8, 11, 0.9); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); }
.brand__mark { color: var(--accent); display: grid; place-items: center; }
.brand__text { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand__text span { color: var(--text-muted); font-weight: 600; margin-left: 0.3rem; font-size: 0.62em; text-transform: uppercase; letter-spacing: 0.08em; vertical-align: 0.15em; }

.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 0.35rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 0.85rem; border-radius: 10px;
  font-size: 0.95rem; color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-caret { transition: transform 0.2s; }
.nav-item--has-children { position: relative; }
.nav-item--has-children[data-open="true"] .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 340px; padding: 0.6rem;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-item--has-children[data-open="true"] .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown a { display: block; padding: 0.7rem 0.8rem; border-radius: 10px; transition: background 0.15s; }
.nav-dropdown a:hover { background: rgba(63, 134, 247, 0.1); }
.nav-dropdown strong { display: block; font-family: var(--font-head); font-size: 0.92rem; color: var(--text); }
.nav-dropdown span { display: block; font-size: 0.82rem; color: var(--text-dim); margin-top: 2px; }
.nav-dropdown__lead { border-bottom: 1px solid var(--line); margin-bottom: 0.3rem; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text);
  margin-inline: auto; transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-menu {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.5rem;
    max-height: calc(100dvh - 70px); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 0.85rem 0.6rem; font-size: 1rem; width: 100%; justify-content: space-between; }
  .nav-link--parent { width: 100%; }
  .nav-dropdown {
    position: static; transform: none; width: 100%; opacity: 1; visibility: visible;
    box-shadow: none; background: transparent; border: 0; border-left: 1px solid var(--line);
    border-radius: 0; margin: 0.2rem 0 0.4rem 0.6rem; padding: 0.2rem 0;
    display: none;
  }
  .nav-item--has-children[data-open="true"] .nav-dropdown { display: block; }
  .nav-item--cta { margin-top: 0.6rem; }
  .nav-item--cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 9vw, 7rem); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(63, 134, 247, 0.18), transparent 70%),
    radial-gradient(50% 50% at 100% 20%, rgba(53, 224, 197, 0.12), transparent 70%);
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: 0.4;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 80%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin: var(--space-5) 0; }
.hero .lead { max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: var(--space-6); }
.hero__trust { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.85rem; color: var(--text-dim); }
.hero__trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* ---------- Hero AI visualization ---------- */
.ai-viz { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 1 / 1; }
.ai-viz svg { width: 100%; height: 100%; overflow: visible; }
.ai-viz .viz-link { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.ai-viz .viz-pulse { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 6 220; opacity: 0.9; animation: dash 3.4s linear infinite; }
.ai-viz .viz-pulse.p2 { stroke: var(--teal); animation-delay: -1.1s; }
.ai-viz .viz-pulse.p3 { stroke: var(--violet); animation-delay: -2.2s; }
@keyframes dash { to { stroke-dashoffset: -226; } }
.ai-viz .node { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
.ai-viz .node-core { fill: url(#coreGrad); stroke: var(--accent); animation: corepulse 4s ease-in-out infinite; }
@keyframes corepulse { 0%, 100% { filter: drop-shadow(0 0 6px var(--accent-glow)); } 50% { filter: drop-shadow(0 0 22px var(--accent-glow)); } }
.ai-viz .node-label { fill: var(--text); font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.ai-viz .node-sub { fill: var(--text-dim); font-family: var(--font-body); font-size: 10px; }
.ai-viz .ring { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; animation: spin 40s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-viz__caption { text-align: center; margin-top: var(--space-4); font-size: 0.82rem; color: var(--text-dim); }

/* Flow strip (Ask -> Understand -> Analyze -> Act) */
.flowstrip { display: flex; flex-wrap: wrap; gap: 0.7rem 1.7rem; align-items: center; }
.flowstrip li {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 0.5rem 0.95rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--font-head); font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}
.flowstrip li span { color: var(--accent-bright); }
.flowstrip li:not(:first-child)::before {
  content: "\2192"; position: absolute; left: -1.15rem; top: 50%;
  transform: translate(-50%, -50%); color: var(--text-dim); font-size: 0.9rem;
}

/* ---------- Value / pipeline section ---------- */
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; position: relative; }
@media (max-width: 800px) { .pipeline { grid-template-columns: 1fr; } }
.pipeline__stage { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pipeline__stage h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.pipeline__stage .num { font-family: var(--font-head); color: var(--text-dim); font-size: 0.8rem; letter-spacing: 0.1em; }

/* ---------- Service showcase ---------- */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(2rem, 5vw, 3.5rem);
}
.service-block:not(:last-child) { border-bottom: 1px solid var(--line); }
.service-block--flip .service-block__media { order: -1; }
@media (max-width: 860px) {
  .service-block, .service-block--flip { grid-template-columns: 1fr; }
  .service-block__media, .service-block--flip .service-block__media { order: 0; }
}
.service-block__index {
  font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.2em;
  color: var(--accent-bright); text-transform: uppercase;
}
.service-block h3 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.9rem); margin: 0.6rem 0 0.3rem; }
.service-block__tag { color: var(--teal); font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.service-block p { margin-top: var(--space-4); }
.service-block ul.ticks { margin-top: var(--space-4); display: grid; gap: 0.5rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; color: var(--text-muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px;
  border-radius: 3px; background: var(--grad-brand);
}
.service-block__cta { margin-top: var(--space-5); }

/* ---------- Mock UI (chat / data / workflow) ---------- */
.mock {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  box-shadow: var(--shadow); overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); display: block; }
.mock__bar span { margin-left: 0.5rem; font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-head); }
.mock__body { padding: 1.1rem; display: grid; gap: 0.8rem; }

.bubble { max-width: 85%; padding: 0.7rem 0.95rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; }
.bubble--user { margin-left: auto; background: rgba(63, 134, 247, 0.16); border: 1px solid var(--line-strong); color: var(--text); border-bottom-right-radius: 4px; }
.bubble--ai { background: var(--surface); border: 1px solid var(--line); color: var(--text-muted); border-bottom-left-radius: 4px; }
.bubble--ai strong { color: var(--text); }
.bubble__src { margin-top: 0.5rem; font-size: 0.74rem; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 0.3rem; }
.bubble__src b { font-weight: 500; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 6px; padding: 0.1rem 0.4rem; }

.data-row { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 0.86rem; }
.data-row b { font-family: var(--font-head); color: var(--text); }
.bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 120px; padding: 0.5rem 0.2rem 0; }
.bars i { flex: 1; background: var(--grad-brand); border-radius: 6px 6px 0 0; opacity: 0.85; display: block; min-width: 8px; }

.wf { display: grid; gap: 0.55rem; }
.wf__step { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 0.86rem; }
.wf__step .dot { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(63, 134, 247, 0.14); color: var(--accent-bright); font-size: 0.72rem; font-family: var(--font-head); flex-shrink: 0; }
.wf__arrow { text-align: center; color: var(--text-dim); font-size: 0.8rem; line-height: 1; }

/* ---------- Connection diagram (AI + Web) ---------- */
.connect-list { display: grid; gap: 0.9rem; }
.connect-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); font-family: var(--font-head); font-size: 0.92rem;
}
.connect-row b { color: var(--text); font-weight: 600; }
.connect-row .to { color: var(--text-dim); }
.connect-row .hl { color: var(--accent-bright); }

/* ---------- Process timeline ---------- */
.timeline { display: grid; gap: 0; counter-reset: step; }
.timeline__item { display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.timeline__item:last-child { border-bottom: 0; }
.timeline__num { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--accent-bright); border: 1px solid var(--line-strong); border-radius: 12px; height: 48px; display: grid; place-items: center; }
.timeline__item h3 { margin-bottom: 0.3rem; }

/* ---------- Use cases ---------- */
.usecase { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color 0.2s, transform 0.2s; }
.usecase:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.usecase h3 { font-size: 1.05rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.usecase .kicker { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); font-family: var(--font-head); }
.usecase p { font-size: 0.92rem; margin-top: 0.3rem; }
.usecase .maps-to { margin-top: 0.8rem; font-size: 0.82rem; color: var(--accent-bright); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0.25rem; text-align: left; font-family: var(--font-head);
  font-weight: 600; font-size: 1.05rem; color: var(--text);
}
.faq__q .icon { flex-shrink: 0; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 8px; display: grid; place-items: center; transition: transform 0.25s, background 0.25s; }
.faq__item[open] .faq__q .icon { transform: rotate(45deg); background: rgba(63, 134, 247, 0.14); }
.faq__a { padding: 0 0.25rem 1.4rem; }
.faq__a p { font-size: 0.97rem; }
.faq__a p + p { margin-top: 0.7rem; }
details.faq__item summary { list-style: none; cursor: pointer; }
details.faq__item summary::-webkit-details-marker { display: none; }

/* ---------- Trust / responsible AI ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 700px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { display: grid; grid-template-columns: 34px 1fr; gap: 0.9rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust-item svg { color: var(--teal); }
.trust-item h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.trust-item p { font-size: 0.9rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem); background: var(--grad-soft); position: relative; overflow: hidden;
}
.cta-banner h2 { max-width: 20ch; margin-inline: auto; }
.cta-banner p { max-width: 52ch; margin: var(--space-4) auto 0; }
.cta-banner__actions { margin-top: var(--space-6); display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: clamp(3rem, 8vw, 6rem); }
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line);
}
.footer-cta h2 { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.8rem); max-width: 22ch; }
.footer-cta p { margin-top: 0.6rem; max-width: 46ch; font-size: 0.95rem; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 0.9rem; margin-top: 0.8rem; max-width: 44ch; }
.footer-contact a { color: var(--accent-bright); }
.footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: 0.8rem; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
.footer-note { max-width: 60ch; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(50% 60% at 20% 0%, rgba(63, 134, 247, 0.16), transparent 70%); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 { margin: var(--space-4) 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.82rem; color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--text); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-family: var(--font-head); font-weight: 600; color: var(--text); }
.field label .opt { color: var(--text-dim); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text);
  font: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63, 134, 247, 0.18); }
.field--error input, .field--error textarea, .field--error select { border-color: #ff6b6b; }
.field__err { color: #ff9b9b; font-size: 0.8rem; }
.choice-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
@media (max-width: 560px) { .choice-group { grid-template-columns: 1fr; } }
.choice {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  font-size: 0.9rem; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.choice:hover { border-color: var(--accent); }
.choice input { accent-color: var(--accent); width: auto; }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(63, 134, 247, 0.1); }
.form__note { font-size: 0.82rem; color: var(--text-dim); }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line-strong); font-size: 0.92rem; }
.alert--ok { background: rgba(53, 224, 197, 0.1); border-color: rgba(53, 224, 197, 0.4); color: #b8f5ea; }
.alert--err { background: rgba(255, 107, 107, 0.08); border-color: rgba(255, 107, 107, 0.4); color: #ffc9c9; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-aside .card { margin-bottom: 1rem; }
.contact-aside h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.contact-aside p { font-size: 0.9rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Misc helpers ---------- */
.stack-sm > * + * { margin-top: 0.6rem; }
.mt-6 { margin-top: var(--space-6); }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(2rem, 5vw, 4rem); }
.two-col-prose { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .two-col-prose { grid-template-columns: 1fr; } }
.prose p + p { margin-top: 1rem; }
.prose h3 { margin: 1.8rem 0 0.6rem; }
.prose ul.ticks { margin-top: 1rem; display: grid; gap: 0.5rem; }
