/* ============================================================
   Syntrix Labs — main stylesheet
   Brand palette derived from the logo:
     - deep near-black background
     - blue → purple gradient accents
     - white primary text on dark surfaces
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #07070c;
  --bg-elev: #0d0d18;
  --bg-card: #11111e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #eef0fb;
  --text-muted: #a8acc4;
  --text-dim: #6f7390;

  /* Brand accents */
  --accent-blue: #4f7dff;
  --accent-violet: #a25cff;
  --accent-cyan: #5cd6ff;
  --accent-magenta: #d76bff;
  --gradient-brand: linear-gradient(
    135deg,
    var(--accent-cyan) 0%,
    var(--accent-blue) 45%,
    var(--accent-violet) 80%,
    var(--accent-magenta) 100%
  );

  /* Layout */
  --container-max: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  /* Effects */
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
}

/* --------- Reset / base --------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

p {
  margin: 0;
  color: var(--text-muted);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(162, 92, 255, 0.4);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------- Layout primitives --------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.75rem 0;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------- Brand --------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.brand__wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.16em;
}

.brand__sub {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--text-dim);
  margin-top: 4px;
}

.brand--footer .brand__mark {
  width: 32px;
  height: 32px;
}

/* --------- Header --------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 12, 0.7);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.nav__list {
  display: none;
  gap: 1.75rem;
}

.nav__list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.nav__list a:hover {
  color: var(--text);
}

.nav__cta {
  display: none;
}

@media (min-width: 820px) {
  .nav__list {
    display: flex;
  }
  .nav__cta {
    display: inline-flex;
  }
}

/* --------- Buttons --------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 200ms ease, background 200ms ease,
    border-color 200ms ease, color 200ms ease;
  white-space: nowrap;
}

.btn--primary {
  color: #0b0b14;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 6px 24px -10px rgba(162, 92, 255, 0.7);
}

.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px rgba(162, 92, 255, 0.8);
}

.btn--ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--accent-violet);
  color: #fff;
}

.btn--lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

/* --------- Hero --------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 7.5rem);
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: -10% -10% 0 -10%;
  z-index: -1;
  background:
    radial-gradient(
      55% 55% at 50% 30%,
      rgba(79, 125, 255, 0.22) 0%,
      rgba(79, 125, 255, 0) 70%
    ),
    radial-gradient(
      45% 45% at 70% 60%,
      rgba(162, 92, 255, 0.22) 0%,
      rgba(162, 92, 255, 0) 70%
    ),
    radial-gradient(
      40% 40% at 30% 70%,
      rgba(92, 214, 255, 0.14) 0%,
      rgba(92, 214, 255, 0) 70%
    );
  filter: blur(8px);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: clamp(140px, 22vw, 220px);
  height: auto;
  margin-bottom: 1.75rem;
}

.hero__title {
  font-size: clamp(2rem, 5.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  max-width: 22ch;
  margin: 0.4rem 0 1.2rem;
}

.hero__lede {
  max-width: 60ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* --------- Generic sections --------- */
.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  border-top: 1px solid var(--border);
}

.section--alt {
  background: linear-gradient(
    180deg,
    rgba(79, 125, 255, 0.04) 0%,
    rgba(162, 92, 255, 0.04) 100%
  );
}

.section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 820px) {
  .section__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 4rem;
  }
}

.section__intro h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
}

.section__intro--centered {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.eyebrow--centered {
  text-align: center;
  margin-bottom: 1.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: gap 200ms ease;
}

.link-arrow::after {
  content: "→";
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 200ms ease;
}

.link-arrow:hover {
  gap: 0.6rem;
}

.link-arrow:hover::after {
  transform: translateX(2px);
}

.section__sub {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.section__body p + p {
  margin-top: 1rem;
}

.section__body p {
  font-size: 1.05rem;
}

/* --------- Service cards --------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 880px;
    margin-inline: auto;
  }
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, border-color 200ms ease,
    box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #0b0b14;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 20px -6px rgba(162, 92, 255, 0.6);
}

.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__body {
  font-size: 0.97rem;
  color: var(--text-muted);
}

.card__body + .card__body {
  margin-top: 0.85rem;
}

.card__lede {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.card__list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.card__list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.5;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--gradient-brand);
}

.card__list strong {
  color: var(--text);
  font-weight: 600;
}

.card__footnote {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --------- Steps (Approach) --------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
}

.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.4rem 0 0.6rem;
}

.step p {
  font-size: 0.97rem;
}

.step p + p {
  margin-top: 0.6rem;
}

/* --------- CTA --------- */
.section--cta {
  border-top: 1px solid var(--border);
}

.cta__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(
      135deg,
      rgba(79, 125, 255, 0.18),
      rgba(162, 92, 255, 0.18) 60%,
      rgba(215, 107, 255, 0.18)
    ),
    var(--bg-elev);
  border: 1px solid var(--border-strong);
  text-align: center;
}

.cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    50% 80% at 50% 0%,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  z-index: -1;
}

.cta__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.cta__body {
  max-width: 56ch;
  margin: 0 auto 1.6rem;
  font-size: 1.05rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* --------- Footer --------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  background: var(--bg-elev);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 720px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__copy {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.site-footer__links {
  display: flex;
  gap: 1.25rem;
}

.site-footer__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: var(--text);
}

/* --------- Reduced motion --------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
