:root {
  --bg: #07080b;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --muted-soft: rgba(255, 255, 255, 0.44);
  --dark: #050609;
  --black: #000000;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: #ffffff;
  color: #000000;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(90px);
}

.glow-one {
  left: 50%;
  top: -260px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
}

.glow-two {
  right: -180px;
  bottom: -230px;
  background: rgba(70, 220, 255, 0.1);
}

.grid-mask {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at top, #000 35%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 35%, transparent 72%);
}

.container,
.site-header {
  width: min(100% - 48px, 1220px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.08);
}

.brand-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.brand:hover .brand-text {
  color: #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.section-pad {
  position: relative;
  z-index: 1;
  padding: 108px 0;
}

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

.hero {
  padding-top: 90px;
  padding-bottom: 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: end;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 28px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow.dark {
  border-color: rgba(0, 0, 0, 0.11);
  background: rgba(0, 0, 0, 0.035);
  color: rgba(0, 0, 0, 0.45);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 28px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.93;
  font-weight: 700;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.97;
  font-weight: 700;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-card-inner {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.28);
  padding: 24px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.card-head strong {
  border-radius: 999px;
  background: rgba(53, 255, 171, 0.11);
  padding: 6px 12px;
  color: #baffdf;
  font-size: 12px;
  font-weight: 700;
}

.profile-list {
  display: grid;
  gap: 24px;
  margin: 0;
}

.profile-list dt {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.profile-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.6;
}

.stats-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.stats-grid div {
  padding: 34px 0;
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  margin-bottom: 5px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stats-grid span {
  color: var(--muted-soft);
  font-size: 14px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 46px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.service-card,
.featured-card,
.portfolio-card,
.contact-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.service-card:hover,
.featured-card:hover,
.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.service-card {
  min-height: 285px;
  border-radius: var(--radius-lg);
  padding: 23px;
}

.icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.service-card p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 1.75;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: end;
  gap: 48px;
  margin-bottom: 46px;
}

.split-heading > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.8;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.featured-card {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-xl);
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 34px;
}

.card-meta span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.47);
  font-size: 11px;
  line-height: 1.35;
}

.card-meta a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, color 0.2s ease;
}

.featured-card:hover .card-meta a {
  background: #ffffff;
  color: #000000;
}

.featured-card h3 {
  font-size: 27px;
}

.featured-card p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.85;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 11px;
  font-weight: 600;
}

.systems-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.systems-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 76px;
}

.systems-grid p:not(.eyebrow) {
  max-width: 540px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 16px;
  line-height: 1.85;
}

.systems-list {
  display: grid;
  gap: 12px;
}

.systems-list div {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  padding: 18px 18px 18px 58px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.systems-list div::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 16px;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: 900;
}

.portfolio-section .section-heading {
  margin-bottom: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.portfolio-card {
  position: relative;
  min-height: 132px;
  border-radius: 24px;
  padding: 22px;
}

.portfolio-card strong,
.portfolio-card span {
  display: block;
}

.portfolio-card strong {
  padding-right: 28px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.portfolio-card span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  line-height: 1.45;
}

.portfolio-card em {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.3);
  font-style: normal;
  transition: color 0.2s ease;
}

.portfolio-card:hover em {
  color: #ffffff;
}

.style-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  border-radius: 38px;
  background: #ffffff;
  color: #000000;
}

.style-panel > div:first-child {
  padding: 54px;
}

.style-panel h2 {
  color: #000000;
}

.style-steps {
  display: grid;
  gap: 14px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding: 54px;
}

.style-steps div {
  display: flex;
  gap: 20px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.035);
  padding: 20px;
}

.style-steps span {
  color: rgba(0, 0, 0, 0.38);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.style-steps strong {
  color: rgba(0, 0, 0, 0.78);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.contact-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  border-radius: var(--radius-xl);
  padding: 42px;
}

.contact-panel h2 {
  max-width: 820px;
}

.contact-panel p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.8;
}

.contact-actions {
  justify-content: flex-end;
  min-width: max-content;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 0 32px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(.2,.8,.2,1), opacity 0.65s ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1100px) {
  .hero-grid,
  .systems-grid,
  .style-panel {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 620px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:last-child {
    grid-column: span 2;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    min-height: 310px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .style-steps {
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .contact-panel {
    align-items: start;
    flex-direction: column;
  }

  .contact-actions {
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .container,
  .site-header {
    width: min(100% - 32px, 1220px);
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 30;
  }

  .site-nav {
    position: fixed;
    inset: 76px 16px auto 16px;
    z-index: 25;
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(7, 8, 11, 0.94);
    padding: 14px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
  }

  .brand-text {
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .section-pad,
  .hero {
    padding: 78px 0;
  }

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

  h1 {
    letter-spacing: -0.06em;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .service-card:last-child {
    grid-column: auto;
  }

  .systems-grid {
    gap: 38px;
  }

  .style-panel > div:first-child,
  .style-steps,
  .contact-panel {
    padding: 28px;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .contact-actions,
  .btn {
    width: 100%;
  }

  .btn {
    padding-inline: 18px;
  }

  .profile-card {
    padding: 12px;
    border-radius: 26px;
  }

  .profile-card-inner {
    padding: 20px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .stats-grid div {
    padding: 26px 0;
  }

  .featured-card {
    min-height: auto;
    padding: 23px;
  }

  .card-meta {
    align-items: flex-start;
  }

  .style-steps div {
    flex-direction: column;
    gap: 8px;
  }
}
