/* ===========================================
   Luvr AI - Main Styles
   =========================================== */

/* --- CSS Variables --- */
:root {
  --primary-color: #e53e3e;
  --primary-dark: #c53030;
  --secondary-color: #fc8181;
  --accent-color: #feb2b2;
  --dark-bg: #0d0d0d;
  --dark-bg-secondary: #1a1a1a;
  --dark-bg-card: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --success-color: #4ade80;
  --warning-color: #fbbf24;
  --border-color: rgba(255, 255, 255, 0.08);
  --gradient-primary: linear-gradient(135deg, #e53e3e, #c53030);
  --gradient-dark: linear-gradient(180deg, var(--dark-bg), var(--dark-bg-secondary));
  --shadow-primary: 0 4px 15px rgba(229, 62, 62, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 30px rgba(0, 0, 0, 0.4);
  padding: 10px 0;
}

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

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.navbar-menu a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.navbar-menu a:hover {
  color: var(--text-primary);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-cta {
  display: flex;
  gap: 15px;
  align-items: center;
}

.navbar-cta.mobile {
  display: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(229, 62, 62, 0.5);
}

.cta-section .btn-primary {
  animation: pulse-glow 3s ease-in-out infinite;
  padding: 16px 36px;
  font-size: 1.05rem;
}

.cta-section .btn-primary:hover {
  animation: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background: var(--gradient-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229, 62, 62, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(197, 48, 48, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(229, 62, 62, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  max-width: 500px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}

/* --- Sections --- */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title h2 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--dark-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 40px rgba(229, 62, 62, 0.2);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

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

/* --- Companions Section --- */
.companions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.companion-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.companion-card:hover {
  transform: scale(1.03);
}

.companion-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.companion-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.companion-card .overlay h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

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

/* --- Customize Section --- */
.customize-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.customize-text {
  flex: 1;
}

.customize-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.customize-text p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.customize-image {
  flex: 1;
}

.customize-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
}

/* --- Privacy Section --- */
.privacy-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.privacy-card {
  background: var(--dark-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
}

.privacy-card:hover {
  border-color: var(--primary-color);
}

.privacy-card .icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.privacy-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary-color);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 25px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  background: var(--gradient-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 62, 62, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
  position: relative;
}

/* --- Footer --- */
.footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

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

.footer-brand-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* --- Mobile Menu Toggle --- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* --- Article Sections --- */
#article {
  padding: 0;
}

.article-section {
  padding: 80px 0;
}

.article-section:nth-child(even) {
  background: var(--dark-bg-secondary);
}

.article-section:nth-child(odd) {
  background: var(--dark-bg);
}

.article-section .container {
  max-width: 1100px;
}

/* --- Article Typography --- */
.article-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
}

.article-section h2 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 18px;
  color: var(--text-primary);
  padding-left: 15px;
  border-left: 3px solid var(--primary-color);
}

.article-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 800px;
}

.article-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-section ul,
.article-section ol {
  margin-bottom: 24px;
  padding-left: 0;
}

.article-section ul {
  list-style: none;
}

.article-section ol {
  list-style: none;
  counter-reset: ol-counter;
}

.article-section ol li {
  counter-increment: ol-counter;
}

.article-section ol li::before {
  content: counter(ol-counter);
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.article-section ul li {
  padding-left: 28px;
  position: relative;
}

.article-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
}

.article-section li {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}

.article-section li strong {
  color: var(--text-primary);
}

/* --- Split Layout (text + image side by side) --- */
.split-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 30px;
}

.split-layout.reverse {
  flex-direction: row-reverse;
}

.split-text {
  flex: 1;
}

.split-image {
  flex: 0 0 380px;
}

.split-image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(229, 62, 62, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.split-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(229, 62, 62, 0.15);
}

/* --- Callout Box --- */
.callout {
  background: var(--dark-bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 25px 30px;
  margin: 30px 0;
}

.callout-highlight {
  background: linear-gradient(135deg, rgba(229,62,62,0.1), rgba(197,48,48,0.05));
  border: 1px solid rgba(229,62,62,0.2);
  border-radius: var(--border-radius);
  padding: 40px;
  margin: 30px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.callout-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(229, 62, 62, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.callout-highlight .score-big {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  letter-spacing: -0.02em;
}

/* --- Inline CTA Banner --- */
.inline-cta {
  background: linear-gradient(135deg, rgba(229,62,62,0.12), rgba(197,48,48,0.06));
  border: 1px solid rgba(229,62,62,0.25);
  border-radius: var(--border-radius-lg);
  padding: 35px 40px;
  margin: 45px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inline-cta:hover {
  border-color: rgba(229,62,62,0.45);
  box-shadow: 0 4px 25px rgba(229, 62, 62, 0.1);
}

.inline-cta p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.split-text p {
  max-width: none;
}

.callout p,
.callout-highlight p {
  max-width: none;
}

.pros-box ul,
.cons-box ul {
  margin-bottom: 0;
}

.pros-box li,
.cons-box li {
  font-size: 0.95rem;
}

/* --- Feature Mini Cards --- */
.mini-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.mini-card {
  background: var(--dark-bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 25px;
  transition: var(--transition);
}

.mini-card:hover {
  border-color: rgba(229, 62, 62, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(229, 62, 62, 0.15);
}

.mini-card .mini-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mini-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.mini-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* --- Pros/Cons Grid --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.pros-box, .cons-box {
  background: var(--dark-bg-card);
  border-radius: var(--border-radius);
  padding: 25px;
  border: 1px solid var(--border-color);
}

.pros-box {
  border-top: 3px solid var(--success-color);
}

.cons-box {
  border-top: 3px solid var(--warning-color);
}

.pros-box .card-title, .cons-box .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-box .card-title { color: var(--success-color); }
.cons-box .card-title { color: var(--warning-color); }

.pros-box li::before { background: var(--success-color); }
.cons-box li::before { background: var(--warning-color); }

/* --- Tables --- */
.article-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.article-section thead {
  background: linear-gradient(135deg, rgba(229,62,62,0.15), rgba(197,48,48,0.08));
}

.article-section th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.article-section td {
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  background: var(--dark-bg-card);
}

.article-section tbody tr:hover td {
  background: rgba(229, 62, 62, 0.05);
}

.article-section tbody tr:last-child td {
  border-bottom: none;
}

/* --- Rating Badge --- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(229, 62, 62, 0.08);
  border: 1px solid rgba(229, 62, 62, 0.4);
  border-radius: 50px;
  padding: 12px 26px;
  margin: 15px 0;
  box-shadow: 0 0 25px rgba(229, 62, 62, 0.12);
}

.rating-badge .stars {
  color: var(--warning-color);
  font-size: 1.1rem;
}

.rating-badge .score {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* --- TOC (Table of Contents) --- */
.toc {
  background: linear-gradient(135deg, rgba(229,62,62,0.08), rgba(229,62,62,0.03));
  border: 1px solid rgba(229,62,62,0.2);
  border-radius: var(--border-radius-lg);
  padding: 35px 40px;
  margin-bottom: 0;
}

.toc-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: none;
  padding-left: 0;
}

.toc-title i {
  color: var(--primary-color);
}

.toc ol {
  list-style: none;
  padding-left: 0;
  columns: 2;
  column-gap: 30px;
  counter-reset: toc-counter;
}

.toc li {
  counter-increment: toc-counter;
  margin-bottom: 12px;
  break-inside: avoid;
}

.toc li::before {
  content: counter(toc-counter, decimal-leading-zero);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 10px;
}

.toc a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.toc a:hover {
  color: var(--primary-color);
}

/* --- Gradient Divider --- */
.gradient-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  margin: 0;
  border: none;
  opacity: 0.3;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframe Animations --- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(229,62,62,0.03); }
  50% { box-shadow: 0 6px 35px rgba(229, 62, 62, 0.55); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Utility --- */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
