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

:root {
  --bg: #09090B;
  --text: #F3F0EA;
  --muted: #A7A29A;
  --accent: #A33A2B;
  --border: rgba(255,255,255,0.08);
  --surface: rgba(255,255,255,0.025);
  --font: -apple-system, system-ui, 'Segoe UI', sans-serif;
}

body { background: var(--bg); color: var(--text); font-family: var(--font); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,11,0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 2px; }
.brand span {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.38em; color: var(--accent);
}
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.3em; color: var(--muted); text-decoration: none;
  transition: color 0.15s;
}
nav a:hover { color: var(--text); }
@media (max-width: 640px) {
  .header-inner { flex-direction: column; gap: 12px; padding: 12px 16px; }
  nav { gap: 14px; justify-content: center; }
  .brand span { letter-spacing: 0.3em; }
}

/* Focus indicators — keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[data-gosx-link]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Skip-to-content link — visually hidden until focused */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--bg);
  padding: 10px 16px; font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.25em; text-decoration: none;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* FAQ list on /ai-systems */
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg);
}
.faq-item p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}
.faq-item a {
  color: var(--fg);
  border-bottom: 1px dotted var(--muted);
  text-decoration: none;
}
.faq-item a:hover { border-bottom-color: var(--fg); }

/* Post-end 3-path CTA grid on culture posts */
.post-cta-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 768px) { .post-cta-grid { grid-template-columns: 1fr; } }
.post-cta-card {
  padding: 32px;
  border: 1px solid var(--border); background: var(--surface);
}

/* Sections */
.section {
  max-width: 1280px; margin: 0 auto;
  padding: 80px 24px;
}
.section-border { border-bottom: 1px solid var(--border); }

/* Hero */
.hero { min-height: 88vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-inner { max-width: 800px; }
.hero img { margin-bottom: 48px; }
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 7.5rem);
  font-weight: 200; text-transform: uppercase;
  line-height: 0.88; letter-spacing: -0.06em;
}
.hero h1 .line { display: block; }
.hero h1 .sub { display: block; opacity: 0.9; margin-top: 8px; }
.hero-text {
  margin-top: 40px; max-width: 600px; margin-left: auto; margin-right: auto;
  font-size: 16px; line-height: 1.8; color: var(--muted);
}
.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 32px;
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.3em; text-decoration: none;
  transition: all 0.15s;
}
.btn-primary {
  border: 1px solid var(--accent); color: var(--text);
  background: rgba(163,58,43,0.1);
}
.btn-primary:hover { background: rgba(163,58,43,0.2); }
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.2); color: var(--muted);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.4); color: var(--text); }
.btn-text {
  border: none; color: var(--accent); padding: 10px 0;
}
.btn-text:hover { color: var(--text); }

/* Eyebrow */
.eyebrow {
  display: block; font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.42em;
  color: var(--accent); margin-bottom: 12px;
}

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border); background: var(--surface);
  padding: 32px; transition: border-color 0.15s; text-decoration: none; color: inherit;
  display: block;
}
.card:hover { border-color: rgba(163,58,43,0.4); }
.card h2 { font-size: 24px; font-weight: 200; margin-top: 20px; letter-spacing: -0.03em; }
.card p { margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* Service cards */
.service-card { padding: 32px; }
.service-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.service-price { font-size: 14px; font-weight: 900; letter-spacing: 0.25em; }
.service-details { margin-top: 20px; }
.service-details h3 {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.3em; margin-bottom: 8px;
}
.service-details ul {
  list-style: disc; padding-left: 20px;
  font-size: 14px; color: var(--muted); line-height: 1.8;
}

/* About */
.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.about-content h2 {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 200; line-height: 1.02; letter-spacing: -0.05em;
}
.about-content p { margin-top: 24px; color: var(--muted); line-height: 1.8; }

/* Separator */
.left-border { border-left: 1px solid rgba(255,255,255,0.1); padding-left: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 64px 24px;
  display: grid; grid-template-columns: 1fr auto auto; gap: 60px;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer img { border-radius: 2px; }
.footer-desc { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 320px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(167,162,154,0.5);
}

/* Blog */
.post-card {
  border: 1px solid var(--border); background: var(--surface);
  padding: 32px; text-decoration: none; color: inherit;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  transition: border-color 0.15s;
}
.post-card:hover { border-color: rgba(163,58,43,0.4); }
.post-title { font-size: 20px; font-weight: 200; letter-spacing: -0.03em; }
.post-excerpt { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 600px; }
.post-date { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.35em; color: var(--muted); white-space: nowrap; }
.post-tags { margin-top: 12px; display: flex; gap: 8px; }
.post-tags span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--accent); }

/* Prose (blog posts) */
.prose { max-width: 720px; }
.prose h1 { font-size: 36px; font-weight: 200; margin-bottom: 16px; letter-spacing: -0.03em; }
.prose h2 { font-size: 24px; font-weight: 200; margin-top: 48px; margin-bottom: 16px; }
.prose h3 { font-size: 18px; font-weight: 400; margin-top: 32px; margin-bottom: 12px; }
.prose p { color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }
.prose code {
  color: var(--accent); background: rgba(255,255,255,0.05);
  padding: 2px 6px; border-radius: 3px; font-size: 0.9em;
}
.prose pre {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  padding: 16px; overflow-x: auto; margin-bottom: 16px;
}
.prose ul, .prose ol { color: var(--muted); padding-left: 20px; margin-bottom: 16px; line-height: 1.8; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 16px; color: var(--muted); margin-bottom: 16px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.prose th { color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.prose td { color: var(--muted); }

.back-link {
  display: inline-block; margin-bottom: 32px;
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.35em; color: var(--accent); text-decoration: none;
}
.back-link:hover { color: var(--text); }

/* Live Feed */
.live-section { text-align: left; }
.live-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.live-label {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.35em; color: var(--accent);
}
.viewer-count {
  font-size: 10px; color: var(--muted); margin-left: auto;
}

#activity-feed { display: flex; flex-direction: column; gap: 8px; }

.feed-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border); background: var(--surface);
}
.feed-dot {
  width: 6px; height: 6px; border-radius: 50%;
  margin-top: 6px; flex-shrink: 0;
  background: var(--muted);
}
.feed-research .feed-dot { background: #22c55e; }
.feed-task .feed-dot { background: #3b82f6; }
.feed-cost .feed-dot { background: var(--accent); }
.feed-system .feed-dot { background: var(--muted); }

.feed-body { flex: 1; min-width: 0; }
.feed-text { font-size: 13px; color: var(--text); }
.feed-detail {
  display: block; font-size: 12px; color: var(--muted);
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed-time { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; opacity: 0.6; }
