/* Base variables & Setup */

:root {
  --accent: #8b5cf6; /* Premium Light Violet */
  --accent-hover: #7c3aed;
  --accent-light: #f5f3ff;

  --bg-color-light: #fbfaf8; /* Warm neutral */
  --text-main-light: #2c2925;
  --text-muted-light: #68645d;
  --surface-light: #ffffff;
  --border-light: #e5dfd7;

  --bg-color-dark: #121110;
  --text-main-dark: #f1ede8;
  --text-muted-dark: #a19c95;
  --surface-dark: #1c1a19;
  --border-dark: #383431;

  --font-display: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --header-height: 80px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg-color-light);
  color: var(--text-main-light);
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.theme-dark {
  background-color: var(--bg-color-dark);
  color: var(--text-main-dark);
}

.text-muted { color: var(--text-muted-light); }
.theme-dark .text-muted { color: var(--text-muted-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  margin-top: 0;
  line-height: 1.1;
  color: var(--text-main-light);
}
.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4 {
  color: var(--text-main-dark);
}

h1 { font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -0.02em; margin-bottom: 24px; }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.01em; margin-bottom: 20px; }
h3 { font-size: 2rem; margin-bottom: 12px; }

p { font-size: 1.125rem; margin-bottom: 24px; }
.text-lg { font-size: 1.25rem; line-height: 1.5; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }

.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-main-light);
}
.theme-dark .btn-outline {
  border-color: var(--border-dark);
  color: var(--text-main-dark);
}
.btn-outline:hover {
  background-color: var(--surface-light);
  border-color: var(--text-main-light);
}
.theme-dark .btn-outline:hover {
  background-color: var(--surface-dark);
  border-color: var(--text-main-dark);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.125rem;
  border-radius: var(--radius-sm);
}

/* Header */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(251, 250, 248, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  isolation: isolate;
}
.theme-dark .site-header {
  background-color: rgba(18, 17, 16, 0.9);
  border-bottom-color: var(--border-dark);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  color: var(--text-main-light);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.theme-dark .logo-link { color: var(--text-main-dark); }
.logo-font {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-select {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-light);
  padding: 6px 32px 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-main-light);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2925' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}
.theme-dark .lang-select {
  border-color: var(--border-dark);
  color: var(--text-main-dark);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1ede8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}
.lang-select option {
  background-color: #e8dff5;
  color: #111111;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-light);
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-main-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-dark .btn-icon {
  border-color: var(--border-dark);
  color: var(--text-main-dark);
}

/* Mobile sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 768px) {
  .nav-actions .btn-primary { display: none; }
  .mobile-cta {
    display: block;
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 99;
  }
  .mobile-cta .btn { width: 100%; box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4); }
}

/* Hero Section */
.hero {
  padding: 80px 0 120px;
  overflow: hidden;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 992px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 80px; }
}

.hero-content { padding-right: 20px; }
.hero-content h1 { margin-bottom: 24px; }
.hero-content p.text-lg { margin-bottom: 40px; color: var(--text-muted-light); max-width: 580px; }
.theme-dark .hero-content p.text-lg { color: var(--text-muted-dark); }

.proof-strip {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.proof-item {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
}
.proof-val { font-weight: 600; color: var(--text-main-light); }
.theme-dark .proof-val { color: var(--text-main-dark); }
.proof-label { color: var(--text-muted-light); }
.theme-dark .proof-label { color: var(--text-muted-dark); }

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
@media (max-width: 500px) {
  .hero-actions .btn { width: 100%; }
}

.widget-wrapper {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  position: relative;
}
.theme-dark .widget-wrapper {
  background: var(--surface-dark);
  border-color: var(--border-dark);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.widget-header {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
}
.theme-dark .widget-header { border-bottom-color: var(--border-dark); }
.widget-dots { display: flex; gap: 6px; }
.widget-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-light); }
.theme-dark .widget-dot { background: var(--border-dark); }

.widget-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #000;
  min-height: 580px;
}

/* How To Start Section */
.how-to-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.theme-dark .step-card {
  background: var(--surface-dark);
  border-color: var(--border-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.theme-dark .step-card:hover { box-shadow: 0 12px 24px rgba(0,0,0,0.3); }
.step-card-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  margin-bottom: 20px;
  line-height: 0.8;
  opacity: 0.9;
}

/* Trust Section */
.trust-section {
  background-color: var(--surface-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.theme-dark .trust-section {
  background-color: var(--surface-dark);
  border-top-color: var(--border-dark);
  border-bottom-color: var(--border-dark);
}
.trust-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 992px) {
  .trust-layout { grid-template-columns: 1fr; }
}

.trust-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.trust-item {
  display: flex;
  gap: 16px;
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.theme-dark .trust-icon { background: rgba(139, 92, 246, 0.2); }

/* Editorial Features */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .editorial-grid { grid-template-columns: 1fr; }
}
.ed-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}
.theme-dark .ed-card { background: var(--surface-dark); border-color: var(--border-dark); }
.ed-card.large { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 768px) {
  .ed-card.large { grid-column: span 1; grid-template-columns: 1fr; }
}

/* Pricing Section */
.pricing-section {
  background-color: var(--surface-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.theme-dark .pricing-section { background-color: var(--surface-dark); border-color: var(--border-dark); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: left;
}
.theme-dark .pricing-card { border-color: var(--border-dark); }
.pricing-card.premium {
  border-color: var(--accent);
  border-width: 2px;
  position: relative;
}
.premium-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; margin: 24px 0; }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}
.pricing-features li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--text-muted-light);
}
.theme-dark .pricing-features li { color: var(--text-muted-dark); }
.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Editorial SEO Article */
.seo-article {
  max-width: 1000px;
  margin: 0 auto;
  border-left: 3px solid var(--accent);
  padding: 40px 0 40px 40px;
}
.seo-article h2 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
.seo-article .article-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .seo-article {
    padding: 32px 0 32px 24px;
  }
  .seo-article .article-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.seo-article p {
  color: var(--text-muted-light);
  font-size: 1.05rem;
  line-height: 1.7;
}
.theme-dark .seo-article p { color: var(--text-muted-dark); }
.seo-article strong {
  color: var(--text-main-light);
  font-weight: 600;
}
.theme-dark .seo-article strong { color: var(--text-main-dark); }

/* Compatibility Strip */
.compat-strip {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
  background: var(--surface-light);
}
.theme-dark .compat-strip {
  border-color: var(--border-dark);
  background: var(--surface-dark);
}
.compat-strip p {
  margin: 0;
  font-size: 0.95rem;
}
.compat-bold {
  color: var(--text-main-light);
  font-weight: 600;
}
.theme-dark .compat-bold { color: var(--text-main-dark); }

/* FAQ */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}
.theme-dark .faq-item { border-bottom-color: var(--border-dark); }
.faq-question {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  font-weight: 500;
  font-family: var(--font-body);
}

/* Footer */
.site-footer {
  padding: 80px 0 40px;
  background: var(--surface-light);
  border-top: 1px solid var(--border-light);
}
.theme-dark .site-footer { background: var(--surface-dark); border-top-color: var(--border-dark); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  color: var(--text-muted-light);
  text-decoration: none;
  transition: color 0.2s;
}
.theme-dark .footer-links a { color: var(--text-muted-dark); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted-light);
}
.theme-dark .footer-bottom { border-top-color: var(--border-dark); color: var(--text-muted-dark); }

@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

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