/* Homepage presentation. The shared styles and download page live in styles.css. */
:root { --showcase-ease: cubic-bezier(.22, 1, .36, 1); }

.site-header { background: rgba(8, 18, 27, .82); border-color: rgba(225, 248, 245, .1); }
.nav-links a { color: #becbca; }
.header-download { border-radius: 999px; padding-inline: 19px; }
.section-kicker { display: block; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 em, .focus-intro h2 em, .canvas-head h2 em { font-style: normal; color: var(--accent); }

.hero { position: relative; overflow: hidden; padding: 116px 0 126px; background: radial-gradient(ellipse 55% 35% at 50% 50%, rgba(62, 171, 160, .15), transparent 90%), #07131d; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 0; }
.hero-copy { padding: 0; text-align: center; max-width: 1050px; position: relative; z-index: 1; }
.hero-copy h1 { font-size: clamp(62px, 8.1vw, 120px); line-height: .99; letter-spacing: -.078em; max-width: none; margin: 24px 0 24px; font-weight: 650; }
.hero-copy p { max-width: none; color: #adc1c3; font-size: clamp(17px, 2vw, 21px); }
.hero-shot { width: min(100%, 1160px); margin: 76px auto 0; position: relative; isolation: isolate; }
.hero-shot::before { content: ""; position: absolute; inset: 12% 4% -8%; z-index: -1; border-radius: 45%; background: #48c6b2; filter: blur(95px); opacity: .17; }
.hero .shot-frame { padding: 9px; border: 1px solid #547b7b; border-radius: 23px; background: #0e202c; box-shadow: 0 48px 100px #0009, 0 0 0 1px #ffffff0d inset; overflow: hidden; }
.hero .shot-frame img { width: 100%; border-radius: 14px; transform: translateY(var(--scene-shift, 0px)) scale(1.025); will-change: transform; }
.hero-actions { justify-content: center; margin: 46px 0 0; gap: 14px; }
.hero-actions .button { min-height: 54px; padding: 15px 26px; border-radius: 999px; font-size: 14px; }
.hero-actions .button-secondary { background: rgba(25, 49, 61, .7); border-color: #496a6b; }

.section { padding-block: clamp(112px, 12vw, 190px); }
.features-section { background: #0a1923; }
.focus-layout { display: grid; justify-items: center; }
.focus-intro { max-width: 920px; text-align: center; margin-bottom: 65px; }
.focus-intro h2 { font-size: clamp(53px, 7.1vw, 104px); line-height: 1.03; letter-spacing: -.07em; margin: 23px 0 0; }
.focus-gallery { width: 100%; max-width: 1130px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 20px; position: relative; }
.focus-brand { position: absolute; z-index: 3; top: 50%; left: calc(62.5% - 2px); width: 118px; height: 118px; padding: 5px; transform: translate(-50%, -50%); object-fit: cover; background: white; border: 1px solid #d8f3f0; border-radius: 28px; box-shadow: 0 22px 55px #000a, 0 0 40px #64d5c640; }
.focus-shot { position: relative; overflow: hidden; margin: 0; border: 1px solid #56716c; border-radius: 23px; background: #080f16; box-shadow: 0 35px 80px #0008; }
.focus-shot-video { aspect-ratio: 1.24; }
.focus-shot-controls { aspect-ratio: .79; }
.focus-shot img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--scene-shift, 0px)) scale(1.045); will-change: transform; }
.focus-shot-video img { object-position: 38% center; }
.focus-shot-controls img { object-position: right center; }
.focus-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; width: 100%; max-width: 1130px; margin-top: 66px; }
.focus-points article { padding-top: 24px; border-top: 1px solid #4f6668; }
.focus-points span { display: block; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .14em; margin-bottom: 19px; }
.focus-points h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.035em; line-height: 1.2; margin-bottom: 9px; }
.focus-points p { font-size: 14px; line-height: 1.55; }

.pip-section { background: #10242e; border: 0; }
.pip-grid { grid-template-columns: .7fr 1.3fr; gap: clamp(36px, 6vw, 95px); }
.pip-copy h2 { font-size: clamp(55px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.068em; margin: 22px 0 25px; }
.pip-copy p { font-size: 17px; line-height: 1.55; }
.workspace-stage { height: 560px; border-radius: 24px; border-color: #5a7880; background: radial-gradient(circle at 70% 20%, #305467, #142b3b 48%, #0d1d2c); box-shadow: 0 36px 85px #0006; }
.pip-capture { transform: translateY(var(--scene-shift, 0px)) rotate(-2deg); width: min(62%, 470px); border-radius: 8px; box-shadow: 0 28px 70px #000d; will-change: transform; }

.canvas-section { background: #0b1721; }
.canvas-head { text-align: center; max-width: 900px; margin: 0 auto 62px; }
.canvas-head h2 { font-size: clamp(55px, 7vw, 100px); line-height: 1.02; margin: 22px 0 20px; }
.canvas-head p { margin: auto; font-size: 17px; }
.ratio-demo { border-radius: 23px; border-color: #527174; background: #122733; box-shadow: 0 30px 85px #0006; }
.demo-source, .demo-preview { padding: 32px; }
.source-frame, .ratio-stage { border-radius: 12px; border-color: #405c66; height: 390px; }
.demo-controls { padding: 25px 32px; }
.demo-note { text-align: center; margin-top: 25px; }

.preview-section { background: #10222d; }
.preview-section .section-head { max-width: none; text-align: center; margin-bottom: 57px; }
.preview-section .section-head h2 { font-size: clamp(55px, 7vw, 100px); margin: 21px 0 0; }
.gallery { border-radius: 23px; border-color: #506b70; box-shadow: 0 30px 85px #0007; }
.gallery-tabs { background: #142b39; padding: 17px; gap: 8px; }
.gallery-tabs button { padding: 10px 19px; border-radius: 999px; font-size: 13px; }
.gallery-tabs button.active { background: var(--accent); color: #10201b; }
.gallery-image-wrap { height: min(58vw, 655px); padding: 36px; background: #07131d; }
.gallery-image-wrap img { border-radius: 9px; border-color: #465e63; box-shadow: 0 20px 65px #0008; }

.download-section { background: radial-gradient(circle at 50% 10%, #2a5d61, #15343f 48%, #0f2631 100%); border-block-color: #4d7775; }
.download-grid { display: flex; flex-direction: column; align-items: center; }
.download-grid > div:first-child { text-align: center; }
.download-grid h2 { font-size: clamp(62px, 7.6vw, 108px); letter-spacing: -.07em; line-height: 1.02; margin-bottom: 0; }
.download-actions { justify-content: center; margin-top: 32px; }
.download-actions .button { min-height: 52px; padding: 14px 25px; border-radius: 999px; }

.source-section { background: #0b1923; }
.source-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(45px, 8vw, 140px); }
.source-grid h2 { font-size: clamp(55px, 6.5vw, 95px); letter-spacing: -.067em; }
.source-actions .button { border-radius: 999px; }
.repo-links a { padding-block: 26px; }
.faq-section { background: #0e202b; }
.faq-grid { grid-template-columns: .8fr 1.2fr; }
.faq-grid h2 { font-size: clamp(55px, 6vw, 86px); }

.motion-ready [data-reveal] { opacity: 0; filter: blur(16px); transform: translate3d(0, 30px, 0); transition: opacity .8s var(--showcase-ease), filter 1s var(--showcase-ease), transform 1s var(--showcase-ease); transition-delay: var(--reveal-delay, 0ms); }
.motion-ready [data-reveal="visual"] { transform: translate3d(0, 48px, 0) scale(.94); }
.motion-ready [data-reveal].is-visible { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
.motion-ready .focus-brand[data-reveal] { filter: blur(22px); transform: translate3d(-50%, calc(-50% + 18px), 0) scale(.82); transition-delay: 140ms; }
.motion-ready .focus-brand[data-reveal].is-visible { filter: blur(0); transform: translate3d(-50%, -50%, 0) scale(1); }
.motion-ready .hero [data-reveal].is-visible { animation: hero-arrive 1.1s var(--showcase-ease) both; }
.motion-ready .hero .hero-shot.is-visible { animation-delay: .12s; }
.motion-ready .hero .hero-actions.is-visible { animation-delay: .22s; }
@keyframes hero-arrive { from { opacity: 0; filter: blur(18px); transform: translate3d(0, 34px, 0) scale(.98); } to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); } }

@media (max-width: 1050px) {
  .hero { padding-top: 95px; }
  .hero-inner { gap: 0; }
  .pip-grid { gap: 45px; }
  .workspace-stage { height: 470px; }
}
@media (max-width: 760px) {
  .hero { padding: 90px 0 105px; }
  .hero-copy h1 { font-size: clamp(54px, 11vw, 78px); }
  .hero-shot { margin-top: 55px; }
  .hero .shot-frame { border-radius: 15px; padding: 5px; }
  .hero .shot-frame img { border-radius: 10px; }
  .hero-actions { margin-top: 35px; }
  .section { padding-block: 105px; }
  .focus-intro { margin-bottom: 42px; }
  .focus-intro h2, .canvas-head h2, .preview-section .section-head h2 { font-size: clamp(51px, 9vw, 72px); }
  .focus-gallery { gap: 13px; }
  .focus-brand { left: calc(62.5% - 1.625px); }
  .focus-shot { border-radius: 16px; }
  .focus-points { gap: 20px; margin-top: 48px; }
  .focus-points h3 { font-size: 20px; }
  .pip-grid { grid-template-columns: 1fr; }
  .pip-copy h2 { font-size: 65px; }
  .workspace-stage { height: 420px; }
  .source-frame, .ratio-stage { height: 310px; }
  .gallery-image-wrap { padding: 16px; }
  .download-grid h2 { font-size: 65px; }
  .source-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding-top: 81px; }
  .hero-copy h1 { font-size: clamp(47px, 12.5vw, 64px); }
  .hero-copy p { font-size: 16px; }
  .hero-shot { width: calc(100% + 16px); max-width: none; margin-top: 48px; }
  .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 11px; }
  .hero-actions .button { width: 100%; }
  .section { padding-block: 88px; }
  .focus-intro h2, .canvas-head h2, .preview-section .section-head h2 { font-size: 49px; }
  .focus-gallery { grid-template-columns: 1.1fr .9fr; gap: 9px; }
  .focus-brand { width: 68px; height: 68px; left: calc(55% - .5px); padding: 3px; border-radius: 18px; }
  .focus-shot-video { aspect-ratio: .88; }
  .focus-shot-controls { aspect-ratio: .72; }
  .focus-points { grid-template-columns: 1fr; gap: 25px; }
  .focus-points article { padding-top: 18px; }
  .focus-points span { margin-bottom: 8px; }
  .focus-points p { font-size: 13px; }
  .pip-copy h2 { font-size: 57px; }
  .pip-copy p { font-size: 16px; }
  .workspace-stage { height: 315px; border-radius: 16px; }
  .pip-capture { width: 66%; }
  .canvas-head { margin-bottom: 36px; }
  .demo-source, .demo-preview { padding: 17px; }
  .source-frame, .ratio-stage { height: 260px; }
  .demo-controls { padding: 20px 17px; }
  .gallery { border-radius: 14px; }
  .gallery-tabs { justify-content: center; gap: 4px; padding: 9px 7px; }
  .gallery-tabs button { padding: 8px; font-size: 11px; }
  .gallery-image-wrap { min-height: 240px; }
  .download-grid h2 { font-size: 54px; }
  .download-actions { display: grid; gap: 14px; justify-items: center; }
  .download-actions .button { min-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal], .motion-ready [data-reveal="visual"], .motion-ready [data-reveal].is-visible { opacity: 1; filter: none; transform: none; animation: none; }
  .motion-ready .focus-brand[data-reveal], .motion-ready .focus-brand[data-reveal].is-visible { filter: none; transform: translate(-50%, -50%); }
  .hero .shot-frame img, .focus-shot img, .pip-capture { transform: none; }
}
