/* RS-iT Services — single page stylesheet */

:root {
  --bg: #05070d;
  --bg-alt: #080d17;
  --panel: #0b1220;
  --panel-2: #0e1728;
  --line: rgba(120, 170, 255, 0.14);
  --text: #e8eefc;
  --muted: #97a6c2;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --orange: #f97316;
  --magenta: #e11d8f;
  --radius: 16px;
  --wrap: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #04121a;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.35));
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
}

.nav a { color: var(--muted); transition: color 0.18s ease; }
.nav a:hover, .nav a:focus-visible { color: var(--text); }

.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--magenta) 45%, var(--blue) 75%, var(--cyan));
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #04121a;
  background: linear-gradient(120deg, var(--cyan), #4cc9f0 40%, var(--blue));
  box-shadow: 0 10px 30px -12px rgba(34, 211, 238, 0.7);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  border: 1px solid transparent;
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px rgba(34, 211, 238, 0.85);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25) inset;
}

.btn-sm { padding: 9px 18px; font-size: 0.86rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
  background:
    radial-gradient(900px 460px at 78% 18%, rgba(37, 99, 235, 0.28), transparent 62%),
    radial-gradient(700px 420px at 12% 82%, rgba(225, 29, 143, 0.16), transparent 65%),
    linear-gradient(180deg, #060a13, var(--bg));
}

.hero-glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.grad {
  background: linear-gradient(100deg, var(--orange), var(--magenta) 40%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 30px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.badges li { display: flex; align-items: center; gap: 8px; }

.tick {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  color: #04121a;
  background: var(--cyan);
}

/* hero art */

.hero-art { display: grid; place-items: center; }

.chip-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 34px 28px 26px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(14, 23, 40, 0.95), rgba(8, 13, 23, 0.9));
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(34, 211, 238, 0.55);
  text-align: center;
}

.chip {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  background:
    linear-gradient(140deg, rgba(34, 211, 238, 0.16), rgba(37, 99, 235, 0.1));
  box-shadow: 0 0 40px -6px rgba(34, 211, 238, 0.45), inset 0 0 30px rgba(34, 211, 238, 0.12);
}

.chip span {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #d8f6ff;
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.9);
}

.chip .pin {
  position: absolute;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: rgba(34, 211, 238, 0.55);
}
.chip .p1 { left: -24px; top: 30px; }
.chip .p2 { left: -24px; bottom: 30px; }
.chip .p3 { right: -24px; top: 30px; }
.chip .p4 { right: -24px; bottom: 30px; }

.chip-caption {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text);
}
.chip-caption em {
  font-style: normal;
  background: linear-gradient(100deg, var(--orange), var(--magenta), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* ---------- sections ---------- */

.section { padding: 84px 0; }
.section-alt {
  background: linear-gradient(180deg, var(--bg-alt), #060a12);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 60ch; margin-bottom: 42px; }

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.015em;
  font-weight: 800;
}

.section-head p, .muted { margin: 0; color: var(--muted); }

/* services grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.5), transparent 45%, rgba(225, 29, 143, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.card:hover, .card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -34px rgba(34, 211, 238, 0.6);
}
.card:hover::after, .card:focus-within::after { opacity: 1; }

.card-wide { grid-column: 1 / -1; }

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
}
.icon svg { width: 24px; height: 24px; }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* why */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.why-list li {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.8);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.why-list strong { font-size: 0.98rem; }
.why-list span { color: var(--muted); font-size: 0.9rem; }

/* contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.contact-card {
  display: grid;
  gap: 4px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.contact-card:hover, .contact-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.45);
}

.contact-card .label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card .value {
  font-size: 1.12rem;
  font-weight: 700;
  word-break: break-word;
}

/* footer */

.site-footer { background: #04060b; }

.footer-inner {
  padding-top: 34px;
  padding-bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-brand { margin: 0; }
.footer-brand strong { color: var(--text); }

.footer-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* focus */

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 68px 0 64px; }
  .hero-art { order: -1; }
  .chip-card { max-width: 300px; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav { gap: 16px; font-size: 0.86rem; }
  .nav a:not(.btn) { display: none; }
  .section { padding: 62px 0; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
