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

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

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

:root {
  --primary: #47860b;
  --primary-light: #a0db68;
  --secondary: #d19444;
  --logo-teal: #0497a7;
  --logo-blue: #4db1f3;
  --tertiary: #1d7fbf;
  --dark-blue: #062b50;
  --bg: #e3eeff;
  --bg-soft: #f4f8ff;
  --white: #ffffff;
  --text: #062b50;
  --text-muted: #4a5a6a;
  --radius: 4px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "OpenSans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 248, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(6, 43, 80, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark-blue);
}

.brand img {
  border-radius: 8px;
}

.nav-links {
  display: none;
  gap: 1.75rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--logo-teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(6, 43, 80, 0.15);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark-blue);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-dropdown__btn:hover,
.lang-dropdown.is-open .lang-dropdown__btn {
  border-color: var(--logo-teal);
}

.lang-dropdown__chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  transition: transform 0.2s var(--ease);
}

.lang-dropdown.is-open .lang-dropdown__chevron {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--white);
  border: 1px solid rgba(6, 43, 80, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(6, 43, 80, 0.12);
  z-index: 120;
}

.lang-dropdown__menu[hidden] {
  display: none;
}

.lang-dropdown__menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text);
}

.lang-dropdown__menu a:hover,
.lang-dropdown__menu a.active {
  background: var(--bg);
  color: var(--dark-blue);
  font-weight: 700;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.store-badges--header {
  display: none;
}

.store-badges--center {
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge img {
  height: auto;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-blue);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(6, 43, 80, 0.08);
  background: var(--bg-soft);
}

.mobile-nav[hidden] {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #3a7009;
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--tertiary);
  font-weight: 600;
  font-size: 0.95rem;
}

.text-link:hover {
  color: var(--logo-teal);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 43, 80, 0.35) 0%, rgba(6, 43, 80, 0.72) 55%, rgba(6, 43, 80, 0.9) 100%),
    linear-gradient(90deg, rgba(4, 151, 167, 0.25), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  max-width: 720px;
  margin-left: max(1.25rem, calc((100% - 1120px) / 2));
  margin-right: 1.25rem;
  width: auto;
}

.hero-brand {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--primary-light);
}

.hero h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 38ch;
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

/* Social */
.social {
  padding: 4.5rem 0;
  background: var(--white);
  text-align: center;
}

.social h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.quotes {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.quotes blockquote {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0 1rem;
}

.quotes blockquote::before {
  content: "“";
  color: var(--logo-teal);
  font-size: 2rem;
  line-height: 0;
  margin-right: 0.15rem;
}

/* Use cases */
.use-cases {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.use-cases h2 {
  text-align: center;
  margin: 0 0 2.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.use-grid {
  display: grid;
  gap: 2.5rem;
}

.use-image {
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 16 / 10;
}

.use-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.use-item:hover .use-image img {
  transform: scale(1.04);
}

.use-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.use-item p {
  margin: 0;
  color: var(--text-muted);
}

/* Features */
.features {
  padding: 4.5rem 0 2rem;
  background: var(--white);
}

.features > .container > h2 {
  text-align: center;
  margin: 0 0 3rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.feature-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-copy h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
}

.feature-copy p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40ch;
}

.feature-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-media--accent {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--bg), #c8e8f0);
}

.logo-feature {
  width: min(220px, 55%);
  height: auto;
  object-fit: contain;
}

/* Final CTA */
.final-cta {
  padding: 5rem 0;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(4, 151, 167, 0.92), rgba(29, 127, 191, 0.88)),
    url("/images/hero.jpg") center / cover;
  color: var(--white);
}

.final-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.final-cta p {
  margin: 0 0 1.75rem;
  opacity: 0.95;
}

.final-cta .btn-primary {
  background: var(--white);
  color: var(--dark-blue);
}

.final-cta .btn-primary:hover {
  background: var(--primary-light);
}

/* Footer */
.site-footer {
  background: var(--dark-blue);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand img {
  border-radius: 6px;
}

.footer-cols {
  display: grid;
  gap: 1.25rem;
}

.footer-cols a {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-cols a:hover {
  color: var(--primary-light);
}

.copyright {
  margin: 0.5rem 0 0;
  opacity: 0.6;
  font-size: 0.85rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Desktop */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .store-badges--header {
    display: flex;
  }

  .quotes {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .use-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .feature-row.reverse .feature-copy {
    order: 2;
  }

  .feature-row.reverse .feature-media {
    order: 1;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    max-width: 480px;
  }

  .hero-content {
    padding-bottom: 6rem;
  }
}

@media (min-width: 1024px) {
  .store-badges--header .store-badge img {
    width: 130px;
  }
}
