:root {
  color-scheme: dark light;
  --bg: #000000;
  --bg-elevated: #0d0d0d;
  --text: #e8e8e8;
  --text-muted: #8a8a8a;
  --logo-text: #d6d6d6;
  --accent: #2f6fed;
  --accent-hover: #4a82f5;
  --accent-dim: rgba(47, 111, 237, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(0, 0, 0, 0.88);
  --glow-primary: rgba(47, 111, 237, 0.16);
  --glow-secondary: rgba(47, 111, 237, 0.07);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --max-width: 42rem;
  --page-max: 52rem;
  --header-h: 4.5rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --bg-elevated: #ffffff;
    --text: #1a1a1a;
    --text-muted: #5c5c5c;
    --logo-text: #2a2a2a;
    --accent-dim: rgba(47, 111, 237, 0.1);
    --border: rgba(0, 0, 0, 0.08);
    --header-bg: rgba(250, 250, 250, 0.92);
    --glow-primary: rgba(47, 111, 237, 0.1);
    --glow-secondary: rgba(47, 111, 237, 0.045);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--glow-primary), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, var(--glow-secondary), transparent);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.85;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--logo-text);
}

.logo:hover,
.footer-logo:hover {
  opacity: 0.9;
}

.logo-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.08em;
}

.logo-word::after {
  width: 0.18em;
  height: 0.18em;
  content: "";
  background: var(--accent);
  border-radius: 999px;
  transform: translateY(-0.02em);
}

.footer-logo .logo-word {
  font-size: 1.55rem;
  opacity: 0.92;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--text);
  opacity: 1;
}

/* Hero */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 5vw, 2.5rem);
}

.page-home main {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1.5rem, 6vw, 4rem);
  overflow: hidden;
}

.page-home main::before {
  position: absolute;
  top: 10%;
  right: -12%;
  width: min(42rem, 70vw);
  height: min(42rem, 70vw);
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, var(--glow-primary), transparent 68%);
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  text-align: left;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(47, 111, 237, 0.24);
  border-radius: 999px;
}

.hero-kicker::before {
  width: 0.45rem;
  height: 0.45rem;
  content: "";
  background: var(--accent);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.hero-copy {
  max-width: 38rem;
  margin: 0 0 2rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.hero-tags span {
  padding: 0.45rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.375rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
}

.btn-primary:hover {
  opacity: 1;
  background: var(--accent-hover);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover {
  opacity: 1;
  border-color: var(--border);
  background: var(--bg-elevated);
}

@media (prefers-color-scheme: light) {
  .btn-ghost:hover {
    border-color: rgba(0, 0, 0, 0.15);
  }
}

/* Inner pages */
.page-main {
  align-items: flex-start;
  padding-top: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: 3rem;
}

.legal-content,
.contact-section {
  width: 100%;
  max-width: var(--page-max);
}

.legal-content h1,
.contact-section h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-content p {
  margin: 0 0 1rem;
}

.contact-intro {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 40ch;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: inherit;
  font-style: normal;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.contact-card:hover {
  opacity: 1;
  border-color: rgba(47, 111, 237, 0.4);
  background: rgba(18, 20, 26, 0.9);
}

.contact-card-address {
  grid-column: 1 / -1;
}

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-card-value {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

a.contact-card .contact-card-value {
  color: var(--accent);
}

.contact-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 2rem clamp(1.25rem, 5vw, 2.5rem);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  max-width: var(--page-max);
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--text);
  opacity: 1;
}

.footer-copy {
  width: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-copy {
    width: auto;
    margin: 0;
    margin-left: 0;
  }

  .footer-inner {
    flex-wrap: nowrap;
  }

  .footer-copy {
    order: 3;
    margin-left: auto;
  }
}
