/* ============================================
   DOMINARE GLOBAL — Corporate Holding Company
   Palette: Deep charcoal (#09090B) + warm gold (#C4A052)
   Fonts: Cormorant Garamond (display) + Inter (body)
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg-primary: #09090B;
  --bg-secondary: #0D0D0F;
  --bg-tertiary: #060608;
  --bg-card: rgba(255, 255, 255, 0.018);
  --border-subtle: rgba(255, 255, 255, 0.055);
  --border-accent: rgba(196, 160, 82, 0.18);

  --text-primary: #F0EDE8;
  --text-secondary: #9B9792;
  --text-muted: #5C5A56;
  --accent: #C4A052;
  --accent-light: #D4B062;
  --accent-dim: rgba(196, 160, 82, 0.10);
  --accent-glow: rgba(196, 160, 82, 0.25);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --section-padding: clamp(80px, 12vw, 150px);
  --content-max: 1200px;
  --header-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- 3D Canvas --- */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 2s var(--ease-out-expo);
  pointer-events: none;
}
#hero-canvas.loaded {
  opacity: 1;
}

/* --- Atmospheric Overlays --- */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse at 50% 38%,
    rgba(196, 160, 82, 0.03) 0%,
    transparent 55%
  );
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse at 50% 45%,
    transparent 35%,
    rgba(9, 9, 11, 0.6) 100%
  );
}

/* ============================================
   HEADER (Fixed)
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}
.header.scrolled {
  background: rgba(9, 9, 11, 0.85);
  border-bottom-color: var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-inner {
  width: 100%;
  max-width: var(--content-max);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-primary);
  user-select: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.header-logo:hover {
  opacity: 1;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--text-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 2rem 4rem;
}
.hero-inner {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 0 100px rgba(196, 160, 82, 0.05);
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.hero-description {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  letter-spacing: 0.01em;
}

/* Preview / draft notice */
.hero-preview-notice {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  max-width: 500px;
  line-height: 1.6;
  padding: 0.7rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
}

/* Keyframe Studios callout on hero */
.hero-venture-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.callout-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
}
.callout-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 0.65rem 1.6rem;
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  background: rgba(196, 160, 82, 0.04);
  transition: background 0.35s ease, border-color 0.35s ease,
              box-shadow 0.35s ease, gap 0.3s var(--ease-out-expo);
}
.callout-link:hover {
  background: rgba(196, 160, 82, 0.08);
  border-color: rgba(196, 160, 82, 0.35);
  box-shadow: 0 0 24px rgba(196, 160, 82, 0.1);
  gap: 0.85rem;
}
.callout-link .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
  font-size: 1rem;
}
.callout-link:hover .arrow {
  transform: translateX(3px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.45;
}
.scroll-line {
  width: 1px;
  height: 36px;
  position: relative;
  overflow: hidden;
  opacity: 0.3;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--accent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================
   GENERIC SECTION
   ============================================ */
.section {
  position: relative;
  z-index: 2;
  padding: var(--section-padding) 2rem;
}
.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 1.5rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 3.5rem;
  line-height: 1.2;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.section-philosophy {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 1rem;
}
.pillar {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.pillar-number {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.5;
  display: block;
  margin-bottom: 1.25rem;
}
.pillar-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  letter-spacing: 0.015em;
  line-height: 1.3;
}
.pillar-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: 0.005em;
}

/* ============================================
   VENTURES SECTION
   ============================================ */
.section-ventures {
  background: var(--bg-primary);
}
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
}
.venture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.venture-card.placeholder {
  opacity: 0.4;
  pointer-events: none;
}

/* Venture status badge */
.venture-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(196, 160, 82, 0.4);
}
.status-dot.pending {
  background: var(--text-muted);
  opacity: 0.5;
}

.venture-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.venture-description {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

/* ============================================
   CONTACT / STATUS SECTION
   ============================================ */
.section-contact {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}
.section-contact-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-contact-inner .section-label {
  text-align: center;
}
.contact-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.25rem;
}

/* Notify form */
.notify-form {
  width: 100%;
  max-width: 420px;
}
.form-group {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(196, 160, 82, 0.12);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.012);
  transition: border-color 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}
.form-group:focus-within {
  border-color: rgba(196, 160, 82, 0.35);
  box-shadow: 0 0 0 3px rgba(196, 160, 82, 0.06);
}
.form-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.85rem 1.15rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  outline: none;
  min-width: 0;
}
.form-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}
.form-group button {
  background: var(--accent);
  border: none;
  padding: 0.85rem 1.5rem;
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  touch-action: manipulation;
}
.form-group button:hover {
  background: var(--accent-light);
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(196, 160, 82, 0.12);
}
.form-group button:active {
  transform: scale(0.98);
}
.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}
.success-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 2;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 2rem 2.5rem;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.footer-logo {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.7;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.footer-links {
  display: flex;
  gap: 1.75rem;
}
.footer-links a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}
.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--border-subtle);
}
.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.35;
}

/* ============================================
   ENTRANCE ANIMATIONS (Hero — CSS-driven)
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) forwards;
}
.reveal-delay-1 { animation-delay: 0.2s; }
.reveal-delay-2 { animation-delay: 0.5s; }
.reveal-delay-3 { animation-delay: 0.8s; }
.reveal-delay-4 { animation-delay: 1.1s; }

/* ============================================
   SCROLL REVEAL ANIMATIONS (IntersectionObserver)
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out-expo),
              transform 0.85s var(--ease-out-expo);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grids */
.pillars .scroll-reveal:nth-child(2) { transition-delay: 0.12s; }
.pillars .scroll-reveal:nth-child(3) { transition-delay: 0.24s; }

.ventures-grid .scroll-reveal:nth-child(2) { transition-delay: 0.12s; }

/* ============================================
   SELECTION & SCROLLBAR
   ============================================ */
::selection {
  background: var(--accent-dim);
  color: var(--text-primary);
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 2px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .pillars {
    gap: 2rem;
  }
  .ventures-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  .header-inner {
    padding: 0 1.5rem;
  }
  .hero {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pillar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .pillar:not(:last-child) {
    border-bottom: 1px solid var(--border-subtle);
  }
  .ventures-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .venture-card {
    min-height: auto;
    padding: 1.75rem 1.5rem;
  }
  .form-group {
    flex-direction: column;
    border-radius: 8px;
  }
  .form-group input {
    text-align: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(196, 160, 82, 0.06);
  }
  .footer {
    padding: 2.5rem 1.5rem 2rem;
  }
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
  }
  .hero-title {
    letter-spacing: 0.03em;
  }
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 2.8rem;
  }
}
