﻿/* WE Control homepage — Phase 2 design prototype (owner-corrected revision).
   Fluid layout · official brand color system · motion per we-control-web-motion skill.
   Local design-validation build: no backend, no analytics, no deployment. */

:root {
  /* Official WE Control identity (from logo: Pantone 2202 CP / Mockingbird) */
  --brand: #00A7E1;          /* primary cyan */
  --brand-deep: #006E94;     /* darker tone, same hue family */
  --brand-deeper: #09465E;   /* deepest accent tone */
  --brand-light: #7FD4EE;    /* lighter tone, same hue family */
  --grey: #77787B;           /* neutral grey reference */

  /* Surfaces */
  --ink-950: #0A0F14;        /* dark control-room base (blue-black) */
  --ink-900: #0E141B;
  --ink-850: #121A23;        /* raised dark surface */
  --ink-800: #17212B;
  --line-dark: rgba(255, 255, 255, 0.09);
  --paper: #F4F6F8;          /* light evidence surface */
  --paper-card: #FFFFFF;
  --line-light: #DCE3E9;

  /* Text */
  --text-dark-bg: #E9EEF3;
  --text-dark-mute: #9AA8B5;
  --text-light-bg: #16202A;
  --text-light-mute: #5A6772;

  --cta-ink: #04222E;        /* text on cyan buttons */
  --sans: -apple-system, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius-s: 4px;
  --radius-m: 8px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--ink-950);
  color: var(--text-dark-bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(27px, 3vw, 38px); line-height: 1.14; letter-spacing: -0.014em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 650;
  border: 1px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-try { background: var(--brand); color: var(--cta-ink); }
.btn-try:hover { background: var(--brand-deep); color: #FFFFFF; }
.btn-book { border-color: rgba(255,255,255,0.3); color: var(--text-dark-bg); }
.btn-book:hover { border-color: var(--brand); color: var(--brand-light); }
.btn-outline { border-color: rgba(255,255,255,0.32); color: var(--text-dark-bg); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-light); }
.text-link { color: var(--brand); font-weight: 600; }
.text-link:hover { color: var(--brand-light); }

/* ---------- 0 header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px);
  height: var(--header-h); display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); margin-left: 16px; flex-wrap: nowrap; }
.main-nav > a {
  font-size: clamp(12.5px, 1.05vw, 14.5px); font-weight: 550; color: var(--text-dark-bg);
  background: none; border: 0; padding: 6px 0; cursor: pointer; white-space: nowrap;
  font-family: inherit; opacity: 0.85;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}
.main-nav > a:hover { opacity: 1; color: var(--brand-light); }
.main-nav > a.is-active { color: var(--brand); border-bottom-color: var(--brand); opacity: 1; }
.header-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; flex: 0 0 auto; }

.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; padding: 10px 0; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { display: block; width: 22px; height: 2px; background: var(--text-dark-bg); margin: 5px 0; }
.mobile-panel { display: grid; gap: 4px; padding: 12px 0 20px; }
.mobile-panel > a { padding: 10px 4px; font-weight: 600; font-size: 15px; }
.mobile-panel .btn { text-align: center; margin-top: 6px; }

/* ---------- 1 hero — full-bleed real product interface ---------- */
.hero {
  position: relative;
  min-height: max(640px, calc(100vh - var(--header-h)));
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 100% 35%;
  animation: heroDrift 46s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroDrift {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.03) translateX(-1.2%); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,15,20,0.96) 0%, rgba(10,15,20,0.9) 34%, rgba(10,15,20,0.55) 58%, rgba(10,15,20,0.18) 82%, rgba(10,15,20,0.3) 100%),
    linear-gradient(180deg, rgba(10,15,20,0.6) 0%, rgba(10,15,20,0.12) 34%, rgba(10,15,20,0.12) 70%, rgba(10,15,20,0.62) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1440px; width: 100%; margin: 0 auto;
  padding: calc(var(--header-h) + clamp(32px, 6vh, 72px)) clamp(20px, 3vw, 40px) clamp(48px, 8vh, 96px);
}
.hero-content > * { animation: heroEntry 640ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero-content h1 { animation-delay: 80ms; }
.hero-content .brand-line { animation-delay: 190ms; }
.hero-content .hero-def { animation-delay: 300ms; }
.hero-content .hero-actions { animation-delay: 410ms; }
@keyframes heroEntry {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.brand-line {
  margin: 18px 0 0; font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600; letter-spacing: 0.01em;
}
.brand-line em { font-style: normal; color: var(--brand); font-weight: 800; }
.hero-def {
  margin: 20px 0 0; max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-dark-bg);
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  position: absolute; left: clamp(20px, 3vw, 40px); bottom: 16px; z-index: 1;
  margin: 0; font-size: 12px; color: var(--text-dark-mute);
}

/* ---------- 2 capabilities — AI concept-art stage, editorial ---------- */
.capabilities { background: var(--paper); color: var(--text-light-bg); padding: clamp(64px, 8vw, 104px) 0; }
.section-head { max-width: 880px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); }
.capabilities .section-head h2 { color: var(--text-light-bg); }
.section-head p { margin: 14px 0 0; font-size: clamp(15.5px, 1.4vw, 17.5px); max-width: 62ch; }
.capabilities .section-head p { color: var(--text-light-mute); }
.in-action .section-head p { color: var(--text-dark-mute); }

.cap-wrap {
  max-width: 1440px; margin: clamp(32px, 4vw, 56px) auto 0; padding: 0 clamp(20px, 3vw, 40px);
  display: grid; grid-template-columns: minmax(220px, 0.62fr) 2fr minmax(210px, 0.66fr);
  gap: clamp(24px, 2.8vw, 44px); align-items: stretch;
}
.cap-tabs { display: flex; flex-direction: column; gap: 4px; align-self: center; position: relative; }
.cap-tab {
  display: flex; align-items: center; gap: 12px;
  background: none; border: 0; border-left: 2px solid transparent;
  padding: 15px 14px 15px 16px; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 15px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--text-light-mute); position: relative;
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.cap-tab .cap-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #C6D0D8; flex: 0 0 auto;
  transition: background-color 220ms ease;
}
.cap-tab:hover { color: var(--text-light-bg); transform: translateX(2px); }
.cap-tab.is-active { color: var(--brand-deep); border-left-color: var(--brand); transform: translateX(4px); }
.cap-tab.is-active .cap-dot { background: var(--brand); }

.cap-stage-frame { min-width: 0; max-width: 640px; width: 100%; margin: 0 auto; position: relative; }
/* approved owner manual illustrations: transparent PNG front-facing UI —
   no stage background, no frame, no zoom; the artwork sits on the section */
.cap-stage { position: relative; }
.cap-stage.cap-stage-manual {
  background: transparent;
  min-height: 0;
}
.cap-stage-manual .cap-visual {
  position: relative; left: auto; top: auto; width: 100%; height: auto; max-width: 100%;
  object-fit: contain;
  display: none;
  opacity: 1; transform: none; transition: none;
}
.cap-stage-manual .cap-visual.is-active { display: block; opacity: 1; transform: none; animation: capManualIn 480ms cubic-bezier(0.2, 0.6, 0.2, 1); }
@keyframes capManualIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.cap-caption { margin: 10px 2px 0; font-size: 12px; color: var(--text-light-mute); }

.cap-info { display: flex; flex-direction: column; justify-content: center; gap: 16px; position: relative; z-index: 1; }
.cap-info::before {
  content: ""; display: block; width: 34px; height: 2px;
  background: var(--brand); margin-bottom: 4px;
}
.cap-value { margin: 0; font-size: clamp(16px, 1.4vw, 18px); color: var(--text-light-bg); font-weight: 550; max-width: 30ch; }
.cap-link {
  align-self: flex-start; font-weight: 650; font-size: 14.5px; color: var(--text-light-bg);
  border-bottom: 2px solid var(--brand); padding-bottom: 2px;
  transition: color 140ms ease, border-color 140ms ease;
}
.cap-link:hover { color: var(--brand-deep); }

/* ---------- 3 how-it-connects — compact transition statement ---------- */
.connect { padding: clamp(36px, 4vw, 50px) clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--line-dark); text-align: center; }
.connect-transition h2 { color: var(--text-dark-bg); }
.connect-transition p { margin: 14px auto 0; max-width: 60ch; font-size: clamp(15.5px, 1.4vw, 17.5px); color: var(--text-dark-mute); }
.connect .section-head h2 { color: var(--text-dark-bg); }
.connect .section-head p { color: var(--text-dark-mute); }
.connect-proof {
  max-width: 1440px; margin: clamp(40px, 5vw, 72px) auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center;
}
.connect-proof-copy h3 { margin: 0; font-size: clamp(21px, 2.2vw, 28px); color: var(--text-dark-bg); }
.connect-proof-copy p { margin: 16px 0 0; color: var(--text-dark-mute); font-size: clamp(15px, 1.4vw, 17px); max-width: 56ch; }
.connect-proof-visual { margin: 0; min-width: 0; }
.connect-proof-visual img { border: 1px solid var(--line-dark); border-radius: var(--radius-m); width: 100%; height: auto; display: block; }
.connect-proof-visual figcaption { padding-top: 10px; font-size: 12px; color: var(--text-dark-mute); }

/* ---------- 4 video ---------- */
.in-action { padding: clamp(72px, 9vw, 112px) clamp(20px, 3vw, 40px); background: var(--ink-900); border-bottom: 1px solid var(--line-dark); }
.in-action .section-head { text-align: left; padding: 0; max-width: 1440px; margin: 0 auto; }
.video-frame {
  max-width: 1080px; margin: clamp(32px, 4vw, 56px) auto 0;
  border: 1px solid var(--line-dark); border-radius: 12px;
  overflow: hidden; background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }

/* ---------- 5 book a demo ---------- */
.book-demo { padding: clamp(72px, 9vw, 120px) clamp(20px, 3vw, 40px); background: var(--paper); color: var(--text-light-bg); }
.book-demo-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start;
}
.book-demo-copy h2 { color: var(--text-light-bg); font-size: clamp(30px, 3.6vw, 46px); }
.book-demo-copy .brand-line { color: var(--text-light-bg); }
.book-demo-lead { margin: 20px 0 0; color: var(--text-light-mute); font-size: clamp(15.5px, 1.4vw, 17.5px); max-width: 44ch; }
.book-demo-form {
  background: #FFFFFF; border: 1px solid var(--line-light); border-radius: 12px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 14px 36px rgba(22, 32, 42, 0.08);
  display: grid; gap: 16px; min-width: 0;
}
.form-note { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-light-bg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.book-demo-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-light-bg); min-width: 0; }
.book-demo-form .optional { font-weight: 400; color: var(--text-light-mute); }
.book-demo-form input, .book-demo-form textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--text-light-bg);
  border: 1px solid var(--line-light); border-radius: 6px; padding: 11px 12px;
  background: #FBFCFD; width: 100%; max-width: 100%;
}
.book-demo-form input:focus, .book-demo-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.book-demo-form textarea { resize: vertical; min-height: 72px; }
.form-full { display: grid; gap: 6px; }
.form-submit { justify-self: start; cursor: pointer; }
.form-backend-note { margin: 0; font-size: 12px; color: var(--text-light-mute); }

/* ---------- 6 footer ---------- */
.site-footer { border-top: 1px solid var(--line-dark); background: var(--ink-950); }
.footer-grid {
  max-width: 1440px; margin: 0 auto; padding: 56px clamp(20px, 3vw, 40px) 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer-logo { height: 56px; }
.footer-brand p { margin: 14px 0 0; color: var(--text-dark-mute); font-size: 14px; }
.owner-lockup { margin-top: 20px; width: 120px; color: var(--text-dark-mute); font-size: 11.5px; line-height: 1.3; }
.owner-lockup img { width: 120px; height: auto; opacity: 0.72; }
.owner-lockup span { display: block; margin-top: 5px; }
.footer-head { margin: 0 0 14px; font-size: 13px; font-weight: 700; color: var(--text-dark-bg); }
.footer-col { display: grid; gap: 9px; align-content: start; }
.footer-col a { font-size: 14px; color: var(--text-dark-mute); transition: color 140ms ease; }
.footer-col a:hover { color: var(--brand-light); }
.footer-note {
  max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px) 36px;
  font-size: 12.5px; color: var(--text-dark-mute);
}

/* ---------- scroll reveal (JS adds .in-view; only when motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(18px); }
  html.js [data-reveal].in-view { opacity: 1; transform: translateY(0); transition: opacity 560ms ease, transform 560ms ease; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg-img { animation: none; }
  .hero-content > * { animation: none; }
  .cap-visual { transition: opacity 200ms ease; transform: none; }
  * { transition-duration: 1ms !important; animation: none !important; }
}

/* ---------- responsive: full fluid system ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 16px; margin-left: 8px; }
  .main-nav > a { font-size: 13px; }
  .header-inner { gap: 16px; }
  .cap-wrap { grid-template-columns: 1fr 1.6fr; }
  .cap-info { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .cap-value { max-width: none; }
}
@media (max-width: 1024px) {
  .book-demo-grid { grid-template-columns: 1fr; gap: 36px; }
  .video-frame { max-width: 100%; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-inner { gap: 8px; }
  .header-actions { margin-left: auto; }
  .mobile-menu { display: block; margin-left: 12px; }
  .mobile-menu[open] .mobile-panel { display: grid; }
  .mobile-panel { display: grid; gap: 4px; padding: 12px clamp(20px, 3vw, 40px) 20px; }
  .connect-proof { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 58px; }
  .brand-logo { height: 38px; }
  .hero { min-height: min(92vh, 640px); }
  .hero-bg-img { object-position: 20% 38%; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(10,15,20,0.72) 0%, rgba(10,15,20,0.45) 40%, rgba(10,15,20,0.82) 100%);
  }
  .hero-actions .btn-lg, .hero-actions .btn { padding: 13px 20px; }
  .cap-wrap { grid-template-columns: 1fr; }
  .cap-tabs { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
  .cap-tab { border-left: 0; border-bottom: 3px solid var(--line-light); white-space: nowrap; padding: 10px 12px; font-size: 12.5px; flex: 0 0 auto; }
  .cap-tab.is-active { border-bottom-color: var(--brand); transform: none; }
  .cap-stage-frame { max-width: 100%; }
  .cap-info { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .book-demo-form { padding: 22px 18px; }
  .form-submit { width: 100%; text-align: center; }
  .book-demo-form input, .book-demo-form textarea { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-height: 700px) and (min-width: 961px) {
  .hero { min-height: min(92vh, 640px); }
  .hero-content { padding-top: calc(var(--header-h) + 28px); padding-bottom: 44px; }
}
