@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --container-width: 1220px;
  --transition: 0.24s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.site-header,
.site-footer {
  --primary: #00b4d8;
  --primary-dark: #0077b6;
  --primary-light: #90e0ef;
  --accent: #f7a325;
  --accent-warm: #ff6b35;
  --dark: #0a1628;
  --text: #e8edf5;
  --text-muted: #8899aa;
  --white: #ffffff;
  --gradient-accent: linear-gradient(135deg, #00b4d8, #0077b6);
  --shadow-strong: 0 30px 70px -40px rgba(0, 11, 22, 0.72);
  font-family: "Inter", "Segoe UI", sans-serif;
}

.skip-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 120;
  padding: 12px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #0a1628;
  transform: translateY(-200%);
  transition: transform var(--transition);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  overflow: visible;
  background: rgba(8, 18, 31, 0.74);
  border-bottom: 1px solid rgba(144, 224, 239, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px -24px rgba(0, 11, 22, 0.64);
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--container-width), calc(100% - 48px));
  max-width: none;
  min-height: 80px;
  margin: 0 auto;
  padding: 12px 0;
  overflow: visible;
}

.site-header.is-scrolled {
  background: rgba(8, 18, 31, 0.9);
  border-bottom-color: rgba(144, 224, 239, 0.16);
  box-shadow: 0 18px 38px -24px rgba(0, 11, 22, 0.76);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.header-download-trigger {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: rgba(232, 237, 245, 0.76);
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition);
}

.header-download-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-download-anchor:hover .header-download-trigger,
.header-download-anchor:focus-within .header-download-trigger,
.header-download-anchor.is-open .header-download-trigger {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
}

.header-download {
  display: inline-flex;
  overflow: visible;
}

.header-download-anchor {
  position: relative;
  display: inline-block;
}

@media (hover: hover) and (min-width: 561px) {
  .header-download-trigger {
    cursor: default;
  }
}

@media (hover: none) and (min-width: 561px) {
  .header-download-trigger {
    cursor: pointer;
  }
}

.header-cta-short {
  display: none;
}

.download-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: auto;
  right: 0;
  z-index: 110;
  display: none;
  width: auto;
  min-width: 100%;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(144, 224, 239, 0.18);
  border-radius: 14px;
  background: rgba(8, 18, 31, 0.96);
  color: var(--text);
  box-shadow: 0 18px 46px -28px rgba(0, 11, 22, 0.78);
  opacity: 0;
  transform: translateY(-4px);
  transform-origin: top right;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.header-download-anchor.is-open {
  z-index: 120;
}

.header-download-anchor.is-open .download-popover {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.download-popover-actions {
  display: grid;
  gap: 2px;
  margin: 0;
}

.download-option {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(232, 237, 245, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color var(--transition),
    color var(--transition);
}

.download-option:hover,
.download-option:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
}

.header-download-trigger:focus-visible,
.download-option:focus-visible {
  outline: 3px solid rgba(144, 224, 239, 0.24);
  outline-offset: 3px;
}

.site-footer {
  color: var(--text);
}

.site-footer a {
  text-decoration: none;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 180, 216, 0.18));
}

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

.brand-name {
  color: var(--white);
  font-size: 1rem;
}

.brand-note {
  color: rgba(232, 237, 245, 0.66);
  font-size: 0.82rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.97rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    box-shadow var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.button-small {
  min-height: 46px;
  padding-inline: 18px;
}

.button-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 22px 48px -24px rgba(0, 180, 216, 0.72);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 26px 56px -26px rgba(0, 180, 216, 0.84);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(144, 224, 239, 0.16);
  color: var(--white);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(144, 224, 239, 0.24);
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 0 0 36px;
  background:
    radial-gradient(circle at top right, rgba(0, 180, 216, 0.14), transparent 18%),
    linear-gradient(180deg, #07101a 0%, #0a1628 100%);
}

.footer-shell {
  padding-top: 54px;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 32px;
  border-radius: 34px;
  border: 1px solid rgba(144, 224, 239, 0.14);
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.14), rgba(255, 107, 53, 0.12));
  box-shadow: var(--shadow-strong);
}

.footer-cta-copy {
  max-width: 700px;
}

.footer-cta-copy h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.footer-cta-copy p {
  margin: 16px 0 0;
  color: rgba(232, 237, 245, 0.72);
  line-height: 1.76;
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-head {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  margin-top: 60px;
  align-items: flex-end;
}

.footer-intro {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(232, 237, 245, 0.68);
  line-height: 1.76;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(144, 224, 239, 0.16);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(144, 224, 239, 0.1);
}

.footer-column h3 {
  margin: 0 0 18px;
  color: var(--primary-light);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: rgba(232, 237, 245, 0.72);
  line-height: 1.55;
  transition: color var(--transition), transform var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
  transform: translateX(2px);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  color: rgba(232, 237, 245, 0.56);
  font-size: 0.94rem;
}

.footer-meta p {
  margin: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(144, 224, 239, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.social-link-disabled {
  color: rgba(232, 237, 245, 0.48);
}

@media (max-width: 1180px) {
  .footer-cta,
  .footer-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container-width), calc(100% - 32px));
  }

  .header-inner {
    width: min(var(--container-width), calc(100% - 32px));
    gap: 12px;
    min-height: 74px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-note {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

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

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

@media (max-width: 560px) {
  .header-actions .button-small {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.88rem;
  }

  .header-download {
    display: none;
  }

  .header-cta-full {
    display: none;
  }

  .header-cta-short {
    display: inline;
  }

  .brand-mark {
    width: auto;
    height: auto;
  }

  .brand-mark img {
    width: 44px;
    height: 44px;
  }

  .brand-copy {
    display: none;
  }

  .footer-cta-actions {
    width: 100%;
  }

  .footer-cta-actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 10px;
  }

  .header-actions {
    margin-left: auto;
  }
}
