/* ===== Tenwise — Elevated Editorial & Enterprise Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap');

:root {
  /* Default Dark Theme: Deep, calm obsidian & warm sunrise amber */
  --bg-primary: #0b0c0e;
  --bg-secondary: #121418;
  --bg-tertiary: #181b20;
  --bg-elevated: rgba(24, 27, 32, 0.7);
  --bg-glass: rgba(18, 20, 24, 0.75);

  --text-primary: #f3f2ee;
  --text-secondary: #a6a49d;
  --text-muted: #6e6c66;

  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --accent-border: rgba(245, 158, 11, 0.3);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
}

html.light {
  /* Light Theme: Warm gallery ivory & deep executive navy */
  --bg-primary: #faf9f6;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f2f0ea;
  --bg-elevated: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(250, 249, 246, 0.85);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent: #d97706;
  --accent-light: #f59e0b;
  --accent-soft: rgba(217, 119, 6, 0.1);
  --accent-border: rgba(217, 119, 6, 0.25);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

.font-serif-display {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

/* Sticky Glass Navbar */
.nav-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Living Ambient Sunrise Glow in Hero */
@keyframes pulseGlow {
  0%, 100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate(-48%, -12px) scale(1.08);
    opacity: 0.8;
  }
}

.ambient-sunrise {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 960px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.18) 0%, rgba(11, 59, 111, 0.12) 45%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 10s ease-in-out infinite;
}

html.light .ambient-sunrise {
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.16) 0%, rgba(11, 59, 111, 0.06) 50%, transparent 75%);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Elevated Surface Cards with Living Hover */
.surface-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.surface-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.35);
}

html.light .surface-card:hover {
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.08);
}

/* Auto-Play Tab Progress Bar */
.showcase-tab {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.showcase-tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width 0.1s linear;
}

.showcase-tab.active {
  background: var(--bg-secondary);
  border-color: var(--accent-border);
  color: var(--text-primary);
}

/* Image Stage Transition */
.stage-image-transition {
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-image-switching {
  opacity: 0;
  transform: scale(0.985);
}

/* Animated Flow Line for Publisher Architecture */
@keyframes flowPulse {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.animated-flow-line {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.8), rgba(245, 158, 11, 0.15));
  background-size: 200% 100%;
  animation: flowPulse 3.5s linear infinite;
}

/* Broadsheet Editorial Preview Card */
.broadsheet-preview {
  background: #fbfaf6;
  color: #181715;
  box-shadow: 0 28px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.broadsheet-preview:hover {
  transform: translateY(-6px) rotate(-0.3deg);
}

html.light .broadsheet-preview {
  box-shadow: 0 28px 60px -15px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.1);
}

/* Primary CTA Button Sheen */
.btn-primary-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(245, 158, 11, 0.45);
}

/* Modal Backdrop */
.modal-backdrop {
  background-color: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(8px);
}
