/* --- PREMIUM CRYSTAL THEME & EDITORIAL DESIGN SYSTEMS --- */

:root {
  --bg-primary: #060914;
  --bg-secondary: #0d1224;
  --surface-crystal: rgba(16, 24, 48, 0.65);
  --surface-crystal-hover: rgba(26, 38, 74, 0.85);
  --border-crystal-cyan: rgba(0, 240, 255, 0.25);
  --border-crystal-purple: rgba(168, 85, 247, 0.25);
  --accent-cyan: #00f0ff;
  --accent-purple: #a855f7;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1280px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.75;
}

/* Typography Editorial System */
h1, h2, h3 {
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #a3e635 100%);
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1.25rem;
  position: relative;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

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

/* Structuring Containers */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
  width: 100%;
}

.text-content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.alternate-bg {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.grid-two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.align-center {
  align-items: center;
}

.margin-top-large {
  margin-top: 3rem;
}

/* Header UI Style */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-logo {
  height: 44px;
  display: block;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: var(--accent-cyan);
}

.nav-cta {
  border: 1px solid var(--accent-purple);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.1);
}

.nav-cta:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #fff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* Hero Elements */
.hero-section {
  position: relative;
  padding-top: 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 6rem;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.hero-secondary {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Figures & Premium Image Styling */
.premium-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.image-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-crystal-cyan);
  background: var(--bg-secondary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.image-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.15);
  pointer-events: none;
}

.premium-figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.premium-figure:hover img {
  transform: scale(1.02);
}

figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
  letter-spacing: 0.02em;
}

/* Notice & Callouts */
.notice-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 240, 255, 0.02);
}

.notice-bar .section-container {
  padding: 1.5rem 2rem;
}

.legal-aside {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.aside-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.callout-box-tip {
  background: rgba(168, 85, 247, 0.08);
  border-left: 3px solid var(--accent-purple);
  padding: 1.25rem;
  border-radius: 0 6px 6px 0;
  color: #e2e8f0;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Crystal Table Systems */
.section-title-block {
  margin-bottom: 3rem;
}

.section-title-block.centered {
  text-align: center;
}

.section-subtitle {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}

.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--surface-crystal);
  backdrop-filter: blur(8px);
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 1rem;
}

.premium-table th, .premium-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.premium-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.premium-table tr:last-child td {
  border-bottom: none;
}

.premium-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

/* Metric Table Custom Elements */
.rating-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.rating-4 {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.rating-3 {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Premium Lists & Layout subblocks */
.premium-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.premium-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.premium-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.premium-list.style-check li::before {
  content: "✓";
  color: var(--accent-purple);
  font-weight: bold;
}

.premium-list.cross-style li::before {
  content: "▪";
  color: #ef4444;
}

.footnote-style {
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.steps-box {
  background: var(--surface-crystal);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--border-crystal-purple);
}

/* Ordered Lists Custom System */
.premium-ordered-list {
  counter-reset: list-counter;
  list-style: none;
  margin-bottom: 1.5rem;
}

.premium-ordered-list li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.premium-ordered-list li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.premium-ordered-list.style-b li::before {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.list-conclusion {
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
  padding: 1rem;
  border-radius: 4px;
}

/* Editorial Block Variants */
.card-inner-slate {
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 2.5rem;
  border-radius: 6px;
}

.text-island {
  padding: 1rem 0;
}

.border-left-crystal {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 4rem;
}

/* Payments Split Layout Map */
.grid-main-payments {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 4rem;
}

/* --- INTERACTIVE BLOCK 1: Premium Tabs --- */
.interactive-tab-container {
  margin-top: 2.5rem;
  border: 1px solid var(--border-crystal-cyan);
  border-radius: 6px;
  background: var(--surface-crystal);
  overflow: hidden;
}

.tab-header {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
  font-family: var(--font-sans);
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.01);
}

.tab-btn.active {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.04);
  box-shadow: inset 0 -2px 0 var(--accent-cyan);
}

.tab-body {
  padding: 2rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

.compact-flow li {
  margin-bottom: 0.75rem !important;
}

/* Pros and Cons Visual Architecture */
.pros-slate, .cons-slate {
  padding: 2.5rem;
  border-radius: 6px;
  background: var(--surface-crystal);
}

.pros-slate { border: 1px solid rgba(34, 197, 94, 0.15); }
.cons-slate { border: 1px solid rgba(239, 68, 68, 0.15); }

.pros-title { color: #4ade80 !important; }
.cons-title { color: #f87171 !important; }

.pros-bullets li::before { content: "✓"; color: #4ade80; }
.cons-bullets li::before { content: "✕"; color: #f87171; }

/* Audience Cards Layout mapping */
.audience-card {
  padding: 3rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.01);
}
.border-cyan { border-top: 3px solid var(--accent-cyan); }
.border-purple { border-top: 3px solid var(--accent-purple); }

.final-strong-note {
  border-top: 1px dashed rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.95rem;
}

/* --- INTERACTIVE BLOCK 2: Accordion System --- */
.accordion-wrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  background: var(--surface-crystal);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-item:hover {
  background: var(--surface-crystal-hover);
  border-color: rgba(255,255,255,0.1);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.accordion-header strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: var(--transition-smooth);
}

.accordion-header:hover strong {
  color: #fff;
}

.accordion-icon {
  width: 12px;
  height: 12px;
  position: relative;
  display: block;
  flex-shrink: 0;
}

.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-secondary);
  transition: transform 0.25s ease;
}

/* Horizontal line */
.accordion-icon::before {
  top: 5px; left: 0; width: 12px; height: 2px;
}
/* Vertical line */
.accordion-icon::after {
  top: 0; left: 5px; width: 2px; height: 12px;
}

.accordion-item.active .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.accordion-item.active .accordion-icon::before {
  transform: rotate(180deg);
  background-color: var(--accent-cyan);
}
.accordion-item.active {
  border-color: var(--border-crystal-cyan);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-inner {
  padding: 0 1.75rem 1.5rem 1.75rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Static Footer Typography */
.site-footer {
  background: #03050d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}

.footer-brand {
  max-width: 500px;
}

.footer-logo {
  height: 35px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-year-tag {
  margin-top: 0.5rem;
  color: var(--accent-purple);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* Animations Base CSS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE ADAPTIVE BREAKPOINTS --- */

@media (max-width: 1024px) {
  .grid-two-columns, .hero-grid, .grid-main-payments {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .border-left-crystal {
    border-left: none;
    padding-left: 0;
  }
  .hero-media {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }
  .payments-media {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .main-navigation {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .section-container {
    padding: 3rem 1.5rem;
  }
  .steps-box {
    padding: 1.5rem;
  }
  .footer-flex {
    flex-direction: column;
    text-align: left;
  }
  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .tab-header {
    flex-direction: column;
  }
  .tab-body {
    padding: 1.25rem;
  }
  .card-inner-slate, .pros-slate, .cons-slate, .audience-card {
    padding: 1.5rem;
  }
}