/* ==========================================================================
   Furnea.ai - AEO/GEO Optimized Stylesheet
   Pure CSS, no frameworks. Mobile-first. Semantic hierarchy.
   No content-hiding techniques. All text visible to crawlers.
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #1a1a2e;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #0f0f23;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8e8f0;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  max-width: 72ch;
}

a {
  color: #4361ee;
  text-decoration: underline;
}

a:hover {
  color: #3a0ca3;
}

strong {
  font-weight: 700;
}

/* ---------- Layout ---------- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: 1140px;
}

/* ---------- Header ---------- */
.site-header {
  background: #0f0f23;
  color: #ffffff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  z-index: 120;
  position: relative;
}

.site-logo span {
  color: #7209b7;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: #c4c4d4;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffffff;
}

.lang-switch {
  background: #7209b7;
  color: #fff !important;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch:hover {
  background: #560bad;
  color: #fff !important;
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b69 100%);
  color: #ffffff;
  padding: 3rem 0;
  text-align: center;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.25rem;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.hero p {
  color: #c4c4d4;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ---------- Quick Answer Block ---------- */
.quick-answer {
  background: #f0f0ff;
  border-left: 4px solid #4361ee;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.quick-answer p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.quick-answer strong {
  color: #0f0f23;
}

/* ---------- Definition Block ---------- */
.definition-block {
  background: #fafafe;
  border: 1px solid #e0e0f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.definition-block dt {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f0f23;
  margin-bottom: 0.5rem;
}

.definition-block dd {
  margin-left: 0;
  color: #333;
}

/* ---------- Steps / How-To ---------- */
.steps-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 1rem;
  background: #fafafe;
  border: 1px solid #e8e8f0;
  border-radius: 8px;
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  background: #4361ee;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps-list li strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* ---------- FAQ Section ---------- */
.faq-section {
  margin: 2rem 0;
}

.faq-item {
  border: 1px solid #e8e8f0;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  background: #fafafe;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f0f23;
  cursor: default;
}

.faq-answer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e8e8f0;
}

.faq-answer p {
  margin-bottom: 0.5rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Comparison Table ---------- */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table thead {
  background: #0f0f23;
  color: #fff;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #e8e8f0;
}

.comparison-table tbody tr:nth-child(even) {
  background: #fafafe;
}

.comparison-table .check {
  color: #22c55e;
  font-weight: 700;
}

.comparison-table .cross {
  color: #ef4444;
}

/* ---------- Feature Cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.feature-card {
  background: #fafafe;
  border: 1px solid #e8e8f0;
  border-radius: 10px;
  padding: 1.5rem;
}

.feature-card h3 {
  margin-top: 0;
  color: #4361ee;
  font-size: 1.1rem;
}

/* ---------- CTA Button ---------- */
.cta-button {
  display: inline-block;
  background: #7209b7;
  color: #ffffff;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}

.cta-button:hover {
  background: #560bad;
  color: #ffffff;
  transform: translateY(-1px);
}

.cta-button--secondary {
  background: transparent;
  border: 2px solid #7209b7;
  color: #7209b7;
}

.cta-button--secondary:hover {
  background: #7209b7;
  color: #ffffff;
}

/* ---------- TL;DR / Summary Block ---------- */
.tldr-block {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.tldr-block h3 {
  margin-top: 0;
  color: #166534;
  font-size: 1rem;
}

.tldr-block ul {
  margin: 0.5rem 0 0 1.25rem;
}

.tldr-block li {
  margin-bottom: 0.25rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: #666;
}

.breadcrumb a {
  color: #4361ee;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.4rem;
  color: #999;
}

/* ---------- Author Box (E-E-A-T) ---------- */
.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fafafe;
  border: 1px solid #e8e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 2rem 0;
}

.author-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 700;
  color: #0f0f23;
}

.author-role {
  font-size: 0.9rem;
  color: #666;
}

.author-bio {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ---------- Sources / Citations ---------- */
.sources-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e8e8f0;
}

.sources-section h2 {
  border-bottom: none;
  margin-top: 0;
}

.sources-list {
  list-style: decimal;
  padding-left: 1.5rem;
}

.sources-list li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.sources-list a {
  word-break: break-all;
}

/* ---------- Footer (Premium) ---------- */
.site-footer {
  background: linear-gradient(180deg, #0a0a1a 0%, #0f0f23 40%, #131330 100%);
  color: #c4c4d4;
  padding: 3.5rem 0 2rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7209b7, #4361ee, #7209b7, transparent);
}

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

.footer-col h4 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #8a8aaa;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-desc {
  color: #6a6a8a;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: #555578;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.checklist li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

/* ---------- Update Notice ---------- */
.update-notice {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}

/* ---------- Internal Link Block ---------- */
.related-links {
  background: #f8f8ff;
  border: 1px solid #e0e0f0;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.related-links h3 {
  margin-top: 0;
  font-size: 1rem;
}

.related-links ul {
  margin: 0.5rem 0 0 1.25rem;
}

.related-links li {
  margin-bottom: 0.35rem;
}

/* ---------- App Store Badge ---------- */
.app-badge {
  display: inline-block;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.app-badge img {
  height: 48px;
  width: auto;
}

/* ---------- Mobile Navigation (Premium) ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
  position: relative;
  z-index: 120;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.2s ease;
  border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-header .container {
    flex-wrap: nowrap;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
  }

  .site-nav a {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #c4c4d4;
    text-align: center;
    border: none;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: #fff;
  }

  .site-nav .lang-switch {
    margin-top: 1.5rem;
    padding: 0.6rem 2.5rem;
    font-size: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #7209b7, #4361ee);
  }

  /* Hero mobile */
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  /* Comparison table mobile */
  .comparison-table {
    font-size: 0.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.4rem 0.5rem;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .footer-col h4 {
    font-size: 0.7rem;
  }

  .footer-col a {
    font-size: 0.8rem;
  }

  .footer-col p {
    font-size: 0.8rem !important;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }

  /* Sticky CTA mobile */
  .sticky-cta__btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    font-size: 0.75rem;
    min-width: 0;
  }

  .sticky-cta__brand {
    font-size: 0.75rem;
  }

  /* General mobile spacing */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }

  .container {
    padding: 0 1rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .bottom-line {
    padding: 1.5rem;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .nav-toggle { display: none !important; }
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.75rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  h1 { font-size: 2.75rem; }
  .hero { padding: 4rem 0; }
  .hero h1 { font-size: 3rem; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ---------- Sticky Bottom CTA Bar ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(15, 15, 35, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.35rem 1rem 0.4rem;
  border-top: 1px solid #2a2a4a;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.sticky-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.sticky-cta__brand {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(90deg, #ffffff 0%, #a0a0c0 40%, #ffffff 60%, #a0a0c0 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.sticky-cta__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.sticky-cta__btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: btn-shimmer 3s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

.sticky-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sticky-cta__btn--appstore {
  background: #fff;
  color: #0f0f23;
}

.sticky-cta__btn--appstore:hover {
  color: #0f0f23;
}

.sticky-cta__btn--web {
  background: #111111;
  color: #fff;
}

.sticky-cta__btn--web:hover {
  background: #222222;
  color: #fff;
}

.sticky-cta__btn--ph {
  background: #ff6154;
  color: #fff;
}

.sticky-cta__btn--ph:hover {
  background: #e5564a;
  color: #fff;
}

.sticky-cta__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.sticky-cta__label-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 1px;
}

/* Add padding to body to prevent content hiding behind sticky bar */
body {
  padding-bottom: 75px;
}

/* old 639px sticky override removed — handled in 768px mobile block */

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-button, .lang-switch { display: none; }
  body { color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid #4361ee;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Material & Scene Library ---------- */
.library-section {
  padding: 3rem 0;
}

.material-list,
.scene-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.material-category h4,
.scene-category h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
  border-bottom: 2px solid #e8e8f0;
  padding-bottom: 0.25rem;
}

.material-category ul,
.scene-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.material-category li,
.scene-category li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
  color: #4a4a6a;
  border-bottom: 1px solid #f0f0f5;
}

.library-note {
  font-size: 0.85rem;
  color: #6a6a8a;
  margin-top: 1rem;
}

/* ---------- Limitations Section ---------- */
.limitations-section {
  padding: 3rem 0;
}

.limitations-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.decision-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.use-furnea,
.hire-photographer {
  padding: 1.25rem;
  border-radius: 8px;
}

.use-furnea {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.hire-photographer {
  background: #fef3f2;
  border: 1px solid #fecaca;
}

.use-furnea h4 {
  color: #166534;
  margin-bottom: 0.75rem;
}

.hire-photographer h4 {
  color: #991b1b;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .decision-matrix {
    grid-template-columns: 1fr;
  }
}

/* ---------- Key Statistics Block ---------- */
.key-stats-block {
  background: #f8f9ff;
  border: 1px solid #e0e4f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.key-stats-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #1a1a2e;
}

.key-stats-block li {
  padding: 0.3rem 0;
  line-height: 1.5;
}

/* ---------- Bottom Line ---------- */
.bottom-line {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 100%);
  color: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.bottom-line h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.bottom-line p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e0e0f0;
}

.bottom-line strong {
  color: #fff;
}

/* ---------- Author Box (extended) ---------- */
.author-box {
  background: #f8f9ff;
  border-left: 4px solid #4a4af0;
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.author-box h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ---------- TL;DR Block (alternate style) ---------- */
.tldr-block--alt {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.tldr-block--alt h3 {
  font-size: 1rem;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.tldr-block--alt li {
  padding: 0.2rem 0;
  font-size: 0.9rem;
}
