/* ════════════════════════════════════════════════════════════════
   ST Registry Knowledge Base — home.css
   Home page only: hero, search, topics bento grid,
   feature rows, vertical lifecycle diagram, support grid.
   Requires main.css.
   ════════════════════════════════════════════════════════════════ */

/* ─── HERO ─── */
.hero { background: #fff; padding: 80px 0 0; overflow: hidden; }
.hero h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.1;
  letter-spacing: -1.2px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-desc { font-size: 17px; color: var(--gray-500); line-height: 1.7; font-weight: 300; }

/* Search */
.search-box {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  max-width: 460px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4,145,207,.12);
}
.search-box .icon-search {
  width: 18px; height: 18px;
  stroke: var(--gray-300); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  margin-left: 16px; flex-shrink: 0;
}
.search-box input {
  flex: 1; border: none; outline: none;
  font-size: 15px; color: var(--gray-900);
  padding: 14px 12px; background: transparent;
  font-family: 'Inter', sans-serif;
}
.search-box input::placeholder { color: var(--gray-300); }
.search-btn {
  background: var(--blue); border: none; color: #fff;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  padding: 0 20px; align-self: stretch; cursor: pointer; transition: background .2s;
}
.search-btn:hover { background: var(--blue-dark); }
.hint-tag {
  font-size: 12px; font-family: 'IBM Plex Mono', monospace;
  color: var(--gray-500); background: var(--gray-100);
  border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 5px; text-decoration: none;
  transition: all .15s;
}
.hint-tag:hover { background: var(--blue-pale); border-color: var(--blue-mid); color: var(--blue); }

/* Hero panel */
.hero-panel {
  background: var(--blue);
  border-radius: 20px 20px 0 0;
  padding: 36px 36px 0;
  height: 100%;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-panel::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border: 56px solid rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}
.panel-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.panel-row {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit; transition: background .15s;
}
.panel-row:hover { background: rgba(255,255,255,.18); }
.panel-row-icon {
  width: 32px; height: 32px; background: rgba(255,255,255,.15);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.panel-row-icon svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-row-text strong { display: block; font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.panel-row-text span  { font-size: 11px; color: rgba(255,255,255,.55); }
.panel-row-arrow { margin-left: auto; color: rgba(255,255,255,.4); font-size: 18px; line-height: 1; }

/* ─── TOPICS (bento grid) ─── */
.topics-section { background: #fff; border-top: 1px solid var(--border); padding: 96px 48px; }
.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 56px;
}
.bento-tile {
  display: block;
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--gray-900);
}
.bento-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.bento-titlewrap { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.bento-num { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500; color: var(--gray-300); flex-shrink: 0; }
.bento-title { font-size: 22px; font-weight: 700; color: var(--gray-900); letter-spacing: -.4px; margin: 0; line-height: 1.1; }
.bento-desc { font-size: 14px; color: var(--gray-500); line-height: 1.7; font-weight: 300; margin: 0 0 24px; }
.bento-links { display: flex; flex-direction: column; }
.bento-chip {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--gray-700); font-weight: 400;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color .15s, padding-left .2s ease;
}
.bento-chip:first-child { border-top: 1px solid var(--border); }
.bento-chip::after {
  content: '→';
  font-size: 14px;
  color: var(--border);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s, color .2s;
}
.bento-chip:hover { color: var(--blue); padding-left: 6px; }
.bento-chip:hover::after { opacity: 1; transform: translateX(0); color: var(--blue); }
.bento-chip svg { display: none; }

.topic-block-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.topic-num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; color: var(--gray-300); min-width: 20px; }
.topic-icon {
  width: 40px; height: 40px; background: var(--blue-pale);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .18s;
}
.topic-block:hover .topic-icon { background: var(--blue); }
.topic-icon svg { width: 19px; height: 19px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .18s; }
.topic-block:hover .topic-icon svg { stroke: #fff; }
.topic-block h3 { font-size: 20px; font-weight: 700; color: var(--gray-900); letter-spacing: -.3px; line-height: 1.2; margin: 0 !important; }
.topic-desc { font-size: 14px; color: var(--gray-500); line-height: 1.65; font-weight: 300; margin-bottom: 24px; padding-left: 34px; margin-top: 0; }
.topic-article-list { padding-left: 34px; display: block; width: 100%; }
.topic-article-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--border); text-decoration: none;
  color: inherit;
}
.topic-article-row:last-child { border-bottom: 1px solid var(--border); }
.topic-article-row-left { display: flex; align-items: center; gap: 10px; }
.topic-article-row-left svg { width: 14px; height: 14px; stroke: var(--gray-300); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: stroke .15s; }
.topic-article-title { font-size: 13px; color: var(--gray-700); font-weight: 400; transition: color .15s; }
.topic-article-row:hover .topic-article-title       { color: var(--blue); }
.topic-article-row:hover .topic-article-row-left svg { stroke: var(--blue); }
.topic-article-arrow { font-size: 14px; color: var(--border); transition: color .15s; }
.topic-article-row:hover .topic-article-arrow { color: var(--blue); }

/* ─── FEATURE ROWS ─── */
.feature-strip { background: #fff; padding: 0 48px; }
.feature-strip::before {
  content: '';
  display: block;
  border-top: 1px solid var(--border);
  margin: 0 -48px;
}
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start; padding: 56px 0;
  border-top: 1px solid var(--border);
}
.feature-row:first-child { border-top: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-text h2 { font-size: 32px; font-weight: 700; color: var(--gray-900); letter-spacing: -.5px; line-height: 1.2; margin-bottom: 14px; margin-top: 0; }
.feature-text p  { font-size: 15px; color: var(--gray-500); line-height: 1.75; font-weight: 300; margin-bottom: 24px; }
.feature-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.feature-link svg { width: 14px; height: 14px; stroke: var(--blue); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Feature visuals */
.feature-visual {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; min-height: 260px;
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.feature-visual--blue   { background: var(--blue-pale); border-color: var(--blue-mid); }
.feature-visual--compact { padding: 24px; min-height: auto; }
.visual-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gray-300); margin-bottom: 16px; }
.visual-label--blue { font-size: 12px; color: var(--blue); letter-spacing: 1px; margin-bottom: 14px; }
.visual-sublabel { font-size: 12px; font-weight: 600; color: var(--gray-700); margin-bottom: 10px; }
.visual-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* Billing visual */
.billing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.bill-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 14px; text-align: center; }
.bill-card--active { background: var(--blue); border-color: var(--blue); }
.bill-level { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; color: var(--blue); display: block; margin-bottom: 4px; }
.bill-card--active .bill-level { color: rgba(255,255,255,.7); }
.bill-range { font-size: 12px; font-weight: 600; color: var(--gray-900); display: block; line-height: 1.25; }
.bill-card--active .bill-range { color: #fff; }
.bill-desc { font-size: 10px; color: var(--gray-300); display: block; margin-top: 4px; }
.bill-card--active .bill-desc { color: rgba(255,255,255,.5); }
.notif-chips { display: flex; gap: 8px; }
.notif-chip { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 500; color: var(--gray-700); }

/* ─── VERTICAL LIFECYCLE DIAGRAM (home page visual) ─── */
.lifecycle { display: flex; flex-direction: column; align-items: center; }
.lc-stage {
  width: 100%; border-width: 1.5px; border-style: solid; border-radius: 9px;
  padding: 10px 16px; display: flex; align-items: center; justify-content: space-between;
}
.lc-stage-left  { display: flex; align-items: center; gap: 10px; }
.lc-stage-right { display: flex; align-items: center; gap: 8px; }
.lc-stage--thirds { display: grid; grid-template-columns: 1fr auto 1fr; }
.lc-stage--thirds .lc-stage-left  { justify-content: flex-start; }
.lc-stage--thirds .lc-stage-right { justify-content: flex-end; }
.lc-stage--green  { background: var(--lc-green-bg);  border-color: var(--lc-green-bd); }
.lc-stage--blue   { background: var(--lc-blue-bg);   border-color: var(--lc-blue-bd); }
.lc-stage--orange { background: var(--lc-orange-bg); border-color: var(--lc-orange-bd); }
.lc-stage--purple { background: var(--lc-purple-bg); border-color: var(--lc-purple-bd); }
.lc-stage--red    { background: var(--lc-red-bg);    border-color: var(--lc-red-bd); }
.lc-stage--released { background: var(--gray-100); border: 1.5px dashed var(--gray-300); border-radius: 9px; padding: 8px 16px; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.lc-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.lc-dot--green  { background: var(--lc-green-dot); }
.lc-dot--blue   { background: var(--blue); }
.lc-dot--orange { background: var(--lc-orange-dot); }
.lc-dot--purple { background: var(--lc-purple-dot); }
.lc-dot--red    { background: var(--lc-red-dot); }
.lc-dot--gray   { background: var(--gray-300); }
.lc-stage-name { font-size: 13px; font-weight: 600; display: block; }
.lc-stage-name--green  { color: var(--lc-green-text); }
.lc-stage-name--blue   { color: var(--lc-blue-text); }
.lc-stage-name--orange { color: var(--lc-orange-text); }
.lc-stage-name--purple { color: var(--lc-purple-text); }
.lc-stage-name--red    { color: var(--lc-red-text); }
.lc-stage-name--gray   { color: var(--gray-500); font-weight: 500; }
.lc-stage-status { font-size: 10px; display: block; }
.lc-stage-status--orange { color: var(--lc-orange-sub); }
.lc-stage-status--purple { color: var(--lc-purple-sub); }
.lc-stage-status--red    { color: var(--lc-red-sub); }
.lc-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.lc-badge--green  { color: var(--lc-green-text); background: rgba(22,101,52,.1); font-weight: 500; }
.lc-badge--blue   { color: var(--lc-blue-text);  background: rgba(4,145,207,.12); font-weight: 500; }
.lc-badge--orange { color: var(--lc-orange-text); background: rgba(249,115,22,.12); }
.lc-badge--purple { color: var(--lc-purple-text); background: rgba(248,113,113,.15); }
.lc-badge--red    { color: var(--lc-red-text);    background: rgba(220,38,38,.12); }
.lc-badge--gray   { font-size: 10px; color: var(--gray-300); font-style: italic; font-weight: 400; }
.lc-renewable {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600; color: var(--lc-green-text);
  background: rgba(22,101,52,.1); border: 1px solid var(--lc-green-bd);
  padding: 2px 8px 2px 6px; border-radius: 4px; white-space: nowrap;
}
.lc-renewable svg { width: 12px; height: 12px; stroke: var(--lc-green-text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lc-arrow { display: flex; flex-direction: column; align-items: center; margin: 2px 0; }
.lc-arrow-line { width: 1.5px; height: 10px; background: var(--gray-300); }
.lc-arrow-head { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--gray-300); }
.lc-transition-label { font-size: 10px; color: var(--gray-500); font-style: italic; margin: 2px 0 4px; }

/* ─── SUPPORT ─── */
.support-section { background: var(--gray-900); padding: 80px 0; }
.support-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; background: rgba(255,255,255,.06);
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.support-block { background: var(--gray-900); padding: 40px 36px; transition: background .2s; }
.support-block:hover { background: rgba(255,255,255,.04); }
.support-icon { width: 44px; height: 44px; background: rgba(4,145,207,.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.support-icon svg { width: 20px; height: 20px; stroke: #4dc3ee; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-block h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.support-block p  { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.65; font-weight: 300; margin: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; column-gap: 0; row-gap: 48px; }
  .feature-strip { padding: 0 24px; }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
    direction: ltr;
  }
  .feature-row.reverse { direction: ltr; }
  .feature-text { order: 1; }
  .feature-visual { order: 2; }
}
