* {
  box-sizing: border-box;
}

:root {
  --brand-navy: #182232;
  --brand-blue: #3b82f6;
  --brand-blue-dark: #2563eb;
  --brand-slate: #475569;
  --brand-slate-light: #94a3b8;
  --brand-page: #f8fafc;
  --brand-surface: #f1f5f9;
  --brand-border: #e2e8f0;
  --brand-track: #e2e8f0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--brand-navy);
  background: var(--brand-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--brand-border);
  padding: 10px 20px;
}

.header-inner,
.wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-slot {
  display: flex;
  align-items: center;
}

.account-control {
  position: relative;
}

.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--brand-border);
  border-radius: 50%;
  background: var(--brand-page);
  color: var(--brand-navy);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.account-button:hover,
.account-button:focus-visible {
  border-color: var(--brand-blue);
  outline: none;
}

.account-glyph {
  width: 22px;
  height: 22px;
  display: block;
}

.account-button img,
.account-initials {
  width: 100%;
  height: 100%;
}

.account-button img {
  object-fit: cover;
}

.account-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(24, 34, 50, 0.15);
  z-index: 2;
  overflow: hidden;
}

.account-menu[hidden] {
  display: none;
}

.account-menu-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  color: var(--brand-navy);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: var(--brand-page);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand-icon {
  height: 56px;
  width: auto;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand-navy);
}

.brand-tld {
  color: var(--brand-blue);
}

.brand-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  color: var(--brand-slate);
}

.page {
  padding: 48px 24px 64px;
}

.welcome {
  width: min(480px, 100%);
  margin: 0 auto 36px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(24, 34, 50, 0.06);
  text-align: center;
}

.welcome h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.welcome-lead {
  margin: 12px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--brand-slate);
}

.welcome-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.welcome-primary,
.welcome-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--brand-blue);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.welcome-primary {
  background: var(--brand-blue);
  color: #fff;
}

.welcome-primary:hover {
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
}

.welcome-secondary {
  background: #fff;
  color: var(--brand-blue);
}

.welcome-secondary:hover {
  background: var(--brand-page);
}

.hero {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(24, 34, 50, 0.06);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hero:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
  transform: translateY(-2px);
}

.hero:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}

.hero-icon {
  width: 112px;
  height: auto;
  flex-shrink: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.hero-title {
  margin-top: 8px;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-text {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--brand-slate);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.hero:hover .hero-cta {
  background: var(--brand-blue-dark);
}

@media (max-width: 640px) {
  .site-header {
    padding: 8px 12px;
  }

  .brand-icon {
    height: 44px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.68rem;
  }

  .page {
    padding: 28px 16px 48px;
  }

  .welcome {
    padding: 24px 18px;
  }

  .welcome h1 {
    font-size: 1.6rem;
  }

  .welcome-actions {
    flex-direction: column;
  }

  .welcome-primary,
  .welcome-secondary {
    width: 100%;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
  }

  .hero-icon {
    width: 72px;
  }

  .hero-title {
    font-size: 2rem;
  }
}
