/* XBAR Homepage Complete Styling */
/* Extracted from working index.html - ensures identical appearance */

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

:root {
  --bg-primary: #ffffff;
  --ink: #001524;
  --info: #475569;
  --navy: #15616D;
  --orange: #FF7D00;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --container-max: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 1.5rem 1rem; }

/* Blink Animation */
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
.blink { display:inline-block; width:0.6ch; height:1em; background: var(--ink); margin-left: 0.25rem; vertical-align: -0.15em; animation: blink 1.15s steps(1) infinite; }
.blink-text { animation: blink 1.15s steps(1) infinite; }

/* Header */
header { display:flex; align-items:center; justify-content:space-between; margin-bottom: 2rem; }
.logo { display:inline-flex; align-items:center; gap:0.5rem; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; color: inherit; }
.logo .mark { font-size: 1.9rem; line-height: 1; }
@media (min-width: 768px) { .logo .mark { font-size: 2.2rem; } }

.top-links { display:flex; justify-content:flex-end; margin-bottom: 1rem; }
.top-links nav a { color: var(--info); text-decoration:none; margin-left: 1rem; font-size: 0.95rem; font-weight: 600; }
.top-links nav a:hover { color: var(--orange); }

.bracket-navy { color: var(--navy); }
.bracket-orange { color: var(--orange); }

nav a { color: var(--info); text-decoration:none; margin-left: 1rem; font-size: 0.95rem; }
nav a:hover { color: var(--orange); }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 2.5rem 0; }
@media (min-width: 768px) { .hero { padding: 3rem 0; } }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.hero p { margin-top: 0.75rem; color: var(--info); max-width: 60ch; }
.hero .cta { margin-top: 1rem; display:flex; flex-wrap:wrap; gap: 0.5rem; }
.brand-mark { display:none; }

/* Buttons */
.btn { display:inline-flex; align-items:center; gap:0.5rem; padding: 0.6rem 1rem; border: 1px solid transparent; border-radius: 10px; font-weight: 600; text-decoration: none; box-shadow: none; transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.btn:focus-visible { outline: 3px solid rgba(255,125,0,0.35); outline-offset: 2px; }
.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: #e96e00; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: white; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: #f0fdfa; }
.btn-ghost { color: var(--info); }

/* Code Accent */
.code-accent { position:absolute; right: -8px; bottom: -8px; opacity: 0.10; pointer-events: none; user-select: none; }
.code-accent pre { margin: 0; white-space: pre; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; line-height: 1.3; color: var(--navy); }

/* Sections */
section { margin-top: 2rem; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom: 0.75rem; }
.section-head h2 { font-size: 1.375rem; font-weight: 700; }
.section-sub { font-size: 0.85rem; color: var(--info); }

.beta { display:none; gap:0.25rem; align-items:center; color: var(--info); font-size: 0.75rem; }
.beta .navy { color: var(--navy); }
.beta .orange { color: var(--orange); }
@media (min-width: 768px){ .beta{display:flex;} }

/* Grid + Cards */
.grid { display:grid; gap: 1rem; }
@media (min-width: 768px) { .grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.card { background:#fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.card p { color: var(--info); font-size: 0.95rem; margin: 0.5rem 0 0; }
.card .row { display:flex; align-items:center; justify-content:space-between; margin-bottom: 0.25rem; }
.card .actions { margin-top: 0.75rem; display:flex; gap: 0.5rem; }

/* Badges */
.badge { display:inline-flex; align-items:center; padding: 0.15rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; border: 1px solid transparent; }
.badge-available { background: #E8F5E9; color: #2E7D32; }
.badge-coming { background: #FEF3C7; color: #92400E; border-color: #F59E0B; }

/* Notes */
.notes .grid { gap: 0.75rem; }
.notes h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.25rem; }

/* Footer */
footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--info); font-size: 0.95rem; }
footer .row { display:flex; flex-direction: column; gap: 0.75rem; }
@media (min-width:768px){ footer .row{flex-direction:row; align-items:center; justify-content:space-between;} }
footer a { color: inherit; text-decoration:none; }
footer a:hover { color: var(--orange); }