/* ============================================================
   SKYHOOP — Components  v2  (Stealth / Achromatic)
   ============================================================ */

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              opacity var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo),
              background-color var(--duration-fast) var(--ease-out-expo),
              border-color var(--duration-fast) var(--ease-out-expo);
}

/* Primary: solid white, black text */
.btn-primary {
  background: var(--white);
  color: #0A0A0A;
  border-color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--off-white);
  border-color: var(--off-white);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
  filter: drop-shadow(0 0 4px rgba(0, 209, 255, 0.4)) drop-shadow(0 0 20px rgba(0, 209, 255, 0.15));
}
.btn-primary:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn);
  background: #d4d4d4;
}

/* Ghost: transparent, white border */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 209, 255, 0.45);
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(0, 209, 255, 0.2),
    0 0 20px rgba(0, 209, 255, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 350ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 350ms cubic-bezier(0.4, 0, 0.2, 1),
              background-color 350ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-ghost:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}
.btn-ghost:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.04);
}

/* Small variant */
.btn-sm {
  padding: 5px var(--space-4);
  font-size: var(--text-xs);
}

/* ── Badges / Tags ─────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.badge-live {
  background: rgba(0, 209, 255, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 209, 255, 0.25);
}
.badge-live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: pulse-dot 1.6s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent-blue);
}

.badge-status {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

/* ── Capability Cards ─────────────────────────────────────── */

.cap-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 1px solid rgba(0, 209, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Cyan gradient top accent line */
.cap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.45), transparent);
}
/* Bottom sweep on hover */
.cap-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.6), transparent);
  opacity: 0;
  transition: opacity 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 8px rgba(0, 209, 255, 0.06),
    0 10px 32px rgba(0, 0, 0, 0.85),
    0 24px 56px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(0, 209, 255, 0.04),
    inset 0 0 40px rgba(0, 209, 255, 0.03),
    inset 0 1px 0 rgba(0, 209, 255, 0.12);
  border-color: rgba(0, 209, 255, 0.22);
}
.cap-card:hover::after {
  opacity: 1;
}
.cap-card:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

.cap-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  color: var(--accent-blue);
  filter: drop-shadow(0 0 6px rgba(0, 209, 255, 0.3));
}

.cap-card__title {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.cap-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Solution Panels ─────────────────────────────────────── */

.solution-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.solution-panel:last-child {
  border-bottom: none;
}
.solution-panel.reverse .solution-panel__image-wrap {
  order: 2;
}
.solution-panel.reverse .solution-panel__body {
  order: 1;
}

.solution-panel__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 16 / 10;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.95),
    0 8px 32px rgba(0,0,0,0.9),
    0 32px 80px rgba(0,8,20,0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.solution-panel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  filter: grayscale(0.4) contrast(1.05);
}

/* Greyscale tinted overlay */
.solution-panel__color-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,30,30,0.25) 0%, rgba(0,0,0,0.45) 100%);
}

.solution-panel__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.15) 55%, transparent 100%);
}

.solution-panel__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--accent-blue);
  margin-bottom: var(--space-3);
}

.solution-panel__title {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--white);
}

.solution-panel__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ── Partner Form Card ───────────────────────────────────── */

.partner-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-panel);
}

.form-field {
  margin-bottom: var(--space-4);
}
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A3A3A3;
  margin-bottom: var(--space-2);
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  transition: border-color var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #00D1FF;
  box-shadow: 0 0 10px rgba(0, 209, 255, 0.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dim);
}

/* ── Telemetry List (About Left Column) ──────────────────── */

.telemetry-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0 0 0 1.5rem;
  margin: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}
.telemetry-item {
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: #A3A3A3;
}
.telemetry-item:last-child {
  margin-bottom: 0;
}
.tech-label {
  display: inline;
}
.tech-sep {
  display: inline;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.7;
}
.tech-desc {
  display: inline;
  font-size: var(--text-sm);
  color: #A3A3A3;
  line-height: 1.6;
}

/* ── Doctrine Cards (About Right Column) ─────────────────── */

.value-card {
  padding: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: #161616;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    border-color 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.value-card:hover {
  transform: translateY(-4px);
  border-top-color: #00D1FF;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(0, 209, 255, 0.03);
}

/* Technical micro-data label — bottom-right corner of each doctrine card */
.value-card__micro {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #A3A3A3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.value-card__index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: var(--space-3);
}
.value-card__title {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
}
.value-card__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Divider ─────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--border-subtle);
  position: relative;
  overflow: visible;
}
.divider::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 80px;
  background: var(--white);
  opacity: 0.3;
}

/* ── Tablet UI mockup — greyscale ────────────────────────── */

.tablet-mockup {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 10px 40px rgba(0, 0, 0, 0.9),
    0 50px 120px rgba(0, 8, 20, 0.55);
  position: relative;
}
.tablet-mockup__topbar {
  background: #0D0D0D;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.tablet-mockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.tablet-mockup__dot:first-child {
  background: rgba(255,255,255,0.35);
}
.tablet-mockup__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
}
.tablet-mockup__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080808;
}

/* ── Partner benefit items ───────────────────────────────── */
.partner-benefit__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--accent-blue);
  stroke: var(--accent-blue);
}

/* ── Mobile responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .solution-panel {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .solution-panel.reverse .solution-panel__image-wrap {
    order: unset;
  }
  .solution-panel.reverse .solution-panel__body {
    order: unset;
  }
}
