/* Shared palette and typography from the CineMon website. */
:root {
    color-scheme: dark;
    --ink: #070708;
    --ink-2: #0c0c0d;
    --violet: #665def;
    --violet-bright: #8b83ff;
    --lavender: #a299ff;
    --display: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;
    --body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--ink); color: #ffffffd9; font: 400 1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
p, h1, h2, figure { margin: 0; }
::selection { background: #665def8c; color: #fff; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 5px; }
.container { max-width: 1120px; padding-inline: 40px; margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; padding: .75rem 1.25rem; border-radius: 999px; background: var(--violet); color: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 60; top: 1rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: calc(100% - 2rem); max-width: 1280px; min-height: 60px; padding: 10px 10px 10px 24px; border: 1px solid #ffffff1a; border-radius: 999px; background: #070708f0; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 12px 40px #0006, inset 0 1px 0 #ffffff0f; }
.brand { display: inline-block; color: #fff; font: 700 1.375rem/1.4 var(--display); letter-spacing: -.055em; }
.brand span { color: var(--lavender); }
.site-header nav { display: flex; align-items: center; gap: 12px; font: 600 .8rem/1.5 var(--display); }
.site-header nav a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 10px 18px; border-radius: 999px; }
.nav-contact { color: #ffffffbf; }
.nav-contact:hover { color: #fff; background: #ffffff0d; }
.nav-primary { color: #fff; background: linear-gradient(135deg, #7d74ff, #5548d9); }
.nav-primary:hover { background: var(--violet-bright); }

.hero { position: relative; overflow: hidden; padding: 152px 0 72px; }
.hero::before { content: ''; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 700px; background: radial-gradient(ellipse at 50% 20%, #ffffff07, transparent 65%); pointer-events: none; }
.hero-copy { max-width: 720px; margin-inline: auto; text-align: center; }
.kicker { color: #ffffff99; font: 400 .7rem/1.6 var(--mono); letter-spacing: .22em; text-transform: uppercase; }
h1 { color: #fff; font: 700 clamp(2.5rem, 1.1rem + 5.2vw, 4.5rem)/1.05 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.hero h1 { margin: 22px auto 24px; }
.lede { max-width: 580px; margin-inline: auto; color: #ffffffa6; font-size: clamp(1rem, .9rem + .45vw, 1.125rem); line-height: 1.75; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 14px 28px; border: 1px solid transparent; border-radius: 999px; color: #fff; font: 600 .875rem/1.5 var(--display); transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--violet); box-shadow: 0 8px 24px #0006, inset 0 1px 0 #fff3; }
.button-primary:hover { background: var(--violet-bright); }
.button-ghost { background: #ffffff0d; border-color: #ffffff33; }
.button-ghost:hover { background: #ffffff1a; border-color: #ffffff66; }

.product { max-width: 960px; margin: 64px auto 0; }
.product-link { display: block; border-radius: 14px; }
.product-stage { position: relative; padding-bottom: 10%; perspective: 1500px; perspective-origin: 60% 50%; }
.product-glow { position: absolute; z-index: -1; inset: 0 -2% 14%; background: url('../images/home/hero-mac-glow.webp') center / 100% 100% no-repeat; filter: blur(72px) saturate(1.25); opacity: .5; pointer-events: none; }
.product-mac { position: relative; width: 100%; border-radius: 1.5% / 2.4%; box-shadow: 0 0 0 1px #ffffff1f, 0 40px 90px #000a; }
.product-ipad { position: absolute; right: -1%; bottom: 0; width: 34%; padding: .85%; border-radius: 5.4% / 7.1%; background: #050505; box-shadow: inset 0 0 0 1px #ffffff24, -28px 32px 60px #000b; transform: rotateY(-20deg) rotateX(5deg); transform-origin: 100% 50%; }
.product-ipad img { width: 100%; border-radius: 3.4% / 4.5%; }
.product-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #ffffff1a; }
.product-caption img { flex-shrink: 0; }
.product-caption p { color: #ffffffa6; font-size: .875rem; }
.platforms { margin-left: auto; color: #ffffff80; font: 400 .7rem/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

.site-footer { padding: 56px 0 26px; border-top: 1px solid #ffffff1a; background: var(--ink-2); }
.footer-main { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 48px; }
.footer-description { margin-top: 14px; color: #ffffff8c; font-size: .875rem; }
.footer-contact { padding-top: 3px; }
.footer-contact .kicker { margin-bottom: 12px; }
.email { color: var(--lavender); font: 500 clamp(1rem, 2vw, 1.25rem)/1.5 var(--display); }
.email:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 24px; border-top: 1px solid #ffffff1a; color: #ffffff80; font-size: .75rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a:hover { color: var(--lavender); }

.resource-page { min-height: 65vh; padding-block: 170px 90px; }
.resource-page h1 { margin-block: 20px 28px; font-size: clamp(2.5rem, 6vw, 4rem); }
.resource-page .lede { margin: 0 0 32px; }
.back-link { display: block; width: fit-content; margin-top: 28px; color: var(--lavender); font-size: .875rem; }
.back-link:hover { color: #fff; }

@media (max-width: 640px) {
    .container { padding-inline: 24px; }
    .site-header { padding-left: 18px; gap: 8px; }
    .site-header .brand { font-size: 1.125rem; }
    .site-header nav { gap: 2px; font-size: .75rem; }
    .site-header nav a { padding: 10px 12px; }
    .site-header nav svg { width: 14px; height: 14px; }
    .hero { padding: 130px 0 48px; }
    .hero h1 { margin: 20px auto; }
    .hero-actions { gap: 12px; }
    .button { padding-inline: 22px; }
    .product { margin-top: 44px; }
    .product-stage { padding-bottom: 14%; perspective: 600px; }
    .product-ipad { width: 42%; }
    .product-glow { filter: blur(40px); }
    .product-caption { gap: 14px; margin-top: 22px; padding-top: 22px; }
    .product-caption p { order: 3; flex-basis: 100%; font-size: .8rem; }
    .site-footer { padding-top: 40px; }
    .footer-main { flex-direction: column; gap: 30px; padding-bottom: 34px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .resource-page { min-height: 0; padding-block: 135px 70px; }
}
@media (max-width: 359px) {
    .site-header { padding-left: 14px; }
    .site-header nav a { padding-inline: 9px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
    .button:hover { transform: none; }
}
