/* ===========================================================================
   landing/style.css — DigitalSouls public landing (v6.6.0.0, 2026-05-09)
   ---------------------------------------------------------------------------
   Dark cinematic theme matching the avatar viewer (#10121f canvas bg).
   Single-page, max-width 1200px, no JS framework, system font stack.
   Floating avatar widget bottom-right — collapsed bubble + expanded panel.
   =========================================================================== */

:root {
  --bg:        #10121f;
  --bg-card:   #181b2c;
  --bg-deep:   #0a0c14;
  --border:    #2a2e44;
  --border-soft: #1f2335;
  --text:      #e7e9f5;
  --text-mute: #8b90a8;
  --accent:    #6c63ff;
  --accent-hover: #8478ff;
  --accent-2:  #5dd5e9;
  --shadow-1:  0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-2:  0 20px 60px rgba(0, 0, 0, 0.6);
  --radius:    12px;
  --radius-lg: 16px;
  --content-max: 1200px;
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', 'SF Mono', monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

/* ============== nav ====================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(16, 18, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.2px;
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 16px rgba(108, 99, 255, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-mute);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--text) !important;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

/* ============== hero ===================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 32px 120px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; max-width: 760px; }

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin: 0 0 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #b9bccf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-mute);
  margin: 0 0 36px;
  max-width: 640px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.hero-hint {
  color: var(--text-mute);
  font-size: 14px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hint-arrow {
  display: inline-block;
  font-size: 18px;
  color: var(--accent-2);
  animation: hint-bounce 2.4s ease-in-out infinite;
}
@keyframes hint-bounce {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(4px, 4px); }
}

/* hero stage — ambient orb in the background, decorative only */
.hero-stage {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}
.orb {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(108, 99, 255, 0.4) 0%,
    rgba(93, 213, 233, 0.15) 35%,
    transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: orb-drift 12s ease-in-out infinite;
}
.orb-glow {
  position: absolute;
  inset: 25%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-drift 8s ease-in-out infinite reverse;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-20px, 20px) scale(1.05); }
}

/* ============== sections ================================================== */

.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 80px 32px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.5px;
  margin: 0 0 24px;
  font-weight: 700;
}

.section-about p {
  font-size: 18px;
  color: var(--text-mute);
  max-width: 720px;
  line-height: 1.7;
}

/* ============== capabilities ============================================== */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cap-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(108, 99, 255, 0.12);
  color: var(--accent-2);
  border-radius: 10px;
  font-size: 22px;
  margin-bottom: 16px;
}

.cap-card h3 {
  font-size: 20px;
  margin: 0 0 12px;
  font-weight: 600;
}

.cap-card p {
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.snippet {
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: #c9cdd9;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}
.snippet .tag  { color: #5dd5e9; }
.snippet .attr { color: #c8a5ff; }
.snippet .str  { color: #f2c97f; }
.snippet .key  { color: #e7e9f5; }
.snippet .num  { color: #f2c97f; }

/* ============== contact + footer ========================================== */

.section-contact { padding-bottom: 60px; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
}
.contact-list li:last-child { border-bottom: 1px solid var(--border-soft); }
.contact-label {
  color: var(--text-mute);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  width: 80px;
}
.contact-list a {
  font-family: var(--font-mono);
  font-size: 14px;
}

.footer {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-mute);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-sep { opacity: 0.5; }

/* ============== floating widget =========================================== */

.ds-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
}

.ds-widget-bubble {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-1), 0 0 24px rgba(108, 99, 255, 0.45);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds-widget-bubble:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-2), 0 0 32px rgba(108, 99, 255, 0.65);
}
.ds-widget-bubble-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  position: relative;
}
.ds-widget-bubble-mark::before,
.ds-widget-bubble-mark::after {
  content: '';
  position: absolute;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.ds-widget-bubble-mark::before { left: 5px; }
.ds-widget-bubble-mark::after  { right: 5px; }
.ds-widget-bubble-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0;   }
}

/* expanded panel */
.ds-widget-panel {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 360px;
  height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ds-widget[data-state="expanded"] .ds-widget-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ds-widget[data-state="expanded"] .ds-widget-bubble {
  display: none;
}

.ds-widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-soft);
}
.ds-widget-title {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.ds-widget-fs,
.ds-widget-close {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-mute);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.ds-widget-fs:hover,
.ds-widget-close:hover {
  background: var(--border-soft);
  color: var(--text);
}
.ds-widget-close { font-size: 22px; line-height: 1; }

.ds-widget-stage {
  flex: 1;
  background: var(--bg-deep);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 0;
}
.ds-widget-stage digitalsouls-avatar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
}

.ds-widget-controls {
  padding: 12px 14px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ds-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ds-preset {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-mute);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ds-preset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ds-widget-input {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ds-widget-input input {
  flex: 1;
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease;
}
.ds-widget-input input:focus { border-color: var(--accent); }
.ds-widget-input input::placeholder { color: var(--text-mute); }
.ds-widget-input button {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ds-widget-input button:hover { background: var(--accent-hover); }

/* ============== mobile (≤880px) =========================================== */

@media (max-width: 880px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding: 40px 20px 80px; min-height: auto; }
  .hero-stage { width: 400px; height: 400px; right: -200px; opacity: 0.35; }
  .hero-cta { margin-bottom: 48px; }
  .btn { padding: 12px 22px; font-size: 15px; }

  .section { padding: 56px 20px; }

  .cap-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cap-card { padding: 22px; }

  .footer { padding: 24px 20px; }

  .ds-widget { bottom: 16px; right: 16px; }
  .ds-widget-bubble { width: 56px; height: 56px; }
  .ds-widget-bubble-mark { width: 18px; height: 18px; }
  .ds-widget-bubble-mark::before,
  .ds-widget-bubble-mark::after { top: 5px; width: 3px; height: 3px; }
  .ds-widget-bubble-mark::before { left: 4px; }
  .ds-widget-bubble-mark::after  { right: 4px; }
  .ds-widget-panel {
    width: calc(100vw - 32px);
    height: 70vh;
    max-height: 560px;
  }
}

/* prefers-reduced-motion: cut animations */
@media (prefers-reduced-motion: reduce) {
  .orb, .orb-glow, .hint-arrow, .ds-widget-bubble-pulse {
    animation: none !important;
  }
  * { transition-duration: 0.01ms !important; }
}
