/* ============================================================
   Armillary Labs — pages/home.css
   Homepage-specific styles
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* ── Orbital System ─────────────────────────────────────────── */
.orbital-canvas {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.orbital-system {
  position: relative;
  width: 560px;
  height: 560px;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 4s ease-in-out infinite;
}

.orbit-ring:nth-child(1) {
  width: 140px; height: 140px;
  border: 1px solid var(--gold-60);
  animation-delay: 0s;
}
.orbit-ring:nth-child(2) {
  width: 240px; height: 240px;
  border: 1px solid var(--gold-40);
  animation-delay: 1s;
}
.orbit-ring:nth-child(3) {
  width: 360px; height: 360px;
  border: 0.5px solid var(--gold-30);
  animation-delay: 2s;
}
.orbit-ring:nth-child(4) {
  width: 480px; height: 480px;
  border: 0.5px solid var(--gold-18);
  animation-delay: 3s;
}
.orbit-ring:nth-child(5) {
  width: 560px; height: 560px;
  border: 0.5px solid var(--gold-10);
  animation-delay: 0.5s;
}

.orbit-inclined {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
}

.orbit-inclined-1 {
  width: 300px; height: 300px;
  border: 1px solid var(--gold-30);
  transform: translate(-50%, -50%) rotate(25deg) scaleY(0.38);
}

.orbit-inclined-2 {
  width: 420px; height: 420px;
  border: 0.5px solid var(--gold-20);
  transform: translate(-50%, -50%) rotate(-15deg) scaleY(0.45);
}

.core-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 10px var(--gold-light),
    0 0 32px var(--gold-30);
}

.orbital-node {
  position: absolute;
  background: var(--gold-light);
  border-radius: 50%;
}

.orbital-node-1 {
  width: 5px; height: 5px;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  opacity: 0.7;
}

.orbital-node-2 {
  width: 3px; height: 3px;
  bottom: 60px; right: 80px;
  opacity: 0.4;
}

.orbital-node-3 {
  width: 4px; height: 4px;
  top: 50%; right: 20px;
  transform: translateY(-50%);
  opacity: 0.5;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Hero Content ───────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 680px;
  padding: 0 var(--space-8) 80px;
}

.hero-eyebrow {
  margin-bottom: var(--space-6);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--surface);
  margin-bottom: var(--space-6);
}

.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.75;
  color: var(--surface-40);
  margin-bottom: var(--space-12);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
}

/* ── Scroll Indicator ───────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.3;
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 0.5px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  animation: scroll-drop 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-drop {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  60%  { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ── Products Section ───────────────────────────────────────── */
.products-section {
  padding: var(--space-24) var(--space-10);
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-card {
  border: 0.5px solid var(--surface-10);
  border-radius: var(--radius-md);
  padding: var(--space-12);
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  transition:
    border-color var(--duration-slow) var(--ease),
    background var(--duration-slow) var(--ease);
  cursor: pointer;
  margin-bottom: 2px;
}

.product-card:hover {
  border-color: var(--gold-40);
  background: var(--bg-card-hover);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 0%;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transition: height var(--duration-slow) var(--ease);
}

.product-card:hover::before { height: 100%; }

.product-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: var(--space-4);
}

.product-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.product-desc {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.75;
  color: var(--surface-40);
  max-width: 520px;
  margin-bottom: var(--space-8);
}

.product-features {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.feature-pill {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--surface-40);
  border: 0.5px solid var(--surface-10);
  padding: 5px var(--space-3);
  border-radius: var(--radius-sm);
}

.product-status {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.6;
}

.status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ── Thesis Section ─────────────────────────────────────────── */
.thesis-section {
  border-top: var(--border);
  padding: var(--space-24) var(--space-10);
  max-width: var(--max-width);
  margin: 0 auto;
}

.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.thesis-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.thesis-headline em {
  font-style: italic;
  color: var(--surface-40);
}

.thesis-body {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.8;
  color: var(--surface-40);
  margin-bottom: var(--space-8);
}

/* ── Principles ─────────────────────────────────────────────── */
.principles { display: flex; flex-direction: column; }

.principle {
  padding: var(--space-5) 0;
  border-bottom: 0.5px solid var(--surface-06);
  display: flex;
  gap: var(--space-5);
  align-items: baseline;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
  width: 24px;
  letter-spacing: 0.05em;
}

.principle-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--surface-60);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero-headline { font-size: 40px; }
  .hero-actions { flex-direction: column; }
  .thesis-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .product-status { display: none; }
  .orbital-system { width: 320px; height: 320px; transform: scale(0.6); }
}
