/*
  Signal system — new components for the purple/blue glass pivot.
  Hero, case studies, and the "Why Vionis" feature band. Loaded after
  tokens.css and style.css so it can override the legacy luxury-gold rules
  on the sections it touches.
*/

@media (prefers-reduced-motion: no-preference) {
  @keyframes ghDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-20px) scale(1.06); } }
  @keyframes ghDrift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px,18px) scale(1.05); } }
  @keyframes ghDrift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(16px,24px) scale(1.04); } }
}

/* ---------- Gradient hero ---------- */
.gh {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -100px;
  padding-top: calc(100px + clamp(3rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  background: var(--paper);
}
.gh-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.gh-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.gh-blob-1 { width: 460px; height: 460px; top: -160px; left: -120px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); animation: ghDrift1 18s ease-in-out infinite; }
.gh-blob-2 { width: 420px; height: 420px; top: -60px; right: -140px; background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%); animation: ghDrift2 22s ease-in-out infinite; }
.gh-blob-3 { width: 340px; height: 340px; bottom: -180px; left: 40%; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.35; animation: ghDrift3 20s ease-in-out infinite; }

.gh-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) { .gh-inner { grid-template-columns: 1fr; } }

.gh-eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 1rem;
}
.gh-title {
  font-family: var(--font-display) !important; font-weight: 700 !important;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.08; color: var(--ink);
  margin: 0; text-wrap: balance;
}
.gh-sub {
  font-family: var(--font-body); font-size: 1.08rem; line-height: 1.6;
  color: var(--ink-soft); max-width: 46ch; margin: 1.5rem 0 0;
}
.gh-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.gh-btn-primary {
  display: inline-flex; align-items: center; font-family: var(--font-body); font-weight: 700;
  font-size: 0.95rem; color: #fff; background: var(--gradient);
  padding: 0.9rem 1.7rem; border-radius: 999px; text-decoration: none;
  box-shadow: 0 16px 32px -12px var(--glow-violet);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gh-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px var(--glow-violet); }
.gh-btn-secondary {
  display: inline-flex; align-items: center; font-family: var(--font-body); font-weight: 600;
  font-size: 0.95rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); padding: 0.9rem 1.6rem; border-radius: 999px; text-decoration: none;
  backdrop-filter: blur(10px); transition: background 0.2s ease, border-color 0.2s ease;
}
.gh-btn-secondary:hover { background: var(--accent-soft); border-color: var(--accent); }

/* Floating report-card mockup */
.gh-visual { position: relative; min-height: 360px; }
.gh-card { position: absolute; border-radius: 20px; }
.gh-card-back {
  inset: 12px 6% 6% 12px;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0.22;
  transform: rotate(-4deg);
}
.gh-card-main {
  inset: 0 4% 4% 0;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 40px 70px -30px rgba(22,27,51,0.35);
  transform: rotate(1.4deg);
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.gh-card-topbar { display: flex; align-items: center; gap: 0.4rem; }
.gh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.gh-card-title {
  margin-left: 0.6rem; font-family: var(--font-body); font-weight: 700; font-size: 0.8rem; color: var(--ink);
}
.gh-card-body { display: flex; flex-direction: column; gap: 1rem; }
.gh-metric-row { display: flex; gap: 1.5rem; }
.gh-metric { display: flex; flex-direction: column; gap: 0.15rem; }
.gh-metric-label { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.gh-metric-value {
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500; font-variant-numeric: tabular-nums;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gh-metric-trend { font-family: var(--font-body); font-size: 0.72rem; color: var(--ink-soft); }
.gh-chart { width: 100%; }
.gh-chart svg { width: 100%; height: 56px; display: block; }
.gh-review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.gh-review-list li {
  font-family: var(--font-body); font-size: 0.76rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 0.5rem;
}
.gh-stars { color: #F0A93D; font-size: 0.72rem; letter-spacing: 0.05em; }

.gh-chip {
  position: absolute; z-index: 2;
  font-family: var(--font-body); font-weight: 700; font-size: 0.74rem; color: var(--ink);
  background: var(--paper-raised); border: 1px solid var(--surface-border);
  padding: 0.55rem 0.9rem; border-radius: 999px;
  box-shadow: 0 16px 28px -14px rgba(22,27,51,0.4);
}
.gh-chip-1 { top: 6%; right: -2%; }
.gh-chip-2 { bottom: 8%; left: -4%; }
@media (max-width: 500px) {
  .gh-chip { font-size: 0.66rem; padding: 0.45rem 0.7rem; }
  .gh-chip-1 { right: 2%; }
  .gh-chip-2 { left: 0; }
}

.gh-trust { position: relative; z-index: 1; max-width: 1200px; margin: clamp(3rem,6vw,4.5rem) auto 0; padding: 0 1.5rem; text-align: center; }
.gh-trust-label {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1.1rem;
}
.gh-trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 2.6rem; }
.gh-trust-row span {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink-faint);
  letter-spacing: 0.01em;
}

/* ---------- Gradient page header (inner pages) ---------- */
.ph {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -100px;
  padding-top: calc(100px + clamp(3.5rem, 8vw, 5rem));
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  background: var(--paper);
  text-align: center;
}
.ph-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ph-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.ph-blob-1 { width: 380px; height: 380px; top: -160px; left: -100px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); animation: ghDrift1 18s ease-in-out infinite; }
.ph-blob-2 { width: 340px; height: 340px; top: -120px; right: -120px; background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%); animation: ghDrift2 22s ease-in-out infinite; }
.ph-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.ph-eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.9rem;
}
.ph-title {
  font-family: var(--font-display) !important; font-weight: 700 !important;
  font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.12; color: var(--ink); margin: 0; text-wrap: balance;
}
.ph-sub {
  font-family: var(--font-body); font-size: 1.02rem; line-height: 1.6; color: var(--ink-soft);
  max-width: 52ch; margin: 1.1rem auto 0;
}

/* ---------- Why Vionis — glass feature band ---------- */
.wv-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
  background: linear-gradient(180deg, var(--paper) 0%, var(--accent-soft) 100%);
  overflow: hidden;
}
.wv-inner { position: relative; max-width: 1100px; margin: 0 auto; }
.wv-head { text-align: center; max-width: 46ch; margin: 0 auto 3rem; }
.wv-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--ink); margin: 0; }
.wv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .wv-grid { grid-template-columns: 1fr; } }
.wv-card {
  background: var(--surface); border: 1px solid var(--surface-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 18px; padding: 2rem 1.75rem;
  box-shadow: 0 24px 48px -32px rgba(22,27,51,0.3);
}
.wv-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
  color: #fff;
}
.wv-icon svg { width: 22px; height: 22px; }
.wv-card h3 { font-size: 1.15rem; color: var(--ink); margin: 0 0 0.5rem; }
.wv-card p { font-family: var(--font-body); font-size: 0.92rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ---------- Case studies ---------- */
.cs-section { padding-block: clamp(2rem, 5vw, 3rem); }
.cs-head { text-align: center; max-width: 52ch; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.cs-head p.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.7rem; }
.cs-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--ink); margin: 0; }
.cs-head p.sub { font-family: var(--font-body); color: var(--ink-soft); margin: 0.9rem 0 0; }

.cs-grid { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 3.5rem); }
.cs-project {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center;
}
.cs-project.reverse .cs-frame { order: 2; }
.cs-project.reverse .cs-meta { order: 1; }
@media (max-width: 860px) {
  .cs-project, .cs-project.reverse { grid-template-columns: 1fr; }
  .cs-project.reverse .cs-frame, .cs-project.reverse .cs-meta { order: initial; }
}

.cs-tag { font-family: var(--font-body); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.cs-meta h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--ink); margin: 0.5rem 0 0; }
.cs-meta p { font-family: var(--font-body); color: var(--ink-soft); font-size: 0.96rem; margin: 0.75rem 0 0; max-width: 42ch; }
.cs-link {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.88rem; color: var(--accent-strong);
  text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s ease, gap 0.2s ease;
}
.cs-link:hover { border-color: var(--accent-strong); gap: 0.6rem; }

.cs-frame {
  position: relative; border-radius: 16px; padding: 3px;
  background: var(--gradient);
  box-shadow: 0 40px 70px -36px rgba(22,27,51,0.4);
}
.cs-frame-inner { border-radius: 13px; overflow: hidden; background: var(--paper-raised); }
.cs-frame-bar { display: flex; gap: 0.4rem; padding: 0.6rem 0.75rem; background: var(--paper-raised); }
.cs-frame-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.cs-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; display: block; }

/* ---------- Services preview — modernized to the new accent ---------- */
.services-vertical-line { background: linear-gradient(180deg, transparent, var(--accent), transparent) !important; }
.service-menu-item { position: relative; padding-left: 1rem; border-left: 2px solid var(--line); }
.service-menu-title { font-family: var(--font-display) !important; }
