/* ==========================================================================
   Imagination Furnace - Core Stylesheet
   Palette derived from brand logos: Obsidian, Brushed Steel, Molten Amber, Electric Spark
   ========================================================================== */

:root {
  --bg-obsidian: #0b0d11;
  --bg-charcoal: #12161d;
  --bg-card: #181e27;
  --bg-card-hover: #1f2733;

  --border-steel: #2c3542;
  --border-steel-light: #465264;

  --text-primary: #f2f5f8;
  --text-secondary: #9aa5b4;
  --text-muted: #6b7685;

  --accent-gold: #ffd15c;
  --accent-orange: #ff8c1a;
  --accent-ember: #ff5500;
  --accent-blue: #1e90ff;
  --accent-cyan: #00b7ff;

  --gradient-fire: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 55%, var(--accent-ember) 100%);
  --gradient-spark: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  --gradient-steel: linear-gradient(180deg, #dce2e8 0%, #8a94a2 100%);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow-orange: 0 0 28px rgba(255, 140, 26, 0.22);
  --shadow-glow-blue: 0 0 24px rgba(30, 144, 255, 0.2);

  --container-max: 1140px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent-gold);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Expandable Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(11, 13, 17, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-steel);
}

.nav-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-steel-light);
  box-shadow: var(--shadow-glow-orange);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-wordmark .top {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-wordmark .bottom {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}

/* Desktop Navigation */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item {
  position: relative;
}

.nav-link,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-toggle:hover,
.nav-item.open > .dropdown-toggle {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-item.open .dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--border-steel-light);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  list-style: none;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}

.nav-item.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 861px) {
  .nav-item.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dropdown-link:hover {
  background: rgba(255, 140, 26, 0.12);
  color: var(--text-primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-steel);
  margin: 0.4rem 0.5rem;
}

.dropdown-label {
  padding: 0.35rem 0.85rem 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.badge-soon {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(30, 144, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(30, 144, 255, 0.3);
}

/* Mobile Toggle Button */
.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-steel);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-fire);
  color: #0b0d11;
  box-shadow: var(--shadow-glow-orange);
}

.btn-primary:hover {
  color: #0b0d11;
  box-shadow: 0 0 34px rgba(255, 140, 26, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-steel-light);
}

.btn-secondary:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow-blue);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 140, 26, 0.12), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(30, 144, 255, 0.08), transparent 45%),
    var(--bg-obsidian);
  border-bottom: 1px solid var(--border-steel);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  background: rgba(255, 140, 26, 0.1);
  border: 1px solid rgba(255, 140, 26, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  margin-bottom: 1.2rem;
}

.text-gradient-fire {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-logo-frame {
  background: #0d0f14;
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-card), var(--shadow-glow-orange);
}

.hero-logo-frame img {
  width: 100%;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-charcoal);
  border-top: 1px solid var(--border-steel);
  border-bottom: 1px solid var(--border-steel);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.25rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-secondary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-steel-light);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  background: rgba(255, 140, 26, 0.12);
  border: 1px solid rgba(255, 140, 26, 0.3);
  color: var(--accent-gold);
}

.card-icon.blue {
  background: rgba(30, 144, 255, 0.12);
  border-color: rgba(30, 144, 255, 0.35);
  color: var(--accent-cyan);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* App Showcase Placeholder Card */
.app-showcase-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.app-status {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 140, 26, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 140, 26, 0.28);
}

/* About Split */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 3rem;
}

.about-badge-wrap {
  display: flex;
  justify-content: center;
}

.about-badge-wrap img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid var(--border-steel-light);
  box-shadow: var(--shadow-card), var(--shadow-glow-orange);
}

/* Contact Box */
.contact-box {
  background: linear-gradient(145deg, var(--bg-card), #141921);
  border: 1px solid var(--border-steel-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.contact-box h2 {
  margin-bottom: 0.85rem;
}

.contact-box p {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   Legal / Privacy Policy Document Layout
   ========================================================================== */
.page-banner {
  background: var(--bg-charcoal);
  border-bottom: 1px solid var(--border-steel);
  padding: 3.5rem 0 2.75rem;
}

.page-banner h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.6rem;
}

.page-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 5rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  background: var(--bg-card);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.legal-toc h2 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 0.85rem;
}

.legal-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legal-toc a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: block;
  padding: 0.25rem 0;
}

.legal-toc a:hover {
  color: var(--accent-cyan);
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.legal-content section + section {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-steel);
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.legal-content h3 {
  font-size: 1.08rem;
  color: var(--accent-gold);
  margin: 1.25rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.legal-content ul {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.notice-box {
  background: rgba(30, 144, 255, 0.08);
  border-left: 3px solid var(--accent-blue);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  color: var(--text-primary);
  font-size: 0.94rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #080a0d;
  border-top: 1px solid var(--border-steel);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 0.9rem;
  max-width: 34ch;
}

.footer-col h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-steel);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-charcoal);
    border-bottom: 1px solid var(--border-steel);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    display: none;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link,
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-steel);
    margin: 0.25rem 0 0.5rem;
    display: none;
  }

  .nav-item.open > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 1.5rem;
  }
}