/* BinCast — tool page */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

::-webkit-scrollbar        { width: 8px; height: 8px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-corner { background: var(--bg); }

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background-color: var(--bg);
  color-scheme: dark;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

code {
  font-family: var(--font-mono);
  font-size: .8125em;
  background-color: var(--surface2);
  border: 1px solid var(--border);
  padding: .1em .35em;
  border-radius: 3px;
}

/* ── Header ──────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--header-h);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: rgba(11, 13, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.brand-mark img { display: block; flex-shrink: 0; }

.brand-name {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-bincast { color: var(--muted); }
.brand-divider { color: var(--border); font-size: 12px; }
.brand-product { color: var(--forge-primary); font-weight: 600; }

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-shrink: 0;
}

.header-nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

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

/* ── Hero ────────────────────────────────────────────────────────── */

.hero {
  margin-top: var(--header-h);
  padding: 3.5rem 2rem 3rem;
  min-height: max(240px, 38vh);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--forge-glow);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--forge-accent);
  margin-bottom: 1.25rem;
  opacity: .85;
}

.hero-wordmark {
  font-family: var(--font-disp);
  font-optical-sizing: auto;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .9;
  margin-bottom: 1.25rem;
}

.word-primary { color: var(--text); }
.word-accent  { color: var(--forge-primary); }

.hero-tagline {
  font-size: clamp(.9375rem, 1.6vw, 1.125rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Tool workspace ──────────────────────────────────────────────── */

.tool-section {
  flex: 1;
  padding: 2rem 2rem 3rem;
  background-color: var(--bg);
}

.tool-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Strike nav (mode tabs) */

.strike-nav {
  display: flex;
  gap: 2px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.strike-nav::-webkit-scrollbar { display: none; }

.strike-tab {
  padding: .6rem 1.1rem .7rem;
  font-size: .8125rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}

.strike-tab:hover { color: var(--text); }

.strike-tab.is-active {
  color: var(--forge-primary);
  border-bottom-color: var(--forge-primary);
}

/* Workspace layout */

.tool-workspace {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto;
  gap: 1.25rem;
  align-items: start;
}

/* Bin and Cast panes */

.tool-pane {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.pane-label {
  display: flex;
  align-items: baseline;
  gap: .6rem;
}

.zone-word {
  font-family: var(--font-disp);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--forge-primary);
  letter-spacing: -.01em;
}

.zone-desc {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
}

.bin-input {
  width: 100%;
  min-height: 360px;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
  transition: border-color .15s;
  outline: none;
}

.bin-input:focus {
  border-color: var(--forge-border);
  background-color: var(--surface2);
}

.bin-input::placeholder { color: var(--muted); opacity: .5; }

.cast-output {
  min-height: 360px;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: pre-wrap;
  word-break: break-all;
  overflow: auto;
}

.cast-actions {
  display: flex;
  gap: .5rem;
}

/* Tool controls (center column) */

.tool-controls {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-top: 2rem;
  align-items: center;
}

/* ── Coming soon state ────────────────────────────────────────────── */

.coming-soon-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.soon-inner {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.soon-phrase {
  font-family: var(--font-disp);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--forge-primary);
  letter-spacing: -.02em;
  font-style: italic;
}

.soon-desc {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.soon-strikes {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  justify-content: center;
}

.strike-pill {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2em .6em;
  border-radius: 3px;
  background-color: var(--forge-a8);
  color: var(--forge-primary);
  border: 1px solid var(--forge-border);
  white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5625rem 1.25rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, opacity .15s;
  white-space: nowrap;
}

.btn-strike {
  background-color: var(--forge-primary);
  color: var(--bg);
  border-color: var(--forge-primary);
  min-width: 80px;
  justify-content: center;
}

.btn-strike:hover { opacity: .85; }

.btn-clear {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-clear:hover { color: var(--text); border-color: var(--muted); }

.btn-copy {
  background: transparent;
  color: var(--forge-primary);
  border-color: var(--forge-border);
  font-size: .8125rem;
}

.btn-copy:hover { background-color: var(--forge-a8); }

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

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

.btn-soon {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  cursor: default;
  pointer-events: none;
  font-style: italic;
}

/* ── Features section ─────────────────────────────────────────────── */

.features-section {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forge-accent);
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background-color: var(--surface2);
  padding: 1.75rem;
  transition: background-color .15s;
}

.feature-card:hover { background-color: var(--bg); }

.feature-num {
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--forge-primary);
  display: block;
  margin-bottom: .75rem;
}

.feature-card h3 {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}

.feature-card p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Footer ──────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  background-color: var(--bg);
  margin-top: auto;
}

.site-footer p {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer a { color: var(--muted); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--text); }
.sep { color: var(--border); }

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .site-header  { padding: 0 1.25rem; }
  .header-nav   { display: none; }
  .hero         { padding: 2.5rem 1.25rem 2.5rem; }
  .tool-section { padding: 1.5rem 1.25rem 2.5rem; }

  .tool-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .tool-controls {
    flex-direction: row;
    padding-top: 0;
  }

  .features-section { padding: 2.5rem 1.25rem; }
  .features-grid    { grid-template-columns: 1fr; }
  .site-footer      { padding: 1rem 1.25rem; }
}
