/* Material 3 design tokens + landing surface.
   Scoped to the landing page; the rest of the app keeps app.css. */

:root,
:host {
  /* M3 sys colors — light scheme, neutral with a single accent. */
  --md-sys-color-primary: #4a5568;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #dde2ec;
  --md-sys-color-on-primary-container: #1a1f2a;
  --md-sys-color-secondary: #585e6f;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-surface: #fdfcff;
  --md-sys-color-on-surface: #1a1c1e;
  --md-sys-color-surface-container: #f1f1f4;
  --md-sys-color-surface-container-low: #f7f7fa;
  --md-sys-color-surface-container-high: #ebebee;
  --md-sys-color-on-surface-variant: #44474e;
  --md-sys-color-outline: #74777f;
  --md-sys-color-outline-variant: #c4c6cf;
  --md-sys-color-background: #fdfcff;
  --md-sys-color-on-background: #1a1c1e;

  /* M3 typography — Roboto Flex. */
  --md-ref-typeface-brand: "Roboto Flex", "Roboto", system-ui, sans-serif;
  --md-ref-typeface-plain: "Roboto Flex", "Roboto", system-ui, sans-serif;
  --md-sys-typescale-display-large-font: var(--md-ref-typeface-brand);
  --md-sys-typescale-display-medium-font: var(--md-ref-typeface-brand);

  /* Shape. */
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;

  /* Component overrides. */
  --md-filled-button-container-shape: 12px;
  --md-text-button-label-text-color: var(--md-sys-color-primary);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root,
  :host {
    --md-sys-color-primary: #b9c3d6;
    --md-sys-color-on-primary: #232a37;
    --md-sys-color-primary-container: #39414f;
    --md-sys-color-on-primary-container: #d5dcec;
    --md-sys-color-secondary: #c0c6db;
    --md-sys-color-on-secondary: #283041;
    --md-sys-color-surface: #121316;
    --md-sys-color-on-surface: #e3e2e6;
    --md-sys-color-surface-container: #1f2024;
    --md-sys-color-surface-container-low: #1a1b1f;
    --md-sys-color-surface-container-high: #2a2b2e;
    --md-sys-color-on-surface-variant: #c4c6cf;
    --md-sys-color-outline: #8e9099;
    --md-sys-color-outline-variant: #44474e;
    --md-sys-color-background: #121316;
    --md-sys-color-on-background: #e3e2e6;
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  font-family: var(--md-ref-typeface-plain);
  font-variation-settings: "opsz" 14, "wght" 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* M3 type scale (subset used on landing). */
.md3-display-large { font-size: 57px; line-height: 64px; letter-spacing: -0.25px; font-weight: 400; font-variation-settings: "opsz" 96, "wght" 400; }
.md3-display-medium { font-size: 45px; line-height: 52px; letter-spacing: 0; font-weight: 400; font-variation-settings: "opsz" 72, "wght" 400; }
.md3-headline-small { font-size: 24px; line-height: 32px; letter-spacing: 0; font-weight: 500; }
.md3-title-medium { font-size: 16px; line-height: 24px; letter-spacing: 0.15px; font-weight: 500; }
.md3-body-large { font-size: 16px; line-height: 24px; letter-spacing: 0.5px; font-weight: 400; }
.md3-body-medium { font-size: 14px; line-height: 20px; letter-spacing: 0.25px; font-weight: 400; color: var(--md-sys-color-on-surface-variant); }
.md3-label-large { font-size: 14px; line-height: 20px; letter-spacing: 0.1px; font-weight: 500; }
.md3-label-small { font-size: 11px; line-height: 16px; letter-spacing: 0.5px; font-weight: 500; text-transform: uppercase; }

/* App bar. */
.m3-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  background: var(--md-sys-color-surface);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  position: sticky;
  top: 0;
  z-index: 2;
}
.m3-appbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--md-sys-color-on-surface);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.m3-appbar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--md-sys-color-primary);
  display: inline-block;
}

/* App bar nav links. */
.m3-appbar__nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.m3-appbar__nav md-text-button { --md-text-button-label-text-size: 13px; }

/* Hero. */
.m3-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.m3-hero__eyebrow {
  color: var(--md-sys-color-primary);
}
.m3-hero h1 {
  margin: 0;
  max-width: 18ch;
}
.m3-hero__name {
  margin: 0;
  font-family: var(--md-ref-typeface-brand);
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "wght" 500;
}
.m3-hero__name .m3-hero__dot { color: var(--md-sys-color-primary); }
.m3-hero__lede {
  margin: 0;
  max-width: 56ch;
  color: var(--md-sys-color-on-surface-variant);
}
.m3-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--md-sys-color-on-surface-variant);
}
.m3-hero__meta .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.m3-hero__meta .chip md-icon { font-size: 16px; }
.m3-hero__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

@media (max-width: 840px) {
  .m3-hero__name { font-size: 56px; }
}

/* Section heading. */
.m3-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px;
}
.m3-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.m3-section__head h2 { margin: 0; }
.m3-section__rule {
  height: 1px;
  background: var(--md-sys-color-outline-variant);
  margin-bottom: 24px;
}

/* Contact list. */
.m3-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 640px) { .m3-contact { grid-template-columns: 1fr; } }
.m3-contact__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--md-sys-shape-corner-large);
  background: var(--md-sys-color-surface-container-low);
  color: inherit;
  transition: background-color 120ms linear;
}
.m3-contact__row:hover { background: var(--md-sys-color-surface-container); }
.m3-contact__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m3-contact__label { font-weight: 500; }
.m3-contact__value { color: var(--md-sys-color-on-surface-variant); font-family: "Roboto Mono", ui-monospace, monospace; font-size: 13px; }

/* Cards (manual surface — @material/web doesn't ship card yet). */
.m3-cards {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 0 24px 96px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 840px) {
  .m3-cards { grid-template-columns: 1fr; }
  .m3-hero { padding-top: 64px; }
  .m3-hero h1 { font-size: 36px; line-height: 44px; }
}

.m3-card {
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 24px;
  position: relative;
  transition: background-color 120ms linear, transform 200ms cubic-bezier(.2,0,0,1);
}
.m3-card:hover { background: var(--md-sys-color-surface-container); transform: translateY(-1px); }
.m3-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  margin-bottom: 16px;
}
.m3-card__icon md-icon { font-size: 22px; }
.m3-card h3 { margin: 0 0 8px; }
.m3-card p { margin: 0; }

/* Auth (centered card) page. */
.m3-auth {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.m3-auth__card {
  width: 100%;
  max-width: 420px;
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-extra-large);
  padding: 40px 32px 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
}
.m3-auth__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.m3-auth__icon md-icon { font-size: 28px; }
.m3-auth__title { margin: 0; }
.m3-auth__sub {
  margin: 4px 0 24px;
  color: var(--md-sys-color-on-surface-variant);
}
.m3-auth__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.m3-auth__form md-outlined-text-field { width: 100%; }
.m3-auth__form md-filled-button { width: 100%; }
.m3-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 8px 0;
}
.m3-auth__divider::before,
.m3-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--md-sys-color-outline-variant);
}
.m3-auth__status {
  min-height: 20px;
  font-size: 13px;
  color: var(--md-sys-color-on-surface-variant);
}
.m3-auth__status.is-error { color: #ba1a1a; }
.m3-auth__foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
}

/* Footer. */
.m3-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--md-sys-color-on-surface-variant);
}
.m3-footer .mono { font-family: "Roboto Mono", ui-monospace, monospace; font-size: 12px; }

/* Material Symbols sizing tweak. */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
