:root {
  --background: 37 45% 94%;
  --foreground: 209 73% 10%;
  --primary: 210 67% 17%;
  --border: 34 22% 83%;
  --muted: 204 26% 93%;
  --gradient-hero:
    radial-gradient(circle at top left, hsl(175 77% 26% / 0.08), transparent 24%),
    radial-gradient(circle at top right, hsl(210 67% 17% / 0.07), transparent 28%),
    hsl(var(--background));
  --gradient-panel: linear-gradient(135deg, hsl(209 73% 10%) 0%, hsl(210 67% 17%) 64%, hsl(193 75% 17%) 100%);
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: hsl(var(--foreground));
  background:
    radial-gradient(circle at top left, hsl(175 77% 26% / 0.08), transparent 24%),
    radial-gradient(circle at top right, hsl(var(--primary) / 0.07), transparent 28%),
    hsl(var(--background));
}

#root { min-height: 100vh; }

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid hsl(var(--border) / 0.65);
  background: hsl(var(--background) / 0.82);
  backdrop-filter: blur(16px);
}

.shell-container {
  width: min(100%, 92rem);
  margin-inline: auto;
  padding-inline: 1rem;
}

.shell-nav {
  min-height: 64px;
  display: flex;
  align-items: center;
}

.shell-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.shell-logo span:last-child { color: hsl(var(--primary)); }

.shell-main {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid hsl(var(--border) / 0.4);
  background: var(--gradient-panel);
}

.shell-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom left, hsl(0 0% 100% / 0.08), transparent 30%);
  pointer-events: none;
}

.shell-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  padding-block: 4rem 5rem;
}

.shell-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 44rem;
}

.shell-pill,
.shell-line,
.shell-card-line,
.shell-card-chip {
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.12);
}

.shell-pill {
  width: 17rem;
  height: 2rem;
  border: 1px solid hsl(0 0% 100% / 0.14);
}

.shell-line { height: 1rem; }
.shell-line.title-1 { width: min(100%, 32rem); height: 3.5rem; }
.shell-line.title-2 { width: min(90%, 28rem); height: 3.5rem; opacity: 0.72; }
.shell-line.body { width: min(100%, 34rem); opacity: 0.72; }
.shell-line.body.short { width: min(82%, 26rem); opacity: 0.64; }

.shell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.shell-action {
  width: 12rem;
  height: 3.5rem;
  border: 1px solid hsl(0 0% 100% / 0.14);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.16);
}

.shell-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shell-stat {
  min-height: 8rem;
  border: 1px solid hsl(0 0% 100% / 0.12);
  border-radius: 1.6rem;
  background: hsl(0 0% 100% / 0.08);
  backdrop-filter: blur(12px);
}

.shell-card {
  align-self: start;
  min-height: 25rem;
  border: 1px solid hsl(var(--border) / 0.95);
  border-radius: 1.7rem;
  background: hsl(40 100% 98% / 0.96);
  box-shadow: 0 26px 72px rgba(7, 27, 45, 0.14);
}

.shell-card-top {
  height: 0.35rem;
  border-radius: 1.7rem 1.7rem 0 0;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(210 67% 17% / 0.8), hsl(175 77% 26%));
}

.shell-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.shell-card-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.shell-avatar {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1.35rem;
  background: hsl(var(--primary) / 0.12);
}

.shell-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.625rem;
}

.shell-card-chip { width: 6.5rem; height: 1.5rem; }
.shell-card-chip.small { width: 5rem; opacity: 0.6; }
.shell-card-line { height: 0.85rem; }
.shell-card-line.title {
  width: 75%;
  height: 1.25rem;
  border-radius: 0.5rem;
  background: hsl(222 30% 12% / 0.12);
}
.shell-card-line.meta { width: 92%; background: hsl(220 14% 40% / 0.12); }

.shell-card-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shell-card-metric,
.shell-card-panel {
  min-height: 5rem;
  border-radius: 1.15rem;
  background: hsl(var(--muted) / 0.42);
}

.shell-card-panel { min-height: 7.25rem; }

@media (min-width: 1024px) {
  .shell-container { padding-inline: 2.25rem; }
  .shell-grid {
    grid-template-columns: minmax(0, 1.05fr) 26rem;
    align-items: center;
    gap: 3rem;
  }
}

@media (max-width: 767px) {
  .shell-stats { grid-template-columns: 1fr; }
  .shell-grid { padding-block: 2.5rem 3.25rem; }
  .shell-line.title-1,
  .shell-line.title-2 { height: 2.5rem; }
  .shell-action { width: 100%; max-width: 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
