/* Design tokens — white UI + warm brown/orange theme */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f6f2;

  --text: #1f1308;
  --text-muted: rgba(31, 19, 8, 0.65);
  --text-soft: rgba(31, 19, 8, 0.45);

  /* Warm accent system (brown → orange → yellow) */
  --accent-dark: #7c2d12;   /* deep brown */
  --accent-mid: #c2410c;    /* deep orange */
  --accent: #f97316;        /* orange */
  --accent-light: #fbbf24;  /* golden yellow */

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(124, 45, 18, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;

  --header-h: 72px;
  --content-max: 1120px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text);
  background-color: var(--bg);
}

/* Soft background mesh (light UI version) */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}

.mesh-bg::before,
.mesh-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.35;
  filter: blur(90px);
  animation: meshFloat 18s ease-in-out infinite alternate;
}

/* Warm soft glow (light version) */
.mesh-bg::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 45, 18, 0.12), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.12), transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(251, 191, 36, 0.10), transparent 55%);
}

.mesh-bg::after {
  animation-duration: 22s;
  animation-delay: -4s;
  background:
    radial-gradient(circle at 75% 70%, rgba(249, 115, 22, 0.08), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(251, 191, 36, 0.08), transparent 50%);
}

@keyframes meshFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -2%) scale(1.05); }
}

/* Subtle grid overlay */
.mesh-bg .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 45, 18, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 45, 18, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

/* Glass utility (light UI) */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  border-radius: var(--radius-md);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Gradient text — warm brown → orange → yellow */
.gradient-text {
  background: linear-gradient(
    120deg,
    #7c2d12,
    #c2410c,
    #f97316,
    #fbbf24
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: all 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

/* Primary button */
.btn--primary {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--accent-mid),
    var(--accent)
  );
  border: 1px solid rgba(124, 45, 18, 0.15);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-light)
  );
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.3);
}

/* Ghost button */
.btn--ghost {
  color: var(--text);
  background: rgba(124, 45, 18, 0.04);
  border: 1px solid rgba(124, 45, 18, 0.15);
}

.btn--ghost:hover {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-2px);
}

/* Typography helpers */
.font-display { font-family: var(--font-display); }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mesh-bg::before,
  .mesh-bg::after {
    animation: none;
  }

  .btn--primary:hover,
  .btn--ghost:hover {
    transform: none;
  }
}