/* ═══════════════════════════════════════════════════════════════
   ALPELUXE — HOME PAGE
   Section layout specific to the single institutional landing page.
   Relies on tokens/primitives defined in theme.css.
   ═══════════════════════════════════════════════════════════════ */

section { padding: 120px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }

/* ── HERO ── */
#hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-top: none;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
}
.hero-video-bg video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  opacity: 0;
  filter: grayscale(0.85) contrast(1.02) brightness(1.05);
  transition: opacity 1.6s ease;
}
.hero-video-bg video.active { opacity: 0.14; }

.hero-video-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.85) 78%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 56px 0 32px;
}

/* 4.4vw is tuned to track the container's own width so the headline never wraps inconsistently across viewport sizes. */
.hero-title {
  font-size: clamp(42px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 26px;
  min-height: 2.2em;
}

.hero-rotate {
  color: var(--red);
  display: inline-block;
}

.hero-subtitle {
  font-size: 25px;
  font-weight: 400;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.5;
}

/* ── INTRO ── */
#intro { padding: 100px 0; }
.intro-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.intro-inner p {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.2px;
  color: var(--text);
}

/* ── TWO-COLUMN SECTIONS (sovereignty / foundation) ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-reverse .split-text { order: 2; }
.split-reverse .split-visual { order: 1; }

.split-text .section-title { margin-bottom: 18px; }
.split-text .section-sub { max-width: 400px; }

/* ── DATA SOVEREIGNTY — chat mockup ── */
.chat-panel {
  border: 1px solid var(--border);
  background: var(--bg);
}
.chat-panel-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.chat-panel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
}
.chat-panel-title {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
}
.chat-panel-body { padding: 28px 26px; display: flex; flex-direction: column; gap: 22px; }

.chat-msg-user {
  align-self: flex-end;
  max-width: 82%;
  text-align: right;
}
.chat-msg-user-text {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
}
.chat-attachment {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  padding: 7px 12px;
}
.chat-attachment svg { width: 13px; height: 13px; flex-shrink: 0; stroke: var(--red); fill: none; stroke-width: 1.6; }
.chat-attachment span { font-size: 11.5px; color: var(--muted); }

.chat-msg-ai { max-width: 88%; }
.chat-msg-ai-text {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 14px;
}
.chat-summary {
  border-left: 2px solid var(--border);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.chat-summary-row { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; }
.chat-summary-label {
  flex-shrink: 0;
  width: 96px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 10.5px;
  padding-top: 2px;
}
.chat-summary-val { color: var(--muted); }

/* ── SHARED FOUNDATION — vertical ticker ── */
@keyframes tickerScrollY { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.ticker-v-wrap {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}
.ticker-v-track {
  display: flex;
  flex-direction: column;
  animation: tickerScrollY 22s linear infinite;
  will-change: transform;
}
.ticker-v-entry {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}

/* ── COMPLIANCE — world map ── */
.map-wrap {
  position: relative;
  width: 100%;
}
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-land { fill: rgba(10,10,10,0.85); }

/* ── CONTACT ── */
#contact .container { max-width: 620px; }
.contact-header { text-align: center; margin-bottom: 56px; }
.contact-header .section-title { margin-bottom: 12px; }

#contact-form { margin-top: 8px; }
.contact-submit-row { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.form-status {
  font-size: 13.5px;
  color: var(--muted);
}
.form-status.success { color: var(--text); font-weight: 500; }
.form-status.error { color: var(--red); }

/* ── PHILOSOPHY ── */
#philosophy { text-align: center; }
.philosophy-inner { max-width: 680px; margin: 0 auto; }
.philosophy-body {
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.85;
  margin-top: 20px;
}

/* ── MOBILE ── */
@media (max-width: 960px) {
  section { padding: 80px 0; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-reverse .split-text,
  .split-reverse .split-visual,
  .split-text, .split-visual { order: initial; }
}

@media (max-width: 640px) {
  .hero-title { letter-spacing: -1px; }
  .chat-panel-body { padding: 20px 18px; }
}
