:root {
  --black: #050507;
  --white: #f7f7f8;
  --paper: #f2f2f4;
  --ink: #111114;
  --muted: #6e6e73;
  --cyan: #35cdf5;
  --purple: #635bff;
  --line: rgba(0, 0, 0, .1);
  --radius: 38px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; color: var(--ink); background: var(--white); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -60px; padding: 12px 18px; background: white; border-radius: 999px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; color: white; transition: color .35s, background .35s, backdrop-filter .35s; }
.site-header.scrolled { color: var(--ink); background: rgba(248, 248, 250, .78); backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid rgba(0, 0, 0, .07); }
.nav { height: 58px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 590; }
.wordmark { display: flex; gap: 10px; align-items: center; letter-spacing: -.015em; }
.wordmark-dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(145deg, var(--cyan), var(--purple)); box-shadow: 0 0 16px var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { opacity: .78; transition: opacity .2s; }
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; }
.nav-contact { padding: 8px 15px; color: var(--ink); background: white; border-radius: 999px; opacity: 1 !important; }
.scrolled .nav-contact { color: white; background: var(--ink); }

.intro-hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: white; background: var(--black); }
.hero-glow { position: absolute; width: min(68vw, 900px); aspect-ratio: 1; border-radius: 50%; right: -25vw; top: -35vw; background: radial-gradient(circle at 42% 58%, rgba(110, 86, 255, .9), rgba(35, 185, 248, .26) 30%, transparent 68%); filter: blur(10px); animation: breathe 9s ease-in-out infinite alternate; }
.hero-content { position: relative; padding-block: 140px 90px; }
.kicker { margin: 0 0 26px; color: rgba(255,255,255,.58); font-size: 14px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.kicker.dark { color: var(--muted); }
.intro-hero h1 { max-width: 980px; margin: 0; font-size: clamp(62px, 10vw, 142px); line-height: .87; letter-spacing: -.078em; }
.hero-copy { max-width: 660px; margin: 42px 0 38px; color: rgba(255,255,255,.63); font-size: clamp(19px, 2.1vw, 27px); line-height: 1.42; letter-spacing: -.025em; }
.round-link { display: inline-flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 999px; font-size: 15px; font-weight: 620; transition: transform .25s, background .25s; }
.round-link:hover { transform: translateY(-2px); }
.round-link.light { color: var(--ink); background: white; }
.round-link.dark { color: white; background: var(--ink); }
.round-link span { font-size: 18px; }

.apps-intro { padding: 150px 0 110px; }
.apps-intro h2, .about h2 { margin: 0; font-size: clamp(48px, 7.6vw, 104px); line-height: .96; letter-spacing: -.065em; }

.product { position: relative; min-height: 1080px; overflow: hidden; }
.product-copy { position: absolute; z-index: 4; width: min(490px, calc(100% - 48px)); }
.app-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 20px 45px rgba(0,0,0,.2); }
.product-name { margin: 20px 0 16px; font-size: 18px; font-weight: 700; letter-spacing: -.025em; }
.product h2 { margin: 0 0 25px; font-size: clamp(54px, 7.4vw, 104px); line-height: .91; letter-spacing: -.073em; }
.product-copy > p:last-of-type { max-width: 500px; margin: 0; font-size: 20px; line-height: 1.48; letter-spacing: -.02em; }
.product-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.pill { padding: 13px 19px; border-radius: 999px; font-size: 15px; font-weight: 650; transition: transform .2s, filter .2s; }
.pill:hover { transform: translateY(-2px); filter: brightness(1.08); }
.primary-cyan { color: #001116; background: var(--cyan); }
.primary-purple { color: white; background: var(--purple); }
.text-link { font-size: 15px; font-weight: 620; color: var(--cyan); }
.text-link.purple { color: var(--purple); }

.product-cosmo { color: white; background: #020307; }
.cosmo-stars { position: absolute; inset: -8%; width: 116%; height: 116%; max-width: none; object-fit: cover; opacity: .7; will-change: transform; }
.cosmo-shade { position: absolute; inset: 0; background: radial-gradient(circle at 72% 55%, rgba(29,159,220,.2), transparent 29%), linear-gradient(90deg, rgba(1,2,6,.93) 0%, rgba(1,2,6,.66) 45%, rgba(1,2,6,.08) 78%); }
.cosmo-copy { top: 145px; left: max(24px, calc((100% - 1180px) / 2)); }
.cosmo-copy > p:last-of-type { color: rgba(255,255,255,.68); }
.device-stage { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.phone { position: absolute; margin: 0; padding: 8px; overflow: hidden; border-radius: 56px; background: #0b0b0e; box-shadow: 0 55px 130px rgba(0,0,0,.48); will-change: transform; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 48px; }
.cosmo-devices .phone { width: min(370px, 34vw); aspect-ratio: 1284 / 2778; bottom: -190px; }
.phone-back { right: 4vw; transform: rotate(7deg); opacity: .82; }
.phone-front { right: 25vw; transform: rotate(-4deg); }

.cosmo-values { color: white; background: #050507; padding: 100px 0 130px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.values-grid article { padding: 34px; min-height: 280px; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; background: rgba(255,255,255,.045); }
.values-grid span { color: var(--cyan); font-size: 13px; font-weight: 700; }
.values-grid h3 { margin: 80px 0 12px; font-size: 25px; letter-spacing: -.04em; }
.values-grid p { margin: 0; color: rgba(255,255,255,.58); line-height: 1.55; }

.product-bicoudo { color: var(--ink); background: #eeecff; }
.bicoudo-orb { position: absolute; width: min(850px, 72vw); aspect-ratio: 1; right: -18vw; top: -14vw; border-radius: 50%; background: linear-gradient(145deg, #d7d2ff, #faf9ff); box-shadow: -50px 80px 150px rgba(79,62,196,.13); }
.bicoudo-copy { top: 145px; left: max(24px, calc((100% - 1180px) / 2)); }
.bicoudo-copy > p:last-of-type { color: #615e6d; }
.bicoudo-devices .phone { width: min(360px, 33vw); aspect-ratio: 1206 / 2622; bottom: -150px; border-color: #0b0b0e; }
.bicoudo-back { right: 3vw; transform: rotate(5deg); opacity: .76; }
.bicoudo-front { right: 24vw; transform: rotate(-4deg); }

.about { padding: 170px 0; background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; }
.about h2 { max-width: 780px; }
.about p { max-width: 720px; margin: 34px 0; color: var(--muted); font-size: clamp(20px, 2.5vw, 30px); line-height: 1.45; letter-spacing: -.028em; }

.footer { color: rgba(255,255,255,.6); background: var(--black); }
.footer-top { min-height: 190px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top strong, .footer-top span { display: block; }
.footer-top strong { margin-bottom: 9px; color: white; font-size: 18px; }
.footer-links { display: flex; gap: 28px; font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-bottom { min-height: 80px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes breathe { to { transform: translate(-4vw, 4vw) scale(1.08); } }

@media (max-width: 850px) {
  .wrap { width: min(100% - 32px, 680px); }
  .nav-links a:not(.nav-contact) { display: none; }
  .intro-hero h1 { font-size: clamp(58px, 17vw, 92px); }
  .apps-intro { padding: 100px 0 80px; }
  .product { min-height: 1200px; }
  .product-copy { top: 100px; left: 24px; }
  .product h2 { font-size: clamp(53px, 14vw, 84px); }
  .cosmo-shade { background: linear-gradient(180deg, rgba(1,2,6,.96) 0%, rgba(1,2,6,.58) 50%, rgba(1,2,6,.08) 76%); }
  .cosmo-devices .phone, .bicoudo-devices .phone { width: min(330px, 70vw); bottom: -100px; }
  .phone-front, .bicoudo-front { right: 30vw; }
  .phone-back, .bicoudo-back { right: -10vw; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid article { min-height: 220px; }
  .values-grid h3 { margin-top: 45px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-top { padding: 45px 0; align-items: flex-start; gap: 35px; flex-direction: column; }
}

@media (max-width: 520px) {
  .hero-content { padding-top: 120px; }
  .hero-copy { margin-top: 32px; }
  .product { min-height: 1080px; }
  .product-copy { width: calc(100% - 32px); left: 16px; }
  .product-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .app-icon { width: 64px; height: 64px; border-radius: 15px; }
  .cosmo-devices .phone, .bicoudo-devices .phone { width: 68vw; border-radius: 42px; }
  .phone img { border-radius: 35px; }
  .phone-front, .bicoudo-front { right: 28vw; }
  .phone-back, .bicoudo-back { right: -22vw; }
  .footer-links { flex-wrap: wrap; }
  .footer-bottom { align-items: flex-start; padding: 25px 0; gap: 12px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-parallax] { transform: none !important; }
}
