/* ============================================
   ALVEX STUDIO — Global Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy:       #0D1B2A;
  --midnight:   #1B3A5C;
  --blue:       #2A5EE8;
  --steel:      #4A7FA5;
  --warm-white: #F0EDE6;
  --amber:      #C8973A;
  --green:      #1D9E75;
  --dark:       #080F18;
  --mid:        #0F1E30;

  --display: 'Space Grotesk', sans-serif;
  --body:    'DM Sans', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--dark);
  color: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Skip Link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--blue);
  color: #fff;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  border-radius: 2px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* --- Focus Rings (keyboard nav) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .98;
}
.stroke {
  -webkit-text-stroke: 1px rgba(240,237,230,.35);
  color: transparent;
}

/* --- Labels / Eyebrows --- */
.label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--amber);
}

/* --- Buttons --- */
.btn-main {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  background: var(--blue);
  color: #fff;
  padding: 20px 40px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .02em;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.btn-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.1);
  transform: translateX(-100%);
  transition: transform .3s;
}
.btn-main:hover::after { transform: translateX(0); }

.btn-sec {
  font-size: 14px;
  font-weight: 500;
  color: rgba(240,237,230,.45);
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.btn-sec:hover { color: var(--warm-white); }

.btn-big {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  background: var(--warm-white);
  color: var(--dark);
  padding: 20px 48px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .02em;
  transition: all .2s;
  position: relative;
}
.btn-big:hover { background: var(--blue); color: #fff; }

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(8,15,24,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(240,237,230,.04);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-brand {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: -.01em;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(240,237,230,.45);
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--warm-white); }
.nav-links a.active { color: var(--warm-white); }
.nav-links a.nav-cta {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  background: var(--warm-white);
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.nav-links a.nav-cta:hover { background: var(--blue); color: #fff; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--warm-white);
  transition: all .3s;
}

/* --- Footer --- */
footer {
  background: var(--mid);
  border-top: 1px solid rgba(240,237,230,.06);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 48px 48px;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-row span {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--warm-white);
}
.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  color: rgba(240,237,230,.35);
  line-height: 1.7;
  max-width: 220px;
  margin-bottom: 20px;
}
.footer-email {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -.01em;
  transition: color .2s;
}
.footer-email:hover { color: var(--warm-white); }
.footer-col-title {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240,237,230,.25);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: rgba(240,237,230,.4);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--warm-white); }
.footer-bottom {
  border-top: 1px solid rgba(240,237,230,.06);
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-def {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  color: rgba(240,237,230,.15);
  letter-spacing: .02em;
}
.footer-copy {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(240,237,230,.2);
}

/* --- CTA Section (shared across pages) --- */
.cta-section {
  padding: 160px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,94,232,.12) 0%, transparent 70%);
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-eyebrow {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.cta-eyebrow::before,
.cta-eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--amber);
}
.cta-section h2 {
  font-size: clamp(52px, 9vw, 96px);
  letter-spacing: -.05em;
  line-height: .92;
  margin-bottom: 32px;
  position: relative;
}
.cta-section p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(240,237,230,.45);
  max-width: 400px;
  margin: 0 auto 48px;
  line-height: 1.7;
  position: relative;
}
.cta-note {
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(240,237,230,.2);
  margin-top: 20px;
  position: relative;
  text-transform: uppercase;
}

/* --- Custom Cursor --- */
.cursor-dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width .2s, height .2s;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 9998;
  transition: all .12s ease;
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* --- Scroll Reveal --- */
.rv {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
.rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; }
.rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; }

/* Disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* --- Marquee --- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(240,237,230,.06);
  border-bottom: 1px solid rgba(240,237,230,.06);
  padding: 20px 0;
  background: var(--mid);
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee-scroll 22s linear infinite;
}
.marquee-item {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(240,237,230,.2);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.marquee-item .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Browser frame (shared by /templates and /bespoke-systems) ---
   The frame only. The scrim, play button, iframe sizing and .is-live states
   belong to the /templates carousel and stay in css/pages/templates.css. */
.browser {
  background: #1a1a1a;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.browser__bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #1a1a1a;
}
.browser__bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3a3a;
  flex: 0 0 auto;
}
.browser__url {
  flex: 1;
  margin: 0 12px 0 6px;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,.3);
  font-size: 11px;
  font-weight: 400;
  color: rgba(240,237,230,.3);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1440 / 900;
  background: var(--dark);
}
.browser__screen picture,
.browser__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  nav { padding: 16px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 24px; }
  .footer-bottom { padding: 16px 24px; }
  .cta-section { padding: 100px 24px; }
}

@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #080F18;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 300;
    padding-top: 80px;
    padding-bottom: 40px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 18px;
    letter-spacing: .02em;
  }
  .nav-links .nav-cta {
    font-size: 16px;
    padding: 14px 32px;
  }
  .nav-toggle { display: flex; z-index: 301; }
  .cta-section { padding: 80px 20px; }
  .cta-section h2 { font-size: clamp(36px, 8vw, 64px); }
  .footer-top { grid-template-columns: 1fr; padding: 40px 20px; }
  .footer-bottom {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .btn-main { font-size: 14px; padding: 16px 28px; }
  .btn-big { font-size: 14px; padding: 16px 36px; }
  .cta-section { padding: 60px 16px; }
  .cta-section::before { width: 300px; height: 300px; }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--dark);
  border-top: 1px solid rgba(240,237,230,.08);
  padding: 20px 48px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-text {
  font-size: 13px;
  font-weight: 300;
  color: rgba(240,237,230,.6);
  line-height: 1.6;
  max-width: 600px;
}
.cookie-text a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-accept {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  padding: 10px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s;
}
.cookie-accept:hover { background: #1e4fd0; }
.cookie-decline {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  background: none;
  color: rgba(240,237,230,.4);
  padding: 10px 24px;
  border: 1px solid rgba(240,237,230,.1);
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s;
}
.cookie-decline:hover {
  color: var(--warm-white);
  border-color: rgba(240,237,230,.3);
}

@media (max-width: 768px) {
  .cookie-banner { padding: 16px 20px; }
  .cookie-text { font-size: 12px; }
}
