:root {
  /* Frosted sage + sea-glass palette — light mode */
  --bg-pale:    #eef4ec;
  --bg-mint:    #e2ede4;
  --bg-sage:    #dae7d8;
  --bg-mist:    #d8ece8;

  /* Shiny surfaces — high transparency + heavy blur for real glass */
  --shiny:      rgba(255, 255, 255, 0.55);
  --shiny-2:    rgba(255, 255, 255, 0.72);
  --shiny-line: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.20) 40%, rgba(255,255,255,0.10));

  /* Matte surfaces — solid tinted panels, no blur */
  --matte:      #e8efe4;
  --matte-2:    #dce8dc;
  --matte-warm: #ede9dc;

  --border:     rgba(60, 110, 88, 0.14);
  --border-hi:  rgba(60, 110, 88, 0.30);
  --border-warm:rgba(120, 108, 78, 0.20);

  --text:       #1e3a2c;
  --text-dim:   #5f7a6a;
  --text-soft:  #3e5a4b;
  --text-mute:  #7a9284;

  --accent:     #2f8f6a;   /* deep mint */
  --accent-2:   #3fb090;   /* brighter mint */
  --accent-3:   #3d9ba8;   /* sea teal */
  --accent-4:   #5cb891;   /* frost mint hover */
  --accent-glow:rgba(63, 176, 144, 0.35);
  --warn:       #b98938;
  --code-bg:    #eee9d8;   /* paper-warm matte */
  --radius:     12px;
  --shadow-soft: 0 10px 30px rgba(30, 58, 44, 0.08);
  --shadow-lift: 0 14px 40px rgba(30, 58, 44, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at 15% -5%, rgba(63, 176, 144, 0.12), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(61, 155, 168, 0.10), transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(63, 176, 144, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-pale), var(--bg-mint) 45%, var(--bg-sage));
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-4); text-decoration: underline; text-decoration-color: rgba(63,176,144,0.4); text-underline-offset: 3px; }

code, pre, kbd { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---- NAV — shiny frosted glass ---- */
nav {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
  background: rgba(238, 244, 236, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
nav .container { display: flex; align-items: center; gap: 32px; }
nav .logo { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.2px; }
nav .logo span { color: var(--accent); }
nav .links { display: flex; gap: 24px; margin-left: auto; }
nav .links a { color: var(--text-soft); font-size: 14px; }
nav .links a:hover { color: var(--accent); text-decoration: none; }

/* ---- HERO ---- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(63,176,144,0.14), transparent 60%);
  pointer-events: none;
}
.hero h1 { font-size: 52px; font-weight: 800; margin-bottom: 18px; letter-spacing: -1.2px; color: var(--text); }
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-3) 60%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p { font-size: 19px; color: var(--text-soft); max-width: 720px; margin: 0 auto 20px; }
.hero .tagline { color: var(--text-dim); font-size: 14px; }

/* ---- GROUPS ---- */
.group-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.group-section:last-of-type { border-bottom: none; }
.group-title {
  font-size: 26px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.4px;
  color: var(--text);
}
.group-subtitle { color: var(--text-dim); margin-bottom: 32px; font-size: 15px; }

/* ---- CARDS — shiny glass ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.card {
  background: var(--shiny);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft), 0 1px 0 rgba(255,255,255,0.7) inset;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--shiny-line);
  pointer-events: none;
  border-radius: var(--radius);
  opacity: 0.7;
}
.card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift), 0 0 40px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.85) inset;
  background: var(--shiny-2);
  text-decoration: none;
}
.card-title {
  font-weight: 700; font-size: 17px; color: var(--text); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  letter-spacing: -0.2px;
  position: relative;
}
.card-title .status {
  font-size: 10px; padding: 3px 10px; border-radius: 12px;
  background: rgba(63, 176, 144, 0.14); color: var(--accent);
  border: 1px solid rgba(63, 176, 144, 0.28);
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600;
}
.card-title .status.beta { color: var(--warn); background: rgba(185, 137, 56, 0.10); border-color: rgba(185, 137, 56, 0.28); }
.card-desc { color: var(--text-soft); font-size: 14px; flex: 1; margin-bottom: 14px; position: relative; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; }

/* Tags are MATTE — flat solid tinted pills, no blur */
.tag {
  font-size: 11px; padding: 3px 10px; border-radius: 12px;
  background: var(--matte-2); color: var(--text-dim);
  border: 1px solid var(--border);
  box-shadow: none;
}

/* ---- PROJECT PAGE HERO ---- */
.project-hero {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.project-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(63,176,144,0.12), transparent 55%);
  pointer-events: none;
}
.project-hero .eyebrow {
  color: var(--accent); font-size: 12px; text-transform: uppercase;
  letter-spacing: 1.4px; margin-bottom: 14px; font-weight: 700;
}
.project-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -1.2px; margin-bottom: 14px; color: var(--text); }
.project-hero .lead { font-size: 18px; color: var(--text-soft); max-width: 720px; }
.project-hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* Badges — shiny gemlike */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 14px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: var(--shiny); color: var(--text-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
}
.badge.status-shipped { color: var(--accent); border-color: rgba(63, 176, 144, 0.35); background: rgba(63, 176, 144, 0.12); }
.badge.status-beta    { color: var(--warn); border-color: rgba(185, 137, 56, 0.35); background: rgba(185, 137, 56, 0.10); }
.badge.status-design  { color: var(--accent-3); border-color: rgba(61, 155, 168, 0.35); background: rgba(61, 155, 168, 0.10); }

/* ---- SECTIONS ---- */
.section { padding: 44px 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }
.section h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.3px; color: var(--text); }
.section h3 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; color: var(--text); }
.section p { margin-bottom: 14px; color: var(--text); }
.section p.dim { color: var(--text-dim); }
.section ul, .section ol { padding-left: 24px; margin-bottom: 14px; color: var(--text); }
.section ul li, .section ol li { margin-bottom: 8px; }
.section ul li::marker { color: var(--accent); }

/* Inline code — matte paper */
.section code {
  background: var(--code-bg); border: 1px solid var(--border-warm);
  padding: 1px 7px; border-radius: 5px; font-size: 13px;
  color: var(--text);
  box-shadow: none;
}

/* Code blocks — matte, no blur, warm paper */
.section pre {
  background: var(--code-bg);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 16px 18px; font-size: 13px;
  overflow-x: auto; margin: 14px 0;
  color: var(--text);
  box-shadow: none;
}
.section pre code { background: none; border: none; padding: 0; color: var(--text); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ---- FACT TILES — MATTE, flat solid ---- */
.fact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin: 20px 0;
}
.fact {
  background: var(--matte);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  transition: border-color 0.2s, background 0.2s;
}
.fact:hover { border-color: var(--border-hi); background: var(--matte-2); }
.fact .label {
  color: var(--text-dim); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 4px; font-weight: 600;
}
.fact .value { color: var(--text); font-size: 15px; font-weight: 700; }

/* Callouts — matte warm-paper */
.callout {
  background: var(--matte-warm);
  border: 1px solid var(--border-warm);
  border-left: 3px solid var(--accent);
  padding: 14px 18px; border-radius: 8px; margin: 18px 0;
  color: var(--text-soft); font-size: 14px;
  box-shadow: none;
}

/* Footer — shiny */
footer {
  padding: 40px 0; text-align: center; color: var(--text-dim); font-size: 13px;
  border-top: 1px solid var(--border); margin-top: 20px;
  background: rgba(238, 244, 236, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
footer a { color: var(--text-soft); }
footer a:hover { color: var(--accent); }
