/* GuildOS — guild-os.net */

:root {
  --bg: #0a0b0d;
  --bg-elev: #111317;
  --bg-card: #15181d;
  --border: #23272f;
  --border-soft: #1b1e24;
  --text: #e7eaf0;
  --text-dim: #9aa3b2;
  --text-faint: #6b7280;
  --accent: #6ee7b7;
  --accent-strong: #34d399;
  --accent-glow: rgba(110, 231, 183, 0.15);
  --warn: #fbbf24;
  --radius: 10px;
  --radius-lg: 14px;
  --max: 1100px;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-strong);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
  color: var(--text-dim);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-elev);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==== Header ==== */
header.site {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}

nav.primary {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.primary a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}

nav.primary a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #06281b;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: #06281b;
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

/* ==== Hero ==== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    var(--accent-glow) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
}

.hero .lede {
  font-size: 1.15rem;
  max-width: 680px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero .pill-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.hero .pill-row span::before {
  content: "▸ ";
  color: var(--accent);
}

/* ==== Section ==== */
section {
  padding: 70px 0;
  border-top: 1px solid var(--border-soft);
}

.section-head {
  max-width: 700px;
  margin-bottom: 48px;
}

.section-head .kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==== Feature grid ==== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.card .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.card h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ==== Pipeline diagram ==== */
.pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 24px;
}

.pipe-step {
  padding: 14px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text);
}

.pipe-arrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ==== Pricing ==== */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 40px var(--accent-glow);
  position: relative;
}

.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 12px;
  background: var(--accent);
  color: #06281b;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.price-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
}

.price-amount span {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 500;
}

.price-card p.tagline {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.price-card li {
  padding: 6px 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  position: relative;
  padding-left: 22px;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ==== FAQ ==== */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
}

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 32px;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 16px 0 0;
}

/* ==== CTA strip ==== */
.cta-strip {
  padding: 60px 0;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.cta-strip h2 {
  margin-bottom: 12px;
}

.cta-strip p {
  max-width: 580px;
  margin: 0 auto 32px;
}

/* ==== Footer ==== */
footer.site {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 32px;
  margin-top: auto;
  background: var(--bg-elev);
}

footer.site .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

footer.site .links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

footer.site .links a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

footer.site .links a:hover {
  color: var(--text);
}

footer.site .copy {
  color: var(--text-faint);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* ==== Legal pages (terms / privacy) ==== */
.legal {
  padding: 60px 0;
  max-width: 780px;
}

.legal h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.legal h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: var(--text);
}

.legal h3 {
  margin-top: 28px;
  font-size: 1.05rem;
}

.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 0.97rem;
  line-height: 1.7;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--text);
}

/* ==== Apps showcase ==== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.app-card:hover {
  border-color: #2e333d;
  transform: translateY(-2px);
}

.app-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: #0a0b0d;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.app-icon[data-tone="violet"]  { background: linear-gradient(135deg,#a78bfa,#7c3aed); }
.app-icon[data-tone="amber"]   { background: linear-gradient(135deg,#fbbf24,#d97706); }
.app-icon[data-tone="emerald"] { background: linear-gradient(135deg,#6ee7b7,#10b981); }
.app-icon[data-tone="rose"]    { background: linear-gradient(135deg,#fda4af,#e11d48); }
.app-icon[data-tone="blue"]    { background: linear-gradient(135deg,#93c5fd,#2563eb); }
.app-icon[data-tone="indigo"]  { background: linear-gradient(135deg,#a5b4fc,#4f46e5); color:#fff; }
.app-icon[data-tone="cyan"]    { background: linear-gradient(135deg,#67e8f9,#0891b2); }
.app-icon[data-tone="orange"]  { background: linear-gradient(135deg,#fdba74,#ea580c); }
.app-icon[data-tone="pink"]    { background: linear-gradient(135deg,#f9a8d4,#db2777); color:#fff; }
.app-icon[data-tone="green"]   { background: linear-gradient(135deg,#86efac,#16a34a); }
.app-icon[data-tone="slate"]   { background: linear-gradient(135deg,#cbd5e1,#475569); color:#fff; }
.app-icon[data-tone="muted"]   {
  background: var(--bg-elev);
  border: 1px dashed var(--border);
  color: var(--text-faint);
  font-size: 1.6rem;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid;
}

.status-live {
  background: rgba(110, 231, 183, 0.1);
  color: var(--accent);
  border-color: rgba(110, 231, 183, 0.4);
}

.status-review {
  background: rgba(251, 191, 36, 0.08);
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.35);
}

.status-beta {
  background: rgba(147, 197, 253, 0.08);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.35);
}

.status-soon {
  background: rgba(155, 163, 178, 0.06);
  color: var(--text-faint);
  border-color: rgba(155, 163, 178, 0.25);
}

.app-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.app-meta {
  font-size: 0.82rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.app-pitch {
  font-size: 0.93rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  flex: 1;
}

.app-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.82rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.foot-dot { color: var(--border); }

.foot-link {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.foot-link:hover { color: var(--accent-strong); }

.app-card-more {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  border-style: dashed;
}

/* ==== Homepage showcase strip ==== */
.showcase-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.showcase-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.showcase-pill:hover {
  border-color: var(--accent);
  color: inherit;
}

.showcase-pill .app-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 0.78rem;
}

.showcase-pill .pill-meta {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.showcase-pill .pill-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

/* ==== Contact ==== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

/* ==== Responsive ==== */
@media (max-width: 720px) {
  nav.primary {
    gap: 18px;
  }
  nav.primary a:not(.btn) {
    display: none;
  }
  .hero {
    padding: 60px 0 40px;
  }
  section {
    padding: 50px 0;
  }
  .pipeline {
    flex-direction: column;
  }
  .pipe-arrow {
    transform: rotate(90deg);
  }
  footer.site .row {
    flex-direction: column;
    align-items: flex-start;
  }
}
