/* ShroudCloud design system — clean, trust-forward, security-grade */
:root {
  --bg: #f7f8fa;
  --bg-alt: #0e1a2b;
  --surface: #ffffff;
  --border: #dde1e8;
  --text: #151d2b;
  --text-muted: #4a5468;
  --text-dim: #6b7688;
  --accent: #0f766e;
  --accent-bright: #14b8a6;
  --accent-soft: #e6f4f2;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(14, 26, 43, 0.08), 0 4px 16px rgba(14, 26, 43, 0.06);
  --shadow-lift: 0 4px 8px rgba(14,26,43,0.1), 0 16px 32px rgba(15,118,110,0.1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --fs-xs: 0.72rem;
  --fs-sm: 0.85rem;
  --fs-base: 1rem;
  --fs-md: 1.15rem;
  --fs-lg: 1.4rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.2rem;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--bg-alt);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { font-weight: 700; font-size: 1.15rem; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.brand-dot { color: var(--accent-bright); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #c3ccd9; text-decoration: none; font-size: var(--fs-sm); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: all 0.18s;
  border: none;
  cursor: pointer;
}
.btn-sm { padding: 8px 16px; font-size: var(--fs-xs); }
.btn-primary { background: var(--accent-bright); color: #fff; }
.btn-primary:hover { background: #0d9488; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(20,184,166,0.35); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--bg-alt); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,255,255,0.18); }
.btn-text {
  background: transparent;
  color: #b8c2d0;
  padding: 13px 4px;
  border: none;
  text-decoration: underline;
  text-decoration-color: rgba(184,194,208,0.4);
  font-weight: 500;
}
.btn-text:hover { color: #fff; text-decoration-color: #fff; }

/* Hero */
.hero {
  background: var(--bg-alt);
  color: #fff;
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.headline {
  font-size: clamp(var(--fs-2xl), 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-bottom: 20px;
}
.subhead {
  font-size: var(--fs-md);
  color: #b8c2d0;
  max-width: 54ch;
  margin-bottom: 34px;
  line-height: 1.65;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Sections */
.section { padding: 76px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg); }
.section-title { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.section-sub { color: var(--text-muted); max-width: 60ch; margin-bottom: 36px; line-height: 1.6; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: var(--fs-lg); font-weight: 700; }
.card .card-tag { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.card p { color: var(--text-muted); font-size: var(--fs-base); line-height: 1.6; flex: 1; }
.card .btn { align-self: flex-start; margin-top: 8px; }

/* Trust band */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.trust-item { padding: 26px 24px; border-left: 3px solid var(--accent-bright); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.trust-item h4 { font-size: var(--fs-md); margin-bottom: 8px; }
.trust-item p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }

/* Pillars (ZTA map) */
.pillar-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pillar-table th, .pillar-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); line-height: 1.55; }
.pillar-table th { background: var(--bg-alt); color: #fff; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.pillar-table tr:nth-child(even) td { background: rgba(15,118,110,0.03); }
.pillar-table tr:last-child td { border-bottom: none; }
.pillar-table tr:hover td { background: var(--accent-soft); }
.pillar-table td.pillar-name { font-weight: 700; font-family: var(--mono); font-size: var(--fs-sm); color: var(--accent); white-space: nowrap; }

/* Credibility bar */
.cred-bar {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cred-item { display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-sm); color: #b8c2d0; }
.cred-item strong { color: #fff; font-weight: 700; }
.cred-item a { color: #b8c2d0; text-decoration: underline; text-decoration-color: rgba(184,194,208,0.35); }
.cred-item a:hover { color: #fff; }

/* Code sample */
.code-sample {
  background: #0b1524;
  border-radius: var(--radius);
  padding: 22px 26px;
  overflow-x: auto;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.code-sample pre { font-family: var(--mono); font-size: var(--fs-sm); color: #d6e2ef; line-height: 1.6; }
.code-sample .caption { font-size: var(--fs-xs); color: #8fa2b8; margin-top: 12px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item details summary { font-weight: 600; cursor: pointer; font-size: var(--fs-base); }
.faq-item details summary:hover { color: var(--accent); }
.faq-item details p { color: var(--text-muted); margin-top: 12px; font-size: var(--fs-sm); max-width: 70ch; line-height: 1.6; }

/* Waitlist form */
.waitlist {
  background: var(--bg-alt);
  color: #fff;
  padding: 64px 0;
  border-radius: var(--radius-lg);
  margin: 48px 0;
}
.waitlist .container { text-align: center; }
.waitlist h2 { font-size: 1.6rem; margin-bottom: 10px; }
.waitlist p { color: #b8c2d0; margin-bottom: 24px; max-width: 55ch; margin-inline: auto; }
.waitlist form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.waitlist input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.95rem;
}
.waitlist input::placeholder { color: #8fa2b8; }
.waitlist .note { font-size: 0.78rem; color: #8fa2b8; margin-top: 14px; }

/* Footer */
.site-footer { background: var(--bg-alt); color: #9aa7b8; padding: 48px 0 24px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand p { font-size: 0.85rem; margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #9aa7b8; text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; font-size: 0.8rem; }

/* Prose / content pages */
.prose { max-width: 72ch; }
.prose h1 { font-size: 2rem; margin-bottom: 16px; }
.prose h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 8px; }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; }

.mt-lg { margin-top: 32px; }
