:root {
  --bg: #08111d;
  --bg-soft: #101d31;
  --panel: rgba(10, 18, 30, 0.78);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f3f6fb;
  --muted: rgba(243, 246, 251, 0.78);
  --accent: #f3bf72;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
  --site-frame: min(1280px, calc(100vw - 32px));
  --hero-frame: min(1720px, calc(100vw - 72px));
  --hero-gutter: calc((100vw - var(--hero-frame)) / 2);
  --hero-pad-x: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(243, 191, 114, 0.12), transparent 22%),
    linear-gradient(180deg, #050b13 0%, #08111d 52%, #060d17 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 95%);
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
}

.hero-subpage {
  min-height: 62vh;
}

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

.slide {
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 900ms ease;
}

.slide.is-active {
  opacity: 1;
}

.slide-caption {
  position: absolute;
  left: calc(var(--hero-gutter) + var(--hero-pad-x));
  bottom: 72px;
  z-index: 2;
  max-width: min(620px, 42vw);
}

.slide-title,
.slide-subtitle {
  margin: 0;
  color: #fff;
}

.slide-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1;
}

.slide-subtitle {
  margin-top: 18px;
  max-width: 30ch;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.84) 0%, rgba(5, 10, 18, 0.52) 42%, rgba(5, 10, 18, 0.7) 100%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.28), rgba(5, 10, 18, 0.82));
}

.hero-shell,
.site-shell {
  position: relative;
  z-index: 2;
  width: var(--site-frame);
  margin: 0 auto;
}

.hero-shell {
  width: var(--hero-frame);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 0 34px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px var(--hero-pad-x) 14px;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.topbar.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 17, 29, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.topbar.is-menu-open {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 17, 29, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 172px;
  height: auto;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-name,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-slogan {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.topbar-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 18px;
}

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.topbar.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  flex-wrap: wrap;
  gap: 18px;
}

.nav-item {
  position: relative;
}

.nav-dropdown {
  display: inline-flex;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 17, 29, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 80;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.94rem;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a,
.contact-card a {
  color: var(--text);
  text-decoration: none;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.98rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-button {
  border: 0;
  min-width: 46px;
  min-height: 38px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.language-button.is-active {
  background: var(--accent);
  color: #0b1420;
}

.hero-stage {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 24px;
  padding: 120px var(--hero-pad-x) 42px;
  position: relative;
}

.hero-subpage .hero-stage {
  align-items: center;
  padding: 112px 0 36px;
}

.hero-subpage .hero-main {
  max-width: 760px;
}

.hero-main {
  max-width: 720px;
}

.hero-label,
.section-kicker,
.product-code {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-family: "Space Grotesk", sans-serif;
}

.hero-label,
.section-kicker {
  color: var(--accent);
}

.hero-title {
  margin: 14px 0 18px;
  max-width: 10.5ch;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.95;
}

.hero-text {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  color: #0b1420;
  background: var(--accent);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.slider-dots {
  position: absolute;
  right: var(--hero-pad-x);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.slider-dot.is-active {
  background: rgba(255, 255, 255, 1);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.scroll-indicator span {
  width: 12px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-2px);
}

.site-shell {
  padding: 42px 0 22px;
}

@media (min-width: 1600px) {
  :root {
    --hero-frame: min(1840px, calc(100vw - 88px));
    --hero-pad-x: 18px;
  }

  .brand-logo {
    width: 184px;
  }

  .brand-slogan {
    font-size: 1.08rem;
  }

  .slide-caption {
    bottom: 84px;
    max-width: 700px;
  }

  .slide-title {
    font-size: clamp(3.4rem, 4.6vw, 5.4rem);
  }

  .slide-subtitle {
    max-width: 34ch;
    font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  }
}

.section {
  padding: 30px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-head h2,
.profile-copy h2,
.footer-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  max-width: 12ch;
}

.section-head p,
.profile-copy p,
.solution-copy p,
.product-copy p,
.stat-card p,
.footer-copy p,
.contact-card p {
  color: var(--muted);
  line-height: 1.65;
}

.solution-grid,
.product-grid,
.stats-grid,
.policy-grid {
  display: grid;
  gap: 18px;
}

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

.solution-card,
.product-card,
.stat-card,
.profile-copy,
.profile-media,
.footer-copy,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.solution-card,
.product-card,
.profile-copy,
.profile-media,
.footer-copy,
.contact-card {
  border-radius: 28px;
  overflow: hidden;
}

.solution-card img,
.product-card img,
.profile-media img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.solution-copy,
.product-copy,
.profile-copy,
.footer-copy,
.contact-card {
  padding: 24px;
}

.solution-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
}

.solution-copy h3,
.product-copy h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.profile-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

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

.policy-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  scroll-margin-top: 110px;
}

.policy-card h3 {
  margin: 10px 0 10px;
  font-size: 1.4rem;
}

.policy-card p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

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

.product-code {
  color: var(--accent);
  margin-bottom: 10px;
}

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

.stat-card {
  min-height: 190px;
  padding: 26px;
  border-radius: 24px;
}

.stat-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: 2rem;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
}

.footer {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 28px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(8, 17, 29, 0.92) 0%, rgba(14, 25, 48, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 28px;
}

.footer-brand,
.footer-sitemap {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-brand {
  display: grid;
  gap: 24px;
  align-content: start;
}

.footer-brand-link {
  display: inline-flex;
  width: fit-content;
}

.footer-logo {
  width: min(220px, 100%);
  height: auto;
  display: block;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(243, 191, 114, 0.12);
}

.footer-heading {
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.footer-link-grid a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-link-grid a:hover,
.footer-link-grid a:focus-visible {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  color: rgba(243, 246, 251, 0.72);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (max-width: 1100px) {
  .solution-grid,
  .stats-grid,
  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-section {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .hero-shell,
  .site-shell {
    width: min(100% - 20px, 1280px);
  }

  .footer-inner {
    width: min(100% - 20px, 1280px);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
  }

  .menu-toggle {
    display: inline-block;
    justify-self: end;
  }

  .topbar-actions {
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0 4px;
  }

  .topbar.is-menu-open .topbar-actions {
    display: flex;
  }

  .hero-stage {
    display: grid;
    gap: 26px;
    padding-top: 92px;
    padding-bottom: 64px;
  }

  .hero-title {
    max-width: 12ch;
    font-size: clamp(2.3rem, 8vw, 4rem);
  }

  .brand {
    gap: 12px;
    max-width: 100%;
  }

  .brand-copy {
    gap: 6px;
  }

  .brand-slogan {
    font-size: 0.98rem;
  }

  .topbar-actions,
  .nav-links {
    width: 100%;
    align-items: stretch;
  }

  .nav-links {
    flex-direction: column;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .nav-links > a,
  .nav-dropdown > a {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .nav-dropdown {
    display: block;
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .slider-dots {
    right: 6px;
  }

  .solution-grid,
  .product-grid,
  .stats-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    max-height: 0;
    margin-top: 0;
    padding: 0 10px;
    border-color: transparent;
    opacity: 1;
    pointer-events: none;
    transform: none;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    overflow: hidden;
    transition: max-height 220ms ease, padding 220ms ease, margin 220ms ease, border-color 220ms ease;
  }

  .nav-dropdown.is-open .dropdown-menu {
    max-height: 320px;
    margin-top: 8px;
    padding: 10px;
    border-color: var(--line);
    pointer-events: auto;
  }

  .footer-link-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .slide-caption {
    left: 20px;
    right: 20px;
    bottom: 120px;
    max-width: none;
  }

  .slide-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .slide-subtitle {
    margin-top: 12px;
    font-size: 0.98rem;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-logo {
    width: 128px;
  }

  .brand-slogan {
    font-size: 0.92rem;
  }

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

  .hero-title {
    max-width: none;
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.02;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .slider-dots {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 56px;
    transform: none;
    justify-content: center;
    flex-direction: row;
  }

  .scroll-indicator {
    bottom: 16px;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .solution-card,
  .product-card,
  .profile-copy,
  .profile-media,
  .stat-card {
    border-radius: 22px;
  }

  .footer-link-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
