:root {
  color-scheme: dark;
  --bg: #141414;
  --bg-soft: #1c1c1c;
  --bg-deep: #0b0c0f;
  --text: #f5f5f5;
  --muted: #a9adb5;
  --blue: #477db9;
  --blue-light: #78a9e0;
  --line: rgba(255,255,255,.11);
  --header-height: 72px;
  --content: 1180px;
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
p, h1, h2, h3 { margin-top: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; padding: 10px 16px; background: var(--blue); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.section { padding-block: clamp(82px, 9vw, 136px); scroll-margin-top: var(--header-height); }
.eyebrow { margin-bottom: 18px; color: var(--blue-light); font-size: .76rem; font-weight: 750; letter-spacing: .19em; text-transform: uppercase; }
.section h2 { font-size: clamp(2.2rem, 5.1vw, 4rem); letter-spacing: -.055em; line-height: 1.08; }
.section-lead { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.18rem); }

.site-header { position: fixed; z-index: 30; inset: 0 0 auto; height: var(--header-height); background: transparent; transition: background .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled, .site-header.is-open { background: rgba(20,20,20,.96); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.brand-link img { width: 46px; height: 46px; flex: none; object-fit: contain; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 38px); }
.site-nav a, .footer-links a { color: var(--muted); font-size: .88rem; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="location"], .footer-links a:hover { color: var(--text); }
.site-nav a[aria-current="location"]::after { content: ""; display: block; height: 2px; margin-top: 2px; background: var(--blue-light); border-radius: 2px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; isolation: isolate; width: 100%; padding-top: var(--header-height); background: #0b0c0f; scroll-margin-top: 0; }
.hero-media { position: relative; width: 100%; height: min(56.25vw, 790px); min-height: 180px; background: #0b0c0f; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-video { opacity: 0; transition: opacity .35s ease; }
.hero-video.is-playing { opacity: 1; }
.media-control { position: absolute; z-index: 2; right: clamp(20px, 4vw, 62px); bottom: 20px; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(17,19,23,.83); color: white; cursor: pointer; font-size: .8rem; }
.media-control:hover { background: #252a31; }
.media-control svg { width: 17px; height: 17px; }

.intro { background: linear-gradient(180deg, #0b0c0f 0%, var(--bg) 25%); text-align: center; }
.intro-inner { max-width: 1060px; }
.intro h1 { margin-bottom: 24px; font-size: clamp(2.6rem, 6.5vw, 5.6rem); letter-spacing: -.065em; line-height: 1.07; text-wrap: balance; }
.intro h1 em { font-style: normal; color: var(--blue-light); }
.intro-copy { max-width: 720px; margin: 0 auto; color: #c4c7ce; font-size: clamp(1.06rem, 1.8vw, 1.23rem); line-height: 1.8; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(74px, 9vw, 112px); text-align: left; }
.pillar { padding-top: 22px; border-top: 1px solid var(--line); }
.pillar svg { width: 39px; height: 39px; margin-bottom: 28px; color: var(--blue-light); }
.pillar h2 { margin-bottom: 12px; font-size: 1.24rem; letter-spacing: -.025em; }
.pillar p { max-width: 30ch; margin: 0; color: var(--muted); font-size: .96rem; }

.apps { background: radial-gradient(circle at 75% 12%, rgba(71,125,185,.09), transparent 40%), var(--bg-soft); }
.apps .section-lead { margin-bottom: 46px; }
.carousel { position: relative; }
.carousel-stage { position: relative; overflow: hidden; touch-action: pan-y; }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.22,.68,0,1); will-change: transform; }
.carousel-slide { flex: 0 0 100%; margin: 0; min-width: 0; }
.carousel-website { display: block; border-radius: 14px; }
.carousel-slide img { width: 100%; height: auto; max-height: 600px; object-fit: contain; background: #101115; border-radius: 14px; }
.carousel-empty { margin: 0; padding: clamp(34px, 7vw, 70px) 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; }
.carousel-arrow, .carousel-pause, .carousel-dots button { border: 0; background: transparent; color: var(--text); cursor: pointer; }
.carousel-arrow { width: 44px; height: 44px; font-size: 1.4rem; }
.carousel-arrow:hover, .carousel-pause:hover { color: var(--blue-light); }
.carousel-pause { min-height: 44px; padding-inline: 12px; font-size: .84rem; }
.carousel-dots { display: flex; align-items: center; gap: 8px; }
.carousel-dots button { width: 26px; height: 44px; padding: 0; display: grid; place-items: center; }
.carousel-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #858b94; transition: width .2s, background .2s; }
.carousel-dots button[aria-current="true"]::before { width: 22px; border-radius: 8px; background: var(--blue-light); }
.app-list { display: grid; gap: 24px; margin-top: 52px; }
.app-profile { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.app-profile.is-active { animation: app-details-in .35s ease both; }
@keyframes app-details-in { from { opacity: .55; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.app-identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.app-identity img { flex: none; width: 72px; height: 72px; object-fit: contain; border-radius: 16px; }
.app-profile h3 { margin: 0 0 2px; font-size: 1.7rem; letter-spacing: -.04em; }
.app-status-badge { display: inline-block; margin-left: 12px; padding: 3px 10px; border: 1px solid var(--blue); border-radius: 999px; background: rgba(71,125,185,.16); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.app-meta { margin: 0 0 9px; color: var(--blue-light); font-size: .86rem; font-weight: 650; }
.app-description { max-width: 560px; margin: 0; color: var(--muted); }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.app-actions a, .contact-links a { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 9px 18px; border: 1px solid rgba(120,169,224,.6); border-radius: 999px; color: var(--text); font-size: .89rem; font-weight: 650; text-decoration: none; transition: background .2s, border-color .2s; }
.app-actions a:hover, .contact-links a:hover { background: rgba(71,125,185,.17); border-color: var(--blue-light); }
.app-actions .app-website { background: var(--blue); border-color: var(--blue); color: white; }
.app-actions .app-website:hover { background: #386da7; border-color: #386da7; }
.app-website svg { width: 18px; height: 18px; flex: none; }
.play-badge { border: 0 !important; padding: 0 !important; }
.play-badge img { width: 172px; height: auto; }
.developer-link { margin-top: 30px; text-align: center; }
.developer-link a { color: var(--muted); font-size: .9rem; text-decoration-color: var(--blue); text-underline-offset: 4px; }
.developer-link a:hover { color: var(--text); }

.about { background: var(--bg); }
.about-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); align-items: center; gap: clamp(44px, 7vw, 120px); }
.about-image { overflow: hidden; background: #0b0c0f; }
.about-image img { width: 100%; height: auto; }
.about-copy h2 { max-width: 12ch; margin-bottom: 28px; }
.about-copy p:not(.eyebrow) { max-width: 52ch; margin-bottom: 17px; color: var(--muted); }

.contact { background: linear-gradient(180deg, var(--bg), #18202a 75%, #17202a); text-align: center; }
.contact-inner { max-width: 760px; }
.contact h2 { margin-bottom: 22px; }
.contact-inner > p:not(.eyebrow) { color: #c4c7ce; font-size: 1.08rem; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.contact-address { display: inline-flex; align-items: center; color: var(--muted); font-size: .93rem; user-select: text; }
.site-footer { background: #101215; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 26px; padding-block: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 38px; height: 38px; border-radius: 8px; }
.footer-brand strong, .footer-brand small { display: block; line-height: 1.3; }
.footer-brand small { color: var(--muted); font-size: .74rem; }
.footer-links, .footer-links span { display: flex; flex-wrap: wrap; gap: 18px; }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); color: #878b93; font-size: .8rem; }
.back-to-top { position: fixed; z-index: 20; right: 18px; bottom: 18px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #252a30; color: white; cursor: pointer; font-size: 1.4rem; }
.back-to-top:hover { background: var(--blue); }

.js [data-reveal].is-visible { animation: reveal-in .6s ease both; }
@keyframes reveal-in { from { opacity: .72; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 800px) {
  :root { --header-height: 66px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: var(--header-height); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 18px; background: #141414; border-bottom: 1px solid var(--line); box-shadow: 0 18px 35px rgba(0,0,0,.2); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .site-nav a[aria-current="location"]::after { margin: 0; width: 22px; }
  .pillars { gap: 24px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-image { max-width: 660px; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 36px), var(--content)); }
  .section { padding-block: 76px; }
  .brand-link { font-size: 1rem; }
  .brand-link img { width: 40px; height: 40px; }
  .hero-media { min-height: 0; }
  .media-control { right: 12px; bottom: 10px; min-height: 36px; padding: 5px 9px; }
  .media-control span { font-size: 0; }
  .media-control svg { width: 18px; height: 18px; }
  .pillars { grid-template-columns: 1fr; gap: 36px; margin-top: 64px; }
  .pillar svg { margin-bottom: 18px; }
  .app-profile { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { gap: 12px 18px; }
  .copyright { grid-column: 1; }
}
@media (min-width: 1900px) {
  .hero-media { height: 790px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
