/* DartPeak Venture Council - Coming Soon
   Pure CSS3. All colors, spacing, type and effects are variables. */

:root {
  color-scheme: light;
  --bg: #f4f7fa;
  --surface: #ffffff;
  --text: #0c1a2a;
  --muted: #4b5d70;
  --line: #d5dee8;
  --accent: #0e86c9;
  --accent-2: #14a98f;
  --layer-fill: rgba(14, 134, 201, 0.05);
  --layer-line: rgba(14, 134, 201, 0.35);
  --plate-shadow: 0 18px 36px rgba(12, 26, 42, 0.14);
  --tag-bg: #ffffff;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --gap: clamp(24px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --theme-time: .35s;

  /* 3D depth (set by JS from config, safe defaults here) */
  --perspective: 1000px;
  --z-back: -110px;
  --z-mid: -55px;
  --z-tag: 70px;
  --float-time: 7s;
}

/* Dark palette (explicit choice) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1220;
  --surface: #121d30;
  --text: #eaf1f8;
  --muted: #9fb1c4;
  --line: #22324a;
  --accent: #38a9e6;
  --accent-2: #2cc4a8;
  --layer-fill: rgba(56, 169, 230, 0.06);
  --layer-line: rgba(56, 169, 230, 0.4);
  --plate-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  --tag-bg: #162338;
}

/* Dark palette (automatic) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --bg: #0a1220;
    --surface: #121d30;
    --text: #eaf1f8;
    --muted: #9fb1c4;
    --line: #22324a;
    --accent: #38a9e6;
    --accent-2: #2cc4a8;
    --layer-fill: rgba(56, 169, 230, 0.06);
    --layer-line: rgba(56, 169, 230, 0.4);
    --plate-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    --tag-bg: #162338;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Smooth theme transitions, only while the user is switching */
html.theme-anim, html.theme-anim body, html.theme-anim .plate, html.theme-anim .tag,
html.theme-anim .theme-btn, html.theme-anim .layer, html.theme-anim .foot {
  transition: background-color var(--theme-time) ease, color var(--theme-time) ease,
              border-color var(--theme-time) ease, box-shadow var(--theme-time) ease;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
}

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 8px;
}
.brand {
  margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text);
}
.theme-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme-btn:hover { border-color: var(--accent); }
.theme-btn:focus-visible, .stage:focus-visible, .social a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.ico { display: block; }
.ico-sun { display: none; }
:root[data-theme="dark"] .ico-sun { display: block; }
:root[data-theme="dark"] .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .ico-sun { display: block; }
  :root:not([data-theme]) .ico-moon { display: none; }
}

/* Hero */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--gap);
  padding: clamp(16px, 4vw, 40px) 0;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; }
}

.copy { max-width: 36rem; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); flex: none; }
h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5.2vw + .4rem, 3.6rem);
  line-height: 1.08; letter-spacing: -.02em; font-weight: 750;
}
.desc { margin: 0 0 20px; color: var(--muted); font-size: clamp(1rem, .6vw + .9rem, 1.15rem); }
.tagline {
  margin: 0; padding-left: 14px; border-left: 3px solid var(--accent);
  font-weight: 600; color: var(--text);
}

/* 3D visual */
.visual { display: grid; place-items: center; }
.stage {
  position: relative;
  width: min(86vw, 400px);
  aspect-ratio: 1 / 1;
  perspective: var(--perspective);
  touch-action: pan-y;
  cursor: grab;
  border-radius: var(--radius);
  contain: layout;
}
.scene {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
  will-change: transform;
}
.scene.live { transition: transform .12s linear; }

.d { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; }
.d-back { transform: translateZ(var(--z-back)); }
.d-mid  { transform: translateZ(var(--z-mid)); }
.d-core { transform: translateZ(0); }

.layer {
  width: 92%; aspect-ratio: 1 / 1;
  border: 1px solid var(--layer-line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--layer-fill);
}
.d-mid .layer { width: 76%; }

.plate {
  width: min(52vw, 220px); aspect-ratio: 1 / 1;
  background: #ffffff; /* logo is supplied on white; keep it unmodified in both themes */
  border-radius: var(--radius);
  box-shadow: var(--plate-shadow);
  display: grid; place-items: center;
  overflow: hidden;
}
.plate img { width: 100%; height: 100%; object-fit: contain; display: block; }
.plate img[hidden] { display: none; }
.logo-fallback {
  font-weight: 800; font-size: clamp(2.4rem, 8vw, 3.4rem); letter-spacing: .06em; color: #0c1a2a;
}
.logo-fallback[hidden] { display: none; }

.d-tag { pointer-events: none; transform: translateZ(var(--z-tag)); display: block; }
.d-tag > .f { position: absolute; }
.t1 > .f { left: 2%;  top: 12%; }
.t2 > .f { right: 0;  top: 46%; }
.t3 > .f { left: 8%;  bottom: 10%; }
.tag {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--tag-bg); color: var(--text);
  font-size: .78rem; font-weight: 650; letter-spacing: .04em; white-space: nowrap;
}

/* Subtle float (transform only) */
.f { animation: float var(--float-time) ease-in-out infinite; }
.f2 { animation-delay: -2s; }
.f3 { animation-delay: -4s; }
.f4 { animation-delay: -5.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Entrance */
.copy > *, .stage, .foot {
  animation: rise .8s var(--ease) both;
}
.copy > :nth-child(2) { animation-delay: .06s; }
.copy > :nth-child(3) { animation-delay: .12s; }
.copy > :nth-child(4) { animation-delay: .18s; }
.stage { animation-delay: .1s; }
.foot  { animation-delay: .24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding: 20px 0 calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.foot p { margin: 0; }
.parent strong { color: var(--text); }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 18px; flex-wrap: wrap; }
.social[hidden] { display: none; }
.social a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; display: inline-block; }
.social a:hover { color: var(--accent); }
.legal { flex-basis: 100%; font-size: .78rem; }
@media (min-width: 700px) { .legal { flex-basis: auto; } }

/* Small phones */
@media (max-width: 420px) {
  .tag { font-size: .72rem; padding: 6px 11px; }
  .brand { letter-spacing: .12em; font-size: .72rem; }
}

/* Reduced motion: no float, no entrance, no tilt transitions */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .f, .copy > *, .stage, .foot { animation: none; }
  .scene, .scene.live { transition: none; will-change: auto; }
}
html.no-motion .f, html.no-motion .copy > *, html.no-motion .stage, html.no-motion .foot { animation: none; }
html.no-motion .scene, html.no-motion .scene.live { transition: none; }
