/* Component Styles - Marble Sync */
/* Navigation, Buttons, Cards, Footer */

/* ===================================
   Header / Navigation
   =================================== */

header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  transition: all var(--transition-base);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  padding: 0 var(--container-padding);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-orange-600);
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.85;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  position: relative;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--color-orange-600);
  background: var(--color-orange-50);
}

.nav-link.active {
  color: var(--color-orange-600);
  background: var(--color-orange-100);
}

.nav-link:focus,
.nav-link:focus-visible {
  outline: none;
}

/* Mobile Menu */
.mobile-menu-button {
  display: none;
  padding: var(--space-2);
  color: var(--color-gray-900);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.mobile-nav-link:hover {
  color: var(--color-orange-600);
  background: var(--color-orange-50);
}

.mobile-nav-link.active {
  color: var(--color-orange-600);
  background: var(--color-orange-100);
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-button {
    display: block;
  }
}

/* ===================================
   Floating Section Navigation
   =================================== */

.section-nav {
  position: fixed;
  right: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-fixed);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.section-nav-dot {
  position: relative;
  width: 12px;
  height: 12px;
  background: var(--color-gray-300);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
}

.section-nav-dot:hover {
  background: var(--color-orange-500);
  transform: scale(1.2);
}

.section-nav-dot.active {
  background: var(--color-orange-600);
  transform: scale(1.3);
}

.section-nav-dot::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + var(--space-3));
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-dark-900);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.section-nav-dot:hover::after {
  opacity: 1;
}

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

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-orange-600);
  border: 2px solid var(--color-orange-600);
}

.btn-secondary:hover {
  background: var(--color-orange-50);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-dark-900);
  color: var(--color-white);
}

.btn-dark:hover {
  background: var(--color-dark-800);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* ===================================
   Cards
   =================================== */

.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: var(--text-3xl);
}

.card-icon.orange {
  background: var(--color-orange-100);
  color: var(--color-orange-600);
}

.card-icon.dark {
  background: var(--color-dark-100);
  color: var(--color-dark-600);
}

.card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--color-gray-900);
}

.card p {
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

/* ===================================
   Hero Section — Dark Split Layout
   =================================== */

.hero-dark {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(155deg, #0f172a 0%, #1a1f3a 40%, #0f172a 100%);
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-dark::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  right: -100px;
  top: -100px;
  background: radial-gradient(circle, rgba(255,136,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-orange-400);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange-500);
  animation: eyebrowPulse 2s ease-in-out infinite;
}

@keyframes eyebrowPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,136,0,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(255,136,0,0); }
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 0;
}

.headline-accent {
  color: var(--color-orange-500);
}

.headline-highlight {
  position: relative;
  color: var(--color-white);
}

.headline-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  background: var(--color-orange-500);
  opacity: 0.4;
  border-radius: 3px;
}

.hero-desc {
  font-size: var(--text-lg);
  color: var(--color-gray-400);
  line-height: var(--leading-relaxed);
  margin: 0;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-2);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-gray-300);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  background: transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost-light:hover {
  color: var(--color-white);
  border-color: var(--color-orange-500);
  background: rgba(255,136,0,0.08);
  transform: translateY(-2px);
}

/* Hero Visual — Marble Canvas */
.hero-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.marble-canvas {
  position: relative;
  width: 420px;
  height: 420px;
}

.marble-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ml {
  stroke: rgba(255,136,0,0.2);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  animation: dashScroll 20s linear infinite;
}

.ml-dim {
  stroke: rgba(255,136,0,0.1);
  stroke-width: 1;
}

@keyframes dashScroll {
  to { stroke-dashoffset: -240; }
}

/* Marble Orbs */
.marble {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marble-core {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(255,180,80,0.9),
    rgba(255,136,0,0.7) 50%,
    rgba(200,80,0,0.5));
  box-shadow: 0 0 20px rgba(255,136,0,0.3);
}

.m-xl { width: 90px; height: 90px; }
.m-lg { width: 70px; height: 70px; }
.m-md { width: 50px; height: 50px; }

.marble::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,136,0,0.15);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* Marble positions */
.m-1 { top: 50px;  left: 70px;  animation: floatA 6s ease-in-out infinite; }
.m-2 { top: 100px; right: 55px; animation: floatB 7s ease-in-out infinite; }
.m-3 { bottom: 60px; left: 50%; transform: translateX(-50%); animation: floatC 5s ease-in-out infinite; }
.m-4 { bottom: 140px; left: 15px; animation: floatD 8s ease-in-out infinite; }
.m-5 { bottom: 110px; right: 25px; animation: floatB 6.5s ease-in-out infinite; }

@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(6px, -10px); }
  66% { transform: translate(-4px, 5px); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, -12px); }
}
@keyframes floatC {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-14px); }
}
@keyframes floatD {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(5px, -8px); }
  80% { transform: translate(-3px, 4px); }
}

/* Dot Particles */
.dot-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-orange-400);
  opacity: 0;
  animation: particleDrift 4s ease-in-out infinite;
}

.dp1 { top: 30%;  left: 20%; animation-delay: 0s; }
.dp2 { top: 50%;  left: 60%; animation-delay: 0.7s; }
.dp3 { top: 20%;  right: 25%; animation-delay: 1.4s; }
.dp4 { bottom: 25%; left: 35%; animation-delay: 2.1s; }
.dp5 { top: 65%;  left: 15%; animation-delay: 0.3s; }
.dp6 { top: 40%;  right: 15%; animation-delay: 1.8s; }
.dp7 { bottom: 35%; right: 30%; animation-delay: 2.5s; }
.dp8 { top: 15%;  left: 45%; animation-delay: 3.2s; }

@keyframes particleDrift {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  20%  { opacity: 0.8; transform: translateY(-8px) scale(1); }
  80%  { opacity: 0.6; transform: translateY(-20px) scale(0.8); }
  100% { opacity: 0; transform: translateY(-30px) scale(0.3); }
}

/* Responsive hero */
@media (max-width: 991px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text-col {
    align-items: center;
  }
  .hero-eyebrow {
    justify-content: center;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .marble-canvas {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 576px) {
  .hero-dark {
    padding: 5rem 0 3rem;
  }
  .marble-canvas {
    width: 260px;
    height: 260px;
  }
  .hero-headline {
    font-size: 2rem;
  }
}

/* ===================================
   Capabilities Band
   =================================== */

.capabilities-band {
  background: linear-gradient(180deg, #0f172a 0%, #141b2d 100%);
  padding: var(--space-12) 0;
  border-bottom: 1px solid rgba(255,136,0,0.1);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.cap-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-4);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.cap-card:hover {
  background: rgba(255,136,0,0.06);
  border-color: rgba(255,136,0,0.2);
  transform: translateY(-4px);
}

.cap-ring {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 4;
}

.ring-fill {
  fill: none;
  stroke: var(--color-orange-500);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  animation: ringDraw 2s ease-out forwards;
}

.rf-1 { stroke-dashoffset: 339.292; animation-delay: 0.2s; --target: 0; }
.rf-2 { stroke-dashoffset: 339.292; animation-delay: 0.4s; --target: 113; }
.rf-3 { stroke-dashoffset: 339.292; animation-delay: 0.6s; --target: 0; }
.rf-4 { stroke-dashoffset: 339.292; animation-delay: 0.8s; --target: 85; }

@keyframes ringDraw {
  to { stroke-dashoffset: var(--target, 0); }
}

.cap-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-orange-500);
  position: relative;
  z-index: 1;
}

.cap-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-400);
  text-align: center;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cap-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
  .cap-card {
    padding: var(--space-6) var(--space-3);
  }
  .cap-ring {
    width: 80px;
    height: 80px;
  }
}

/* ===================================
   Footer
   =================================== */

footer {
  background: var(--color-dark-900);
  color: var(--color-gray-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.footer-section p,
.footer-section a {
  color: var(--color-gray-400);
  line-height: var(--leading-relaxed);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-orange-500);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-bottom {
  border-top: 1px solid var(--color-dark-700);
  padding-top: var(--space-6);
  text-align: center;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

/* ===================================
   Scroll to Top Button
   =================================== */

.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  z-index: var(--z-fixed);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
