/* ==========================================================================
   ROOT STUDIO GLOBAL — HUBS, SECTIONS & MATRICES STYLES
   ========================================================================== */

/* Hero Section */
.root-hero-section {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.root-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.root-hero-title {
  margin-bottom: 24px;
}

.root-hero-subtitle {
  font-size: 1.2rem;
  color: var(--root-text-titanium);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 620px;
}

.root-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 40px;
}

.root-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.root-hero-visual img {
  border-radius: var(--radius-xl);
  border: 1px solid var(--root-border-glass);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.2);
  transition: var(--transition-smooth);
}

.root-hero-visual:hover img {
  transform: scale(1.02) translateY(-4px);
  border-color: var(--root-cyan);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 0 0 60px rgba(0, 240, 255, 0.35);
}

/* Trust Banner */
.root-trust-bar {
  padding: 30px 0;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  background: rgba(5, 11, 20, 0.6);
  margin-bottom: 80px;
}

.root-trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.root-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.root-trust-val {
  font-family: var(--font-code);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--root-cyan);
}

.root-trust-label {
  font-size: 0.85rem;
  color: var(--root-text-muted);
  line-height: 1.4;
}

/* Sections Global */
.root-section {
  padding: 80px 0;
  position: relative;
}

.root-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.root-section-head h2 {
  margin-top: 12px;
  margin-bottom: 16px;
}

.root-section-head p {
  color: var(--root-text-muted);
  font-size: 1.1rem;
}

/* Matrix Comparison Table */
.root-matrix-table-wrap {
  overflow-x: auto;
  background: var(--root-card-glass);
  border: 1px solid var(--root-border-glass);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.root-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.root-matrix-table th,
.root-matrix-table td {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.root-matrix-table th {
  color: var(--root-text-white);
  font-weight: 800;
  font-size: 1.05rem;
}

.root-matrix-table th.col-root {
  background: rgba(0, 240, 255, 0.08);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--root-cyan);
}

.root-matrix-table td.col-root {
  background: rgba(0, 240, 255, 0.04);
  font-weight: 600;
  color: var(--root-text-white);
}

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

/* Hubs 3D Grid */
.root-hubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.root-hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.root-hub-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.root-hub-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--root-border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--root-cyan);
}

.root-hub-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.root-hub-card p {
  color: var(--root-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.root-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--root-gold);
}

.root-hub-link:hover {
  color: var(--root-gold-hover);
  transform: translateX(-4px);
}

/* Interactive Calculator Container */
.root-calc-wrapper {
  background: linear-gradient(145deg, rgba(18, 24, 33, 0.95), rgba(5, 11, 20, 0.98));
  border: 1px solid var(--root-border-glass);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.root-calc-result-box {
  background: rgba(5, 11, 20, 0.85);
  border: 1px solid var(--root-border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.root-range-slider {
  width: 100%;
  height: 6px;
  background: rgba(0, 240, 255, 0.15);
  border-radius: 999px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin-top: 12px;
  margin-bottom: 24px;
}

.root-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--root-cyan);
  box-shadow: 0 0 12px var(--root-cyan);
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .root-hero-grid {
    grid-template-columns: 1fr;
  }
  .root-calc-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .root-hubs-grid {
    grid-template-columns: 1fr;
  }
  .root-hero-section {
    padding: 60px 0 40px;
  }
  .root-calc-wrapper {
    padding: 24px 16px;
  }
}
