/* ESPFlight v33 — Homepage content hierarchy and card alignment.
   Scoped to .homePage; no global header, docs, or app changes. */
.homePage{
  --home-space:clamp(56px,5.2vw,76px);
  --home-card-gap:clamp(16px,2vw,24px);
  --home-card-pad:clamp(22px,2.25vw,30px);
}
.homePage main>.section{padding-block:var(--home-space)}
.homePage main>.hero{padding-bottom:clamp(44px,4vw,62px)}
.homePage .sectionTitle{margin-bottom:clamp(24px,3vw,34px)}
.homePage .sectionTitle p{max-width:660px}
.homePage .sectionTitleCenter p{margin-inline:auto;text-align:center}
.homePage .platformCards,.homePage .audienceGrid{gap:var(--home-card-gap)}
.homePage .platformCard{
  min-height:0;padding:var(--home-card-pad);border-radius:22px;
  display:flex;flex-direction:column;align-items:stretch;
}
.homePage .platformCard h3{margin:22px 0 10px;line-height:1.4}
.homePage .platformCard p{margin-bottom:20px;flex:1}
.homePage .platformCard .cardLink{margin-top:auto;padding-top:10px}

/* Discover what to do next while the purpose of the platform is still fresh. */
.homePage .homePathSection{padding-top:var(--home-space);padding-bottom:var(--home-space)}
.homePage .homePathSection .sectionTitle{max-width:760px;margin-inline:auto}
.homePage .homePathSection .audienceGrid{align-items:stretch}
.homePage .homePathCard{
  min-width:0;min-height:0;padding:var(--home-card-pad);
  display:flex;flex-direction:column;border-radius:22px;
}
.homePage .homePathCard>span{letter-spacing:.075em}
.homePage .homePathCard h3{margin:14px 0 10px;line-height:1.38}
.homePage .homePathCard p{flex:1;font-size:14.5px;line-height:1.68;margin:0 0 18px}
.homePage .homePathCard b{margin-top:auto;display:inline-flex;align-items:center;gap:6px}

/* Give the two open components symmetrical visual prominence. */
.homePage .homeSectionIntro{max-width:850px;margin-inline:auto}
.homePage .homeBuildGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--home-card-gap);align-items:stretch}
.homePage .homeBuildCard{min-width:0;overflow:hidden;border-radius:24px;border:1px solid var(--line);background:var(--panel);display:flex;flex-direction:column}
.homePage .homeBuildMedia{
  min-width:0;height:clamp(208px,20vw,256px);position:relative;overflow:hidden;
  border-bottom:1px solid var(--line);
}
.homePage .homeBuildContent{padding:var(--home-card-pad);display:flex;flex:1;flex-direction:column;align-items:flex-start;min-width:0}
.homePage .homeBuildEyebrow{font-size:11px;font-weight:750;letter-spacing:.095em;color:var(--accent);line-height:1.5}
.homePage .homeBuildCard h3{font-size:clamp(21px,2.1vw,27px);line-height:1.35;letter-spacing:-.02em;margin:14px 0 12px;font-weight:750;color:var(--text)}
.homePage .homeBuildCard p{font-size:15px;line-height:1.72;color:var(--muted);margin:0 0 20px;max-width:520px}
.homePage .homeBuildChips{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;margin-bottom:22px}
.homePage .homeBuildChips span{display:inline-flex;align-items:center;background:var(--bg2);border:1px solid var(--line);border-radius:8px;padding:7px 10px;font-size:12px;line-height:1.4;color:var(--text)}
.homePage .homeBuildLink{display:inline-flex;align-items:center;gap:8px;min-height:40px;font-weight:700;font-size:14px;line-height:1.5;color:var(--accent);text-decoration:none}
.homePage .homeBuildLink:hover,.homePage .homeBuildLink:focus-visible{text-decoration:underline;text-underline-offset:4px}
.homePage .homeBuildLink>span,.homePage .homePartnerLink>span{font-size:17px}
.homePage .homeFirmwareVisual{padding:22px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(ellipse at 50% 56%,rgba(66,211,146,.13),transparent 64%),var(--bg2)}
.homePage .homeVisualTopline{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted);font-weight:650;direction:ltr;letter-spacing:.02em}
.homePage .homeVisualDot{width:7px;height:7px;display:inline-block;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px rgba(66,211,146,.09)}
.homePage .homePipeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;direction:ltr;align-items:center;position:relative;z-index:2}
.homePage .homePipelineNode{display:flex;align-items:center;justify-content:center;min-height:64px;text-align:center;padding:11px 7px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);font-weight:700;font-size:clamp(10px,1.1vw,13px);line-height:1.5}
.homePage .homePipelineNode:nth-child(2){border-color:rgba(66,211,146,.48);box-shadow:0 0 0 1px rgba(66,211,146,.11) inset}
.homePage .homeTraceLines{height:26px;display:flex;align-items:center;justify-content:center;gap:12px;opacity:.48}
.homePage .homeTraceLines span{width:38px;height:2px;background:var(--accent);border-radius:2px}
.homePage .homeTraceLines span:nth-child(2){width:72px;opacity:.5}
.homePage .homeHardwareVisual{display:flex;align-items:center;justify-content:center;padding:14px;background:radial-gradient(ellipse at 50% 46%,rgba(66,211,146,.10),transparent 65%),var(--bg2)}
.homePage .homeHardwareVisual .boardVisual{max-width:470px;width:100%;height:100%;padding:0;box-shadow:none;border:0;border-radius:0;background:transparent!important;overflow:hidden;color:var(--accent)}
.homePage .homeHardwareVisual .boardVisual svg{display:block;height:calc(100% - 25px);width:100%;object-fit:contain}
.homePage .homeHardwareVisual .boardHalo{display:none}
.homePage .homeHardwareVisual .boardLabel{position:absolute;bottom:1px;left:50%;transform:translateX(-50%);padding:0;background:none;border:0;box-shadow:none;white-space:nowrap;text-align:center;max-width:100%}
.homePage .homeHardwareVisual .boardLabel span{font-size:12px}
.homePage .homeHardwareVisual .boardLabel small{display:none}
/* Keep showcase content balanced with the newly condensed information hierarchy. */
.homePage .appSection .appSplit{align-items:center;gap:clamp(28px,5vw,64px)}
.homePage .philosophyGrid{align-items:center;gap:clamp(24px,4vw,60px)}
.homePage .manifestoCard{padding:var(--home-card-pad)}
.homePage .philosophyNote{margin-top:22px;max-width:var(--contentMax)}
/* Brand policy and optional collaboration form one concluding panel. */
.homePage .homeIndependentCard{padding:clamp(24px,3vw,42px);border:1px solid var(--line);border-radius:26px;background:var(--panel);overflow:hidden}
.homePage .homeIndependentTop{display:grid;grid-template-columns:minmax(190px,.38fr) minmax(0,1fr);gap:clamp(26px,5vw,70px);align-items:center}
.homePage .homeIndependentSymbol{min-width:0}
.homePage .homeIndependentSymbol .poweredStamp{min-height:180px;height:100%;width:100%;border-radius:20px;box-shadow:none;padding:24px}
.homePage .homeIndependentSymbol .poweredStamp span{font-size:clamp(28px,3.1vw,42px)}
.homePage .homeIndependentSymbol .poweredStamp strong{font-size:clamp(21px,2.3vw,28px)}
.homePage .homeIndependentCopy h2{font-size:clamp(27px,3vw,38px);margin:12px 0 14px;line-height:1.28;color:var(--text)}
.homePage .homeIndependentCopy p{max-width:730px;font-size:15.5px;line-height:1.75;color:var(--muted);margin:0 0 14px}
.homePage .homeOptionalPartner{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:clamp(20px,2.4vw,32px);padding-top:clamp(20px,2.4vw,32px);border-top:1px solid var(--line)}
.homePage .homeOptionalPartner>div{min-width:0;flex:1}
.homePage .homeOptionalPartner strong{font-size:15px;color:var(--text)}
.homePage .homeOptionalPartner p{font-size:13.5px;color:var(--muted);line-height:1.65;margin:8px 0 0;max-width:790px}
.homePage .homePartnerLink{display:inline-flex;align-items:center;gap:8px;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:10px 16px;text-decoration:none;color:var(--text);font-size:13.5px;font-weight:650;white-space:nowrap;transition:border-color .2s ease,background .2s ease}
.homePage .homePartnerLink:hover,.homePage .homePartnerLink:focus-visible{border-color:var(--accent);background:var(--bg2)}
.homePage .homePathCard:focus-visible,.homePage .homeBuildLink:focus-visible,.homePage .homePartnerLink:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
html[lang="fa"] .homePage .homePathCard>span,html[lang="fa"] .homePage .homeBuildEyebrow{letter-spacing:0}
html[lang="fa"] .homePage .homeBuildCard h3{letter-spacing:0;line-height:1.55}
html[lang="fa"] .homePage .homeBuildCard p,html[lang="fa"] .homePage .homeIndependentCopy p{line-height:1.9}
html[lang="fa"] .homePage .homeBuildContent{align-items:flex-start}
html[lang="fa"] .homePage .homeFirmwareVisual .homeVisualTopline{align-self:flex-start}
html[lang="fa"] .homePage .homePipelineNode{letter-spacing:0;font-size:clamp(11px,1.2vw,14px)}
@media(min-width:1900px){.homePage{--home-space:78px}}
@media(max-width:1020px){
 .homePage .homeBuildMedia{height:230px}
 .homePage .homeIndependentTop{grid-template-columns:minmax(165px,.43fr) minmax(0,1fr);gap:30px}
}
@media(max-width:760px){
 .homePage{--home-space:clamp(44px,9vw,58px);--home-card-gap:14px;--home-card-pad:22px}
 .homePage .homeBuildGrid{grid-template-columns:minmax(0,1fr)}
 .homePage .homeBuildMedia{height:224px}
 .homePage .homePathCard h3{margin:10px 0}
 .homePage .homePathCard p{margin-bottom:14px}
 .homePage .homeIndependentTop{grid-template-columns:minmax(0,1fr);gap:20px}
 .homePage .homeIndependentSymbol .poweredStamp{min-height:132px;max-width:100%;padding:20px}
 .homePage .homeOptionalPartner{flex-direction:column;align-items:stretch;gap:14px}
 .homePage .homePartnerLink{align-self:flex-start;white-space:normal}
 .homePage .homeIndependentCard{padding:22px}
 .homePage .philosophyNote{margin-top:18px}
}
@media(max-width:380px){
 .homePage .homeBuildMedia{height:195px}
 .homePage .homeFirmwareVisual{padding:15px}
 .homePage .homePipelineNode{min-height:58px;padding:8px 5px}
 .homePage .homeIndependentCard{padding:18px}
}
@media(prefers-reduced-motion:reduce){.homePage .homePartnerLink{transition:none}}

/* At tablet widths, keep the three starting choices visible as one clear set. */
@media(min-width:760px) and (max-width:1020px){
 .homePage .platformCards,.homePage .audienceGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
 .homePage .platformCard,.homePage .homePathCard{padding:20px;min-height:0}
 .homePage .platformCard h3,.homePage .homePathCard h3{font-size:19px;line-height:1.35}
 .homePage .platformCard p,.homePage .homePathCard p{font-size:13.5px}
}
