/* VoltEdge Innovation Community — simple two-section interface */

:root {
  --bg: #0b0d10;
  --surface: #111419;
  --raised: #171b21;
  --hairline: rgba(236, 233, 226, 0.08);
  --hairline-strong: rgba(236, 233, 226, 0.16);
  --text: #ece9e2;
  --secondary: #a7a29a;
  --muted: #75716b;
  --accent: #f3bc17;
  --accent-ink: #0b0d10;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --bar: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); scroll-behavior: smooth; scrollbar-width: none; -webkit-text-size-adjust: 100%; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .unlock-panel::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.6; overflow-x: hidden; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; -webkit-user-select: none; user-select: none; -webkit-appearance: none; appearance: none; }
::-webkit-focus-inner { border: 0; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }

/* header */
.topbar { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--bar); background: var(--bg); border-bottom: 1px solid var(--hairline); }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: block; width: 24px; height: auto; }
.brand-name { font-size: 16px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--secondary); font-size: 14px; padding: 8px 0; transition: color 160ms var(--ease); }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active { box-shadow: inset 0 -1px 0 var(--accent); }
.nav-rule { width: 1px; height: 16px; background: var(--hairline-strong); }

/* views */
.view { display: none; }
.view.is-active { display: block; animation: enter 240ms var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 500; line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 24px; }
h2 { font-size: 24px; font-weight: 500; line-height: 1.2; margin-bottom: 24px; }
.eyebrow { margin: 0 0 24px; color: var(--secondary); font-size: 14px; }
.lead { color: var(--secondary); font-size: 18px; line-height: 28px; max-width: 36rem; margin-bottom: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-note { color: var(--muted); font-size: 13px; margin: 16px 0 0; text-align: center; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffcb3d; }
.btn-secondary { background: var(--raised); color: var(--text); border-color: var(--hairline-strong); }
.btn-secondary:hover { background: #1e232a; }
.apply-note { margin: 16px 0 0; color: var(--secondary); font-size: 13px; max-width: 36rem; }

/* home intro */
.intro { padding-top: calc(var(--bar) + 96px); padding-bottom: 64px; }

/* live device-time timeline */
.timeline { padding-bottom: 64px; text-align: center; }
.time-zone { display: block; text-align: center; color: var(--secondary); margin-bottom: 16px; font-size: 13px; }
.time-readout { display: flex; justify-content: center; margin: 24px 0 20px; }
.clock { color: var(--accent); font-family: Consolas, "IBM Plex Mono", monospace; font-size: clamp(32px, 5vw, 52px); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; text-align: center; }
.time-track { position: relative; height: 2px; background: var(--hairline-strong); margin: 24px 0 12px; }
.time-marker { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; transform: translate(-50%, -50%); display: grid; place-items: center; }
.time-marker img { width: 14px; height: 14px; display: block; }
.time-labels { display: flex; justify-content: space-between; color: var(--muted); }
.time-labels span { position: relative; padding-top: 12px; }
.time-labels span::before { content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 8px; background: var(--hairline-strong); }
.time-labels span:last-child::before { left: auto; right: 0; }

/* about */
.about-intro { padding-top: calc(var(--bar) + 96px); padding-bottom: 48px; }
.about-intro p { color: var(--secondary); max-width: 44rem; margin-bottom: 16px; }
.about-divisions, .about-body { padding-bottom: 48px; }
.about-divisions h2 { font-size: 24px; margin-bottom: 24px; }
.division-list { border-top: 1px solid var(--hairline); }
.division-row { display: grid; grid-template-columns: 32px 56px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 64px; border-bottom: 1px solid var(--hairline); }
.division-row .mono { color: var(--muted); }
.division-row strong { font-size: 18px; font-weight: 500; }
.division-row span:last-child { color: var(--secondary); font-size: 14px; }
.about-body p { color: var(--secondary); max-width: 44rem; margin-bottom: 16px; }
.about-body strong { color: var(--text); font-weight: 500; }
.tagline { color: var(--text); font-size: 18px; }
.founded { color: var(--muted); font-size: 13px; }

/* footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; border-top: 1px solid var(--hairline); color: var(--secondary); font-size: 13px; }
.footer-copy { display: flex; flex-direction: column; gap: 4px; }
.footer-tagline { color: var(--muted); }
.linkedin { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--hairline-strong); border-radius: 10px; color: var(--secondary); transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.linkedin:hover { color: var(--accent); border-color: var(--accent); }
.linkedin svg { width: 24px; height: 24px; fill: currentColor; }

/* confirmation dialog */
.unlock { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.unlock[hidden] { display: none; }
.unlock-backdrop { position: absolute; inset: 0; background: rgba(6, 8, 10, 0.9); }
.unlock-panel { position: relative; width: min(480px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 32px; background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 16px; }
.unlock-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; border-radius: 4px; background: transparent; color: var(--secondary); font-size: 20px; line-height: 1; cursor: pointer; }
.unlock-close:hover { color: var(--accent); }
.step-kicker { display: block; color: var(--secondary); margin-bottom: 16px; }
.unlock-panel h2 { font-size: 28px; margin-bottom: 12px; }
.step-copy { color: var(--secondary); font-size: 14px; margin-bottom: 24px; }
.confirm-block { border-top: 1px solid var(--hairline); padding-top: 24px; margin-top: 24px; }
.confirm-btn { border: 1px solid var(--hairline-strong); border-radius: 8px; padding: 12px 16px; background: var(--raised); font-size: 14px; cursor: pointer; transition: background-color 160ms var(--ease); }
.confirm-btn:hover { background: #1e232a; }
#unlockDone { border-top: 1px solid var(--hairline); padding-top: 24px; margin-top: 24px; }
#unlockDone[hidden] { display: none; }
.join-btn { width: 100%; }
body.modal-open { overflow: hidden; }

@media (max-width: 720px) {
  :root { --bar: 56px; }
  .intro, .about-intro { padding-top: calc(var(--bar) + 48px); padding-bottom: 48px; }
  h1 { font-size: clamp(36px, 9vw, 44px); }
  .lead { font-size: 16px; line-height: 24px; }
  .actions { flex-direction: column; align-items: stretch; }
  .timeline { padding-bottom: 48px; text-align: center; }
  .time-zone, .time-readout, .clock, .time-track, .time-labels { width: 100%; }
  .time-readout { justify-content: center; }
  .time-labels { justify-content: space-between; }
  .section-note { text-align: center; }
  .about-divisions, .about-body { padding-bottom: 48px; }
  .division-row { grid-template-columns: 28px 48px minmax(0, 1fr); gap: 12px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
  .unlock { padding: 16px; }
  .unlock-panel { max-height: calc(100vh - 32px); padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view.is-active { animation: none; }
  .btn:active { transform: none; }
}
