/* CSS for ToolHub */
:root {
  --ink: #0c0c0c;
  --paper: #f2f0e8;
  --yellow: #d4ff00;
  --white: #f7f6f1;
  --muted: #888880;
  --border: #2a2a2a;
  --border-light: #e0ddd4;
  --red: #ff3b3b;
  --green: #00c875;
  --card-bg: #111111;
  --mono: "Fragment Mono", monospace;
  --sans: "Barlow", sans-serif;
  --cond: "Barlow Condensed", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  background: none;
}
img {
  max-width: 100%;
}
::selection {
  background: var(--yellow);
  color: var(--ink);
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--yellow);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--border);
  height: 54px;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.logo {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 24px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0;
}
.logo .bracket {
  color: var(--muted);
}
.logo .name {
  color: var(--yellow);
}
.logo .version {
  font-size: 0.65rem;
  color: var(--muted);
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 0;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar {
  display: none;
}
.nav-link {
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--border);
  transition:
    color 0.15s,
    background 0.15s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--white);
  background: #161616;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  height: 54px;
  display: flex;
}
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
.dropdown-menu {
  position: absolute;
  top: 54px;
  left: 0;
  background: var(--ink);
  border: 1px solid var(--border);
  border-top: none;
  min-width: 260px;
  display: none;
  flex-direction: column;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.nav-dropdown:hover .dropdown-menu {
  display: flex;
}
.dropdown-item {
  padding: 12px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition:
    color 0.15s,
    background 0.15s;
}
.dropdown-item:last-child {
  border-bottom: none;
}
.dropdown-item:hover {
  color: var(--white);
  background: #161616;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-search-wrap {
  position: relative;
  border-left: 1px solid var(--border);
}
.nav-search-wrap input {
  width: 220px;
  height: 54px;
  padding: 0 16px 0 36px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.8rem;
  outline: none;
}
.nav-search-wrap input::placeholder {
  color: var(--muted);
}
.nav-search-wrap input:focus {
  background: #111;
}
.nav-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}
.nav-theme-btn {
  width: 54px;
  height: 54px;
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
  transition:
    color 0.15s,
    background 0.15s;
}
.nav-theme-btn:hover {
  color: var(--yellow);
  background: #111;
}
.nav-support {
  height: 54px;
  padding: 0 20px;
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-support:hover {
  background: #fff;
  color: var(--ink);
}

/* TICKER */
.ticker {
  background: var(--yellow);
  color: var(--ink);
  border-bottom: none;
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
}
.ticker-label {
  flex-shrink: 0;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-right: 2px solid rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
}
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-item {
  padding: 0 40px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  height: 32px;
}
.ticker-item .t-label {
  opacity: 0.5;
  font-weight: 400;
}
.ticker-item .t-name {
  font-weight: 700;
  color: var(--ink);
}
.ticker-item .t-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.4;
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* HERO */
.hero {
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 420px;
}
.hero-left {
  padding: 56px 48px 48px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-left::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.013) 2px,
    rgba(255, 255, 255, 0.013) 4px
  );
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: "//";
  color: var(--yellow);
  margin-right: 4px;
}

.hero-h1 {
  font-family: var(--cond);
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 32px;
}
.hero-h1 .line-accent {
  color: var(--yellow);
  display: block;
}
.hero-h1 .line-outline {
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
  display: block;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.6;
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.btn-primary {
  height: 52px;
  padding: 0 32px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--yellow);
  transition:
    background 0.15s,
    color 0.15s;
}
.btn-primary:hover {
  background: transparent;
  color: var(--yellow);
}
.btn-secondary {
  height: 52px;
  padding: 0 28px;
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--border);
  margin-left: 12px;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.btn-secondary:hover {
  border-color: var(--white);
}

.hero-right {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.hero-stat-block {
  flex: 1;
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero-stat-block:last-child {
  border-bottom: none;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stat-num {
  font-family: var(--cond);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stat-num .stat-accent {
  color: var(--yellow);
}
.stat-unit {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

/* SEARCH BAR */
.search-bar {
  border-bottom: 1px solid var(--border);
  background: #0f0f0f;
  display: flex;
  align-items: center;
}
.search-bar-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  font-size: 18px;
  color: var(--muted);
}
.search-bar input {
  flex: 1;
  height: 64px;
  padding: 0 24px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.search-bar input::placeholder {
  color: var(--muted);
}
.search-bar-shortcut {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0 20px;
  border-left: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.kbd {
  background: var(--border);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.68rem;
  color: var(--white);
}
.search-result-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0 20px;
  border-left: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.search-result-count span {
  color: var(--yellow);
}

/* FILTER STRIP */
.filter-strip {
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 54px;
  z-index: 90;
  background: var(--ink);
}
.filter-strip::-webkit-scrollbar {
  display: none;
}
.filter-btn {
  height: 46px;
  padding: 0 20px;
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    color 0.12s,
    background 0.12s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.filter-btn:hover {
  color: var(--white);
  background: #111;
}
.filter-btn.active {
  color: var(--ink);
  background: var(--yellow);
  border-right-color: var(--yellow);
}
.filter-btn.active .f-count {
  color: rgba(0, 0, 0, 0.5);
}
.f-count {
  font-size: 0.65rem;
  opacity: 0.5;
}
.filter-sort {
  margin-left: auto;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}
.filter-sort select {
  height: 46px;
  padding: 0 16px;
  background: var(--ink);
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--muted);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888880' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filter-sort select:focus {
  color: var(--white);
}
.filter-sort select option {
  background: #111;
  color: var(--white);
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 0.73rem;
}

/* TOOLS GRID */
.tools-wrap {
  max-width: none;
  border-bottom: 1px solid var(--border);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-right: 1px solid var(--border);
}
.tool-card {
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.12s;
  cursor: pointer;
  animation: card-reveal 0.4s ease both;
}
.tool-card:hover {
  background: #111;
}
.tool-card.hidden {
  display: none;
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.2s ease;
}
.tool-card:hover::before {
  transform: scaleY(1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 8px;
}
.card-icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
}
.card-use-count {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
  padding-top: 4px;
}
.card-hot {
  color: var(--yellow) !important;
}

.card-cat {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-name {
  font-family: var(--cond);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
  transition: color 0.12s;
}
.tool-card:hover .card-name {
  color: var(--yellow);
}

.card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 24px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}
.card-cta {
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.12s;
  letter-spacing: 0.04em;
}
.tool-card:hover .card-cta {
  color: var(--yellow);
}
.card-cta-arrow {
  transition: transform 0.15s;
}
.tool-card:hover .card-cta-arrow {
  transform: translateX(4px);
}

.card-save {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  transition:
    border-color 0.12s,
    color 0.12s;
}
.card-save:hover,
.card-save.saved {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* Category colors */
.cat-seo {
  color: #4ade80;
}
.cat-development {
  color: #60a5fa;
}
.cat-convertor {
  color: #fbbf24;
}
.cat-security {
  color: #f87171;
}
.cat-miscellaneous {
  color: #c084fc;
}
.cat-calculator {
  color: #22d3ee;
}
.cat-social {
  color: #f472b6;
}

/* empty state */
.empty-state {
  grid-column: 1/-1;
  padding: 80px 40px;
  text-align: center;
  display: none;
}
.empty-state.show {
  display: block;
}
.empty-big {
  font-family: var(--cond);
  font-size: 5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--border);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.empty-msg {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

/* POPULAR ROW */
.popular-section {
  border-bottom: 1px solid var(--border);
}
.section-header-bar {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  height: 44px;
}
.section-header-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 20px;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-header-label .sh-dot {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  animation: blink 1.4s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.section-header-title {
  font-family: var(--cond);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 20px;
  color: var(--white);
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.popular-card {
  border-right: 1px solid var(--border);
  padding: 32px 32px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background 0.12s;
  position: relative;
}
.popular-card:hover {
  background: #111;
}
.popular-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.popular-card:hover::after {
  transform: scaleX(1);
}
.popular-card:last-child {
  border-right: none;
}

.pop-rank {
  font-family: var(--cond);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--border);
  letter-spacing: -0.04em;
  flex-shrink: 0;
  transition: color 0.15s;
}
.popular-card:hover .pop-rank {
  color: var(--yellow);
}
.pop-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}
.pop-name {
  font-family: var(--cond);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 6px;
}
.pop-uses {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.pop-uses .bar {
  width: 80px;
  height: 2px;
  background: var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.pop-uses .bar-fill {
  height: 100%;
  background: var(--yellow);
  animation: bar-grow 1s 0.3s ease both;
  transform-origin: left;
}
@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* TOOL OF THE DAY */
.totd {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  border-bottom: 1px solid var(--border);
  min-height: 160px;
}
.totd-label-col {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: #0f0f0f;
}
.totd-label-text {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.totd-star {
  font-size: 1.8rem;
}
.totd-badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 400;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.totd-content {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.totd-name {
  font-family: var(--cond);
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1;
}
.totd-desc {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
}

.totd-cta-col {
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 40px;
}
.totd-cta {
  height: 52px;
  padding: 0 32px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.totd-cta:hover {
  background: transparent;
  color: var(--yellow);
}

/* RECENTLY USED */
.recent-section {
  border-bottom: 1px solid var(--border);
  display: none;
}
.recent-section.show {
  display: block;
}
.recent-list {
  display: flex;
  align-items: stretch;
}
.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-right: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.12s;
}
.recent-item:hover {
  background: #111;
  color: var(--yellow);
}
.recent-item-icon {
  font-size: 1.2rem;
}
.recent-clear-btn {
  margin-left: auto;
  border-left: 1px solid var(--border);
  padding: 0 20px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  transition: color 0.12s;
}
.recent-clear-btn:hover {
  color: var(--red);
}

/* TRUST STRIP */
.trust-strip {
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.trust-strip::-webkit-scrollbar {
  display: none;
}
.trust-item {
  flex: 1;
  min-width: 160px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-item:last-child {
  border-right: none;
}
.trust-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.trust-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.trust-text strong {
  color: var(--white);
  display: block;
  font-size: 0.82rem;
}

/* FOOTER */
.footer-pro {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-col {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
}
.footer-col:last-child {
  border-right: none;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 1rem;
  margin-bottom: 16px;
  display: block;
}
.footer-logo .fname {
  color: var(--yellow);
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 220px;
}
.bmc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  background: #ffdd00;
  color: #000;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s;
}
.bmc:hover {
  background: #fff;
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
/* ─── ABOUT PAGE PREMIUM ─── */
.about-container {
  max-width: 1440px;
  margin: 0 auto;
}

.principles-grid-pro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.p-card {
  background: var(--dark);
  padding: 40px;
  transition: background 0.2s;
}

.p-card:hover {
  background: #0d0d0d;
}

.p-card .p-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.p-card h3 {
  font-family: var(--cond);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.p-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.founder-sidebar-card {
  padding: 32px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #0d0d0d 0%, #050505 100%);
  position: sticky;
  top: 100px;
}

.f-avatar {
  font-size: 3rem;
  margin-bottom: 20px;
}

.f-name {
  font-family: var(--cond);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  text-transform: uppercase;
}

.f-role {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--yellow);
  text-transform: uppercase;
  margin-top: 8px;
}

.f-socials {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.f-socials a {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s;
}

.f-socials a:hover {
  color: var(--white);
}

.f-socials a.f-coffee {
  color: var(--yellow);
  font-weight: 700;
  border-bottom: none;
}

.side-other-title {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.side-other a {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 0;
  transition:
    transform 0.2s,
    color 0.2s;
}

.side-other a:hover {
  color: var(--white);
  transform: translateX(4px);
}

/* ─── PREMIUM FOOTER (continued) ─── */

.fp-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.fp-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.fp-brand .footer-logo {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.fp-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 32px;
}

.fp-socials {
  display: flex;
  gap: 16px;
}

.fp-social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.fp-social-link:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-3px);
  background: rgba(255, 215, 0, 0.05);
}

.fp-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
}

.fp-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fp-links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.fp-links a:hover {
  color: var(--white);
}

.fp-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fp-copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.fp-legal {
  display: flex;
  gap: 32px;
}

.fp-legal a {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  transition: color 0.2s;
}

.fp-legal a:hover {
  color: var(--white);
}

/* ─── RESPONSIVE FOOTER ─── */
@media (max-width: 1024px) {
  .fp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .principles-grid-pro {
    grid-template-columns: 1fr;
  }
  .fp-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .fp-bottom {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.12s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: var(--yellow);
}
.footer-links a::before {
  content: "→";
  font-size: 0.7rem;
  opacity: 0;
}
.footer-links a:hover::before {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}
.footer-fine {
  display: flex;
  gap: 20px;
}
.footer-fine a {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  transition: color 0.12s;
}
.footer-fine a:hover {
  color: var(--white);
}

/* BOOKMARK BANNER */
.bm-banner {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  z-index: 200;
  transition: bottom 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.bm-banner.show {
  bottom: 0;
}
.bm-inner {
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 2px solid rgba(0, 0, 0, 0.15);
}
.bm-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-right: 2px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.bm-text {
  flex: 1;
  padding: 0 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.bm-dismiss {
  height: 56px;
  padding: 0 20px;
  border-left: 2px solid rgba(0, 0, 0, 0.15);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  transition: background 0.12s;
}
.bm-dismiss:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* ─── PAGE HEADER ─── */
.page-header {
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 480px;
  min-height: 380px;
  background: #050505;
}

.ph-left {
  padding: 64px 60px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ph-eyebrow {
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ph-title {
  font-family: var(--cond);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 32px;
}

.ph-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ph-right {
  display: flex;
  flex-direction: column;
}

/* ─── RESPONSIVE OVERRIDES ─── */

/* Tablets (Max 1024px) */
@media (max-width: 1024px) {
  .page-header {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .ph-left {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 48px 32px !important;
  }
  .ph-right {
    flex-direction: row !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .ph-aside-block-pro {
    border-right: 1px solid var(--border) !important;
    border-bottom: none !important;
    padding: 24px !important;
  }
  .ph-aside-block-pro:last-child {
    border-right: none !important;
  }

  .page-layout {
    grid-template-columns: 1fr !important;
  }
  .col-nav {
    display: none !important;
  }

  .quick-links-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .ql-card {
    padding: 16px !important;
  }

  .summary-strip-pro {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Small Tablets & Mobile (Max 768px) */
@media (max-width: 768px) {
  .ph-right {
    grid-template-columns: 1fr !important;
  }
  .ph-aside-block-pro {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .ph-aside-block-pro:last-child {
    border-bottom: none !important;
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ql-card {
    border-bottom: 1px solid var(--border) !important;
  }
  .ql-card:nth-child(even) {
    border-right: none !important;
  }

  .section-body {
    padding: 32px 24px !important;
  }

  .summary-strip-pro {
    grid-template-columns: 1fr !important;
  }

  .rules-strip-pro {
    grid-template-columns: 1fr !important;
  }
}
.rules-list {
  list-style: none;
  padding: 0;
}
.rule-item {
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
  transition: background 0.12s;
}
.rule-item:hover {
  background: #0d0d0d;
}
.rule-item:last-child {
  border-bottom: none;
}
.rule-sym {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-top: 1px;
}
.sym-yes {
  color: var(--green);
}
.sym-no {
  color: var(--red);
}

.page-layout {
  display: block !important;
}
.col-content {
  border-right: none !important;
  width: 100% !important;
  overflow-x: hidden !important;
}
.col-nav {
  display: none !important;
}

/* ─── QUICK LINKS ─── */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #080808;
  border-bottom: 1px solid var(--border);
}
.ql-card {
  padding: 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s;
}
.ql-card:hover {
  background: #111;
  padding-left: 30px;
}
.ql-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--yellow);
  opacity: 0.6;
}
.ql-card:hover .ql-num {
  opacity: 1;
}
.ql-title {
  font-family: var(--cond);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ─── POLICY SECTIONS ─── */
.policy-section {
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(54px + 42px);
}
.section-bar {
  display: flex;
  align-items: center;
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, #0a0a0a, #050505);
}
.sb-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--yellow);
  border-right: 1px solid var(--border);
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
}
.sb-title {
  font-family: var(--cond);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  padding: 0 24px;
  letter-spacing: 0.04em;
}
.section-body {
  padding: 48px 60px;
}
.section-body h3 {
  font-family: var(--cond);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 12px;
  margin-top: 28px;
}
.section-body h3:first-child {
  margin-top: 0;
}
.section-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.section-body p:last-child {
  margin-bottom: 0;
}
.section-body strong {
  color: var(--white);
}
.section-body a {
  color: var(--yellow);
  border-bottom: 1px solid rgba(212, 255, 0, 0.3);
  transition: border-color 0.15s;
}
.section-body a:hover {
  border-color: var(--yellow);
}
.section-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.section-body ul li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.section-body ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* ─── PREMIUM LEGAL STYLES ─── */
.ph-tag-pro {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.ph-tag-pro.green {
  border-color: rgba(0, 200, 117, 0.3);
  color: var(--green);
}
.ph-tag-pro.yellow {
  border-color: rgba(219, 249, 1, 0.3);
  color: var(--yellow);
}
.ph-tag-pro.amber {
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--amber);
}

.ph-aside-block-pro {
  flex: 1;
  padding: 32px 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #0d0d0d 0%, #080808 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.2s;
}
.ph-aside-block-pro:last-child {
  border-bottom: none;
}
.ph-aside-block-pro:hover {
  background: #111;
}
.ph-aside-block-pro .pa-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}
.ph-aside-block-pro .pa-val {
  font-family: var(--cond);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.ph-aside-block-pro .pa-note {
  font-size: 0.72rem;
  color: var(--muted);
}

.line-accent {
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(219, 249, 1, 0.3);
}

.dot {
  color: var(--yellow);
  margin: 0 4px;
}
/* ─── SUMMARY STRIP PRO ─── */
.summary-strip-pro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #050505;
  border-bottom: 1px solid var(--border);
}
.ss-card-pro {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.ss-card-pro:hover {
  background: #080808;
}
.ss-card-pro .ss-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.ss-card-pro:hover .ss-accent {
  transform: scaleX(1);
}
.ss-accent.yellow {
  background: var(--yellow);
}
.ss-accent.green {
  background: var(--green);
}

.ss-card-pro .ss-icon {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: block;
}
.ss-card-pro .ss-title {
  font-family: var(--cond);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.ss-card-pro .ss-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.ss-card-pro .ss-verdict {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── RULES STRIP PRO ─── */
.rules-strip-pro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #050505;
  border-bottom: 1px solid var(--border);
}
.rules-card-pro {
  padding: 0;
}
.rules-card-header {
  padding: 20px 32px;
  font-family: var(--cond);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.rc-green-pro {
  background: rgba(0, 200, 117, 0.05);
  color: var(--green);
}
.rc-red-pro {
  background: rgba(255, 59, 59, 0.05);
  color: var(--red);
  border-left: 1px solid var(--border);
}

.rules-list-pro {
  list-style: none;
  padding: 0;
}
.rule-item-pro {
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.12s;
}
.rule-item-pro:hover {
  background: #080808;
}
.rule-item-pro:last-child {
  border-bottom: none;
}
.rule-sym-pro {
  font-family: var(--mono);
  font-size: 0.8rem;
}
.rule-sym-pro.sym-yes {
  color: var(--green);
}
.rule-sym-pro.sym-no {
  color: var(--red);
}
.amber-box {
  border-left: 3px solid var(--amber);
  padding: 14px 18px;
  background: rgba(245, 158, 11, 0.04);
  margin: 20px 0;
}
.amber-box p {
  margin-bottom: 0;
}
.amber-box strong {
  color: var(--amber) !important;
}
.green-box {
  border-left: 3px solid var(--green);
  padding: 14px 18px;
  background: rgba(0, 200, 117, 0.04);
  margin: 20px 0;
}
.green-box p {
  margin-bottom: 0;
  color: var(--white) !important;
}
.red-box {
  border-left: 3px solid var(--red);
  padding: 14px 18px;
  background: rgba(255, 59, 59, 0.04);
  margin: 20px 0;
}
.red-box p {
  margin-bottom: 0;
}

.side-nav-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.side-nav-links {
  display: flex;
  flex-direction: column;
}
.snl {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    color 0.15s,
    background 0.15s;
  cursor: pointer;
}
.snl:hover {
  color: var(--yellow);
  background: #0f0f0f;
}
.snl .sn-num {
  color: var(--border);
  font-size: 0.62rem;
}
.side-other {
  margin-top: 0;
  border-top: 1px solid var(--border);
}
.side-other-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.side-other a {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    color 0.15s,
    background 0.15s;
}
.side-other a:hover {
  color: var(--yellow);
  background: #0f0f0f;
}

/* ABOUT PAGE EXTRAS */
.manifesto-block {
  flex: 1;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.manifesto-block:last-child {
  border-bottom: none;
}
.mb-num {
  font-family: var(--cond);
  font-size: 3rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.2s;
}
.manifesto-block:hover .mb-num {
  color: var(--yellow);
}
.mb-title {
  font-family: var(--cond);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}
.mb-text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.story {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.story-label {
  border-right: 1px solid var(--border);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  background: #0a0a0a;
}
.s-label-text {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.s-label-num {
  font-family: var(--cond);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.04em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.story-col {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
}
.story-col:last-child {
  border-right: none;
}
.story-heading {
  font-family: var(--cond);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.05;
}
.story-heading .yel {
  color: var(--yellow);
}
.story-body {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}
.story-body p {
  margin-bottom: 14px;
}
.story-body p:last-child {
  margin-bottom: 0;
}
.story-body strong {
  color: var(--white);
}
.story-body a {
  color: var(--yellow);
  border-bottom: 1px solid rgba(212, 255, 0, 0.3);
  transition: border-color 0.15s;
}
.story-body a:hover {
  border-color: var(--yellow);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--border);
}
.stat-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
}
.stat-cell:last-child {
  border-right: none;
}
.stat-cell:hover {
  background: #0d0d0d;
}
.stat-cell::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.stat-cell:hover::after {
  transform: scaleX(1);
}
.sc-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sc-val {
  font-family: var(--cond);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--yellow);
}
.sc-unit {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 5px;
}

.principles {
  border-bottom: 1px solid var(--border);
}
.sb-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 20px;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-dot {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  animation: blink 1.4s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.principle {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.15s;
}
.principle:hover {
  background: #0d0d0d;
}
.principle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.2s ease;
}
.principle:hover::before {
  transform: scaleY(1);
}
.principle:nth-child(3n) {
  border-right: none;
}
.p-num {
  font-family: var(--cond);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 14px;
  transition: color 0.15s;
  letter-spacing: -0.04em;
}
.principle:hover .p-num {
  color: var(--yellow);
}
.p-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}
.p-title {
  font-family: var(--cond);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.1;
}
.p-text {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}

.founder {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-bottom: 1px solid var(--border);
}
.founder-card {
  border-right: 1px solid var(--border);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #0a0a0a;
  text-align: center;
}
.founder-avatar {
  width: 96px;
  height: 96px;
  border: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: #111;
  flex-shrink: 0;
}
.founder-name {
  font-family: var(--cond);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.1;
}
.founder-role {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--yellow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.founder-location {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}
.founder-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.fl {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}
.fl:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.founder-bio {
  padding: 48px 48px;
}
.founder-bio-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.founder-bio-eyebrow::before {
  content: "//";
  color: var(--yellow);
}
.founder-quote {
  font-family: var(--cond);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.founder-quote .yq {
  color: var(--yellow);
}
.founder-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}
.founder-text p {
  margin-bottom: 14px;
}
.founder-text p:last-child {
  margin-bottom: 0;
}
.founder-text strong {
  color: var(--white);
}
.founder-text a {
  color: var(--yellow);
  border-bottom: 1px solid rgba(212, 255, 0, 0.3);
  transition: border-color 0.15s;
}
.founder-text a:hover {
  border-color: var(--yellow);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stack-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.stack-cell:hover {
  background: #0d0d0d;
}
.stack-cell:nth-child(4n) {
  border-right: none;
}
.stack-cell:nth-last-child(-n + 4):nth-child(4n + 1),
.stack-cell:nth-last-child(-n + 4) ~ .stack-cell {
  border-bottom: none;
}
.sc-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}
.sc-name {
  font-family: var(--cond);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 4px;
}
.sc-why {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.timeline {
  border-bottom: 1px solid var(--border);
}
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-row {
  display: grid;
  grid-template-columns: 120px 60px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  animation: tl-in 0.4s ease both;
}
.tl-row:last-child {
  border-bottom: none;
}
.tl-row:hover {
  background: #0d0d0d;
}
.tl-date {
  padding: 20px 20px;
  border-right: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}
.tl-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  transition:
    background 0.15s,
    border-color 0.15s;
  flex-shrink: 0;
}
.tl-row:hover .tl-dot {
  background: var(--yellow);
  border-color: var(--yellow);
}
.tl-dot.active {
  background: var(--yellow);
  border-color: var(--yellow);
}
.tl-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
  z-index: -1;
}
.tl-content {
  padding: 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tl-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}
.tl-desc {
  font-size: 0.8rem;
  color: var(--muted);
}
.tl-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid;
  width: fit-content;
  margin-top: 4px;
}
.badge-yellow {
  border-color: var(--yellow);
  color: var(--yellow);
}
.badge-green {
  border-color: var(--green);
  color: var(--green);
}
.badge-muted {
  border-color: var(--border);
  color: var(--muted);
}
@keyframes tl-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── RESPONSIVE OVERRIDES ── */

/* Laptops & Tablets (Max 1200px) */
@media (max-width: 1200px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  footer {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Tablets (Max 1024px) */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .hero-left {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 48px 32px !important;
  }
  .hero-right {
    flex-direction: row !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    border-right: none !important;
    border-top: 1px solid var(--border) !important;
    background: #080808 !important;
  }
  .hero-stat-block {
    border-right: 1px solid var(--border) !important;
    border-bottom: none !important;
    padding: 24px !important;
    align-items: center !important;
    text-align: center !important;
  }
  .hero-stat-block:last-child {
    border-right: none !important;
  }
  .stat-num {
    font-size: 2.8rem !important;
  }

  .cta-strip {
    grid-template-columns: 1fr !important;
  }
  .cta-content {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .popular-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Small Tablets & Large Mobile (Max 768px) */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 16px !important;
    justify-content: space-between !important;
  }
  .logo {
    padding-right: 12px !important;
    border-right: none !important;
  }

  .nav-links {
    display: flex !important;
    background: var(--ink) !important;
    border-top: 1px solid var(--border) !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    z-index: 1000 !important;
    justify-content: space-around !important;
  }
  .nav-link {
    border-right: none !important;
    height: 60px !important;
    padding: 0 10px !important;
    font-size: 0.65rem !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    text-align: center !important;
    flex: 1 !important;
  }
  .nav-link::before {
    font-size: 1.2rem !important;
    margin-bottom: 2px !important;
  }
  .nav-link:nth-child(1)::before {
    content: "🛠️";
  }
  .nav-link:nth-child(2)::before {
    content: "ℹ️";
  }
  .nav-link:nth-child(3)::before {
    content: "🔒";
  }
  .nav-link:nth-child(4)::before {
    content: "📜";
  }

  .hero-h1 {
    font-size: 3.2rem !important;
    line-height: 1 !important;
  }

  .hero-actions {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .btn-primary,
  .btn-secondary {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: center !important;
  }

  .hero-right {
    grid-template-columns: 1fr 1fr !important;
  }
  .hero-stat-block:last-child {
    grid-column: span 2 !important;
    border-right: none !important;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .popular-grid {
    grid-template-columns: 1fr !important;
  }

  footer {
    padding-bottom: 100px !important; /* Space for mobile nav */
  }
}

/* Mobile (Max 480px) */
@media (max-width: 480px) {
  .hero-h1 {
    font-size: 2.8rem !important;
  }
  .hero-right {
    grid-template-columns: 1fr !important;
  }
  .hero-stat-block {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .tools-grid {
    grid-template-columns: 1fr !important;
  }
  .popular-grid {
    grid-template-columns: 1fr !important;
  }

  .nav-search-wrap,
  .search-bar-shortcut,
  .search-result-count {
    display: none !important;
  }
}
