:root {
  --ink: #121816;
  --muted: #5a6b64;
  --line: rgba(18, 24, 22, 0.1);
  --accent: #e2043e;
  --accent-deep: #b80332;
  --brand-green: #3dcf4a;
  --burger-purple: #7b2cbf;
  --surface: #ffffff;
  --page: #ffffff;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
}

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

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-nav,
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
}

.top-nav {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid transparent;
  flex-wrap: wrap;
}

.nav-bar {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.nav-home {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-burger-line {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger-line--top,
.nav-burger-line--bot {
  background: var(--burger-purple);
}

.nav-burger-line--mid {
  background: var(--brand-green);
}

.top-nav.is-open .nav-burger-line--top {
  transform: translateY(9px) rotate(45deg);
}

.top-nav.is-open .nav-burger-line--mid {
  opacity: 0;
}

.top-nav.is-open .nav-burger-line--bot {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.nav-left,
.nav-right,
.bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.is-active {
  color: var(--accent);
  font-weight: 600;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
  color: var(--ink);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 12.5rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(18, 24, 22, 0.1);
  display: none;
  z-index: 40;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-item {
  display: block;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover {
  background: rgba(226, 4, 62, 0.06);
  color: var(--accent);
}

.nav-auth {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn-ghost {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent);
}

.btn-ghost:hover {
  border-color: var(--accent-deep);
  color: #fff;
  background: var(--accent);
}

.btn-solid {
  background: var(--accent);
  color: #fff;
}

.btn-solid:hover {
  background: var(--accent-deep);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
  animation: rise 0.7s ease both;
}

.brand-link {
  position: relative;
  display: block;
  line-height: 0;
  isolation: isolate;
}

.brand-logo {
  display: block;
  width: min(420px, 86vw);
  height: auto;
}

/* Soft white fade only at the very edges of the logo plate */
.brand-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 4%, rgba(255, 255, 255, 0) 96%, #fff 100%),
    linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 6%, rgba(255, 255, 255, 0) 94%, #fff 100%);
  box-shadow: inset 0 0 12px 6px #fff;
}

.brand-sub {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.brand-tagline {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.search-shell {
  width: min(640px, 100%);
  animation: rise 0.7s ease 0.08s both;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.45rem 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(18, 24, 22, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
  border-color: rgba(226, 4, 62, 0.45);
  box-shadow: 0 12px 44px rgba(226, 4, 62, 0.12);
}

.search-form input[type="search"] {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  min-width: 0;
}

.search-form input[type="search"]::placeholder {
  color: #8a9a93;
}

.search-submit {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-submit:hover {
  background: var(--accent-deep);
  transform: scale(1.04);
}

.search-submit svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hint {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  animation: rise 0.7s ease 0.14s both;
}

.ad-row {
  width: min(980px, 100%);
  margin: 2.75rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  gap: 1.25rem;
  animation: rise 0.7s ease 0.2s both;
}

.ad-box {
  width: 300px;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ad-box:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 4, 62, 0.35);
  box-shadow: 0 16px 36px rgba(18, 24, 22, 0.08);
}

.ad-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.ad-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.55rem 0 0.4rem;
}

.ad-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ad-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.ad-box--network {
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
}

.ad-box--network:hover {
  transform: none;
}

.ad-box--network iframe {
  width: 100% !important;
  max-width: 300px;
  min-height: 250px;
  border: 0;
  display: block;
}

.bottom-nav {
  border-top: 1px solid var(--line);
  background: var(--page);
  margin-top: auto;
}

.bottom-nav .copy {
  font-size: 0.82rem;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .ad-row {
    grid-template-columns: 300px;
  }
}

@media (max-width: 900px) {
  .top-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-bar {
    display: flex;
  }

  .nav-burger {
    display: flex;
  }

  .nav-panel {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.85rem 0 0.35rem;
    border-top: 1px solid var(--line);
    margin-top: 0.65rem;
  }

  .top-nav.is-open .nav-panel {
    display: flex;
  }

  .nav-left,
  .nav-right,
  .nav-auth {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-left .nav-link,
  .nav-dropdown-toggle {
    padding: 0.65rem 0.15rem;
    font-size: 1rem;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--line);
    margin: 0.15rem 0 0.35rem;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .bottom-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1rem;
  }

  .brand-logo {
    width: min(320px, 90vw);
  }
}

@media (max-width: 720px) {
  .brand-logo {
    width: min(320px, 90vw);
  }
}
