/* Better.sg showcase — shares tokens with index.html */
:root {
  --brand: #e14747;
  --brand-dark: #c73535;
  --brand-light: #ff6b6b;
  --brand-subtle: rgba(225,71,71,0.08);
  --bg: #fefefe;
  --bg-secondary: #f7f7f8;
  --bg-card: #ffffff;
  --border: #e8e8ec;
  --text: #0f0f11;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --ok: #15803d;
  --ok-bg: rgba(22,163,74,0.1);
  --wip: #b45309;
  --wip-bg: rgba(217,119,6,0.12);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --nav-height: 64px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --accent: var(--brand);
}
[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-secondary: #111113;
  --bg-card: #18181b;
  --border: #2a2a2e;
  --text: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --ok: #4ade80;
  --ok-bg: rgba(74,222,128,0.12);
  --wip: #fbbf24;
  --wip-bg: rgba(251,191,36,0.12);
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.5);
  --brand-subtle: rgba(225,71,71,0.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
a { color: inherit; }
h1,h2,h3,h4 { font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px,5vw,56px); line-height: 1.08; }
h2 { font-size: clamp(26px,4vw,40px); line-height: 1.15; }
.container { max-width: 1200px; margin: 0 auto; }
.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, #f87171 50%, var(--brand-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand);
  background: var(--brand-subtle); padding: 6px 14px; border-radius: 100px;
  margin-bottom: 20px;
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Nav (mirrors index.html) */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(254,254,254,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] nav { background: rgba(10,10,11,0.85); }
.nav-inner { max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; }
.nav-logo-mark { width: 32px; height: 32px; background: var(--brand); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 14px; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: all var(--transition); }
.nav-links a:hover { color: var(--text); background: var(--bg-secondary); }
.nav-links a.active { color: var(--brand); background: var(--brand-subtle); }
.nav-actions { display: flex; gap: 8px; }
.theme-toggle, .nav-menu-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-card); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: var(--text-secondary);
}
.theme-toggle:hover, .nav-menu-btn:hover { border-color: var(--brand); color: var(--brand); }
.nav-menu-btn { display: none; }
.mobile-nav {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; z-index: 999;
  background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 12px 16px; box-shadow: var(--shadow);
}
.mobile-nav.open { display: flex; flex-direction: column; }
.mobile-nav a { padding: 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.mobile-nav a:hover { background: var(--bg-secondary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 100px; font-weight: 600; font-size: 15px; text-decoration: none; transition: all var(--transition); border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(225,71,71,0.3); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--bg-card); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Status pills */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 11px; border-radius: 100px; font-size: 12px; font-weight: 700;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-completed { color: var(--ok); background: var(--ok-bg); }
.status-development { color: var(--wip); background: var(--wip-bg); }
.status-development .status-dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Monogram — the "product logo" */
.monogram {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); color: var(--accent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  font-weight: 800; letter-spacing: -0.02em;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Tags */
.tag { display: inline-block; padding: 5px 11px; border-radius: 100px; font-size: 12px; font-weight: 600; background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-text { color: var(--text-muted); font-size: 14px; }

/* Floating shapes (shared by hero sections) */
.shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; animation: float 9s ease-in-out infinite; }
.shape svg { display: block; width: 100%; height: 100%; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(8deg); } }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 0 16px; }
  .btn { padding: 12px 20px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
