@font-face {
  font-family: "Bastardo Grotesk";
  src: url("../assets/fonts/BastardoGrotesk-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bastardo Grotesk";
  src: url("../assets/fonts/BastardoGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bastardo Grotesk";
  src: url("../assets/fonts/BastardoGrotesk-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bastardo Grotesk";
  src: url("../assets/fonts/BastardoGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #001323;
  --bg-nav: rgba(111, 108, 126, 0.9);
  --bg-light: #f5f5f5;
  --text-dark: #17151f;
  --text-muted: rgba(23, 21, 31, 0.68);
  --text-soft: rgba(255, 255, 255, 0.82);
  --blue: #219dfb;
  --blue-card: #1684f2;
  --border-soft: rgba(23, 21, 31, 0.12);
  --shadow-soft: 0 24px 60px rgba(14, 20, 33, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Bastardo Grotesk", sans-serif;
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
  width: min(1312px, calc(100% - 32px));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.nav-menu > li {
  position: relative;
}

.nav-link,
.nav-dropdown > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-caret {
  width: 14px;
  height: 14px;
}

.nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  padding: 12px;
  display: grid;
  gap: 4px;
  background: rgba(10, 15, 27, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.nav-panel a,
.mobile-panel a,
.mobile-menu nav > a,
.mobile-menu summary {
  color: #fff;
}

.nav-panel a {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.35;
}

.nav-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-portal,
.nav-touch,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-portal {
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.nav-touch,
.primary-button {
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.nav-touch:hover,
.nav-portal:hover,
.primary-button:hover,
.carousel-arrow:hover {
  transform: translateY(-2px);
}

.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  font-size: 22px;
}

.mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 15, 27, 0.98);
}

.mobile-menu nav {
  width: min(1312px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  display: grid;
  gap: 12px;
}

.mobile-menu details,
.mobile-menu nav > a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.mobile-menu summary {
  list-style: none;
  font-weight: 600;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-panel {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.ai-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 80px));
  margin-top: 80px;
  padding-top: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.78) 0%, rgba(11, 11, 12, 0.42) 34%, rgba(11, 11, 12, 0.08) 62%, rgba(11, 11, 12, 0.02) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.12) 100%),
    url("../img/hero-bg.png") center top / cover no-repeat;
}

.ai-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1312px, calc(100% - 96px));
  min-height: min(760px, calc(100vh - 80px));
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.ai-hero-copy {
  max-width: 760px;
  color: #fff;
}

.ai-hero-copy h1,
.split-title h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.ai-hero-copy p {
  margin: 26px 0 0;
  max-width: 40ch;
  font-size: 22px;
  line-height: 1.44;
  color: var(--text-soft);
  letter-spacing: -0.015em;
}

.ai-hero-copy .primary-button {
  margin-top: 34px;
}

.split-section-light {
  background: var(--bg-light);
}

.split-shell,
.use-cases-shell {
  width: min(1312px, calc(100% - 96px));
  margin: 0 auto;
}

.split-shell {
  padding: 104px 0;
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: 72px;
  align-items: start;
}

.split-title h2,
.section-head h2 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  color: var(--text-dark);
}

.accordion {
  display: grid;
  gap: 14px;
}

.accordion-item {
  background: transparent;
  border-bottom: 1px solid rgba(23, 21, 31, 0.1);
  overflow: hidden;
  padding-bottom: 10px;
}

.accordion-trigger {
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
  color: var(--text-dark);
}

.accordion-icon {
  width: 8px;
  margin-top: 2px;
  align-self: start;
}

.accordion-trigger span {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.accordion-panel {
  margin-top: -10px;
  padding: 0 0 16px 30px;
}

.accordion-panel p {
  margin: 0;
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.58;
  color: var(--text-muted);
}

.use-cases-section {
  background: var(--bg-dark);
  padding: 100px 0 116px;
  color: #fff;
}

.section-head {
  margin-bottom: 48px;
  text-align: center;
}

.section-head h2 {
  color: #fff;
}

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-viewport.is-dragging {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-right: 80px;
}

.use-card {
  flex: 0 0 392px;
  min-height: 336px;
  padding: 26px 28px 24px;
  background: var(--blue-card);
  color: #fff;
}

.use-card h3 {
  margin: 0;
  max-width: 16ch;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.use-card p {
  margin: 64px 0 0;
  font-size: 18px;
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.012em;
}

.features-section .final-action {
  width: min(1312px, calc(100% - 96px));
  margin: 8px auto 0;
  display: flex;
  justify-content: center;
  padding-bottom: 112px;
}

.site-footer {
  background: #1e0058;
  color: #fff;
}

.footer-inner {
  width: min(1312px, calc(100% - 64px));
  margin: 0 auto;
  padding: 76px 0 56px;
}

.footer-logo {
  width: 220px;
}

.footer-badges {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-badge {
  height: 84px;
  width: auto;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 56px 72px;
}

.footer-location + .footer-location {
  margin-top: 24px;
}

.footer-location h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.footer-location p {
  margin: 0;
  font-size: 22px;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 22px;
}

.footer-meta a,
.footer-socials a {
  color: #fff;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-socials img {
  width: 28px;
  height: 28px;
}

@media (max-width: 1279px) {
  .nav-menu,
  .nav-actions {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ai-hero-inner,
  .split-shell,
  .use-cases-shell,
  .features-section .final-action {
    width: min(100% - 48px, 1080px);
  }

  .split-shell {
    gap: 52px;
    grid-template-columns: 1fr 1.35fr;
  }

  .use-card {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 899px) {
  .ai-hero {
    min-height: auto;
    margin-top: 80px;
    padding-top: 0;
  }

  .ai-hero-inner {
    min-height: auto;
    width: calc(100% - 32px);
    padding: 116px 0 56px;
  }

  .ai-hero-copy {
    max-width: 100%;
  }

  .ai-hero-copy p {
    max-width: 34ch;
  }

  .split-shell,
  .use-cases-shell,
  .features-section .final-action {
    width: calc(100% - 32px);
  }

  .split-shell {
    padding: 72px 0;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .carousel-viewport {
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .carousel-track {
    width: max-content;
  }

  .use-card {
    flex-basis: min(76vw, 388px);
    scroll-snap-align: start;
  }

  .footer-inner {
    width: calc(100% - 32px);
    padding: 64px 0 40px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-locations {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer-meta {
    flex-wrap: wrap;
    gap: 14px 22px;
  }
}

@media (max-width: 639px) {
  .ai-hero {
    margin-top: 72px;
    min-height: auto;
  }

  .nav-inner {
    width: calc(100% - 24px);
    min-height: 72px;
  }

  .nav-logo img {
    height: 34px;
  }

  .mobile-menu nav {
    width: calc(100% - 24px);
  }

  .ai-hero {
    background:
      linear-gradient(180deg, rgba(6, 8, 12, 0.82) 0%, rgba(6, 8, 12, 0.7) 34%, rgba(6, 8, 12, 0.86) 100%),
      linear-gradient(90deg, rgba(7, 8, 12, 0.94) 0%, rgba(7, 8, 12, 0.76) 48%, rgba(7, 8, 12, 0.48) 100%),
      url("../img/hero-bg.png") 68% top / cover no-repeat;
    background-blend-mode: multiply, multiply, normal;
  }

  .ai-hero-copy h1,
  .split-title h2,
  .section-head h2 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .ai-hero-copy p {
    font-size: 18px;
    max-width: 100%;
  }

  .split-shell,
  .use-cases-shell,
  .features-section .final-action {
    width: calc(100% - 24px);
  }

  .split-shell {
    padding: 56px 0;
  }

  .accordion-trigger {
    padding: 0;
    grid-template-columns: 14px 1fr;
    gap: 10px;
  }

  .accordion-trigger span {
    font-size: 24px;
    line-height: 1;
  }

  .accordion-icon {
    width: 9px;
    margin-top: 1px;
  }

  .accordion-panel {
    margin-top: -8px;
    padding: 0 0 14px 20px;
  }

  .accordion-panel p,
  .use-card p {
    font-size: 16px;
  }

  .use-cases-section {
    padding: 68px 0 76px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .use-card {
    min-height: 300px;
    padding: 20px 20px 20px;
    flex-basis: calc(100vw - 48px);
  }

  .use-card h3 {
    font-size: 21px;
  }

  .use-card p {
    margin-top: 92px;
  }

  .features-section .final-action {
    padding-bottom: 72px;
  }

  .footer-logo {
    width: 176px;
  }

  .footer-badge {
    height: 72px;
  }

  .footer-location p,
  .footer-meta {
    font-size: 18px;
  }
}
