:root {
  --night: #07100b;
  --night-soft: #0b1710;
  --surface: #101d14;
  --surface-strong: #142319;
  --paper: #f3f1e8;
  --muted: #a7b1a5;
  --moss: #b9df6a;
  --moss-bright: #d0f28a;
  --moss-deep: #597d39;
  --torch: #e17838;
  --line: rgba(210, 229, 196, 0.17);
  --line-strong: rgba(201, 229, 174, 0.35);
  --display: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  --page: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--night); color: var(--paper); font: 16px/1.6 var(--body); }
body::selection { background: var(--moss); color: var(--night); }
img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
.page-width { width: var(--page); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; background: var(--moss); color: var(--night); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease; }
.site-header.is-scrolled { border-color: var(--line); background: rgba(5, 13, 8, .84); backdrop-filter: blur(18px); }
.nav-shell { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; width: var(--page); min-height: 88px; margin: 0 auto; gap: 38px; }
.brand { display: inline-flex; width: 146px; height: 69px; align-items: center; }
.brand img { display: block; width: 146px; height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.nav-shell nav { display: flex; justify-content: center; gap: 34px; }
.nav-shell nav a { position: relative; color: #c8d0c5; font-size: 13px; font-weight: 650; text-decoration: none; }
.nav-shell nav a::after { content: ""; position: absolute; right: 50%; bottom: -10px; left: 50%; height: 2px; background: var(--moss); transition: right .18s ease, left .18s ease; }
.nav-shell nav a:hover::after, .nav-shell nav a:focus-visible::after { right: 0; left: 0; }
.nav-download, .final-cta { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 19px; border: 1px solid var(--line-strong); padding: 0 19px; background: rgba(18, 34, 22, .72); color: var(--paper); font: 750 12px var(--mono); letter-spacing: .035em; text-decoration: none; clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)); }
.nav-download:hover, .final-cta:hover { border-color: var(--moss); background: rgba(50, 74, 39, .72); }

.hero { position: relative; min-height: 790px; overflow: hidden; isolation: isolate; background: #061009 url("/assets/tipo-night-valley.png") 70% 42% / cover no-repeat; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(4, 12, 7, .98) 0%, rgba(5, 14, 8, .89) 34%, rgba(7, 15, 9, .4) 70%, rgba(7, 15, 9, .62) 100%), linear-gradient(180deg, rgba(3, 9, 5, .34), transparent 28%, rgba(4, 10, 6, .83) 94%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .32; background: radial-gradient(circle at 81% 58%, rgba(234, 131, 56, .28), transparent 16%), radial-gradient(circle at 25% 35%, rgba(122, 163, 78, .2), transparent 25%); mix-blend-mode: screen; }
.hero-shade { position: absolute; z-index: -1; inset: auto 0 0; height: 155px; background: linear-gradient(transparent, var(--night)); }
.hero-grid { display: grid; grid-template-columns: minmax(420px, .88fr) minmax(500px, 1.12fr); align-items: center; gap: 52px; min-height: 790px; padding-top: 89px; }
.hero-copy { position: relative; z-index: 2; padding: 58px 0 70px; }
.hero h1 { max-width: 650px; margin: 0; font: 820 clamp(64px, 6.2vw, 92px)/.87 var(--display); letter-spacing: -.045em; text-transform: uppercase; text-wrap: balance; text-shadow: 0 3px 0 rgba(0, 0, 0, .38); }
.hero h1 em { color: var(--moss); font-style: normal; }
.hero-intro { max-width: 560px; margin: 29px 0 34px; color: #d4dbd1; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.download-area { width: min(100%, 440px); }
.download-button { display: grid; grid-template-columns: 22px 1fr 18px; min-height: 64px; align-items: center; gap: 14px; border: 1px solid #d7ef9f; padding: 0 23px; background: linear-gradient(180deg, #bfdc75, #9fc353); color: #101c0d; font: 850 13px var(--mono); letter-spacing: .035em; text-decoration: none; text-transform: uppercase; box-shadow: 0 12px 0 rgba(35, 55, 25, .72), 0 26px 50px rgba(0, 0, 0, .32); clip-path: polygon(0 7px, 7px 7px, 7px 0, calc(100% - 7px) 0, calc(100% - 7px) 7px, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 7px calc(100% - 7px), 0 calc(100% - 7px)); transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.download-button svg { width: 21px; fill: currentColor; }
.download-button .download-arrow { font-size: 19px; }
.download-button:not(.is-disabled):hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 15px 0 rgba(35, 55, 25, .72), 0 31px 55px rgba(0, 0, 0, .38); }
.download-button:focus-visible, .nav-download:focus-visible, .final-cta:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
.download-button.is-disabled { cursor: wait; opacity: .68; pointer-events: none; }
.download-status { min-height: 19px; margin: 21px 0 0; color: #afbbab; font: 11px/1.5 var(--mono); }
.download-status.is-error { color: #f1a486; }
.release-facts { display: grid; grid-template-columns: 90px 105px minmax(0, 1fr); width: min(100%, 540px); margin: 27px 0 0; border: 1px solid var(--line); background: rgba(5, 13, 8, .64); backdrop-filter: blur(12px); }
.release-facts > div { min-width: 0; padding: 14px 16px; }
.release-facts > div + div { border-left: 1px solid var(--line); }
.release-facts dt { color: #8e9c8b; font: 700 9px var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.release-facts dd { margin: 7px 0 0; color: #e9eee3; font: 750 12px var(--mono); }
.release-facts code { display: block; overflow: hidden; max-width: 100%; color: var(--moss-bright); font: inherit; text-overflow: ellipsis; white-space: nowrap; }
.hash-fact dd { display: flex; align-items: center; gap: 8px; }
#copy-sha { flex: none; border: 0; padding: 0; background: transparent; color: #c7d3c1; font: 700 9px var(--mono); cursor: pointer; }
#copy-sha:hover { color: var(--moss); }
.hero-product { position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(187, 221, 151, .35); background: #061009; box-shadow: 0 36px 90px rgba(0, 0, 0, .55); transform: perspective(1200px) rotateY(-2.6deg); }
.hero-product::after { content: ""; position: absolute; inset: 34px 0 34px; background: linear-gradient(90deg, rgba(12, 28, 16, .18), rgba(80, 111, 50, .12)); pointer-events: none; mix-blend-mode: color; }
.hero-product img { display: block; width: 100%; height: auto; aspect-ratio: 1640 / 984; object-fit: contain; object-position: center; filter: saturate(.68) sepia(.14) hue-rotate(30deg) brightness(.88); }
.window-bar { display: flex; height: 35px; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid var(--line); color: #9eaa9c; font: 9px var(--mono); }
.window-bar span { width: 7px; height: 7px; background: #50604f; }
.window-bar span:first-child { background: var(--torch); }
.window-bar b { margin-left: 6px; font-weight: 600; }
.product-status { position: absolute; z-index: 3; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 11px; background: rgba(5, 13, 8, .92); color: #d6ded1; font: 9px var(--mono); }
.product-status i { width: 6px; height: 6px; background: var(--moss); box-shadow: 0 0 12px var(--moss); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; display: flex; align-items: center; gap: 11px; color: #9ba898; font: 700 9px var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transform: translateX(-50%); }

.feature-rail { padding: 110px 0 105px; background: var(--night); }
.section-heading { display: grid; grid-template-columns: 1fr .78fr; align-items: end; gap: 70px; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.section-heading h2, .showcase-copy h2, .security-copy h2, .final-download h2 { margin: 0; font: 800 clamp(45px, 5vw, 70px)/.94 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.section-heading p, .showcase-copy > p, .security-copy > p { margin: 0; color: var(--muted); font-size: 17px; }
.feature-list article { display: grid; grid-template-columns: 105px 1fr; gap: 24px; align-items: start; padding: 31px 0; border-bottom: 1px solid var(--line); }
.feature-number { color: var(--moss); font: 700 12px var(--mono); }
.feature-list h3 { margin: 0; font: 760 24px var(--display); letter-spacing: -.015em; text-transform: uppercase; }
.feature-list p { max-width: 700px; margin: 7px 0 0; color: #aeb9ab; }

.launcher-showcase { position: relative; overflow: hidden; padding: 105px 0; background: radial-gradient(720px 500px at 18% 50%, rgba(75, 110, 57, .2), transparent 65%), var(--night-soft); }
.launcher-showcase::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, black, transparent 55%); }
.showcase-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 90px; }
.showcase-art { display: grid; min-height: 540px; place-items: center; }
.showcase-art img { width: min(100%, 420px); filter: drop-shadow(0 45px 50px rgba(0, 0, 0, .55)); transition: transform .5s ease; }
.showcase-art:hover img { transform: translateY(-7px) rotate(.5deg); }
.showcase-copy > p { max-width: 600px; margin-top: 24px; }
.showcase-copy ul { display: grid; gap: 0; margin: 40px 0 0; padding: 0; list-style: none; }
.showcase-copy li { display: grid; grid-template-columns: 31px 1fr; gap: 15px; padding: 20px 0; border-top: 1px solid var(--line); }
.showcase-copy li > span { color: var(--moss); }
.showcase-copy strong { display: block; font: 740 17px var(--display); text-transform: uppercase; }
.showcase-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

.security { padding: 115px 0; background: #09120c; }
.security-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; }
.security-copy { position: sticky; top: 130px; align-self: start; }
.security-copy > p { margin-top: 25px; }
.security-details { border-top: 1px solid var(--line); }
.security-details article { display: grid; grid-template-columns: 58px 190px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.security-details span { color: var(--moss); font: 700 10px var(--mono); }
.security-details h3 { margin: 0; font: 760 19px var(--display); text-transform: uppercase; }
.security-details p { margin: 0; color: var(--muted); font-size: 14px; }

.final-download { position: relative; overflow: hidden; padding: 75px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(70, 102, 48, .2), transparent 40%), #0d1a11; }
.final-download::after { content: ""; position: absolute; right: -120px; bottom: -170px; width: 450px; height: 340px; opacity: .27; background: url("/assets/tipo-world-island.webp") center/contain no-repeat; filter: blur(2px); }
.final-download-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 155px 1fr auto; align-items: center; gap: 38px; }
.final-download-inner img { width: 145px; }
.final-download h2 { font-size: clamp(34px, 4vw, 54px); }
.final-download p { margin: 8px 0 0; color: var(--muted); font: 11px var(--mono); }
.final-cta { min-height: 53px; padding-inline: 24px; background: var(--moss); color: var(--night); border-color: var(--moss-bright); }
.site-footer { padding: 35px 0; background: #050b07; }
.footer-inner { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 32px; }
.footer-inner img { width: 120px; opacity: .7; }
.footer-inner p { margin: 0; color: #7f8d7d; font-size: 11px; }
.footer-inner div { display: flex; gap: 22px; }
.footer-inner a { color: #a6b1a2; font-size: 11px; text-decoration: none; }
.footer-inner a:hover { color: var(--moss); }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding: 140px 0 105px; }
  .hero-copy { width: min(100%, 650px); padding: 30px 0 50px; }
  .hero-product { width: min(100%, 800px); transform: none; }
  .hero { min-height: auto; }
  .section-heading, .security-grid { grid-template-columns: 1fr; gap: 34px; }
  .security-copy { position: static; }
  .showcase-grid { gap: 45px; }
  .security-details article { grid-template-columns: 50px 180px 1fr; }
}

@media (max-width: 760px) {
  :root { --page: min(100% - 30px, 1180px); }
  .site-header { background: rgba(5, 13, 8, .88); backdrop-filter: blur(15px); }
  .nav-shell { grid-template-columns: 120px 1fr; min-height: 72px; gap: 16px; }
  .brand, .brand img { width: 108px; }
  .nav-shell nav { display: none; }
  .nav-download { justify-self: end; min-height: 40px; padding: 0 14px; font-size: 10px; }
  .hero-grid { padding-top: 95px; }
  .hero h1 { font-size: clamp(53px, 15vw, 72px); }
  .hero-intro { font-size: 16px; }
  .release-facts { grid-template-columns: 1fr 1fr; }
  .release-facts > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .feature-rail, .launcher-showcase, .security { padding: 78px 0; }
  .section-heading { padding-bottom: 28px; }
  .feature-list article { grid-template-columns: 52px 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-art { min-height: 380px; }
  .showcase-art img { width: min(82%, 380px); }
  .security-details article { grid-template-columns: 38px 1fr; }
  .security-details p { grid-column: 2; }
  .final-download-inner { grid-template-columns: 1fr auto; }
  .final-download-inner > img { display: none; }
  .final-cta { font-size: 10px; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner img { display: none; }
}

@media (max-width: 500px) {
  .nav-download { width: 42px; padding: 0; font-size: 0; }
  .nav-download span { font-size: 18px; }
  .hero h1 { font-size: 50px; }
  .download-button { grid-template-columns: 20px 1fr 16px; padding: 0 17px; font-size: 11px; }
  .hero-product { display: none; }
  .hero-grid { min-height: 730px; }
  .scroll-cue { bottom: 18px; }
  .section-heading h2, .showcase-copy h2, .security-copy h2 { font-size: 42px; }
  .final-download-inner { grid-template-columns: 1fr; }
  .final-cta { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner div { justify-content: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: reveal .7s ease both; }
  .hero-product { animation: reveal-product .85s .08s ease both; }
  .scroll-cue span { animation: drift 1.4s ease-in-out infinite; }
  @keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes reveal-product { from { opacity: 0; transform: perspective(1200px) rotateY(-2.6deg) translateY(24px); } to { opacity: 1; transform: perspective(1200px) rotateY(-2.6deg); } }
  @keyframes drift { 50% { transform: translateY(4px); } }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
