/* ==========================================================================
   IT-Work-Solutions
   ========================================================================== */

:root {
  --ink: #0b1020;
  --ink-2: #131a35;
  --ink-3: #1d2549;
  --violet: #6b4eff;
  --violet-600: #5a3df0;
  --magenta: #e0418f;
  --cyan: #38d6f5;
  --grad: linear-gradient(135deg, var(--magenta), var(--violet));

  --bg: #f6f6fb;
  --surface: #ffffff;
  --tint: #f0edff;
  --text: #0f1426;
  --muted: #586079;
  --line: #e3e5ef;

  --on-dark: #eef0fa;
  --on-dark-muted: #a6acc8;
  --line-dark: rgba(255, 255, 255, 0.1);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 20, 38, 0.06);
  --shadow: 0 1px 2px rgba(15, 20, 38, 0.05), 0 12px 32px -12px rgba(15, 20, 38, 0.16);
  --shadow-lg: 0 30px 60px -20px rgba(15, 20, 38, 0.35);

  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 80px;
  --header-h-sm: 64px;
  --logo-h: 60px;
  --logo-h-sm: 44px;
}

/* Base ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-sm) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

/* Buttons --------------------------------------------------------------- */

.btn {
  --btn-h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.975rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(107, 78, 255, 0.6);
}
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(107, 78, 255, 0.75); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); }

.btn-sm { --btn-h: 42px; padding: 0 18px; font-size: 0.925rem; }
.btn-block { width: 100%; }

/* Typography helpers ---------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font: 600 0.8rem/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.eyebrow-light { color: #c7bcff; }

.gradient-text {
  background: linear-gradient(100deg, #ff6fb1 0%, #a48bff 55%, var(--cyan) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header ---------------------------------------------------------------- */

/* Fixed rather than sticky so it can shrink on scroll without shifting the page. */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height 0.25s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled {
  height: var(--header-h-sm);
  background: rgba(11, 16, 32, 0.9);
  border-bottom-color: var(--line-dark);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.brand picture { display: contents; }
.brand-logo { height: var(--logo-h); width: auto; transition: height 0.25s ease; }
.site-header.is-scrolled .brand-logo { height: var(--logo-h-sm); }
.brand-logo-lg { height: 96px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav ul a:hover,
.site-nav ul a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, 0.08); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(60% 70% at 85% 40%, rgba(107, 78, 255, 0.32), transparent 70%),
    radial-gradient(45% 55% at 10% 10%, rgba(224, 65, 143, 0.22), transparent 70%),
    var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
}
.lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--on-dark-muted);
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  max-width: 34rem;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}
.hero-proof strong {
  display: block;
  font: 700 1.35rem/1.2 var(--font-display);
  color: #fff;
}

.hero-visual { position: relative; }
.orbit-art { width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; }

.orbit {
  stroke: rgba(199, 188, 255, 0.35);
  stroke-dasharray: 3 7;
  animation: orbit-dash 40s linear infinite;
}
.orbit-2 { animation-duration: 52s; animation-direction: reverse; }
.orbit-3 { animation-duration: 64s; }

@keyframes orbit-dash { to { stroke-dashoffset: -600; } }

.hub { filter: drop-shadow(0 18px 40px rgba(107, 78, 255, 0.55)); }

.node {
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.node rect {
  fill: #fff;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.35));
}
.node svg {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Sections -------------------------------------------------------------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2,
.about h2,
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 18px; }
.section-lede { font-size: 1.1rem; color: var(--muted); max-width: 38rem; }

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 32px 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 78, 255, 0.35);
  box-shadow: var(--shadow);
}
.service-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.98rem; }

.service-num {
  position: absolute;
  top: 30px; right: 28px;
  font: 500 0.85rem/1 var(--font-display);
  color: #b3b8cc;
  letter-spacing: 0.04em;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--violet);
  transition: background 0.25s ease, color 0.25s ease;
}
.service-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.service-card:hover .service-icon { background: var(--grad); color: #fff; }

/* Testimonial */

.testimonial-section { padding-top: 0; }

.testimonial {
  position: relative;
  margin: 0;
  padding: clamp(36px, 6vw, 72px);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(107, 78, 255, 0.45), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(224, 65, 143, 0.28), transparent 60%),
    var(--ink-2);
  color: var(--on-dark);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.quote-mark {
  width: 56px; height: 56px;
  margin-bottom: 24px;
  fill: #a48bff;
}
.testimonial blockquote { margin: 0 0 36px; max-width: 54rem; }
.testimonial-lead {
  font: 600 clamp(1.5rem, 3vw, 2.25rem)/1.2 var(--font-display);
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}
.testimonial blockquote p:not(.testimonial-lead) {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: #cfd3e8;
}
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.testimonial figcaption strong { display: block; color: #fff; font-weight: 600; }
.testimonial figcaption span span { color: var(--on-dark-muted); font-size: 0.925rem; }
.avatar {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font: 700 0.95rem/1 var(--font-display);
}

/* About */

.about { background: var(--surface); border-block: 1px solid var(--line); }

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.075rem; }

.stat-list { display: grid; gap: 16px; }
.stat-list li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.stat-list strong {
  flex: none;
  min-width: 3.4ch;
  font: 700 2.4rem/1 var(--font-display);
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-list span { color: var(--muted); font-weight: 500; }

/* Process */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-top: 64px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 600 0.9rem/1 var(--font-display);
}
.steps li::after {
  content: "";
  position: absolute;
  top: 22px; left: 56px; right: -8px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), transparent);
  opacity: 0.4;
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.98rem; }

/* Contact */

.contact {
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(224, 65, 143, 0.2), transparent 70%),
    radial-gradient(60% 70% at 100% 100%, rgba(107, 78, 255, 0.3), transparent 70%),
    var(--ink);
  color: var(--on-dark);
}
.contact h2 { color: #fff; }
.contact .section-lede { color: var(--on-dark-muted); margin-bottom: 36px; }

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-list { display: grid; gap: 14px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}
.contact-list small {
  display: block;
  color: var(--on-dark-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-list a {
  color: #fff;
  font: 600 1.1rem/1.4 var(--font-display);
  text-decoration: none;
  word-break: break-word;
}
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
}
.contact-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  color: var(--text);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586079' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(107, 78, 255, 0.15);
}
.field [aria-invalid="true"] { border-color: #d83a5a; }
.field-error { color: #c42e4d; font-size: 0.85rem; font-weight: 500; }

.form-status { min-height: 1.4em; font-size: 0.95rem; font-weight: 500; text-align: center; }
.form-status.is-success { color: #13865a; }
.form-status.is-error { color: #c42e4d; }

/* Footer ---------------------------------------------------------------- */

.site-footer {
  background: #070a16;
  color: var(--on-dark-muted);
  padding-top: 72px;
  font-size: 0.95rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand p { margin-top: 16px; max-width: 22rem; }
.footer-col h2 {
  font: 600 0.8rem/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }

/* Reveal on scroll (only hides content once JS confirms it can show it) --- */

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-grid; place-items: center; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 12px 14px; font-size: 1.05rem; border-radius: 12px; }
  .nav-cta { --btn-h: 50px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin-inline: auto; width: 100%; }

  .about-inner,
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
    --header-h-sm: 56px;
    --logo-h: 46px;
    --logo-h-sm: 38px;
  }
  .brand-logo-lg { height: 84px; }

  .hero-visual { max-width: 280px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .service-grid,
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .service-card { padding: 26px 22px; }
  .service-num { top: 26px; right: 22px; }

  .field-row { grid-template-columns: 1fr; }
  .stat-list li { padding: 20px; gap: 18px; }
  .stat-list strong { font-size: 2rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

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