:root {
  --bg: #1c1c1c;
  --panel: #101010;
  --text: #ffffff;
  --muted: #cfcfcf;
  --accent: #cb1087;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.35);
  --max: 980px;
  --navWidth: 280px;
  --button-border-gradient: linear-gradient(
    90deg,
    #72A5D4 0%,
    #CCD6C8 33.33%,
    #DB6D59 66.66%,
    #723A76 100%
  );
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background: #0f0f0f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app {
  min-height: 100%;
  display: grid;
  grid-template-columns: var(--navWidth) 1fr;
}

/* Mobile header */
.mobile-header {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.mobile-header__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.mobile-header__title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.nav {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: var(--panel);
  border-right: 1px solid var(--border);
}

.brand {
  padding: 20px 18px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.brand a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 8px auto 12px;
}

.brand__title {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.brand__email {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #88b7ff;
  text-decoration: underline;
  word-break: break-word;
}

.nav__links {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 18px;
  gap: 4px;
}

.nav__link {
  padding: 10px 12px;
  border-radius: 10px;
  color: #f4f4f4;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid transparent;
  position: relative;
  background: transparent;
  -webkit-tap-highlight-color: rgba(203, 16, 135, 0.2);
  touch-action: manipulation;
}

.nav__link:hover {
  border-color: transparent;
  background: rgba(237, 117, 34, 0.08);
}

.nav__link:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1px;
  background: var(--button-border-gradient);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.nav__link.is-active {
  background: rgba(237, 117, 34, 0.16);
  border: 1px solid transparent;
}

.nav__link.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1px;
  background: var(--button-border-gradient);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.main {
  min-height: 100vh;
  background: #000000;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 22px 30px;
}

.hero__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px;
  width: 100%;
  max-width: 600px;
}

.hero__title {
  margin: 0 0 22px;
  font-size: 32px;
  letter-spacing: 0.02em;
  text-align: center;
}

.hero__form-title {
  margin: 0 0 20px;
  font-size: 30px;
  letter-spacing: 0.02em;
  text-align: center;
  color: white;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: 6px 0 18px;
}

.ghost-button {
  display: block;
  text-align: center;
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--bg);
  position: relative;
  border: 1px solid transparent;
  transition: transform 150ms ease, background 150ms ease;
  -webkit-tap-highlight-color: rgba(203, 16, 135, 0.2);
  touch-action: manipulation;
}

.ghost-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: var(--button-border-gradient);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.ghost-button:hover {
  transform: translateY(-1px);
  background: rgba(237, 117, 34, 0.08);
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px 22px 54px;
  color: #0d0d0d;
  background: #ffffff;
}

.page h1 {
  margin: 0 0 12px;
  font-size: 42px;
  color: #000;
}

.page h2 {
  margin: 20px 0 10px;
  font-size: 24px;
  color: #000;
}

.page p {
  line-height: 1.55;
  color: #1f1f1f;
  margin: 10px 0;
}

.page a {
  color: #1155cc;
}

.img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
  max-width: 100%;
}

.callout {
  margin-top: 18px;
  padding: 14px 14px;
  border-radius: 12px;
  background: #f6f7f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.hubspot-form-container {
  margin-top: 0;
  margin-bottom: 0;
  padding: 20px 0;
}

.hubspot-form-container iframe {
  width: 100%;
  border: none;
}

.footer {
  background: #e8eaec;
  color: #231f20;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 22px;
  font-size: 14px;
}

.footer__inner a {
  margin-left: 8px;
  color: #1155cc;
}

/* Tablet and below */
@media (max-width: 820px) {
  .app {
    grid-template-columns: 1fr;
  }

  /* Mobile header */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .hamburger {
    position: absolute;
    left: 18px;
  }

  .mobile-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: none;
    border-bottom: 1px solid var(--border);
    transform: translate3d(0, -100%, 0);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    will-change: transform;
  }

  .nav.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    touch-action: manipulation;
  }

  .nav-overlay.is-active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .brand {
    padding: 16px 18px 12px;
    display: block;
    flex-shrink: 0;
  }

  .brand__logo {
    width: 72px;
    height: 72px;
    margin: 4px auto 10px;
  }

  .brand__title {
    font-size: 13px;
  }

  .brand__email {
    font-size: 12px;
    margin-top: 8px;
  }

  .nav__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 10px 24px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    position: relative;
    max-height: 100%;
  }

  .nav__link {
    padding: 12px 10px;
    font-size: 13px;
    text-align: left;
  }

  .hero {
    padding: 28px 18px 24px;
  }

  .hero__title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .button-grid {
    gap: 10px;
    padding: 4px 0 16px;
  }

  .ghost-button {
    padding: 14px 12px;
    font-size: 14px;
  }

  .page {
    padding: 32px 18px 40px;
  }

  .page h1 {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .page h2 {
    font-size: 22px;
    margin: 18px 0 12px;
  }

  .footer__inner {
    padding: 18px 18px;
    text-align: center;
  }

  .footer__inner a {
    margin-left: 4px;
    display: inline-block;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .mobile-header {
    padding: 10px 16px;
  }

  .hamburger {
    left: 16px;
  }

  .mobile-header__logo img {
    width: 36px;
    height: 36px;
  }

  .mobile-header__title {
    font-size: 16px;
  }

  .nav {
    top: 56px;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
  }

  .nav-overlay {
    top: 56px;
  }

  .brand {
    padding: 14px 16px 10px;
  }

  .brand__logo {
    width: 64px;
    height: 64px;
    margin: 2px auto 8px;
  }

  .brand__title {
    font-size: 12px;
  }

  .brand__email {
    font-size: 11px;
    word-break: break-word;
  }

  .nav__links {
    gap: 4px;
    padding: 10px 8px 14px;
  }

  .nav__link {
    padding: 14px 12px;
    font-size: 14px;
  }

  .hero {
    padding: 24px 16px 20px;
  }

  .hero__title {
    font-size: 22px;
    margin-bottom: 18px;
    line-height: 1.3;
  }

  .button-grid {
    gap: 8px;
    padding: 2px 0 14px;
  }

  .ghost-button {
    padding: 16px 12px;
    font-size: 13px;
    letter-spacing: 0.03em;
  }

  .page {
    padding: 28px 16px 36px;
  }

  .page h1 {
    font-size: 28px;
    margin-bottom: 14px;
    line-height: 1.2;
  }

  .page h2 {
    font-size: 20px;
    margin: 16px 0 10px;
    line-height: 1.3;
  }

  .page p {
    font-size: 15px;
    line-height: 1.6;
    margin: 12px 0;
  }

  .img {
    margin: 14px 0;
    border-radius: 10px;
  }

  .callout {
    margin-top: 16px;
    padding: 12px 12px;
    border-radius: 10px;
  }

  .callout p {
    font-size: 14px;
    margin: 8px 0;
  }

  .footer__inner {
    padding: 16px 16px;
    font-size: 13px;
  }

  .footer__inner strong {
    display: block;
    margin-bottom: 4px;
  }

  .footer__inner a {
    margin-left: 0;
    display: block;
    word-break: break-word;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .hero__title {
    font-size: 20px;
  }

  .page h1 {
    font-size: 24px;
  }

  .page h2 {
    font-size: 18px;
  }

  .ghost-button {
    font-size: 12px;
    padding: 14px 10px;
  }
}

