﻿/* Mud Cake marketing site - Frostlite design system */

:root {
  --ink: #0E1320;
  --slate: #5A6478;
  --peri: #6E7BFF;
  --peri-light: #A4B0FF;
  --peri-lighter: #D2D9FF;
  --day: #EFF2F8;
  --white: #FFFFFF;
  --glass-surface: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --card-shadow: 0 24px 60px -28px rgba(20, 24, 60, 0.18), 0 2px 8px -4px rgba(20, 24, 60, 0.06);
  --card-hover-shadow: 0 16px 48px -16px rgba(110, 123, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.18);
  --divider: rgba(14, 19, 32, 0.06);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 350ms;
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
  background:
    radial-gradient(at 12% 18%, rgba(110,123,255,0.20) 0px, transparent 45%),
    radial-gradient(at 88% 14%, rgba(170,195,255,0.22) 0px, transparent 50%),
    radial-gradient(at 78% 92%, rgba(195,210,255,0.18) 0px, transparent 55%),
    #EFF2F8;
  background-attachment: fixed;
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}
.h-display-md {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.h-display-sm {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  font-size: 1.5rem;
}
.section-title-sm {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  font-size: 1.125rem;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: normal;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--peri);
}
.text-ink { color: var(--ink); }
.text-slate { color: var(--slate); }
.text-peri { color: var(--peri); }
.text-white { color: var(--white); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #7C89FF 0%, #5563E8 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 28px -14px rgba(110, 123, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: saturate(1.15);
  box-shadow: 0 8px 24px -8px rgba(110, 123, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:active { transform: translateY(0) scale(0.98); filter: brightness(0.96); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.90);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(14, 19, 32, 0.18);
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--peri); color: var(--peri); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--slate);
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost:hover { text-decoration: underline; color: var(--ink); }

/* Glass cards */
.card {
  background: var(--glass-surface);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-highlight), var(--card-shadow);
  transition: all var(--dur) var(--ease);
}
.card-hover:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
  filter: saturate(1.1);
}
.card-peri {
  background: var(--glass-surface);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(110, 123, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-highlight), 0 24px 60px -28px rgba(110, 123, 255, 0.22), 0 2px 8px -4px rgba(110, 123, 255, 0.08);
  transition: all var(--dur) var(--ease);
}
.card-solid {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: all var(--dur) var(--ease);
}

/* Nav */
.nav-link {
  color: var(--slate);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--peri); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--peri);
  border-radius: 1px;
}

/* Tag pill */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--slate);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-pill-peri {
  background: rgba(110, 123, 255, 0.12);
  color: var(--peri);
  border: 1px solid rgba(110, 123, 255, 0.25);
}

/* Inputs */
.vs-input {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  width: 100%;
  transition: all var(--dur) var(--ease);
  outline: none;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.vs-input::placeholder { color: var(--slate); opacity: 0.6; }
.vs-input:hover { border-color: rgba(110, 123, 255, 0.4); }
.vs-input:focus {
  border-color: rgba(110, 123, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(110, 123, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 550ms var(--ease), transform 550ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Icon */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* Link */
.text-link {
  color: var(--peri);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.text-link:hover { text-decoration: underline; }

/* Code */
.code-inline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(110, 123, 255, 0.1);
  color: var(--peri);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Details/summary */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] .details-icon { transform: rotate(45deg); }
.details-icon { transition: transform var(--dur) var(--ease); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--day); }
::-webkit-scrollbar-thumb { background: rgba(110, 123, 255, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(110, 123, 255, 0.5); }

/* Pricing card hover - pops out more than standard card-hover */
.pricing-card {
  transition: all 350ms var(--ease);
}
.pricing-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 64px -16px rgba(110, 123, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.18);
  border-color: rgba(110, 123, 255, 0.45);
  filter: saturate(1.15);
  z-index: 10;
  position: relative;
}

/* Progress bar (stats dashboard) */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(14, 19, 32, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C89FF 0%, #5563E8 100%);
  border-radius: var(--radius-pill);
  transition: width 450ms var(--ease);
  min-width: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
