:root {
  --bg-cream: #f8f3ea;
  --bg-warm: #efe1cf;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.28);
  --card: rgba(255, 255, 255, 0.78);
  --card-strong: rgba(255, 255, 255, 0.92);
  --shadow-soft: 0 24px 60px rgba(114, 86, 48, 0.12);
  --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.08);
  --accent: #c26a2d;
  --accent-strong: #93491b;
  --accent-light: #fff2e2;
  --teal: #0f766e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
}

.app-shell {
  position: relative;
  overflow-x: hidden;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.app-shell::before {
  width: 24rem;
  height: 24rem;
  top: -8rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(194, 106, 45, 0.22), transparent 70%);
}

.app-shell::after {
  width: 26rem;
  height: 26rem;
  bottom: -10rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.18), transparent 72%);
}

.page-grid {
  position: relative;
  z-index: 1;
}

.frost-card {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-card);
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(255, 248, 240, 0.94), rgba(255, 255, 255, 0.84)),
    linear-gradient(135deg, rgba(194, 106, 45, 0.08), rgba(15, 118, 110, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.glass-panel {
  background: var(--card-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.surface-warm {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 240, 0.82));
}

.heading-display {
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
}

.text-balance {
  text-wrap: balance;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(194, 106, 45, 0.18);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.app-input,
.app-select,
.app-textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.app-input,
.app-select {
  min-height: 3.25rem;
  padding: 0.9rem 1rem;
}

.app-textarea {
  padding: 0.9rem 1rem;
}

.app-input:focus,
.app-select:focus,
.app-textarea:focus {
  outline: none;
  border-color: rgba(194, 106, 45, 0.55);
  box-shadow: 0 0 0 4px rgba(194, 106, 45, 0.12);
}

.app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.app-button:hover {
  transform: translateY(-1px);
}

.app-button:active {
  transform: translateY(0);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #dd8a47);
  color: white;
  box-shadow: 0 16px 28px rgba(194, 106, 45, 0.26);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.62);
  color: #7c2d12;
  border: 1px solid rgba(217, 119, 6, 0.18);
}

.tab-pill {
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  transition: all 180ms ease;
}

.tab-pill-active {
  background: linear-gradient(135deg, #0f766e, #159a8c);
  color: white;
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.22);
}

.tab-pill-idle {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.metric-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.82));
  padding: 1rem 1.1rem;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table thead th {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.94);
  color: #475569;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  padding: 1rem;
}

.data-table tbody tr:hover {
  background: rgba(255, 248, 240, 0.56);
}

.thumbnail-frame {
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.45rem;
  display: inline-flex;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.fade-up {
  animation: fadeUp 500ms ease both;
}

.fade-delay-1 {
  animation-delay: 90ms;
}

.fade-delay-2 {
  animation-delay: 180ms;
}

.fade-delay-3 {
  animation-delay: 270ms;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .app-shell::before {
    width: 14rem;
    height: 14rem;
  }

  .app-shell::after {
    width: 15rem;
    height: 15rem;
  }
}
