:root {
  /* Apple-like neutral theme */
  color-scheme: light dark;
  --bg: #f5f5f7; /* macOS window gray */
  --text: #111114; /* near-black */
  --muted: #6e6e73; /* system gray */
  --elev: rgba(22, 22, 23, 0.08);
  --hairline: rgba(60, 60, 67, 0.18);
  --accent: #0071e3; /* Apple blue */
  --accent-soft: rgba(0, 113, 227, 0.1);
  /* Status (green) for eyebrow */
  --status: #34c759; /* Apple system green */
  --status-soft: rgba(52, 199, 89, 0.12);
  --radius-lg: 24px;
  --radius-md: 20px;
  /* Surfaces */
  --surface: color-mix(in oklab, #ffffff 76%, transparent);
  --bg-radial: rgba(0, 0, 0, 0.06);
  --tooltip-bg: color-mix(in oklab, #ffffff 92%, transparent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --elev: rgba(255, 255, 255, 0.08);
    --hairline: rgba(255, 255, 255, 0.12);
    --accent: #0a84ff; /* iOS blue */
    --accent-soft: rgba(10, 132, 255, 0.12);
    /* Status colors in dark mode */
    --status: #30d158;
    --status-soft: rgba(48, 209, 88, 0.16);
    --surface: color-mix(in oklab, #1c1c1e 86%, transparent);
    --bg-radial: rgba(255, 255, 255, 0.06);
    --tooltip-bg: color-mix(in oklab, #1c1c1e 92%, transparent);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", Inter, system-ui, ui-sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Subtle background glows */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 60vh;
  pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, var(--bg-radial), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
body::after {
  inset: auto -10% -20% -10%;
  height: 50vh;
  background: radial-gradient(60% 60% at 50% 100%, var(--bg-radial), transparent 60%);
}

/* Layout */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100svh;
  display: grid;
}

main { width: 100%; }

/* Hero */
.hero { 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 5vw, 40px); 
  max-width: 780px;
  margin: 48px auto 0;
  padding: clamp(28px, 5vw, 56px);
  position: relative; 
  z-index: 1;
}

.hero-metrics {
  margin-top: 20px;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}

.hero-metrics .metric-line {
  font-size: clamp(12px, 1.8vw, 14px);
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.hero-metrics .metric-line:last-child {
  margin-bottom: 0;
}

.hero-metrics .metric-line span {
  font-weight: 700;
  color: var(--text);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .2px; color: var(--muted);
  background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
}
.eyebrow .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 24%, transparent);
}

/* Yellow status variant for the eyebrow ("In development") */
.eyebrow.status { 
  background: var(--status-soft); 
  border: 1px solid color-mix(in oklab, var(--status) 18%, transparent);
}
.eyebrow.status .dot { 
  background: var(--status);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--status) 24%, transparent);
}
.hero h1 {
  margin: 16px 0 12px; line-height: 1.06; font-size: clamp(32px, 7vw, 64px); font-weight: 800;
  letter-spacing: -0.022em;
}
.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 6px 0 12px;
}
.feature-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .2px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.6));
  border: 1px solid var(--hairline);
}
@media (prefers-color-scheme: dark) {
  .feature-chip {
    background: linear-gradient(180deg, rgba(28,28,30,0.6), rgba(44,44,46,0.6));
  }
}
.punchline {
  margin-top: 4px;
  margin-bottom: 0px;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 700;
  color: var(--text);
}
.hero p.lead { margin: 0 0 22px; color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); }

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
}
.profile-meta { display: flex; flex-direction: column; }
.profile-name { font-weight: 800; font-size: 18px; }
.profile-handle { color: var(--muted); font-size: 14px; }

/* Email wrap - pill control */
.email-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.6));
  border: 1px solid var(--hairline);
  box-shadow: none;
}
@media (prefers-color-scheme: dark) {
  .email-wrap {
    background: linear-gradient(180deg, rgba(28,28,30,0.6), rgba(44,44,46,0.6));
    box-shadow: none;
  }
}
.email-address {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.2px;
}
.email-address:hover { opacity: 0.9; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 4px 10px var(--elev);
}
@media (prefers-color-scheme: dark) {
  .icon-btn { 
    background: linear-gradient(180deg, rgba(44,44,46,0.9), rgba(28,28,30,0.9)); 
    box-shadow: 0 4px 10px var(--elev);
  }
}
.icon-btn:hover { box-shadow: 0 2px 0 rgba(255,255,255,0.7) inset, 0 6px 14px var(--elev); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn svg { width: 18px; height: 18px; opacity: 0.9; }
.icon-btn.copied::after {
  content: 'Copied';
  position: absolute;
  bottom: calc(100% + 6px);
  background: var(--tooltip-bg);
  border: 1px solid var(--hairline);
  box-shadow: 0 6px 20px var(--elev);
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}

/* CTA row */
.cta-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 14px var(--elev);
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
@media (prefers-color-scheme: dark) {
  .btn { background: linear-gradient(180deg, rgba(44,44,46,0.9), rgba(28,28,30,0.9)); }
}
.btn:hover { box-shadow: 0 2px 0 rgba(255,255,255,0.7) inset, 0 10px 18px var(--elev); }
.btn:active { transform: translateY(1px); }
.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;
}

/* Focus visibility */
.icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Section divider between hero and posts */
.section-divider {
  max-width: 780px;
  margin: 36px auto 0;
  height: 12px;
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 6px;
  height: 1px;
  background: var(--hairline);
}

.section-divider::after {
  content: '';
  position: absolute;
  left: 50%; top: 1px;
  transform: translateX(-50%);
  width: 56px; height: 10px;
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  filter: blur(12px);
  opacity: .5;
}

/* Public Posts Section */
.public-posts {
  max-width: 780px;
  margin: 0 auto;
}

.posts-grid {
  display: block;
}

.post-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}


.post-card:first-child {
  border-top: 1px solid var(--hairline);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
  user-select: none;
}

.tweet-body { min-width: 0; }

.tweet-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.tweet-name { font-weight: 700; }
.tweet-handle, .tweet-time { color: var(--muted); }
.tweet-dot { color: var(--muted); }

.post-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-top: 6px;
  margin-bottom: 2px;
  white-space: pre-wrap;
}

.post-timestamp { display: none; }

.loading-placeholder {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  .no-posts {
    box-shadow: 0 4px 16px var(--elev);
  }
}

.no-posts-text {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.no-posts-subtitle {
  color: var(--muted);
  font-size: 14px;
  opacity: 0.8;
}

/* Capabilities as cards */
#capabilities-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) {
  #capabilities-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
#capabilities-list li {
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.6));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 18px var(--elev);
}
@media (prefers-color-scheme: dark) {
  #capabilities-list li {
    background: linear-gradient(180deg, rgba(28,28,30,0.6), rgba(44,44,46,0.6));
    box-shadow: 0 6px 18px var(--elev);
  }
}
#capabilities-list li strong {
  display: block;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
}