/* ============================================================
   Digital Adapt I.T. Solutions — Landing page styles
   ============================================================ */

:root {
  /* Brand palette from the Digital Adapt logo:
     yellow → green gradient D, yellow arrow, purple pixel trail */
  --bg: #070b0a;
  --bg-soft: #0b110f;
  --surface: #101816;
  --surface-2: #15201c;
  --line: rgba(160, 210, 190, 0.14);
  --text: #eff7f3;
  --text-dim: #98aba3;
  --accent: #2fbf9a;          /* logo green */
  --accent-2: #f2c230;        /* logo yellow */
  --accent-3: #8b64c9;        /* logo purple */
  --grad: linear-gradient(100deg, var(--accent-2) 0%, #8fbf6a 45%, var(--accent) 100%);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1200px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

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

::selection { background: var(--accent); color: #052a20; }

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
}
.loader__mark { display: flex; align-items: center; gap: 14px; }
.loader__diamond {
  width: 14px; height: 14px;
  background: var(--grad);
  transform: rotate(45deg);
  animation: pulse 1s ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: .4; scale: .8; } to { opacity: 1; scale: 1.1; } }
.loader__text {
  font-family: var(--font-display);
  letter-spacing: .35em;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 60; pointer-events: none;
}
.progress__bar {
  height: 100%; width: 100%;
  background: var(--grad);
  transform-origin: left center;
  transform: scaleX(0);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(20px, 4vw, 48px);
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 11, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  letter-spacing: .02em;
}
.logo-mark { width: 42px; height: auto; flex-shrink: 0; }
.logo-mark--sm { width: 36px; }
.nav__links {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 36px);
  font-size: 14px; font-weight: 500; color: var(--text-dim);
}
.nav__links a { transition: color .25s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(47, 191, 154, .35); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--grad);
  color: #0a2018;
  box-shadow: 0 8px 32px rgba(242, 194, 48, .22);
}
.btn--primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 44px rgba(47, 191, 154, .4); }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn--lg { padding: 18px 40px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__inner {
  position: relative; z-index: 2;
  width: min(var(--container), 92vw);
  margin-inline: auto;
  padding-top: var(--nav-h);
}
.hero__eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero__eyebrow i, .cta__watchwords i {
  font-style: normal;
  color: var(--accent-2);
  padding-inline: .35em;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-bottom: 30px;
}
.hero__line { display: block; overflow: hidden; }
.hero__line .word { display: inline-block; }
.hero__line--accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub {
  max-width: 540px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-dim);
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero__scroll-text {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-dim);
}

/* Reveal helpers */
.reveal-line { overflow: hidden; }
.reveal-line > span { display: inline-block; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 22px;
  overflow: hidden;
  background: var(--bg-soft);
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 48px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: var(--text-dim);
  will-change: transform;
}
.marquee__track i { color: var(--accent); font-style: normal; font-size: .8em; }
.marquee__track span { padding-right: 0; }

/* ---------- Sections base ---------- */
section { position: relative; }
.section-head { margin-bottom: clamp(48px, 7vw, 80px); max-width: 720px; }
.section-head__index {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: .3em;
  color: var(--accent);
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-top: 12px;
}
.section-head__sub {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  max-width: 560px;
}

/* ---------- Intro ---------- */
.intro { padding-block: clamp(90px, 14vw, 170px); }
.intro__statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.01em;
  max-width: 980px;
}
.intro__statement .w { opacity: .16; transition: opacity .3s ease; }
.intro__statement em { font-style: normal; color: var(--accent); }

/* ---------- Watchwords ---------- */
.watchwords {
  padding-block: clamp(80px, 12vw, 150px);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(800px 400px at 15% 20%, rgba(242, 194, 48, .05), transparent 60%),
    radial-gradient(800px 400px at 85% 80%, rgba(139, 100, 201, .07), transparent 60%),
    var(--bg);
}
.watchwords .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 64px);
}
.watchword__index {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-dim);
}
.watchword__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-block: 10px 14px;
}
.watchword[data-word="1"] .watchword__title { color: var(--accent-2); }
.watchword[data-word="2"] .watchword__title { color: var(--accent); }
.watchword[data-word="3"] .watchword__title { color: var(--accent-3); }
.watchword__dot { color: var(--text); }
.watchword__text { color: var(--text-dim); font-size: 15px; max-width: 320px; }

/* ---------- Services ---------- */
.services { padding-block: clamp(80px, 12vw, 150px); background: var(--bg-soft); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 3.5vw, 44px);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
  overflow: hidden;
  transition: border-color .35s ease, transform .35s ease;
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 191, 154, .09), transparent 45%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.card:hover { border-color: rgba(47, 191, 154, .4); transform: translateY(-6px); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(47, 191, 154, .08);
  border: 1px solid rgba(47, 191, 154, .22);
  color: var(--accent);
  margin-bottom: 26px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 12px;
}
.card__text { color: var(--text-dim); font-size: 15px; max-width: 420px; }
.card__tag {
  position: absolute; top: 26px; right: 26px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(242, 194, 48, .4);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- Process ---------- */
.process { padding-block: clamp(80px, 12vw, 150px); }
.process__list { list-style: none; }
.process__step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  align-items: start;
}
.process__step:last-child { border-bottom: 1px solid var(--line); }
.process__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(160, 210, 190, .4);
  line-height: 1.1;
}
.process__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 600;
  margin-bottom: 8px;
}
.process__body p { color: var(--text-dim); max-width: 560px; }

/* ---------- Products ---------- */
.products { padding-block: clamp(80px, 12vw, 150px); background: var(--bg-soft); }
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.products__grid--three { grid-template-columns: repeat(3, 1fr); }
.product {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}
.product:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 100, 201, .5);
  background: var(--surface-2);
}
.product--done:hover { border-color: rgba(47, 191, 154, .5); }
.product__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-3);
}
.product__status--done { color: var(--accent); }
.product__status--done::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 191, 154, .2);
}
.product__title {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
}
.product__text { color: var(--text-dim); font-size: 14px; }

/* ---------- About / Values ---------- */
.about { padding-block: clamp(80px, 12vw, 150px); }
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about__text { color: var(--text-dim); margin-bottom: 20px; font-size: clamp(1rem, 1.3vw, 1.1rem); }
.about__text strong { color: var(--text); }
.values { list-style: none; display: flex; flex-direction: column; }
.values__item {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 600;
  color: var(--text-dim);
  transition: color .3s ease, padding-left .3s ease;
  cursor: default;
}
.values__item:last-child { border-bottom: 1px solid var(--line); }
.values__item:hover { color: var(--accent); padding-left: 14px; }

/* ---------- CTA ---------- */
.cta {
  padding-block: clamp(110px, 16vw, 200px);
  background:
    radial-gradient(900px 480px at 50% 115%, rgba(47, 191, 154, .12), transparent 65%),
    radial-gradient(700px 420px at 80% -10%, rgba(139, 100, 201, .12), transparent 60%),
    var(--bg-soft);
  text-align: center;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 26px;
}
.cta__line { display: block; overflow: hidden; }
.cta__line--accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cta__sub { color: var(--text-dim); max-width: 520px; margin: 0 auto 20px; }
.cta__watchwords {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 44px;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-display); font-weight: 600;
  display: flex; align-items: center; gap: 12px;
}
.footer__brand-text { display: flex; flex-direction: column; }
.footer__brand-text em {
  font-style: normal; font-weight: 500;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.footer__meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 13px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
  .watchwords .container { grid-template-columns: 1fr; gap: 40px; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .process__step { grid-template-columns: 64px 1fr; }
}

@media (max-width: 700px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start;
    gap: 6px;
    background: rgba(7, 11, 10, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 18px clamp(20px, 6vw, 40px) 28px;
    transform: translateY(-16px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .35s ease, opacity .35s ease, visibility .35s;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav__links a { font-size: 17px; padding-block: 10px; width: 100%; }
  .nav__cta { text-align: center; justify-content: center; display: inline-flex; margin-top: 8px; }
  .products__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
