:root {
  color-scheme: light;
  --gold: #ae853e;
  --gold-dark: #8f6e35;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-strong: #f7f7f7;
  --text: #181511;
  --muted: #5f5f5f;
  --line: rgba(24, 21, 17, 0.16);
  --hero-overlay: rgba(245, 242, 235, 0);
  --hero-overlay-strong: rgba(245, 242, 235, 0);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101010;
  --panel: #181818;
  --panel-strong: #202020;
  --text: #f7f3ea;
  --muted: #c8c2b7;
  --line: rgba(255, 255, 255, 0.14);
  --hero-overlay: rgba(16, 16, 16, 0);
  --hero-overlay-strong: rgba(16, 16, 16, 0);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.landing-loading {
  align-items: center;
  background: var(--bg);
  color: var(--muted);
  display: flex;
  font-size: 0.95rem;
  font-weight: 800;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 1000;
}

.landing-loading.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

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

button,
input {
  font: inherit;
}

.site-header {
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
}

.brand {
  display: inline-flex;
}

.brand-logo {
  display: block;
  height: 54px;
  width: auto;
}

.dark-logo,
:root[data-theme="dark"] .light-logo {
  display: none;
}

:root[data-theme="dark"] .dark-logo {
  display: block;
}

.header-links {
  align-items: center;
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.login-link,
.primary-action,
.guest-form button,
.theme-toggle {
  cursor: pointer;
  font-weight: 800;
}

.login-link,
.primary-action,
.guest-form button {
  background: var(--gold);
  border: 0;
  color: #101010;
}

.login-link,
.theme-toggle {
  align-items: center;
  display: inline-flex;
  height: 42px;
  justify-content: center;
}

.theme-toggle {
  padding: 0;
  width: 42px;
}

.login-link {
  min-width: 88px;
  padding: 0 22px;
}

.theme-icon {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.theme-icon-moon,
:root[data-theme="dark"] .theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.theme-toggle {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero {
  min-height: calc(100vh - 76px);
  overflow: hidden;
  position: relative;
}

.hero-media {
  background:
    linear-gradient(var(--hero-overlay), var(--hero-overlay-strong)),
    url("/assets/logo-swat-light.svg") center 35% / min(64vw, 700px) no-repeat,
    var(--bg);
  inset: 0;
  position: absolute;
}

:root[data-theme="dark"] .hero-media {
  background:
    linear-gradient(var(--hero-overlay), var(--hero-overlay-strong)),
    url("/assets/logo-swat-dark.svg") center 35% / min(64vw, 700px) no-repeat,
    var(--bg);
}

.hero-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 auto;
  min-height: calc(100vh - 76px);
  padding: min(59vh, 580px) clamp(18px, 7vw, 92px) 84px;
  position: relative;
  text-align: center;
  width: min(900px, 100%);
}

.hero p {
  color: var(--text);
  font-size: clamp(1.1rem, 2.05vw, 2.15rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0;
  max-width: 1100px;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.guest-form button {
  min-height: 48px;
  padding: 14px 18px;
}

.secondary-action {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}

.guest-section {
  padding: 72px clamp(18px, 5vw, 72px);
  width: 100%;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.guest-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 0 0 28px;
}

.guest-section p {
  color: var(--muted);
}

.guest-section {
  align-items: start;
  background: var(--panel-strong);
  border-block: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr minmax(280px, 420px);
}

.guest-form {
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
  padding: 22px;
  max-width: 100%;
}

.guest-form label {
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.guest-form input {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.form-message {
  min-height: 22px;
}

.site-footer {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 28px clamp(18px, 5vw, 72px);
  text-align: center;
}

.footer-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.footer-socials a {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.footer-socials svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.footer-socials a:nth-child(3) svg,
.footer-socials a:nth-child(4) svg {
  fill: currentColor;
  stroke: none;
}

.footer-socials a:nth-child(2) svg rect {
  fill: none;
}

.footer-socials a:nth-child(2) svg path {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
  }

  .header-links {
    flex-wrap: nowrap;
    gap: 10px;
    margin-left: auto;
  }

  .brand-logo {
    height: 42px;
  }

  .theme-toggle {
    height: 38px;
    width: 38px;
  }

  .login-link {
    height: 38px;
    min-width: 76px;
    padding: 0 16px;
  }

  .guest-section {
    padding: 52px 20px;
  }

  .guest-section h2 {
    overflow-wrap: anywhere;
  }

  .guest-section {
    grid-template-columns: 1fr;
  }

  .guest-form {
    padding: 20px;
  }

  .hero p {
    white-space: normal;
  }
}
