/* ============================================================
   Citrix Licensing Experts — premium white theme
   ============================================================ */
:root {
  --accent: #0E2A47;
  --accent-soft: color-mix(in oklab, var(--accent), white 92%);
  --accent-mid: color-mix(in oklab, var(--accent), white 30%);
  --accent-hover: color-mix(in oklab, var(--accent), black 18%);
  --ink: #0B1320;
  --ink-2: #46505e;
  --ink-3: #8a93a1;
  --line: #e7eaef;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --radius: 18px;
  --font: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22,.61,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1240px, 92vw); margin: 0 auto; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .45s var(--ease), box-shadow .45s var(--ease), padding .45s var(--ease);
  padding: 22px 0;
  color: #fff;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 0;
  transition: background .45s var(--ease);
}
.nav .brand-mark { background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); }
.nav.scrolled .brand-mark { background: var(--accent); border-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 600; }
.nav-links a { opacity: .85; transition: opacity .25s; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav.scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -24px rgba(11,19,32,.25);
  color: var(--ink);
  padding: 14px 0;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: .005em;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -14px color-mix(in oklab, var(--accent), transparent 35%); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 20px 38px -14px color-mix(in oklab, var(--accent), transparent 25%); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.38); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(0,0,0,.45); }
.nav-cta { padding: 11px 22px; font-size: 14px; }
.nav:not(.scrolled) .nav-cta { background: #fff; color: var(--ink); }
.nav.scrolled .nav-cta { background: var(--accent); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transform: scale(1.06);
}

/* --- Hero animation variants (pick via Tweaks) --- */
@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.14); }
}
body.hero-anim-zoom:not(.no-motion) .hero-media img { animation: kenburns 22s var(--ease) forwards; }

@keyframes heroDrift {
  from { transform: scale(1.16) translate(1.6%, 1%); }
  to   { transform: scale(1.16) translate(-1.6%, -1%); }
}
body.hero-anim-drift:not(.no-motion) .hero-media img { animation: heroDrift 34s linear forwards; }

@keyframes focusPull {
  0%   { transform: scale(1.24); filter: blur(14px) brightness(1.12); opacity: .55; }
  100% { transform: scale(1.06); }
}
@keyframes focusDrift {
  from { transform: scale(1.06); }
  to   { transform: scale(1.13); }
}
body.hero-anim-focus:not(.no-motion) .hero-media img {
  animation: focusPull 2.4s var(--ease) forwards, focusDrift 26s linear 2.4s forwards;
}

body.hero-anim-sweep:not(.no-motion) .hero-media img { animation: kenburns 26s var(--ease) forwards; }
body.hero-anim-sweep:not(.no-motion) .hero-media::after {
  content: ""; position: absolute; inset: -20%;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.16) 49%, rgba(255,255,255,.32) 50%, rgba(255,255,255,.16) 51%, transparent 62%);
  transform: translateX(-120%) skewX(-6deg);
  animation: sheen 2.8s var(--ease) .9s forwards;
  pointer-events: none;
}
@keyframes sheen { to { transform: translateX(120%) skewX(-6deg); } }

body.hero-anim-parallax .hero-media img {
  transform: scale(1.14) translate3d(var(--px, 0px), var(--py, 0px), 0);
  animation: none;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,16,30,.42) 0%, rgba(7,16,30,.18) 38%, rgba(7,16,30,.62) 78%, rgba(7,16,30,.82) 100%),
    linear-gradient(100deg, rgba(7,16,30,.55) 0%, rgba(7,16,30,.05) 60%);
}
.hero-content { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .7; }
.hero .eyebrow { color: rgba(255,255,255,.85); }

.hero h1 {
  font-size: clamp(36px, 6.4vw, 92px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  margin: 22px 0 26px;
}
.hl-line { display: block; overflow: hidden; white-space: nowrap; }
.hl-line > span { display: inline-block; transform: translateY(112%); }
body:not(.no-motion) .hl-line > span { animation: lineUp 1s var(--ease) forwards; }
.hl-line:nth-child(2) > span { animation-delay: .14s; }
.hl-line:nth-child(3) > span { animation-delay: .28s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 500;
  color: rgba(255,255,255,.85); max-width: 52ch; margin-bottom: 36px;
  opacity: 0; transform: translateY(16px);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; transform: translateY(16px); }
body:not(.no-motion) .hero-sub  { animation: fadeUp .9s var(--ease) .55s forwards; }
body:not(.no-motion) .hero-ctas { animation: fadeUp .9s var(--ease) .72s forwards; }
body.no-motion .hl-line > span, body.no-motion .hero-sub, body.no-motion .hero-ctas { transform: none; opacity: 1; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* hero stat ribbon */
.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.22);
  background: rgba(7,16,30,.30); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0;
}
body:not(.no-motion) .hero-stats { animation: fadeUp 1s var(--ease) .95s forwards; }
body.no-motion .hero-stats { opacity: 1; }
.hero-stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 26px 0;
}
.hstat { border-left: 1px solid rgba(255,255,255,.22); padding-left: 22px; }
.hstat:first-child { border-left: none; padding-left: 0; }
.hstat b { display: block; font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.hstat span { font-size: 13.5px; color: rgba(255,255,255,.72); font-weight: 600; }

.scroll-cue {
  position: absolute; z-index: 3; right: 4vw; bottom: 140px;
  width: 1px; height: 64px; background: rgba(255,255,255,.35); overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: #fff; animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { top: -40%; } 100% { top: 110%; } }
body.no-motion .scroll-cue::after { animation: none; }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head .eyebrow { color: var(--accent-mid); }
h2 {
  font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06;
  letter-spacing: -0.03em; font-weight: 800; margin: 18px 0 16px;
  text-wrap: balance;
}
.lede { font-size: 18px; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }

/* statement */
.statement { padding: 130px 0; }
.statement p {
  font-size: clamp(28px, 3.4vw, 48px); line-height: 1.18; font-weight: 700;
  letter-spacing: -0.025em; max-width: 24ch; text-wrap: balance;
}
.statement p em { font-style: normal; color: var(--accent-mid); }
.statement .eyebrow { color: var(--accent-mid); margin-bottom: 26px; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.svc:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(11,19,32,.22);
  border-color: color-mix(in oklab, var(--accent), white 70%);
}
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 24px;
  transition: background .45s var(--ease), color .45s var(--ease), transform .45s var(--ease);
}
.svc:hover .svc-icon { background: var(--accent); color: #fff; transform: scale(1.06) rotate(-3deg); }
.svc h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.svc p { font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.svc-num {
  position: absolute; top: 28px; right: 28px;
  font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .08em;
}

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.flip > .split-media { order: 2; }
.split-media {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: 0 40px 80px -40px rgba(11,19,32,.35);
}
.split-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease);
}
.split-media:hover img { transform: scale(1.01); }
.split-media .media-card {
  position: absolute; left: 22px; bottom: 22px; right: 22px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-radius: 14px; padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 18px 40px -22px rgba(11,19,32,.4);
}
.media-card b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.media-card span { font-size: 13.5px; color: var(--ink-2); font-weight: 600; line-height: 1.35; }
.split-copy .eyebrow { color: var(--accent-mid); }
.split-copy h2 { max-width: 16ch; }
.split-copy .lede { margin-bottom: 30px; }

.steps { display: grid; gap: 0; margin-top: 8px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-size: 14px; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
}
.step h4, .step h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.step p { font-size: 14.5px; color: var(--ink-2); text-wrap: pretty; }

.checklist { list-style: none; display: grid; gap: 14px; margin: 6px 0 34px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink-2); font-weight: 500; }
.checklist li svg { flex: none; margin-top: 3px; color: var(--accent); }
.checklist li b { color: var(--ink); font-weight: 700; }

/* ---------- Results ---------- */
.results .section-head { margin-bottom: 54px; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.res-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; background: #fff;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.res-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11,19,32,.2); }
.res-card .res-tag {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.res-card b { font-size: clamp(38px, 3.4vw, 52px); font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.res-card .res-what { font-size: 16px; font-weight: 700; margin-top: 14px; letter-spacing: -0.01em; }
.res-card p { font-size: 14.5px; color: var(--ink-2); text-wrap: pretty; }
.res-note { font-size: 13px; color: var(--ink-3); margin-top: 26px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0; }
.cta-inner {
  background: var(--accent); color: #fff;
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(56px, 7vw, 96px) clamp(32px, 6vw, 96px);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}
.cta-inner::before {
  content: ""; position: absolute; right: -180px; top: -180px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%);
  pointer-events: none;
}
.cta-inner h2 { color: #fff; margin-top: 14px; }
.cta-inner .eyebrow { color: rgba(255,255,255,.75); }
.cta-inner .lede { color: rgba(255,255,255,.8); }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-self: end; }
.cta-actions .hint { font-size: 13.5px; color: rgba(255,255,255,.65); }

/* ---------- Footer ---------- */
/* ---------- Newsletter band ---------- */
.newsletter { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 84px 0; }
.news-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.news-copy .eyebrow { color: var(--accent-mid); }
.news-copy h2 { margin-bottom: 10px; }
.news-copy .lede { font-size: 16.5px; }
.news-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.news-form input[type="email"] {
  flex: 1 1 260px; font-family: var(--font); font-size: 15px; color: var(--ink);
  padding: 14px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.news-form input[type="email"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent), transparent 88%);
}
.news-form .news-msg { display: none; flex-basis: 100%; font-size: 14px; font-weight: 600; padding: 4px 8px 0; }
.news-form .news-msg.show { display: block; }
.news-form .news-msg.ok { color: #065F46; }
.news-form .news-msg.err { color: #991B1B; }
.news-hint { flex-basis: 100%; font-size: 12.5px; color: var(--ink-3); padding: 2px 8px 0; }

@media (max-width: 980px) { .news-inner { grid-template-columns: 1fr; } }

footer { padding: 72px 0 44px; border-top: 1px solid var(--line); margin-top: 0; }
.foot-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { color: var(--ink); margin-bottom: 14px; }
.foot-brand p { font-size: 14px; color: var(--ink-2); }
.foot-col h5, .foot-col .foot-heading { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.foot-col ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; font-weight: 600; }
.foot-col a:hover { color: var(--accent); }
.legal {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .4s; }
body.no-motion .reveal { opacity: 1; transform: none; transition: none; }

/* duotone tweak */
body.img-duotone .hero-media img,
body.img-duotone .split-media img { filter: grayscale(1) contrast(1.05); }
body.img-duotone .hero-scrim {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--accent), transparent 45%) 0%, color-mix(in oklab, var(--accent), transparent 75%) 40%, color-mix(in oklab, var(--accent), transparent 30%) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img, .hero-media::after, .scroll-cue::after { animation: none !important; }
  .hl-line > span { transform: none !important; animation: none !important; }
  .hero-sub, .hero-ctas, .hero-stats { opacity: 1 !important; transform: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .svc-grid, .res-grid { grid-template-columns: 1fr 1fr; }
  .split, .cta-inner { grid-template-columns: 1fr; }
  .split.flip > .split-media { order: 0; }
  .split-media { aspect-ratio: 16 / 11; }
  .hero-stats-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hstat:nth-child(3) { border-left: none; padding-left: 0; }
  .nav-links { display: none; }
  .cta-actions { justify-self: start; }
}
@media (max-width: 620px) {
  .svc-grid, .res-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .scroll-cue { display: none; }
}
