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

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

:root {
  /* Midnight Rose Theme */
  --bg: #120a10;
  --bg-offset: #1a0f18;
  --bg-deep: #0a0509;
  --text: #fdf2f8;
  --text-muted: #d1b8c8;
  --accent: #e11d48; /* Midnight Rose Primary */
  --accent-soft: #fb7185;
  --accent-dark: #9f1239;
  --glow-color: rgba(225, 29, 72, 0.5);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.4);
  --glass-bg: rgba(26, 15, 24, 0.7);
  --glass-border: rgba(251, 113, 133, 0.15);

  --font-heading: 'Abril Fatface', serif;
  --font-body: 'Lato', sans-serif;

  --nav-height: 70px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  padding-bottom: 80px; /* Space for bottom navigation */
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

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;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

section {
  padding: 80px 0;
  position: relative;
}

/* Gradient Border Glow Effect */
.glow-border {
  position: relative;
  background: var(--bg-offset);
  border-radius: var(--radius-md);
  padding: 1.5px; /* Border thickness */
  overflow: hidden;
}

.glow-border::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    var(--accent),
    var(--accent-soft),
    transparent 30%
  );
  animation: rotate 6s linear infinite;
  z-index: 0;
}

.glow-border-content {
  position: relative;
  z-index: 1;
  background: var(--bg-offset);
  border-radius: calc(var(--radius-md) - 1.5px);
  padding: 2rem;
  height: 100%;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

/* === BOTTOM NAVIGATION BAR === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--bg-deep);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: color 0.3s ease;
}

.nav-item i {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.nav-item.active {
  color: var(--accent-soft);
}

/* === TOP HEADER (Centered Logo) === */
.top-header {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-deep);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* === HERO SECTION === */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at center, #3a1a2e 0%, #25121e 40%, #1a0f18 70%, #120a10 100%);
  text-align: center;
  overflow: hidden;
}

.hero-stat {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 12rem);
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px var(--glow-color);
}

.hero-sub {
  font-size: 1.5rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

/* === BUTTONS === */
.btn {
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--accent-soft);
  color: var(--accent-soft);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* === MASONRY GRID (FEATURES) === */
.features-grid {
  column-count: 1;
  column-gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid { column-count: 2; }
}

@media (min-width: 1024px) {
  .features-grid { column-count: 3; }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 32px;
  transition: transform 0.3s ease;
}

.masonry-item:hover {
  transform: translateY(-4px);
}

/* === TABS SHOWCASE === */
.tabs-container {
  max-width: 1000px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-offset);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
}

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

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

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

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

/* === COMPARISON SECTION === */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
}

.comparison-table th {
  padding: 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.comparison-table td {
  padding: 20px;
  background: var(--bg-offset);
}

.comparison-table tr td:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-left: 2px solid var(--accent-soft);
}

.comparison-table tr td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.check-icon { color: #10b981; }
.cross-icon { color: #ef4444; }

/* === TESTIMONIALS (VIDEO) === */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.video-card {
  background: var(--bg-offset);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.testimonial-text {
  padding: 2rem;
}

.testimonial-author {
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

/* === SVG DIVIDERS === */
.divider {
  width: 100%;
  height: auto;
  display: block;
  fill: var(--bg-deep);
}

/* === STACKED BARS FOOTER === */
.footer-bar {
  padding: 40px 0;
}

.footer-top { background: var(--bg-offset); border-top: 1px solid var(--glass-border); }
.footer-mid { background: var(--bg-deep); }
.footer-bottom { background: #050305; padding: 20px 0; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  margin-bottom: 25px;
  color: var(--accent-soft);
}

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

.footer-links li {
  margin-bottom: 12px;
}

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

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

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

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

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--bg-deep);
  color: white;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mb-40 { margin-bottom: 40px; }
.flex-group { display: flex; gap: 20px; justify-content: center; }

@media (max-width: 768px) {
  .flex-group { flex-direction: column; align-items: stretch; }
  .footer-grid { text-align: center; }
  .social-icons { justify-content: center; }
}
