:root {
  --primary: #0a1c3d;
  --secondary: #153a8a;
  --accent: rgba(122, 170, 255, 0.38);
  --bg: #f4f6fa;
  --text: #0f1f3a;
  --white: #ffffff;
  --line: rgba(10, 28, 61, 0.15);
}

@font-face {
  font-family: "Paperlogy";
  src: url("font/Paperlogy-1Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("font/Paperlogy-2ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("font/Paperlogy-3Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("font/Paperlogy-4Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("font/Paperlogy-5Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("font/Paperlogy-6SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("font/Paperlogy-7Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("font/Paperlogy-8ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("font/Paperlogy-9Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Paperlogy", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(840px, calc(100% - 40px));
}

.section {
  padding: 90px 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(10, 28, 61, 0.84);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 92px;
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  font-weight: 600;
}

.nav-cta {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(10, 28, 61, 0.87) 0%, rgba(10, 28, 61, 0.6) 45%, rgba(10, 28, 61, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 40px));
  padding-top: 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.hero-copy {
  color: var(--white);
  text-align: center;
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  margin: 0 0 16px;
  color: rgba(210, 225, 255, 0.9);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: titleDrift 5.2s ease-in-out infinite;
}

h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.07em;
  animation: titleDrift 5.8s ease-in-out infinite;
}

h3 {
  font-size: 24px;
  margin-bottom: 12px;
  text-align: center;
}

.hero-sub {
  margin: 22px 0 30px;
  color: rgba(233, 239, 255, 0.95);
  font-size: clamp(16px, 1.35vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  min-width: 180px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(140deg, var(--secondary), #2f63d8);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 34px rgba(21, 58, 138, 0.32);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
}

.lead-copy {
  margin: 0 0 36px;
  color: rgba(15, 31, 58, 0.9);
  font-size: clamp(16px, 1.3vw, 21px);
  text-align: center;
}

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

.process-section {
  background: linear-gradient(180deg, #f4f6fa, #edf2fb);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}

.process-step {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--secondary);
  font-weight: 700;
}

.process-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.process-card p {
  margin: 0;
  line-height: 1.7;
  text-align: center;
}

.solutions-section {
  background: var(--white);
}

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

.solution-tags span {
  border: 1px solid rgba(10, 28, 61, 0.2);
  border-radius: 14px;
  padding: 14px 16px 14px 18px;
  background: #f7faff;
  font-weight: 700;
  color: #12306a;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 56px;
  text-align: left;
}

.solution-icon {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.metric-section {
  background: linear-gradient(150deg, #0a1c3d, #102a5d);
  color: var(--white);
}

.metric-section .lead-copy {
  color: rgba(224, 234, 255, 0.9);
}

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

.metric-grid article {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.metric-grid strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.metric-grid p {
  margin: 0;
  color: rgba(238, 244, 255, 0.95);
}

.service-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(242, 246, 255, 0.95));
  border: 1px solid rgba(21, 58, 138, 0.14);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}

.card-image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  animation: floatSoft 4.6s ease-in-out infinite;
}

.service-num {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 26px;
  font-weight: 700;
}

.service-card ul {
  padding-left: 0;
  margin: 0;
  list-style-position: inside;
  text-align: center;
}

.dark-section {
  color: var(--white);
  background: radial-gradient(circle at 10% 0%, rgba(62, 96, 182, 0.5), transparent 48%), linear-gradient(140deg, #08152e, #0a1c3d);
}

.difference-intro {
  margin: 14px 0 0;
  color: rgba(226, 236, 255, 0.94);
  font-size: clamp(16px, 1.2vw, 20px);
  text-align: center;
}

.difference-flow {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}

.difference-flow::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(173, 198, 255, 0.2), rgba(173, 198, 255, 0.55), rgba(173, 198, 255, 0.2));
  z-index: 0;
}

.flow-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 14px 12px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(2px);
}

.flow-card span {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(155, 188, 255, 0.2);
  border: 1px solid rgba(181, 208, 255, 0.35);
  display: grid;
  place-items: center;
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(190, 210, 255, 0.92);
}

.flow-card strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-card p {
  margin: 0;
  color: rgba(223, 236, 255, 0.9);
  font-size: 13px;
  line-height: 1.45;
}

.operations-section {
  background: var(--white);
}

.infra-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.infra-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 10px;
  background: #f9fbff;
}

.infra-image {
  width: 68px;
  height: 68px;
  object-fit: contain;
  animation: floatSoft 4.2s ease-in-out infinite;
}

.solution-tags span {
  position: relative;
  overflow: hidden;
}

.solution-tags span .solution-icon {
  animation: floatSoft 4s ease-in-out infinite;
}

.service-card:nth-child(2) .card-image,
.process-card:nth-child(2) .card-image,
.infra-item:nth-child(2) .infra-image,
.solution-tags span:nth-child(2) .solution-icon,
.solution-tags span:nth-child(6) .solution-icon {
  animation-delay: 0.35s;
}

.service-card:nth-child(3) .card-image,
.process-card:nth-child(3) .card-image,
.infra-item:nth-child(3) .infra-image,
.solution-tags span:nth-child(3) .solution-icon,
.solution-tags span:nth-child(7) .solution-icon {
  animation-delay: 0.7s;
}

.process-card:nth-child(4) .card-image,
.infra-item:nth-child(4) .infra-image,
.solution-tags span:nth-child(4) .solution-icon,
.solution-tags span:nth-child(8) .solution-icon {
  animation-delay: 1.05s;
}

.solution-tags span:nth-child(5) .solution-icon {
  animation-delay: 1.3s;
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  h1,
  h2,
  .card-image,
  .infra-image,
  .solution-tags span .solution-icon {
    animation: none;
  }
}

.trust-section {
  background: linear-gradient(180deg, #f4f6fa, #e9eef8);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trust-grid p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--white);
  text-align: center;
}

.final-cta {
  color: var(--white);
  background: linear-gradient(140deg, #08152e, #0a1c3d);
  text-align: center;
}

.final-cta .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.form-section {
  background: var(--white);
}

.consult-form {
  display: grid;
  gap: 14px;
}

.consult-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.consult-form input,
.consult-form textarea {
  width: 100%;
  border: 1px solid rgba(10, 28, 61, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 340px);
  height: 100vh;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  background: linear-gradient(180deg, #08152e, #0a1c3d);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 16px 18px 22px;
}

.drawer-close {
  justify-self: end;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.drawer-nav {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 36px;
  justify-items: center;
}

.drawer-nav a {
  color: rgba(236, 243, 255, 0.96);
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
  text-align: center;
  width: min(220px, 100%);
}

.drawer-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 10px;
}

.drawer-logo {
  width: 272px;
  height: auto;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1100;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sticky-cta {
  display: none;
}

.site-footer {
  background: #061027;
  color: rgba(225, 236, 255, 0.9);
  border-top: 1px solid rgba(173, 201, 255, 0.15);
}

.footer-inner {
  padding: 44px 0 30px;
  text-align: center;
}

.footer-logo {
  width: min(360px, 78vw);
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.footer-copy {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(205, 223, 255, 0.95);
}

.footer-info {
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(188, 209, 246, 0.85);
}

.footer-copyright {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(170, 194, 236, 0.8);
}

.top-button {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 1040;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(21, 58, 138, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.top-button.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .difference-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .difference-flow::before {
    display: none;
  }

  .solution-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .infra-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 72vh;
  }

  h1 {
    font-size: clamp(30px, 7vw, 42px);
  }

  .hero-sub {
    font-size: 16px;
  }

  .cards-grid,
  .trust-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .solution-tags {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .solution-tags span {
    min-height: 86px;
    padding: 14px 10px;
    border-radius: 12px;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    line-height: 1.35;
  }

  .solution-icon {
    width: 40px;
    height: 40px;
  }

  .difference-flow {
    grid-template-columns: 1fr 1fr;
  }

  .flow-card {
    min-height: 128px;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    background: rgba(7, 16, 34, 0.92);
    backdrop-filter: blur(6px);
  }

  .mobile-sticky-cta .btn {
    padding: 12px 10px;
    font-size: 14px;
  }

  .mobile-sticky-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
  }

  .top-button {
    right: 14px;
    bottom: 92px;
  }

  .footer-inner {
    padding: 38px 0 24px;
  }

  .footer-logo {
    width: min(300px, 80vw);
  }

  body {
    padding-bottom: 78px;
  }
}
