/* ==========================================================================
   OrchardTech Greenova — pages.css
   Home hero (§7.1), page heroes, section patterns C/D/E, milestone feature,
   stat callout, 404
   ========================================================================== */

/* ---------- Home hero — split composition (§7.1) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 28%),
    linear-gradient(160deg, #F7FAF8 0%, #E9F1EC 55%, #DCEAE2 100%);
  overflow: hidden;
}
/* Editorial column rules — quiet consulting-grid rhythm, not graph paper */
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(12, 74, 60, .055) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  pointer-events: none;
}
/* Ghost brand watermark anchored to the title zone */
.hero::before {
  content: "";
  position: absolute;
  left: -120px; bottom: -150px;
  width: 520px; height: 520px;
  background: url("../img/favicon.svg") no-repeat center / contain;
  opacity: .05;
  pointer-events: none;
}
/* Gold seam tracing the diagonal edge of the veil (IPO accent) */
.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  background: linear-gradient(180deg, rgba(201, 162, 39, .6), rgba(201, 162, 39, .22));
  clip-path: polygon(calc(9% - 2px) 0, 100% 0, 100% 100%, calc(0% - 2px) 100%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: -180px; right: -120px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(46, 204, 113, .13), transparent 65%);
  pointer-events: none;
}
.hero__veil {
  position: absolute;
  z-index: 1;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  background: linear-gradient(135deg, rgba(7, 41, 31, .94) 0%, rgba(12, 74, 60, .9) 45%, rgba(18, 89, 74, .88) 100%);
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 47% 53%;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: 132px var(--gutter) 0;
}
.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(16px, 3vw, 48px);
  padding-bottom: 72px;
}
.hero__badge { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 900;
  line-height: 1.14;
  color: var(--ink-900);
  margin-bottom: 8px;
}
html[lang="en"] .hero h1 { font-weight: 700; line-height: 1.3; font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 20px; }
html[lang="en"] .hero h1 span { white-space: nowrap; }
html[lang="en"] .hero__inner { grid-template-columns: 56% 44%; }
html[lang="en"] .hero__left { padding-right: clamp(12px, 2vw, 32px); }
.hero__h1-sub {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--green-700);
}
.hero__lead {
  margin-top: 26px;
  font-size: var(--text-lead);
  line-height: 1.7;
  color: var(--ink-500);
  max-width: 46ch;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero__ctas .btn--ghost { border-color: var(--green-700); color: var(--green-800); }
.hero__ctas .btn--ghost:hover { background: rgba(12, 74, 60, .06); border-color: var(--green-800); color: var(--green-800); }
html[lang="en"] .hero__h1-sub { margin-top: 14px; }
html[lang="en"] .hero__lead { margin-top: 32px; }

/* Right side — stat chip + trust strip on the veil */
.hero__right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: clamp(48px, 7vw, 120px);
  padding-bottom: 56px;
}
.hero__chip {
  max-width: 420px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 28px 30px;
  animation: chip-float 7s ease-in-out infinite;
}
@keyframes chip-float { 50% { transform: translateY(-10px); } }
.hero__chip .kicker {
  display: flex; align-items: center; gap: 9px;
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-300);
  margin-bottom: 14px;
}
.hero__chip .kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-400); animation: pulse 2s infinite; }
.hero__chip strong {
  display: block;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.45;
  color: #F6F9F7;
  margin-bottom: 10px;
}
.hero__chip p { font-size: var(--text-sm); color: #A9C3B9; line-height: 1.65; }
.hero__chip .go {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--accent-300);
}
.hero__chip .go:hover { color: var(--accent-400); }

.hero__trust {
  margin-top: clamp(40px, 9vh, 96px);
  width: 100%;
}
.hero__trust .label {
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(246, 249, 247, .5);
  margin-bottom: 10px;
}
html[lang^="zh"] .hero__trust .label { letter-spacing: .06em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 168px 0 clamp(56px, 7vw, 88px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 30%),
    linear-gradient(160deg, #F7FAF8 0%, #E9F1EC 55%, #DCEAE2 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(12, 74, 60, .05) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -220px; right: -140px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(46, 204, 113, .12), transparent 65%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: var(--text-h1); margin: 14px 0 18px; max-width: 18em; }
.page-hero .lead { font-size: var(--text-lead); color: var(--ink-500); max-width: 62ch; line-height: 1.7; }
.page-hero__en {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  letter-spacing: .02em;
  color: var(--green-600);
  margin-top: 6px;
}

/* ---------- Pattern C: split / sticky ---------- */
.split { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split--reverse { grid-template-columns: 3fr 2fr; }
.split__sticky { position: sticky; top: 110px; }
.split__sticky h2 { font-size: var(--text-h2); margin-bottom: 16px; }
.split__sticky .tag {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-100);
  color: var(--green-800);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
}
.split__body > * + * { margin-top: 26px; }
.split__body h3 { font-size: var(--text-h3); margin-bottom: 12px; }
.sub-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--green-800);
  margin: 34px 0 16px;
}
.sub-head::before { content: ""; width: 22px; height: 2px; background: var(--grad-accent); flex: none; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 30px;
  position: relative;
}
.panel::before {
  content: "";
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 3px; border-radius: 16px 16px 0 0;
  background: var(--hairline-top);
}
@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
}

/* ---------- Pattern D: bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento > * { min-width: 0; }
.bento .tile-2 { grid-column: span 4; }
.bento .tile-1 { grid-column: span 2; }
.bento .tile-3 { grid-column: span 3; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .tile-2, .bento .tile-1, .bento .tile-3 { grid-column: span 2; }
}

/* ---------- Pattern E: offset cards ---------- */
.offset-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.offset-grid > * { min-width: 0; }
.offset-grid .col-6 { grid-column: span 6; }
.offset-grid .col-4 { grid-column: span 4; }
.offset-grid .col-3 { grid-column: span 3; }
.offset-grid .off-1 { margin-top: 24px; }
.offset-grid .off-2 { margin-top: 48px; }
@media (max-width: 1023px) {
  .offset-grid .col-3 { grid-column: span 6; }
  .offset-grid .off-2 { margin-top: 0; }
}
@media (max-width: 760px) {
  .offset-grid .col-6, .offset-grid .col-4, .offset-grid .col-3 { grid-column: 1 / -1; }
  .offset-grid .off-1, .offset-grid .off-2 { margin-top: 0; }
}

/* Subsidiary preview cards (home) */
.subsidiary-card { display: flex; flex-direction: column; }
.subsidiary-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.subsidiary-card h3 { font-size: var(--text-h3); line-height: 1.3; }
.subsidiary-card h3 small { display: block; font-size: var(--text-sm); font-weight: 500; color: var(--ink-400); margin-top: 5px; }
.subsidiary-card .subs-badge {
  flex: none;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--green-700);
  background: var(--accent-100);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
}
.subsidiary-card p { color: var(--ink-700); font-size: var(--text-body); }
.subsidiary-card footer { margin-top: auto; padding-top: 24px; }

/* ---------- Milestone feature block (R&D 🔥) ---------- */
.feature-block {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(124, 232, 165, .4);
  background: rgba(255, 255, 255, .045);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: clamp(30px, 4.5vw, 56px);
  box-shadow: 0 0 60px rgba(46, 204, 113, .12), inset 0 0 60px rgba(46, 204, 113, .04);
  overflow: hidden;
}
.feature-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
}
.feature-block h3 { color: #fff; font-size: var(--text-h3); margin-bottom: 14px; }
.feature-block > p { color: #B9CCC4; max-width: 72ch; }
.feature-block .significance { margin-top: 30px; display: grid; gap: 18px; }
.feature-block .significance li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
}
.feature-block .significance svg { flex: none; width: 22px; height: 22px; color: var(--accent-300); margin-top: 3px; }
.feature-block .significance strong { display: block; color: #F6F9F7; margin-bottom: 3px; }
.feature-block .significance p { font-size: var(--text-sm); color: #A9C3B9; }

/* Stat callout band (R&D 6–10) */
.stat-callout {
  margin-top: 34px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  border-radius: 16px;
  padding: clamp(26px, 3.5vw, 40px);
  background: var(--grad-accent);
  color: var(--green-950);
}
.stat-callout .big {
  font-family: var(--font-body);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.stat-callout .big small { font-size: .32em; font-weight: 700; display: block; letter-spacing: .04em; margin-top: 8px; }
.stat-callout p { color: rgba(4, 31, 24, .85); font-weight: 500; max-width: 60ch; font-size: var(--text-sm); line-height: 1.7; }
@media (max-width: 760px) { .stat-callout { grid-template-columns: 1fr; } }

/* Formula line (R&D) */
.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 22px 26px;
  border-radius: 14px;
  background: var(--green-900);
  color: #F6F9F7;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.6;
}
.formula .op { color: var(--accent-400); font-weight: 800; font-size: 1.1em; }
.formula .eq { color: var(--gold-400); font-weight: 800; font-size: 1.1em; }
.formula .result { color: var(--accent-300); }

/* Mission / vision split band */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
  border-radius: 16px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.mv-card .icon-tile { background: rgba(46, 204, 113, .14); color: var(--accent-300); }
.mv-card h3 { color: #F6F9F7; font-size: var(--text-h3); margin-bottom: 12px; }
.mv-card p { color: #B9CCC4; font-size: var(--text-lead); line-height: 1.65; }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } }

/* Synergy cards */
.synergy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .synergy-grid { grid-template-columns: 1fr; } }

/* IR value cards */
.value-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.value-card p { font-size: var(--text-sm); color: var(--ink-700); }
.value-card.card--dark p { color: #A9C3B9; }

/* Disclosure note (IR) */
.disclosure {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: var(--text-xs);
  color: var(--ink-500);
  background: var(--surface-2);
  line-height: 1.7;
}
.disclosure svg { flex: none; width: 18px; height: 18px; color: var(--ink-400); margin-top: 2px; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
  background: linear-gradient(160deg, #F6F9F7 0%, #E4EFE9 55%, #D8E8DF 100%);
}
.error-page .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 { font-size: var(--text-h2); margin: 18px 0 10px; }
.error-page p { color: var(--ink-500); margin-inline: auto; }
.error-page .zh { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line-strong); }
.error-page .actions { margin-top: 30px; }

/* ---------- Home hero responsive ---------- */
@media (max-width: 960px) {
  .hero { height: 100dvh; overflow-y: auto; }
  .hero::after { display: none; }
  .hero::before { left: auto; right: -110px; bottom: auto; top: 64px; width: 340px; height: 340px; }
  .hero__veil { display: none; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 100px; }
  .hero__left { padding-right: 0; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(2.25rem, 8.5vw, 3.5rem); }
  .hero__h1-sub { font-size: clamp(1rem, 4vw, 1.3rem); }
  .hero__lead { margin-top: 22px; }
  .hero__ctas { margin-top: 34px; }
  .hero__right {
    align-items: stretch;
    margin-inline: calc(-1 * var(--gutter));
    padding: 56px var(--gutter) 64px;
    background: linear-gradient(160deg,
      rgba(7, 41, 31, .97) 0%, rgba(12, 74, 60, .95) 55%, rgba(18, 89, 74, .92) 100%);
  }
  .hero__chip { max-width: none; }
  .hero__trust { margin-top: 40px; }
  .trust-strip span { padding: 4px 14px; font-size: var(--text-xs); }
  html[lang="en"] .hero h1 { font-size: clamp(1.5rem, 5.5vw, 2.2rem); line-height: 1.25; margin-bottom: 14px; }
  html[lang="en"] .hero h1 span { white-space: normal; }
  html[lang="en"] .hero__inner { grid-template-columns: 1fr; }
  html[lang="en"] .hero__left { padding-right: 0; }
  html[lang="en"] .hero__lead { margin-top: 20px; }
}
