/* Shared Tokyyy foundations and site chrome. The homepage is the visual baseline. */
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #0d0e12;
  --surface: #15161c;
  --muted: #adb0bd;
  --line: #30323d;
  --purple: #4e22ff;
  --lavender: #b6a4ff;
  --accent: var(--purple);
  --accent-text: var(--lavender);
  --text: #fff;
  --border: var(--line);
  --bg-deep: var(--bg);
  --field: var(--bg);
  --surface-tint: #1d1f27;
  --radius-btn: 12px;
  --radius-card: 16px;
  --radius-band: 24px;
  --font-mono: "IBM Plex Mono", monospace;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
h1,
h2,
h3,
p,
figure,
ol,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
}
h1,
h2 {
  letter-spacing: -0.035em;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 6px;
}
a {
  transition:
    color 0.15s,
    background-color 0.15s;
}
p,
dd {
  color: var(--muted);
}
.container {
  width: calc(100% - 96px);
  max-width: 1248px;
  margin-inline: auto;
}
.surface {
  background: var(--surface);
}
.eyebrow {
  color: var(--lavender);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
h2 {
  font-size: 56px;
  line-height: 1.09;
}
.lead {
  font-size: 18px;
  line-height: 28px;
}
.standfirst {
  color: #fff;
  font-weight: 500;
}
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  text-align: center;
}
.button:hover,
.btn-primary:hover {
  background: #643cff;
}
.skip-link {
  position: fixed;
  left: 24px;
  top: 12px;
  z-index: 10;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  background: white;
  color: var(--purple);
  border-radius: 8px;
}
.skip-link:focus {
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip-path: none;
}
.business-header {
  height: 96px;
}
.navigation {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  flex-shrink: 0;
}
.brand img {
  filter: brightness(0) invert(1);
}
.navigation .brand img {
  width: 116px;
  height: 36px;
}
.navigation-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.attendee-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.attendee-link:hover,
.footer-links a:hover {
  color: white;
}

main {
  flex: 1;
}
.button {
  width: 200px;
}
.btn {
  width: auto;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-ghost {
  background: var(--field);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-tint);
  border-color: var(--lavender);
}
button,
input,
textarea,
select {
  font-family: inherit;
}
.business-footer {
  padding: 52px 0 64px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.footer-top .brand img {
  width: 124px;
  height: 38px;
}
.footer-links {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  font-size: 12px;
  line-height: 19px;
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 48px);
    max-width: 520px;
  }
  .eyebrow {
    font-size: 10px;
    line-height: 14px;
  }
  .business-header {
    height: 80px;
  }
  .navigation {
    width: calc(100% - 40px);
    gap: 12px;
    max-width: none;
  }
  .navigation .brand img {
    width: 76px;
    height: auto;
  }
  .navigation-links {
    gap: 20px;
  }
  .attendee-link {
    font-size: 11px;
  }
  .navigation .button {
    width: 134px;
    min-height: 44px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
  }
  /* Mobile footer mirrors Figma "Refined direction · Mobile 390": logo, one
     link row, divider, two copyright lines. */
  .business-footer {
    padding: 32px 0 31px;
  }
  .footer-top {
    display: block;
  }
  .footer-top .brand img {
    width: 93px;
    height: auto;
  }
  .footer-links {
    gap: 18px;
    justify-content: space-between;
    margin-top: 24px;
    white-space: nowrap;
  }
  .footer-links a:last-child {
    font-weight: 500;
  }
  .footer-bottom {
    display: block;
    margin-top: 24px;
    padding-top: 20px;
    font-size: 12px;
    line-height: 19px;
  }
  .footer-bottom p + p {
    margin-top: 5px;
  }
}
@media (max-width: 374px) {
  .navigation-links {
    gap: 12px;
  }
  .navigation .button {
    width: auto;
    font-size: 12px;
  }
  .navigation .brand img {
    width: 65px;
  }
  .attendee-link {
    font-size: 10px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .footer-links {
    gap: 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  a {
    transition: none;
  }
}

/* Secondary navigation and locale control stay available without crowding the header. */
.lang-switcher {
  position: relative;
  display: inline-flex;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px 0 10px 12px;
  cursor: pointer;
  font-family: inherit; /* buttons don't inherit the page font by default */
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
}

.lang-trigger:hover {
  color: var(--accent-text);
}

.lang-chevron {
  transition: transform 150ms ease;
}

.lang-trigger[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.lang-option {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 6px 14px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.25;
}

.lang-option:hover,
.lang-option:focus-visible {
  color: var(--text);
  outline: none;
}

.lang-switcher[hidden] {
  display: none;
}
/* Header placement: last item in the navigation, menu drops down. */
.navigation .lang-trigger {
  padding: 10px 0;
  font-size: 14px;
}
.navigation .lang-menu {
  top: calc(100% + 8px);
  bottom: auto;
}
.lang-menu[hidden] {
  display: none;
}
.footer-utilities {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}
.footer-utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}
.footer-utility-links a:hover {
  color: var(--text);
}
.footer-links {
  flex-wrap: wrap;
}
.navigation-links {
  min-width: 0;
}
.navigation .button {
  width: auto;
  min-width: 200px;
}
@media (max-width: 760px) {
  /* Not in the mobile footer design (the language switcher lives in the header). */
  .footer-utilities {
    display: none;
  }
  .footer-utility-links {
    gap: 20px;
  }
  .footer-links {
    justify-content: flex-start;
    row-gap: 12px;
  }
  .navigation .button {
    min-width: 134px;
    max-width: 180px;
  }
  html:not([lang="en"]) .navigation-links {
    gap: 12px;
  }
  html:not([lang="en"]) .navigation .button {
    min-width: 0;
    max-width: 150px;
    font-size: 12px;
    line-height: 18px;
  }
  html:not([lang="en"]) .attendee-link {
    white-space: normal;
    max-width: 90px;
  }
}
@media (max-width: 374px) {
  .navigation .button {
    min-width: 0;
  }
  .footer-utility-links {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .lang-chevron {
    transition: none;
  }
}
