:root {
  color-scheme: light;
  --md-sys-color-primary: #6750a4;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #eaddff;
  --md-sys-color-on-primary-container: #21005d;
  --md-sys-color-secondary-container: #e8def8;
  --md-sys-color-tertiary-container: #ffd8e4;
  --md-sys-color-surface: #fffbfe;
  --md-sys-color-surface-container: #f3edf7;
  --md-sys-color-surface-container-high: #ece6f0;
  --md-sys-color-outline: #79747e;
  --md-sys-color-on-surface: #1d1b20;
  --md-sys-color-on-surface-variant: #49454f;
  --md-sys-color-shadow: 29 27 32;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  font-family: "Google Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--md-sys-color-on-surface);
  background:
    radial-gradient(circle at 12% 10%, #d9e2ff 0 16rem, transparent 31rem),
    radial-gradient(circle at 88% 14%, #ffd8e4 0 15rem, transparent 30rem),
    linear-gradient(135deg, #fffbfe 0%, #f7f2fa 52%, #eef5ff 100%);
  overflow-x: hidden;
}

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

code {
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
  background: rgb(103 80 164 / 0.11);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.34;
}

.ambient-one {
  top: 8vh;
  left: -7rem;
  background: #b5c7ff;
}

.ambient-two {
  right: -8rem;
  bottom: 8vh;
  background: #ffc6d8;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 48px;
}

.login-view {
  display: grid;
  min-height: calc(100vh - 76px);
  align-content: center;
  justify-items: start;
  max-width: 720px;
}

.brand-mark,
.project-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: var(--md-sys-color-on-primary-container);
  background: var(--md-sys-color-primary-container);
  box-shadow: 0 12px 32px rgb(var(--md-sys-color-shadow) / 0.13);
}

.brand-mark {
  overflow: hidden;
  padding: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-mark .material-symbols-rounded,
.project-icon .material-symbols-rounded {
  font-size: 32px;
}

.eyebrow,
.project-type {
  margin: 0;
  color: var(--md-sys-color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-view .eyebrow {
  margin-top: 28px;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 13ch;
  margin: 10px 0 18px;
  font-size: clamp(3rem, 12vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.intro,
.welcome p,
.project-copy p {
  max-width: 64ch;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 1.08rem;
  line-height: 1.65;
}

.signin-panel {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgb(121 116 126 / 0.24);
  border-radius: var(--radius-lg);
  background: rgb(255 251 254 / 0.76);
  box-shadow: 0 18px 54px rgb(var(--md-sys-color-shadow) / 0.12);
  backdrop-filter: blur(20px);
}

.setup-note {
  max-width: 36rem;
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.94rem;
  line-height: 1.5;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 44px;
}

.site-pill,
.profile-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.site-pill {
  padding: 0 18px 0 14px;
  border-radius: 999px;
  color: var(--md-sys-color-on-primary-container);
  background: rgb(234 221 255 / 0.72);
  font-weight: 700;
}

.avatar {
  width: 48px;
  height: 48px;
  border: 3px solid var(--md-sys-color-surface);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgb(var(--md-sys-color-shadow) / 0.16);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--md-sys-color-primary);
  background: var(--md-sys-color-surface-container);
  cursor: pointer;
}

.icon-button:hover,
.tonal-button:hover,
.outlined-button:hover,
.filled-button:hover {
  filter: brightness(0.97);
}

.welcome {
  margin-bottom: 30px;
}

.welcome h1 {
  max-width: 12ch;
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 9vw, 5.8rem);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 430px;
  padding: 28px;
  border: 1px solid rgb(121 116 126 / 0.18);
  border-radius: var(--radius-xl);
  background: rgb(255 251 254 / 0.82);
  box-shadow: 0 22px 64px rgb(var(--md-sys-color-shadow) / 0.11);
  backdrop-filter: blur(18px);
}

.feature-card {
  background:
    linear-gradient(150deg, rgb(234 221 255 / 0.92), rgb(255 251 254 / 0.88) 58%),
    var(--md-sys-color-surface);
}

.finance-icon {
  color: #00201b;
  background: #bfeee1;
}

.home-icon {
  color: #2b1700;
  background: #ffdcb8;
}

.ai-icon {
  color: #001d32;
  background: #cfe5ff;
}

.project-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.project-copy p {
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filled-button,
.tonal-button,
.outlined-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: filter 160ms ease, transform 160ms ease;
}

.filled-button {
  color: var(--md-sys-color-on-primary);
  background: var(--md-sys-color-primary);
}

.tonal-button {
  color: var(--md-sys-color-on-primary-container);
  background: var(--md-sys-color-primary-container);
}

.outlined-button {
  border: 1px solid var(--md-sys-color-outline);
  color: var(--md-sys-color-primary);
  background: rgb(255 251 254 / 0.5);
}

.filled-button:active,
.tonal-button:active,
.outlined-button:active,
.icon-button:active {
  transform: scale(0.98);
}

[hidden] {
  display: none !important;
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 16px;
  }

  .login-view {
    min-height: calc(100vh - 48px);
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.3rem);
  }

  .topbar {
    padding-bottom: 30px;
  }

  .site-pill {
    max-width: calc(100vw - 108px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
    padding: 22px;
    border-radius: 28px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
