/* ============================================================
   RAXISLAB — Home Page Styles
   ============================================================ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,255,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: orb-float 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,132,255,0.06) 0%, transparent 70%);
  bottom: 10%; left: 5%;
  animation: orb-float 18s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(20px, -30px); }
  66%       { transform: translate(-15px, 20px); }
}

.hero-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,255,0.15), transparent);
  animation: scan 8s linear infinite;
  top: 0;
}

@keyframes scan {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-version {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

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

.hero-desc {
  font-size: 17px;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
}

.hero-stat:first-child { padding-left: 0; }

.hero-stat-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat-suffix {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.hero-stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Terminal ── */
.hero-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,200,255,0.06);
  position: relative;
}

.hero-terminal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #080808;
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  opacity: 0.8;
}

.terminal-title {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  flex: 1;
}

.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  max-height: 320px;
  overflow-y: auto;
}

.terminal-line { white-space: nowrap; overflow: hidden; }
.t-prompt   { color: var(--accent); }
.t-cmd      { color: #FFFFFF; }
.t-success  { color: #00FF82; }
.t-info     { color: #A0ACBA; }
.t-warn     { color: #FFD60A; }

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.t-blink { animation: blink-cursor 1s step-end infinite; color: var(--accent); }

/* ── Scroll indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.2); }
}

/* ── Trusted ── */
.trusted-row {
  display: flex;
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trusted-logos {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  overflow: hidden;
}

.trusted-name {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s;
}

.trusted-name:hover { color: var(--text-mid); }

/* ── Services ── */
.section-header {
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.service-card-wide {
  grid-column: span 2;
}

.service-icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(0,200,255,0.2);
  box-shadow: 0 0 20px var(--accent-dim);
}

.service-num {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 20px;
}

.service-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  color: var(--text-muted);
  transition: all 0.3s;
}

.service-card:hover .service-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* ── RTD Panel ── */
.rtd-section { background: linear-gradient(180deg, transparent, rgba(0,200,255,0.02) 50%, transparent); }

.rtd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rtd-kpis {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rtd-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.3s;
}

.rtd-kpi:hover { border-color: var(--border-mid); }

.rtd-kpi-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.rtd-kpi-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.rtd-kpi-delta {
  font-size: 11px;
  margin-top: 8px;
  font-family: var(--font-mono);
}

.rtd-kpi-delta.positive { color: #00FF82; }
.rtd-kpi-delta.neutral  { color: var(--text-muted); }

/* Chart Panel */
.rtd-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.rtd-chart-title {
  font-size: 15px;
  font-weight: 600;
}

.rtd-chart-controls {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 3px;
}

.rtd-tab {
  padding: 5px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.rtd-tab.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.rtd-chart-wrap { position: relative; }

/* Feed */
.rtd-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.rtd-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rtd-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  animation: feed-in 0.4s var(--ease);
}

@keyframes feed-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.rtd-feed-item:last-child { border-bottom: none; }

.feed-icon {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.feed-icon.lead    { background: #00FF82; box-shadow: 0 0 6px rgba(0,255,130,0.6); }
.feed-icon.ad      { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.feed-icon.seo     { background: #FFD60A; box-shadow: 0 0 6px rgba(255,214,10,0.6); }
.feed-icon.auto    { background: #BF5AF2; box-shadow: 0 0 6px rgba(191,90,242,0.6); }

.feed-text { color: var(--text-mid); line-height: 1.5; }
.feed-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

/* Gauges */
.rtd-gauge-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}

.rtd-gauge-list { display: flex; flex-direction: column; gap: 16px; }

.rtd-gauge-item {}

.rtd-gauge-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.rtd-gauge-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.rtd-gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #0084FF);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 1.5s var(--ease);
}

/* ── Methodology ── */
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.method-step {
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-right: none;
  position: relative;
  transition: background 0.3s;
}

.method-step:last-child { border-right: 1px solid var(--border); }
.method-step:hover { background: rgba(0,200,255,0.02); }

.method-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
}

.method-step h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.method-step p {
  font-size: 13px;
  line-height: 1.7;
}

.method-connector {
  position: absolute;
  top: 36px; right: -12px;
  width: 24px; height: 24px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-connector::before {
  content: '→';
  color: var(--accent);
  font-size: 16px;
}

/* ── CTA Strip ── */
.cta-strip {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0,200,255,0.04) 0%, transparent 60%);
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-strip-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Footer Social ── */
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all 0.25s;
}

.footer-social:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-desc  { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-stat:first-child { padding-left: 28px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card-wide { grid-column: span 2; }

  .rtd-kpis { grid-template-columns: repeat(2, 1fr); }
  .method-steps { grid-template-columns: 1fr 1fr; }
  .method-step:nth-child(2) { border-right: 1px solid var(--border); }
  .method-step:nth-child(3) { border-top: none; }
  .method-step:nth-child(4) { border-top: none; border-right: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .hero-terminal { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-column: span 1; }

  .rtd-grid { grid-template-columns: 1fr; }
  .rtd-kpis { grid-column: span 1; grid-template-columns: 1fr 1fr; }

  .method-steps { grid-template-columns: 1fr; }
  .method-step { border-right: 1px solid var(--border); }
  .method-step:not(:first-child) { border-top: none; }
  .method-connector { display: none !important; }

  .cta-strip-inner { flex-direction: column; text-align: center; }
  .cta-strip-actions { justify-content: center; }

  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stat-sep { display: none; }
  .hero-stat { padding: 0; }

  .trusted-row { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  .rtd-kpis { grid-template-columns: 1fr 1fr; }
  .rtd-kpi-value { font-size: 26px; }
}
