/* ==========================================================================
   Solumena AI, Inc. — Official Design System & Stylesheet
   Stealth Landing Page: Minimalist, Refined, and Brand-Aligned
   With Dual Dark / Light Mode Support
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Solumena Core Brand Constants */
  --sol-golden-lumina: #F5A623;
  --sol-golden-light: #FFD000;
  --sol-golden-dark: #D97706;
  --sol-golden-rgb: 245, 166, 35;

  --ocean-aquamarine: #008C9E;
  --ocean-aquamarine-rgb: 0, 140, 158;
  --ocean-light: #20EDF1;
  
  --azure-horizon: #2B7FFF;
  --azure-horizon-rgb: 43, 127, 255;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-theme: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;

  /* Dark Theme Tokens (Default) */
  --bg-page: #050E17;
  --bg-page-rgb: 5, 14, 23;
  --bg-gradient-overlay: radial-gradient(
    circle at 50% 45%,
    rgba(11, 27, 43, 0.25) 0%,
    rgba(5, 14, 23, 0.65) 60%,
    rgba(4, 11, 17, 0.92) 100%
  );
  --cosmic-img-opacity: 0.88;
  --cosmic-img-filter: saturate(1.15) contrast(1.1);
  --lumina-glow-opacity: 0.12;

  --text-main: #FFFFFF;
  --text-body: #D5DFE9;
  --text-subtle: #8E9EAF;
  --brand-corp-color: var(--azure-horizon);
  --brand-name-start: #FFFFFF;
  --brand-name-mid: #F7F4EB;
  --brand-name-end: var(--sol-golden-lumina);

  --card-bg: rgba(11, 27, 43, 0.58);
  --card-border: rgba(0, 140, 158, 0.28);
  --card-border-hover: rgba(245, 166, 35, 0.5);
  --card-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.65), 0 0 40px -10px rgba(0, 140, 158, 0.2);
  --card-shadow-hover: 0 28px 72px -12px rgba(0, 0, 0, 0.75), 0 0 50px -10px rgba(245, 166, 35, 0.25);
  --card-accent-line: linear-gradient(90deg, transparent 0%, var(--sol-golden-lumina) 50%, transparent 100%);

  --status-bg: rgba(245, 166, 35, 0.08);
  --status-border: rgba(245, 166, 35, 0.25);
  --status-text: #FFD000;
  --status-shadow: 0 0 24px -6px rgba(245, 166, 35, 0.18);

  --inquiry-bg: rgba(0, 140, 158, 0.15);
  --inquiry-border: rgba(0, 140, 158, 0.45);
  --inquiry-text: #FFFFFF;
  --inquiry-hover-bg: rgba(0, 140, 158, 0.3);
  --inquiry-hover-border: var(--sol-golden-lumina);
  --inquiry-arrow-color: var(--azure-horizon);

  --footer-bg: rgba(5, 14, 23, 0.6);
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-text: #8E9EAF;

  --toggle-bg: rgba(11, 27, 43, 0.65);
  --toggle-border: rgba(0, 140, 158, 0.35);
  --toggle-border-hover: rgba(245, 166, 35, 0.6);
  --toggle-color: #FFD000;
  --toggle-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

  color-scheme: dark;
}

/* Light Theme Tokens */
[data-theme="light"] {
  --bg-page: #F4F7FA;
  --bg-page-rgb: 244, 247, 250;
  --bg-gradient-overlay: radial-gradient(
    circle at 50% 45%,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(240, 245, 250, 0.82) 55%,
    rgba(230, 238, 246, 0.96) 100%
  );
  --cosmic-img-opacity: 0.32;
  --cosmic-img-filter: saturate(1.2) contrast(1.05) brightness(1.15);
  --lumina-glow-opacity: 0.22;

  --text-main: #0B1B2B;
  --text-body: #2B3A4A;
  --text-subtle: #5C7080;
  --brand-corp-color: #0070BA;
  --brand-name-start: #0B1B2B;
  --brand-name-mid: #163252;
  --brand-name-end: #D97706;

  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 140, 158, 0.22);
  --card-border-hover: rgba(245, 166, 35, 0.7);
  --card-shadow: 0 24px 60px -12px rgba(11, 27, 43, 0.12), 0 0 35px -8px rgba(0, 140, 158, 0.1);
  --card-shadow-hover: 0 28px 70px -10px rgba(11, 27, 43, 0.18), 0 0 45px -8px rgba(245, 166, 35, 0.25);
  --card-accent-line: linear-gradient(90deg, transparent 0%, var(--sol-golden-lumina) 50%, transparent 100%);

  --status-bg: rgba(245, 166, 35, 0.12);
  --status-border: rgba(217, 119, 6, 0.35);
  --status-text: #9A3412;
  --status-shadow: 0 2px 14px -2px rgba(245, 166, 35, 0.18);

  --inquiry-bg: rgba(0, 140, 158, 0.1);
  --inquiry-border: rgba(0, 140, 158, 0.38);
  --inquiry-text: #083344;
  --inquiry-hover-bg: rgba(0, 140, 158, 0.18);
  --inquiry-hover-border: #D97706;
  --inquiry-arrow-color: #008C9E;

  --footer-bg: rgba(255, 255, 255, 0.85);
  --footer-border: rgba(0, 140, 158, 0.15);
  --footer-text: #5C7080;

  --toggle-bg: rgba(255, 255, 255, 0.85);
  --toggle-border: rgba(0, 140, 158, 0.3);
  --toggle-border-hover: rgba(245, 166, 35, 0.7);
  --toggle-color: #008C9E;
  --toggle-shadow: 0 4px 16px rgba(11, 27, 43, 0.08);

  color-scheme: light;
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-body);
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.015em;
  transition: var(--transition-theme);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  position: relative;
  overflow-x: hidden;
  line-height: 1.75;
  letter-spacing: 0.015em;
  transition: var(--transition-theme);
}

/* --- Cosmic Brain Artwork Background Layer --- */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cosmic-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: var(--cosmic-img-opacity);
  filter: var(--cosmic-img-filter);
  transform: scale(1.01);
  transition: transform 1.2s var(--transition-smooth), opacity 0.5s ease, filter 0.5s ease;
}

.stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Subtle Vignette & Gradient Protection for Text Readability */
.cosmic-gradient-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-gradient-overlay);
  z-index: 2;
  transition: background 0.5s ease;
}

.lumina-glow-spot {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(245, 166, 35, var(--lumina-glow-opacity)) 0%,
    rgba(0, 140, 158, 0.08) 45%,
    transparent 75%
  );
  filter: blur(40px);
  z-index: 2;
  pointer-events: none;
  animation: luminaBreathing 8s ease-in-out infinite alternate;
  transition: background 0.5s ease;
}

@keyframes luminaBreathing {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

/* --- Main Viewport Page Container --- */
.page-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem 1.5rem 1.75rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Page Header & Controls --- */
.page-header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.25rem 0;
  z-index: 20;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  color: var(--toggle-color);
  cursor: pointer;
  box-shadow: var(--toggle-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  outline: none;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--toggle-border-hover);
  box-shadow: 0 6px 22px rgba(245, 166, 35, 0.25);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--sol-golden-lumina);
  outline-offset: 3px;
}

.theme-toggle-btn .theme-icon {
  position: absolute;
  transition: transform 0.4s var(--transition-smooth), opacity 0.3s ease;
}

/* Dark mode: show Sun icon (to switch to light) */
:root:not([data-theme="light"]) .theme-toggle-btn .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

:root:not([data-theme="light"]) .theme-toggle-btn .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  pointer-events: none;
}

/* Light mode: show Moon icon (to switch to dark) */
[data-theme="light"] .theme-toggle-btn .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
  pointer-events: none;
}

[data-theme="light"] .theme-toggle-btn .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.toggle-tooltip {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 2px 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-body);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.theme-toggle-btn:hover .toggle-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

/* --- Brand Hero Card (Minimalist Glass HUD) --- */
.brand-hero-card {
  margin: auto 0;
  max-width: 820px;
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 4.25rem 3.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--transition-smooth), background-color 0.4s ease;
}

.brand-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent-line);
  opacity: 0.8;
}

.brand-hero-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

/* --- Brand Identity / Logo --- */
.brand-identity {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.emblem-container {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.35) 0%, rgba(0, 140, 158, 0.15) 50%, transparent 75%);
  filter: blur(8px);
  z-index: 1;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.sol-emblem {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(245, 166, 35, 0.45));
  transition: transform 0.5s var(--transition-smooth);
}

.brand-hero-card:hover .sol-emblem {
  transform: scale(1.08) rotate(4deg);
}

.brand-text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.brand-name {
  background: linear-gradient(135deg, var(--brand-name-start) 0%, var(--brand-name-mid) 60%, var(--brand-name-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Tagline --- */
.tagline {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.035em;
  color: var(--text-main);
  margin-bottom: 2.35rem;
  text-wrap: balance;
  transition: color 0.4s ease;
}

/* --- Stealth Product Status --- */
.product-status {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--status-text);
  background: var(--status-bg);
  border: 1px solid var(--status-border);
  border-radius: 14px;
  padding: 1rem 1.65rem;
  max-width: 620px;
  margin: 0 auto 2.75rem;
  text-wrap: balance;
  box-shadow: var(--status-shadow);
  transition: all 0.4s ease;
}

/* --- Inquiries Pill --- */
.inquiry-wrap {
  display: flex;
  justify-content: center;
}

.inquiry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.65rem;
  background: var(--inquiry-bg);
  border: 1px solid var(--inquiry-border);
  border-radius: 9999px;
  color: var(--inquiry-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.045em;
  transition: all 0.25s ease;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--sol-golden-lumina);
  box-shadow: 0 0 8px var(--sol-golden-lumina);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.pill-arrow {
  color: var(--inquiry-arrow-color);
  transition: transform 0.2s ease, color 0.2s ease;
}

.inquiry-pill:hover {
  background: var(--inquiry-hover-bg);
  border-color: var(--inquiry-hover-border);
  color: var(--inquiry-text);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.25);
  transform: translateY(-1px);
}

.inquiry-pill:hover .pill-arrow {
  transform: translateX(3px);
  color: var(--sol-golden-lumina);
}

/* --- Copyright Over The Image --- */
.image-copyright-footer {
  width: 100%;
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright-content {
  background: var(--footer-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--footer-border);
  border-radius: 9999px;
  padding: 0.45rem 1.25rem;
  transition: all 0.4s ease;
}

.copyright-text {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.06em;
  color: var(--footer-text);
  text-align: center;
  transition: color 0.4s ease;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .page-container {
    padding: 1.25rem 1rem 1.25rem;
  }

  .theme-toggle-btn {
    width: 40px;
    height: 40px;
  }

  .brand-hero-card {
    padding: 2.25rem 1.5rem;
    border-radius: 22px;
  }

  .brand-identity {
    gap: 0.9rem;
    margin-bottom: 1.85rem;
  }

  .emblem-container {
    width: 44px;
    height: 44px;
  }

  .brand-title {
    font-size: 2.15rem;
    line-height: 1.25;
    letter-spacing: 0.04em;
  }

  .tagline {
    font-size: 1.35rem;
    line-height: 1.48;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
  }

  .product-status {
    font-size: 0.92rem;
    line-height: 1.6;
    letter-spacing: 0.035em;
    padding: 0.75rem 1.1rem;
    margin-bottom: 1.75rem;
  }

  .inquiry-pill {
    padding: 0.55rem 1.15rem;
    font-size: 0.84rem;
    line-height: 1.45;
    letter-spacing: 0.04em;
  }

  .copyright-text {
    font-size: 0.78rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.85rem;
    line-height: 1.22;
    letter-spacing: 0.03em;
  }
  
  .tagline {
    font-size: 1.2rem;
    line-height: 1.45;
    letter-spacing: 0.025em;
  }
}
