:root {
  /* Light mode palette */
  --ink: #ffffff;
  --ink-2: #f6f8ff;
  --ink-3: #eef2ff;
  --paper: #0a0c17;
  --paper-dim: rgba(10, 12, 23, 0.68);
  --paper-faint: rgba(10, 12, 23, 0.52);
  --line: rgba(10, 12, 23, 0.10);
  --line-strong: rgba(10, 12, 23, 0.16);
  --blue: #5e8bff;
  --blue-bright: #84a7ff;
  --blue-deep: #4467d6;
  --cyan: #39d6ff;
  --violet: #a274ff;
  --accent: var(--blue);
  --accent-bright: var(--blue-bright);
  --accent-deep: var(--blue-deep);
  --grad: linear-gradient(100deg, var(--cyan), var(--blue) 45%, var(--violet));
  --surface: rgba(10, 12, 23, 0.03);
  --surface-2: rgba(10, 12, 23, 0.06);
  --shadow: 0 40px 120px -60px rgba(10, 12, 23, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --maxw: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* atmospheric background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 48% at 80% 6%, rgba(94, 139, 255, 0.14), transparent 60%),
    radial-gradient(50% 42% at 10% 28%, rgba(162, 116, 255, 0.10), transparent 60%),
    radial-gradient(70% 55% at 50% 112%, rgba(57, 214, 255, 0.07), transparent 60%);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-deep);
}

.text-gradient,
.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 10px 34px -10px rgba(94, 139, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -12px rgba(123, 116, 255, 0.45);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--paper);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: var(--surface-2);
}
.btn .fa-arrow-right {
  transition: transform 0.4s var(--ease);
}
.btn:hover .fa-arrow-right {
  transform: translateX(4px);
}

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 60px -40px rgba(10, 12, 23, 0.30);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand-text {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.brand-text span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text--sm {
  font-size: 21px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--paper-dim);
  padding: 9px 16px;
  border-radius: 100px;
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--paper);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--blue);
}
.nav-login {
  color: var(--paper) !important;
}
.nav-cta {
  background: var(--paper);
  color: #fff !important;
  font-weight: 600;
  padding: 10px 22px !important;
  margin-left: 8px;
  transition: all 0.35s var(--ease) !important;
}
.nav-cta:hover {
  background: var(--blue-bright);
  color: #fff !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- page sections ---------- */
.page {
  padding-top: 120px; /* keep content below fixed header */
}
.section {
  padding: 86px 0;
  position: relative;
}
.section--line {
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h1,
.section-head h2 {
  font-size: clamp(2.0rem, 3.6vw, 3.0rem);
  margin: 18px 0 14px;
}
.section-head p {
  color: var(--paper-dim);
  font-size: 16.5px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 36px;
  position: relative;
  background: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer p.about {
  color: var(--paper-faint);
  font-size: 14.5px;
  margin-top: 18px;
  max-width: 360px;
}
.footer__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 22px;
}
.footer__list {
  list-style: none;
}
.footer__list li {
  margin-bottom: 13px;
}
.footer__list a,
.footer__list li {
  color: var(--paper-faint);
  font-size: 14.5px;
  transition: color 0.3s var(--ease);
}
.footer__list a:hover {
  color: var(--blue-deep);
}
.footer__list i {
  color: var(--blue-deep);
  width: 18px;
}
.footer__bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--paper-faint);
  font-size: 13.5px;
}
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper-dim);
  transition: all 0.35s var(--ease);
}
.footer__social a:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
  transform: translateY(-3px);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .wrap {
    padding-inline: 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 14px 28px 26px;
    transform: translateY(-130%);
    transition: transform 0.5s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    padding: 15px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 16px;
  }
  .nav-cta,
  .nav-login {
    margin-left: 0;
    text-align: center;
    border-bottom: none !important;
  }
  .nav-cta {
    margin-top: 14px;
    border-radius: 100px;
    padding: 14px !important;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- layout helpers ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px -55px rgba(10, 12, 23, 0.35);
  padding: 26px;
}
.muted {
  color: var(--paper-dim);
}
.fine {
  color: var(--paper-faint);
}

/* ---------- forms ---------- */
label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper-dim);
  display: block;
  margin-bottom: 8px;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(94, 139, 255, 0.60);
  box-shadow: 0 0 0 4px rgba(94, 139, 255, 0.14);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.help {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--paper-faint);
}

/* ---------- components from homepage (reused on pages) ---------- */
.feature-list {
  list-style: none;
  margin-top: 18px;
  margin-bottom: 22px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--paper);
}
.feature-list i {
  color: var(--cyan);
  font-size: 13px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  flex-shrink: 0;
}

.glass {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--surface-2), transparent);
  backdrop-filter: blur(10px);
}
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.metric {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  transition: all 0.4s var(--ease);
}
.metric:hover {
  border-color: var(--blue-deep);
  transform: translateY(-4px);
}
.metric__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(94, 139, 255, 0.10);
  border: 1px solid var(--line-strong);
  color: var(--blue-deep);
  font-size: 18px;
  margin-bottom: 18px;
}
.metric__title {
  font-family: var(--display);
  font-size: 20px;
  margin-bottom: 8px;
}
.metric__text {
  font-size: 13.5px;
  color: var(--paper-faint);
  line-height: 1.5;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.svc {
  background: #ffffff;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative;
}
.svc:hover {
  background: var(--ink-3);
}
.svc__icon {
  font-size: 26px;
  color: var(--blue-deep);
  margin-bottom: 14px;
  transition: transform 0.5s var(--ease);
}
.svc:hover .svc__icon {
  transform: translateY(-4px) scale(1.06);
  color: var(--cyan);
}
.svc__title {
  font-family: var(--display);
  font-size: 19px;
}
.svc__text {
  font-size: 13px;
  color: var(--paper-faint);
}
.svc__arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--paper-faint);
  font-size: 13px;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: all 0.4s var(--ease);
}
.svc:hover .svc__arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--cyan);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.detail {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}
.detail h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.detail p {
  color: var(--paper-dim);
  font-size: 15.5px;
}

@media (max-width: 980px) {
  .grid-2,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- services page: professional blocks ---------- */
.svc-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
  margin-bottom: 26px;
}
.svc-hero .card {
  padding: 24px;
}
.svc-hero .card p {
  font-size: 15.5px;
}

.svc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.70);
  color: var(--paper-dim);
  font-size: 13px;
  font-weight: 600;
}
.badge-pill i {
  color: var(--blue-deep);
}

.svc-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 26px 80px -60px rgba(10, 12, 23, 0.35);
}
.svc-media {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
.svc-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.svc-media img.svc-img-contain {
  height: 260px;
  object-fit: contain;
  background: #fff;
}
.svc-block h3 {
  font-size: 28px;
  margin-bottom: 8px;
}
.svc-block p {
  color: var(--paper-dim);
  font-size: 15.5px;
}
.svc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.svc-meta h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 10px;
}
.svc-meta ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.svc-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--paper-dim);
  font-size: 14.5px;
}
.svc-meta li i {
  color: var(--cyan);
  margin-top: 3px;
}

@media (max-width: 980px) {
  .svc-hero {
    grid-template-columns: 1fr;
  }
  .svc-block {
    grid-template-columns: 1fr;
  }
  .svc-meta {
    grid-template-columns: 1fr;
  }
}

