:root {
  --bg: #020202;
  --text: #f5f5f7;
  --muted: rgba(255, 255, 255, 0.52);
  --muted-strong: rgba(255, 255, 255, 0.72);
  --pill-bg: rgba(255, 255, 255, 0.04);
  --pill-border: rgba(255, 255, 255, 0.1);
  --container: min(1280px, calc(100% - 64px));
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(33, 45, 110, 0.52), transparent 36%),
    linear-gradient(180deg, #060813 0%, #010101 58%, #000000 100%);
}

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

button {
  font: inherit;
}

.hidden {
  display: none !important;
}

.landing-shell {
  min-height: 100vh;
}

.landing-topbar,
.landing-main {
  width: var(--container);
  margin: 0 auto;
}

.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 0;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.landing-brand-mark,
.hero-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-brand-mark img,
.hero-mark img {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

.landing-brand-mark {
  width: auto;
  height: 34px;
}

.landing-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.landing-link {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
  font-size: var(--text-base);
}

.landing-login-link,
.landing-dashboard-link,
.landing-logout {
  min-height: 24px;
}

.landing-dashboard-link {
  color: #ffffff;
}

.landing-user-chip {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted-strong);
  font-size: var(--text-sm);
}

.google-signin-host {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.landing-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 88px);
}

.hero {
  width: min(940px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: 36px 0 88px;
}

.hero-mark {
  width: auto;
  height: 68px;
  margin: 0 auto 28px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 5.95vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
  font-weight: 700;
}

.hero-copy {
  width: min(860px, 100%);
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  line-height: 1.45;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 26px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-pill-top {
  margin: 0 auto 28px;
}

.landing-login-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.landing-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.landing-login-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 28px 26px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(19, 24, 46, 0.96), rgba(7, 8, 12, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}

.landing-login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: var(--text-2xl);
  line-height: 1;
}

.landing-login-eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-login-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.landing-login-copy {
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.landing-login-status {
  margin: 16px 0 0;
  color: #f0b7b7;
  font-size: var(--text-base);
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 900px) {
  :root {
    --container: min(100%, calc(100% - 36px));
  }

  .landing-topbar {
    padding-top: 18px;
  }

  .landing-brand {
    font-size: var(--text-lg);
  }

  .hero {
    padding: 24px 0 64px;
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 4.2rem);
    line-height: 1;
  }

  .hero-copy {
    font-size: var(--text-lg);
  }

  .landing-login-card {
    padding: 24px 22px 22px;
  }
}

@media (max-width: 560px) {
  .landing-actions {
    gap: 12px;
  }

  .landing-user-chip {
    display: none;
  }

  .hero-mark {
    width: auto;
    height: 56px;
    margin-bottom: 20px;
  }

  .hero-pill {
    width: 100%;
    max-width: 320px;
  }
}
