/* Full-width homepage based on the approved Figma V2 screen. Subpages keep their own layout. */
.home-v2 {
  --content-gutter: max(5vw, calc((100vw - 1240px) / 2));
  background: #f8fafc;
  overflow-x: clip;
}
.home-v2 .page-glows { display: none; }
.home-v2 .mobile-copy,
.home-v2 .mobile-nav-only,
.home-v2 .mobile-image-hint,
.home-v2 .mobile-install-bar { display: none; }
.home-v2 .nav {
  width: 100%;
  top: 0;
  margin: 0;
  min-height: 72px;
  padding: 10px var(--content-gutter);
  border: 0;
  border-bottom: 1px solid #e5eaf2;
  border-radius: 0;
  box-shadow: 0 4px 24px rgb(16 26 54 / 5%);
}
.home-v2 .brand img { border: 0; border-radius: 10px; }
.home-v2 .nav nav { gap: 30px; }
.home-v2 .nav-download { min-width: 164px; }
.home-v2 main > section {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 96px var(--content-gutter);
}
.home-v2 main > section h2 { font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1.35; letter-spacing: -.035em; }
.home-v2 main > section .eyebrow { margin-bottom: 18px; letter-spacing: .1em; }
.home-v2 main > section .section-intro { max-width: 970px; line-height: 1.8; }
.home-v2 .pill { border-radius: 999px; }
.home-v2 .hero {
  min-height: 900px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 480px);
  align-items: center;
  gap: 52px;
  padding-block: 88px 106px;
  background:
    radial-gradient(circle at 83% 26%, rgb(30 180 209 / 17%), transparent 30%),
    radial-gradient(circle at 7% 22%, rgb(97 71 215 / 23%), transparent 33%),
    linear-gradient(rgb(130 211 255 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(130 211 255 / 7%) 1px, transparent 1px),
    linear-gradient(126deg, #10162f 8%, #1e1b4b 57%, #0b2740 95%);
  background-size: auto, auto, 80px 80px, 80px 80px, auto;
  overflow: hidden;
}
.home-v2 .hero::before,
.home-v2 .hero::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgb(81 201 242 / 12%); border-radius: 50%; }
.home-v2 .hero::before { width: 650px; height: 650px; right: -30px; top: 60px; }
.home-v2 .hero::after { width: 470px; height: 470px; right: 60px; top: 150px; }
.home-v2 .hero-glow { left: -220px; top: 0; opacity: .7; }
.home-v2 .hero-cyan { right: -260px; top: 110px; opacity: .65; }
.home-v2 .hero-copy { width: auto; max-width: 720px; padding: 0; }
.home-v2 .hero-copy > .pill:first-child { background: #252b50; color: #22d3ee; }
.home-v2 .hero h1 {
  font-size: clamp(2.9rem, 4.1vw, 3.65rem);
  line-height: 1.22;
  white-space: normal;
  letter-spacing: -.045em;
  margin: 24px 0 22px;
  max-width: 720px;
}
.home-v2 .hero .lead { max-width: 660px; font-size: 1.125rem; line-height: 1.75; }
.home-v2 .hero .pills { max-width: none; margin-top: 30px; }
.home-v2 .hero .pills .pill { background: #252b50; color: #c7d2fe; }
.home-v2 .hero .actions { margin-top: 32px; }
.home-v2 .hero .small { color: #a6b9d2; max-width: 650px; margin-top: 18px; }
.home-v2 .product-visual {
  height: 766px;
  width: 100%;
  margin: 0;
  padding: 30px 35px 42px;
  position: relative;
  border: 1px solid rgb(105 213 245 / 34%);
  border-radius: 30px;
  background: rgb(13 31 54 / 86%);
  box-shadow: 0 24px 70px rgb(0 0 0 / 18%);
}
.home-v2 .product-visual::before { content: ""; position: absolute; left: 24px; top: -2px; width: 122px; height: 3px; background: #22d3ee; }
.home-v2 .product-frame {
  width: min(393px, 100%);
  height: 703px;
  margin-inline: auto;
  border: 1px solid #4b556f;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 60px rgb(0 0 0 / 34%);
}
.home-v2 .product-frame img { position: static; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.home-v2 .product-tag {
  left: 28px;
  right: 28px;
  bottom: -50px;
  border: 1px solid rgb(103 223 246 / 28%);
  border-radius: 16px;
  background: rgb(14 31 53 / 96%);
  color: #f5faff;
  padding: 13px 17px;
}
.home-v2 .product-tag p { color: #b5cce0; margin-top: 3px; }
.home-v2 .intro { background: #f8fafc; }
.home-v2 .intro h2 { max-width: 1100px; }
.home-v2 .benefits { gap: 16px; margin-top: 42px; }
.home-v2 .benefit { min-height: 215px; border-radius: 22px; padding: 24px; box-shadow: 0 8px 20px rgb(15 24 45 / 5%); }
.home-v2 .benefit p { font-size: .93rem; }
.home-v2 .comparison { background: #fff; }
.home-v2 .comparison .comparison-figure { margin-top: 40px; }
.home-v2 .comparison .image-button { max-width: 1180px; margin-inline: auto; box-shadow: 0 24px 52px rgb(22 34 63 / 13%); }
.home-v2 .comparison figcaption { margin-top: 20px; }
.home-v2 .proof,
.home-v2 .formula { background: #10172f; }
.home-v2 .proof { min-height: auto; padding-block: 100px 112px; }
.home-v2 .proof::before,
.home-v2 .formula::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgb(130 211 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(130 211 255 / 4%) 1px, transparent 1px); background-size: 80px 80px; }
.home-v2 .proof .stats { max-width: 1240px; gap: 20px; }
.home-v2 .stat { background: #171f3b; border-color: #263a5d; min-height: 185px; }
.home-v2 .iteration { max-width: 1240px; gap: 16px; }
.home-v2 .iteration li { background: #1b2746; border-color: #30415f; }
.home-v2 .proof-footnote { max-width: 1140px; }
.home-v2 .formula {
  display: block;
  min-height: auto;
  padding-block: 104px 112px;
  border-top: 1px solid #273a59;
}
.home-v2 .formula-copy { max-width: 1000px; }
.home-v2 .formula h2 { max-width: 1000px; }
.home-v2 .formula-note { margin-top: 25px; color: #adbed4; max-width: 950px; font-size: .94rem; }
.home-v2 .formula figure { max-width: 1240px; margin: 38px auto 0; }
.home-v2 .formula .image-button { border: 1px solid #849cbd; border-radius: 18px; padding: 8px; background: #e7edf7; box-shadow: 0 24px 60px rgb(0 0 0 / 28%); }
.home-v2 .formula figure img { aspect-ratio: auto; width: 100%; height: auto; object-fit: contain; border-radius: 8px; }
.home-v2 .capabilities { background: #fff; }
.home-v2 .capability-grid,
.home-v2 .export-grid { max-width: none; margin: 48px 0 0; gap: 20px; }
.home-v2 .feature-card { min-height: 260px; box-shadow: 0 10px 28px rgb(15 24 45 / 6%); }
.home-v2 .services { background: #f8fafc; }
.home-v2 .service-cards { margin-top: 48px; gap: 24px; }
.home-v2 .reading { background: #eef3fb; }
.home-v2 .mode-grid { margin-top: 42px; gap: 20px; }
.home-v2 .mode-card { min-height: 175px; box-shadow: 0 8px 24px rgb(15 24 45 / 5%); }
.home-v2 .reading-controls { margin-top: 48px; }
.home-v2 .exports { background: #fff; }
.home-v2 .export-flow { max-width: 1240px; background: #665cf3; color: white; }
.home-v2 .export-flow strong,
.home-v2 .export-flow p { color: white; }
.home-v2 .export-note { max-width: 1240px; margin: 40px 0 0; }
.home-v2 .workflow { min-height: auto; background: #f8fafc; }
.home-v2 .workflow-grid { margin-top: 48px; }
.home-v2 .history { background: #fff; }
.home-v2 .cta { min-height: 520px; background: linear-gradient(110deg,#10172f 8%,#201e52 65%,#0d3153); }
.home-v2 .cta-logo { border: 0; }
.home-v2 .footer { width: 100%; max-width: none; margin: 0; padding: 58px var(--content-gutter) 34px; background: #f8fafc; }
.home-v2 .footer .icp-record { flex-basis: 100%; }
@media (max-width: 1150px) {
  .home-v2 .hero { grid-template-columns: minmax(0,1fr) minmax(340px,420px); gap: 34px; }
  .home-v2 .hero h1 { font-size: clamp(2.5rem, 4vw, 3.15rem); }
  .home-v2 .product-visual { padding-inline: 18px; }
  .home-v2 .product-frame { width: min(393px,100%); }
  .home-v2 .benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 950px) {
  .home-v2 { --content-gutter: 32px; }
  .home-v2 .nav nav { top: 100%; border-radius: 0 0 18px 18px; }
  .home-v2 .hero { grid-template-columns: 1fr; gap: 58px; padding-block: 84px 110px; }
  .home-v2 .hero-copy { max-width: 750px; }
  .home-v2 .hero h1 { font-size: clamp(2.65rem,6vw,3.5rem); }
  .home-v2 .product-visual { width: min(480px,100%); margin-inline: auto; padding-inline: 30px; }
  .home-v2 .formula figure { width: 100%; max-width: none; }
  .home-v2 .history { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .home-v2 { --content-gutter: 20px; }
  .home-v2 .nav { padding: 8px var(--content-gutter); min-height: 66px; }
  .home-v2 .nav-download { min-width: 0; }
  .home-v2 main > section { padding-block: 66px; }
  .home-v2 main > section h2 { font-size: 1.86rem; }
  .home-v2 .hero { padding-block: 70px 105px; gap: 52px; }
  .home-v2 .hero h1 { font-size: clamp(2.1rem, 8.5vw, 2.8rem); line-height: 1.28; margin-top: 22px; }
  .home-v2 .hero .lead { font-size: 1rem; }
  .home-v2 .hero .pills { gap: 8px; }
  .home-v2 .hero .pills .pill { font-size: .75rem; }
  .home-v2 .product-visual { height: auto; padding: 16px 16px 34px; border-radius: 22px; }
  .home-v2 .product-frame { height: auto; aspect-ratio: 393 / 703; }
  .home-v2 .product-tag { bottom: -48px; left: 12px; right: 12px; padding: 11px 14px; }
  .home-v2 .benefits { grid-template-columns: 1fr; }
  .home-v2 .benefit { min-height: 0; }
  .home-v2 .comparison .image-button { width: 100%; margin-inline: 0; }
  .home-v2 .formula .image-button { padding: 4px; border-radius: 10px; }
  .home-v2 .formula figure { margin-top: 28px; }
  .home-v2 .formula figcaption { font-size: .76rem; }
  .home-v2 .proof .stats { grid-template-columns: 1fr; }
  .home-v2 .iteration { grid-template-columns: 1fr; }
  .home-v2 .service-cards { margin-top: 30px; }
  .home-v2 .footer { padding-block: 42px 28px; }
}
@media print {
  .home-v2 .hero { min-height: 0; }
  .home-v2 .hero::before,.home-v2 .hero::after,.home-v2 .proof::before,.home-v2 .formula::before { display: none; }
}
/* H5: compact content hierarchy, swipeable PDF detail and desktop-install guidance. */
@media (max-width: 600px) {
  .home-v2 .desktop-copy { display: none; }
  .home-v2 .mobile-copy { display: inline; }
  .home-v2 .nav { gap: 7px; padding-inline: 16px; }
  .home-v2 .brand { gap: 8px; }
  .home-v2 .brand img { width: 35px; height: 35px; }
  .home-v2 .brand strong { font-size: .98rem; }
  .home-v2 .brand small { font-size: .66rem; margin-top: 2px; }
  .home-v2 .nav-download { margin-left: auto; padding: 9px 12px; min-height: 40px; font-size: .76rem; white-space: nowrap; }
  .home-v2 .menu-toggle { margin-left: 0; flex: 0 0 38px; }
  .home-v2 .nav nav {
    left: 0;
    right: 0;
    top: 100%;
    border: 0;
    border-top: 1px solid #e5eaf2;
    border-radius: 0 0 18px 18px;
    padding: 12px 16px 20px;
    box-shadow: 0 20px 35px rgb(11 16 32 / 15%);
    max-height: min(70dvh, 560px);
    overflow-y: auto;
  }
  .home-v2 .nav nav a { padding: 12px 14px; min-height: 46px; font-size: .9rem; }
  .home-v2 .nav nav .mobile-nav-only { display: block; }
  .home-v2 .hero { padding-block: 44px 88px; gap: 40px; }
  .home-v2 .hero-copy > .pill:first-child { font-size: .71rem; padding: 7px 12px; min-height: 30px; }
  .home-v2 .hero h1 { font-size: clamp(2.12rem, 8.6vw, 2.65rem); margin: 18px 0 16px; }
  .home-v2 .hero .lead { line-height: 1.72; font-size: .97rem; }
  .home-v2 .hero .pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 7px;
    margin: 22px calc(-1 * var(--content-gutter)) 0 0;
    padding-right: var(--content-gutter);
  }
  .home-v2 .hero .pills::-webkit-scrollbar { display: none; }
  .home-v2 .hero .pills .pill { flex: 0 0 auto; white-space: nowrap; min-height: 32px; }
  .home-v2 .hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 24px; }
  .home-v2 .hero .actions .button { min-width: 0; padding: 11px 8px; min-height: 48px; font-size: .82rem; }
  .home-v2 .hero .small { margin-top: 12px; font-size: .75rem; line-height: 1.55; }
  .home-v2 .product-visual { width: 100%; padding: 12px 12px 26px; border-radius: 20px; }
  .home-v2 .product-frame { width: 100%; aspect-ratio: 393 / 703; border-radius: 13px; }
  .home-v2 .product-tag { bottom: -39px; left: 10px; right: 10px; padding: 10px 13px; border-radius: 12px; }
  .home-v2 .product-tag strong { font-size: .81rem; }
  .home-v2 .product-tag p { font-size: .72rem; line-height: 1.5; margin-top: 2px; }
  .home-v2 main > section:not(.hero) { padding-block: 62px; }
  .home-v2 main > section h2 { font-size: clamp(1.7rem, 7vw, 2rem); line-height: 1.38; }
  .home-v2 main > section .section-intro { font-size: .92rem; line-height: 1.72; margin-top: 14px; }
  .home-v2 .intro { padding-top: 78px !important; }
  .home-v2 .benefits { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 28px; }
  .home-v2 .benefit { min-height: 222px; padding: 17px 15px; border-radius: 16px; }
  .home-v2 .benefit .index { width: 34px; height: 34px; border-radius: 10px; font-size: .75rem; }
  .home-v2 .benefit h3 { font-size: 1.02rem; line-height: 1.36; margin-top: 12px; }
  .home-v2 .benefit p { font-size: .79rem; line-height: 1.55; margin-top: 8px; }
  .home-v2 .comparison .pills,
  .home-v2 .formula .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 3px; }
  .home-v2 .comparison .pills .pill,
  .home-v2 .formula .pills .pill { flex: 0 0 auto; white-space: nowrap; }
  .home-v2 .comparison-figure,
  .home-v2 .formula figure { margin-top: 28px; }
  .home-v2 .comparison .image-button,
  .home-v2 .formula .image-button { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; touch-action: pan-x pan-y; }
  .home-v2 .comparison .image-button img,
  .home-v2 .formula .image-button img { width: 1000px; max-width: none; height: auto; }
  .home-v2 .comparison .image-button .zoom-hint,
  .home-v2 .formula .image-button .zoom-hint { display: none; }
  .home-v2 .mobile-image-hint { display: block; margin-top: 11px; text-align: center; font-size: .75rem; color: #626f89; }
  .home-v2 .formula .mobile-image-hint { color: #a5bad2; }
  .home-v2 .comparison figcaption,
  .home-v2 .formula figcaption { margin-top: 12px; line-height: 1.5; }
  .home-v2 .proof { padding-block: 68px 74px !important; }
  .home-v2 .proof .stats {
    display: flex;
    gap: 12px;
    margin: 30px calc(-1 * var(--content-gutter)) 0;
    padding: 0 var(--content-gutter) 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .home-v2 .stat { flex: 0 0 min(78vw, 310px); min-height: 162px; scroll-snap-align: start; }
  .home-v2 .iteration { gap: 10px; }
  .home-v2 .iteration li { min-height: 62px; }
  .home-v2 .formula { padding-block: 70px 76px !important; }
  .home-v2 .formula-note { font-size: .81rem; line-height: 1.65; margin-top: 18px; }
  .home-v2 .capability-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 28px; }
  .home-v2 .capability-grid .feature-card { min-height: 245px; padding: 18px 15px; border-radius: 17px; gap: 10px; }
  .home-v2 .capability-grid .feature-card h3 { font-size: 1.05rem; line-height: 1.4; }
  .home-v2 .capability-grid .feature-card p:last-child { font-size: .79rem; line-height: 1.56; }
  .home-v2 .service-cards { gap: 14px; }
  .home-v2 .service-card { border-radius: 18px; }
  .home-v2 .service-card > p { min-height: 0; }
  .home-v2 .mode-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 28px; }
  .home-v2 .mode-grid > button.mode-card { min-height: 58px; padding: 10px 4px; text-align: center; border-radius: 13px; }
  .home-v2 .mode-grid > button.mode-card img,
  .home-v2 .mode-grid > button.mode-card p { display: none; }
  .home-v2 .mode-grid > button.mode-card h3 { font-size: .8rem; line-height: 1.35; }
  .home-v2 .mode-grid > article.mode-card { grid-column: 1 / -1; min-height: 0; padding: 16px 18px; display: grid; grid-template-columns: 12px 1fr; align-items: start; column-gap: 10px; }
  .home-v2 .mode-grid > article.mode-card img { margin: 7px 0 0; }
  .home-v2 .mode-grid > article.mode-card h3 { font-size: 1rem; }
  .home-v2 .mode-grid > article.mode-card p { grid-column: 2; margin-top: 4px; }
  .home-v2 .reading-controls { margin-top: 28px; padding: 20px 14px; }
  .home-v2 .control-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .home-v2 .control { padding: 13px 12px; }
  .home-v2 .control:last-child { grid-column: 1 / -1; }
  .home-v2 .export-flow { padding: 20px; }
  .home-v2 .export-flow strong { font-size: 1.03rem; line-height: 1.6; }
  .home-v2 .history { gap: 26px; }
  .home-v2 .release-list { gap: 10px; }
  .home-v2 .cta { min-height: 0; }
  .home-v2 .cta-logo { width: 52px; height: 52px; }
  .home-v2 .cta .actions .button { width: 100%; }
  .home-v2 .footer { padding-bottom: calc(35px + env(safe-area-inset-bottom)); }
  .home-v2 .mobile-install-bar {
    position: fixed;
    z-index: 25;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
    background: rgb(255 255 255 / 94%);
    border-top: 1px solid #dce3f2;
    box-shadow: 0 -12px 28px rgb(15 24 45 / 12%);
    backdrop-filter: blur(16px);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .home-v2 .mobile-install-bar.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .home-v2 .mobile-install-bar img { flex: 0 0 38px; border-radius: 9px; }
  .home-v2 .mobile-install-bar span { display: grid; line-height: 1.28; min-width: 0; }
  .home-v2 .mobile-install-bar strong { font-size: .88rem; }
  .home-v2 .mobile-install-bar small { font-size: .69rem; color: #64748b; white-space: nowrap; }
  .home-v2 .mobile-install-bar .button { margin-left: auto; min-height: 40px; padding: 8px 14px; white-space: nowrap; font-size: .78rem; }
  .home-v2 .lightbox { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: 92dvh; overflow: auto; }
  .home-v2 .lightbox-close { position: sticky; top: 0; right: 0; z-index: 2; }
  .home-v2 .lightbox figure { width: max-content; min-width: 100%; }
  .home-v2 .lightbox img { width: 1200px; max-width: none; max-height: none; height: auto; }
  .home-v2 .lightbox figcaption { max-width: 100vw; text-align: left; padding: 8px; }
}
@media (max-width: 350px) {
  .home-v2 { --content-gutter: 16px; }
  .home-v2 .nav { padding-inline: 10px; }
  .home-v2 .brand img { width: 32px; height: 32px; }
  .home-v2 .nav-download { padding-inline: 8px; font-size: .71rem; }
  .home-v2 .hero h1 { font-size: 2.02rem; }
  .home-v2 .hero .pills { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
  .home-v2 .benefits,
  .home-v2 .capability-grid { grid-template-columns: 1fr; }
  .home-v2 .benefit,
  .home-v2 .capability-grid .feature-card { min-height: 0; }
  .home-v2 .control-grid { grid-template-columns: 1fr; }
  .home-v2 .control:last-child { grid-column: auto; }
  .home-v2 .mobile-install-bar small { display: none; }
}
@media print {
  .home-v2 .mobile-install-bar { display: none !important; }
}
