/* ===================================================
   Advisory Practice — landing page styles
   Mobile-first. Dark palette. No framework.
   =================================================== */

/* Design tokens */
:root {
  --bg:        #080b10;
  --bg-raised: #0d1117;
  --border:    #1a2030;
  --text:      #e8eaf0;
  --text-muted:#7a849a;
  --accent:    #00ff88;
  --accent-dim:#00cc6a;
  --danger:    #ff4d6a;

  --font-mono: 'JetBrains Mono', 'Fira Mono', monospace;
  --font-body: 'Space Grotesk', system-ui, sans-serif;

  --radius: 4px;
  --max-w:  720px;
  --gutter: 1.25rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Typography scale */
h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.1rem; }

p { max-width: 62ch; }

/* Utility */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.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;
}

/* ===================================================
   HEADER / NAV
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  /* Anshin Advisory placeholder styling — replace with actual name */
  opacity: 0.85;
}

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 0.6rem;
  transition: color 0.15s, border-color 0.15s;
}
.lang-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
  text-decoration: none;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  padding-block: 5rem 4rem;
  border-bottom: 1px solid var(--border);
}

.hero .label { margin-bottom: 1.5rem; }

.hero h1 {
  margin-bottom: 1.5rem;
  /* The em-dash in the headline needs special handling on very narrow screens */
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .subhead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.hero-pillars li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 0.6rem;
}

.hero-pillars li::before {
  content: '// ';
  color: var(--accent);
}

/* ===================================================
   CASE STUDY — "From the field"
   =================================================== */
.case-study {
  padding-block: 4rem;
  border-bottom: 1px solid var(--border);
}

.case-study .label { margin-bottom: 1.5rem; }
.case-study h2 { margin-bottom: 1rem; }

.case-study .excerpt {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.case-study .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-block {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.stat-block .stat-number {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-block .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.link-arrow:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.link-arrow::after { content: '→'; }

/* ===================================================
   THREE PILLARS
   =================================================== */
.pillars {
  padding-block: 4rem;
  border-bottom: 1px solid var(--border);
}

.pillars .label { margin-bottom: 2rem; }

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  opacity: 0.5;
}

.pillar-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===================================================
   CTA — Newsletter / contact
   =================================================== */
.cta-section {
  padding-block: 4rem;
  border-bottom: 1px solid var(--border);
}

.cta-section .label { margin-bottom: 1.5rem; }
.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section > .container > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 32rem;
  margin-bottom: 1.25rem;
}

.signup-form input[type="email"] {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.15s;
}

.signup-form input[type="email"]::placeholder { color: var(--text-muted); }

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #080b10;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
  align-self: flex-start;
}

.btn-primary:hover { background: var(--accent-dim); }
.btn-primary:active { transform: translateY(1px); }

.cta-alt {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cta-alt a { color: var(--text-muted); text-decoration: underline; }
.cta-alt a:hover { color: var(--accent); }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  padding-block: 2rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===================================================
   RESPONSIVE — tablet / desktop
   =================================================== */
@media (min-width: 600px) {
  :root { --gutter: 2rem; }

  .signup-form {
    flex-direction: row;
    align-items: stretch;
  }

  .signup-form input[type="email"] { flex: 1; }
  .btn-primary { align-self: auto; white-space: nowrap; }
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero { padding-block: 6rem 5rem; }
}
