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

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Obsidian Gradient Palette */
  --bg: #09090b;
  --bg-alt: #111114;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #7c3aed; /* Deep Purple */
  --accent-secondary: #0d9488; /* Dark Teal */
  --accent-gradient: linear-gradient(135deg, #7c3aed, #0d9488);

  /* Typography */
  --font-headings: 'Zodiak', serif;
  --font-body: 'Supreme', sans-serif;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.3);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);

  --nav-height: 80px;
}

@font-face {
  font-family: 'Zodiak';
  src: url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap'); /* Fallback for Zodiak if not on Google */
}

body {
  font-family: var(--font-body);
  line-height: 1.8;
  font-size: 18px; /* Editorial density */
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(45deg, #09090b, #111114, #09090b, #0d1117);
  background-size: 400% 400%;
  animation: aurora-bg 15s linear infinite;
}

@keyframes aurora-bg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === STRUCTURAL BASELINES === */
.container {
  max-width: 1200px; /* As per spec grid strategy */
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

section {
  padding: 60px 0; /* Dense padding 50-60px per spec */
  position: relative;
}

/* Alternating background colors for sections */
section:nth-child(even) {
  background-color: var(--bg-alt);
}

/* === NAVIGATION (Overlay Nav + Tabbed Style) === */
.navigation-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.navigation-header.scrolled {
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.nav-tabs {
  display: flex;
  gap: 0;
}

.nav-tab-link {
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  border: 1px solid transparent;
  border-bottom: none;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-tab-link:hover {
  color: var(--text);
}

.nav-tab-link.active {
  color: var(--accent);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-bottom: 2px solid var(--accent);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* === HERO SLIDER (Full-Screen + Minimal) === */
.hero-slider {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10%;
}

.hero-content {
  max-width: 900px;
}

.hero-headline {
  font-family: var(--font-headings);
  font-size: clamp(3rem, 8vw, 6rem); /* Massive serif headline */
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 900;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-slider-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: 0.3s;
}

.slider-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* === BUTTONS (Outlined Pill with Fill-on-Hover) === */
.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  border: 1px solid var(--accent);
  border-radius: 50px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-pill:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

/* === GRID STRATEGY (Equal Columns) === */
.grid-editorial {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr; /* Mobile first */
}

@media (min-width: 768px) {
  .grid-editorial.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-editorial.cols-3 { grid-template-columns: repeat(2, 1fr); } /* Tablet 2 cols per spec */
}

@media (min-width: 1024px) {
  .grid-editorial.cols-3 { grid-template-columns: repeat(3, 1fr); } /* Desktop 3 cols per spec */
}

/* === CARDS (Animated Borders + Glass) === */
.feature-card {
  position: relative;
  padding: 48px; /* Spacious per low density rules */
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.feature-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Animated Gradient Border */
.feature-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: conic-gradient(from var(--angle), var(--accent), var(--accent-secondary), var(--accent));
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 2px);
  animation: rotate-gradient 4s linear infinite;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-gradient {
  to { --angle: 360deg; }
}

.feature-card-content {
  background: var(--bg);
  padding: inherit;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* === TAB-BASED SHOWCASE === */
.tabs-showcase {
  margin-top: 3rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.8rem 2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .tab-pane.active {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === FILMSTRIP TESTIMONIALS (Continuous Marquee) === */
.filmstrip-container {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}

.filmstrip-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.filmstrip-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-item {
  width: 450px;
  padding: 40px;
  margin: 0 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(5px);
}

.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 2px solid var(--accent);
}

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 120px 0 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.breadcrumbs span {
  margin: 0 10px;
}

/* === BOOK / CODEX LAYOUT ELEMENTS === */
.editorial-text {
  max-width: 800px;
  margin: 0 auto;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-headings);
  font-size: 5rem;
  line-height: 1;
  padding-right: 15px;
  color: var(--accent);
  font-weight: 900;
}

/* === FOOTER (Glassmorphism) === */
.footer-glass {
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-glass::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-column h4 {
  font-family: var(--font-headings);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  color: #fff;
}

/* === AWARDS BAR === */
.awards-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.award-item {
  text-align: center;
  opacity: 0.7;
}

.award-icon {
  font-size: 2.5rem;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.award-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* === COMPARISON SECTION === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.comparison-table th, .comparison-table td {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
  font-family: var(--font-headings);
  font-size: 1.5rem;
}

.comparison-table .feature-col {
  text-align: left;
  font-weight: 600;
}

.comparison-table .advantage {
  color: var(--accent-secondary);
  font-weight: bold;
}

/* === RESPONSIVE MOBILE MENU === */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-tabs {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--bg);
    flex-direction: column;
    padding: 2rem;
    transition: 0.4s;
    z-index: 999;
  }

  .nav-tabs.active {
    left: 0;
  }

  .nav-tab-link {
    font-size: 1.5rem;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid var(--glass-border);
  }
}
