/* Syaaq marketing site: layout
   Page frame: header, heroes, sections, split columns, CTA band, footer. */

/* Header */
/* Fixed over the first (Freesia) panel; turns frosted white once the page scrolls. */
:root { --frame-pad: clamp(0.5rem, 1.2vw, 0.95rem); --head-h: 4.4rem; }
.site-header { position: fixed; top: 0; inset-inline: 0; z-index: 50; padding: calc(var(--frame) + var(--frame-pad) + 0.35rem) calc(var(--frame) + var(--frame-pad)) 0; background: transparent; border-bottom: 1px solid transparent; transition: padding 0.3s var(--ease), background-color 0.3s, border-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
.site-header.is-scrolled, .site-header:has(.site-nav.is-open) { padding-top: 0; background: rgba(255, 255, 255, 0.72); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-color: var(--line-soft); box-shadow: 0 8px 24px -18px rgba(4, 23, 23, 0.35); }
.mast { display: flex; align-items: center; gap: 1.5rem; min-height: 4.4rem; }
.brand { display: block; flex: none; }
.brand img { width: 7rem; height: auto; }
.site-nav { display: flex; align-items: center; gap: 0.15rem; margin-inline-start: auto; }
.site-nav a { position: relative; padding: 0.45rem 0.75rem; text-decoration: none; color: var(--sub); font-size: 0.98rem; transition: color 0.2s; }
.site-nav a:hover { color: var(--night); }
.site-nav a[aria-current="page"] { color: var(--night); font-weight: 500; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0.75rem; bottom: 0.05rem; height: 2px; border-radius: 2px; background: var(--emerald); }
.nav-cta { display: flex; gap: 0.5rem; align-items: center; }
.nav-cta-mobile { display: none; }
.menu-toggle { display: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); align-items: center; justify-content: center; }
.menu-toggle .icon { width: 1.25rem; height: 1.25rem; }

@media (max-width: 68rem) {
  .menu-toggle { display: inline-flex; margin-inline-start: auto; }
  .nav-cta .btn-ghost { display: none; }
  .site-nav { position: absolute; top: 100%; inset-inline: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(4, 23, 23, 0.25); display: none; }
  .site-nav.is-open { display: flex; animation: drop 0.3s var(--ease); }
  .site-nav a { padding: 0.8rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .nav-cta-mobile { display: flex; gap: 0.5rem; padding-top: 1rem; }
  .nav-cta-mobile .btn { flex: 1; }
}
@media (max-width: 30rem) { .nav-cta .btn { display: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
/* Desktop: logo at the start, menu in the true centre, CTAs at the end */
@media (min-width: 68.01rem) {
  .mast { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-nav { margin: 0; }
  .nav-cta { justify-self: end; }
}

/* Hero: Velocity frame around an off-white panel */
/* The framed hero fills the screen, with the same white margin on all four sides */
.hero { position: relative; }
.hero-frame { display: flex; min-height: calc(100vh - 2 * var(--frame)); min-height: calc(100svh - 2 * var(--frame)); margin: var(--frame); padding: var(--frame-pad); border-radius: calc(var(--radius-lg) + 0.4rem); background: var(--velocity); }
.hero-panel { position: relative; isolation: isolate; overflow: hidden; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--head-h) - 0.45rem) var(--gutter) var(--hero-gap); border-radius: var(--radius-lg); background: var(--paper); }
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 1.3rem; max-width: 52rem; margin-inline: auto; }
.hero-copy .lead { max-width: 42rem; }
.hero-panel { --hero-gap: clamp(1.25rem, 3vh, 2.75rem); }
.hero-copy { gap: 1.6rem; max-width: none; }
.hero-copy h1 { white-space: nowrap; font-size: clamp(2rem, min(5.2vw, 7vh), 4.5rem); line-height: 1.2; }
.hero-sub { max-width: 38rem; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.8; }
.typer-cursor { display: inline-block; width: 0.06em; min-width: 2px; height: 0.95em; margin-inline-start: 0.08em; vertical-align: -0.1em; border-radius: 2px; background: var(--aqua); animation: typer-blink 1s steps(1) infinite; }
.typer.is-typing .typer-cursor { animation: none; }
@keyframes typer-blink { 50% { opacity: 0; } }
.hero-panel .brain { width: min(100%, var(--wrap)); margin: var(--hero-gap) auto 0; }
@media (min-width: 52.01rem) { .hero-panel .brain-grid { justify-content: space-between; } }
@media (max-width: 40rem) { .hero-panel { padding-top: calc(var(--head-h) + 0.4rem); } .hero-copy h1 { white-space: normal; min-height: 2.4em; } }
.hero-cta { display: grid; justify-items: center; gap: 1rem; margin-top: 40px; }
.hero-panel:has(.hero-cta) { padding-bottom: 40px; }
.hero-cta .btn-row { gap: 0.75rem; }
.hero-cta .btn { min-width: 11.5rem; }
.hero-cta .hero-note { margin-top: 0; }
.hero-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.5rem; margin-top: 0.6rem; color: var(--muted); font-size: 0.93rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 0.35rem; }
.hero-note .icon { color: var(--emerald); width: 1.05em; height: 1.05em; stroke-width: 2.4; }

/* Inner page heroes: a calm off-white panel */
.page-hero { margin: var(--frame) var(--frame) 0; padding: calc(var(--head-h) + var(--frame-pad) + clamp(3.25rem, 7vw, 5.5rem)) 0 clamp(2.75rem, 5vw, 4rem); border-radius: var(--radius-lg); background: var(--freesia); position: relative; isolation: isolate; overflow: hidden; }
/* A faint 6px grid in a light orange, multiplied over the yellow */
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg, #fff8ef 1px, transparent 1px), linear-gradient(#fff8ef 1px, transparent 1px); background-size: 6px 6px; background-position: 0 0; mix-blend-mode: multiply; mask-image: linear-gradient(transparent, #000 25%, #000 80%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 80%, transparent); }
.page-hero::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 0.4rem; background: var(--velocity); }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }

/* Tinted sections sit as inset panels inside the white page */
.section-wash, .section-soft { margin-inline: var(--frame); border-radius: var(--radius-lg); background: var(--freesia); }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split.is-reverse > :first-child { order: 2; }
.split-copy { display: grid; gap: 1.15rem; align-content: start; }
@media (max-width: 58rem) { .split { grid-template-columns: 1fr; } .split.is-reverse > :first-child { order: 0; } }

/* CTA band: Velocity block */
.cta-band { position: relative; overflow: hidden; padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1.25rem, 5vw, 4rem); border-radius: var(--radius-lg); background: var(--velocity); text-align: center; display: grid; justify-items: center; gap: 1.2rem; }
.cta-band h2 { max-width: 48rem; }
.cta-band .lead { max-width: 36rem; color: var(--forest); }
.cta-band .btn-primary { background: var(--night); color: #fff; }
.cta-band .btn-primary:hover { background: var(--forest); }
.cta-band .btn-ghost { background: rgba(255, 255, 255, 0.55); border-color: transparent; }
.cta-band .btn-ghost:hover { background: #fff; }
.cta-mark { width: clamp(8.5rem, 12vw, 10rem); height: auto; }

/* Footer: Night */
.site-footer { margin: 3rem var(--frame) var(--frame); padding-block: 4rem 2rem; border-radius: var(--radius-lg); background: var(--night); color: var(--freesia); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand { display: grid; gap: 1rem; align-content: start; max-width: 22rem; }
.foot-brand img { width: 7rem; }
.foot-brand p { color: rgba(251, 255, 235, 0.68); font-size: 0.95rem; }
.foot-brand .text-link { color: var(--aqua); }
.foot-brand .text-link:hover { text-decoration-color: var(--aqua); }
.foot-col h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; margin-bottom: 0.9rem; color: #fff; }
.foot-col ul { display: grid; gap: 0.55rem; }
.foot-col a { color: rgba(251, 255, 235, 0.68); text-decoration: none; font-size: 0.95rem; }
.foot-col a:hover { color: var(--aqua); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(251, 255, 235, 0.12); color: rgba(251, 255, 235, 0.55); font-size: 0.88rem; }
.site-footer :focus-visible { outline-color: var(--aqua); }

/* Pointer glow canvas (demos.js setupHeroGlow) */
.hero-glow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; opacity: 0.9; }
.hero-smoke { mix-blend-mode: screen; opacity: 0.95; }
