/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8f9fc;
  color: #1a1f35;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero {
  background: linear-gradient(160deg, #0a0f1e 0%, #0d1530 100%);
  padding: 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

.hero-copy {
  padding: 5rem 3rem 5rem 2rem;
  animation: fadeInUp 0.8s ease-out;
}

/* Right column: Spline contained, badge hidden via bottom overflow */
.hero-spline {
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  position: relative;
}

.hero-spline-inner {
  position: absolute;
  inset: 0;
  /* Extend height below visible area so badge is clipped */
  bottom: -120px;
}

.hero-spline-inner spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-spline-inner spline-viewer::part(logo) {
  display: none !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 102, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #00D4FF;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #00D4FF;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Typography */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(90deg, #0066FF 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  color: #90a1b9;
  margin-bottom: 2.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0066FF 0%, #2B7FFF 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #90a1b9;
  font-size: 0.875rem;
  z-index: 10;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Section Styles */
.section {
  padding: 6rem 0;
  position: relative;
}

/* Capabilities Section */
.capabilities-section {
  background: #ffffff;
  color: #1a1f35;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0066FF;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1a1f35;
}

.capabilities-section .gradient-text {
  background: linear-gradient(90deg, #0066FF 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Capabilities Grid */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.capability-card {
  padding: 2rem;
  background: #f8f9fc;
  border: 1px solid #e8eef5;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.2);
}

.capability-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 255, 0.08);
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  color: #0066FF;
}

.capability-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1f35;
}

.capability-card p {
  color: #606d85;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Demo Section */
.demo-section {
  background: linear-gradient(180deg, #f7fafe 0%, #eef4fb 100%);
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.demo-copy p {
  margin-top: 1.25rem;
  max-width: 540px;
  font-size: 1.05rem;
  color: #5d6c85;
}

.demo-frame {
  background: #ffffff;
  border: 1px solid #d8e3f1;
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(15, 34, 68, 0.12);
  overflow: hidden;
}

.demo-browser-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  background: #f7fafe;
  border-bottom: 1px solid #e2e9f3;
}

.demo-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.demo-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #c4d4e7;
}

.demo-url {
  font-size: 0.8rem;
  font-weight: 600;
  color: #7d8da8;
  letter-spacing: 0.02em;
}

.demo-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  background: #eaf1fb;
}

.scroll-fade {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.scroll-fade.will-animate {
  opacity: 0;
  transform: translateY(24px);
}

.scroll-fade.will-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Value Section */
.value-section {
  background: #f0f4fa;
}

.value-header {
  text-align: center;
  margin-bottom: 4rem;
}

.value-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #1a1f35;
  margin-bottom: 1rem;
}

.value-description {
  font-size: 1.1rem;
  color: #606d85;
  max-width: 500px;
  margin: 0 auto;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.value-metric {
  background: #ffffff;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid #e8eef5;
  text-align: center;
  transition: all 0.3s ease;
}

.value-metric:hover {
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.15);
}

.metric-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #0066FF;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1f35;
  margin-bottom: 0.25rem;
}

.metric-unit {
  font-size: 0.875rem;
  color: #90a1b9;
}

/* Solutions Section */
.solutions-section {
  background: #ffffff;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.solution-card {
  padding: 2.5rem;
  background: #f8f9fc;
  border: 1px solid #e8eef5;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 102, 255, 0.12);
  border-color: rgba(0, 102, 255, 0.2);
}

.solution-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1f35;
  margin-bottom: 1rem;
}

.solution-card p {
  color: #606d85;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0066FF;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: fit-content;
}

.card-link:hover {
  gap: 0.75rem;
  color: #00D4FF;
}

/* Experiments Section */
.experiments-section {
  background: #0a0f1e;
}

.experiments-section .section-label {
  color: #00D4FF;
}

.experiments-section .section-title {
  color: #ffffff;
}

.experiments-section .gradient-text {
  background: linear-gradient(90deg, #0066FF 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.experiments-frame {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}

.experiments-frame .demo-browser-bar {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.experiments-frame .demo-dots span {
  background: rgba(255, 255, 255, 0.2);
}

.experiments-frame .demo-url {
  color: rgba(255, 255, 255, 0.35);
}

.experiments-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

/* Footer */
.footer {
  background: #ffffff;
  border-top: 1px solid #e8eef5;
  padding: 2rem 0;
}

.footer-content {
  text-align: center;
  color: #90a1b9;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .hero {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 3.5rem 0 2rem;
  }

  .hero-spline {
    height: 420px;
    min-height: 420px;
  }

  .demo-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .demo-copy p {
    max-width: none;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    justify-content: center;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .scroll-indicator {
    display: none;
  }

  .section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }
}

@media (max-width: 480px) {
  .value-grid {
    grid-template-columns: 1fr;
  }

  .demo-browser-bar {
    height: 40px;
    padding: 0 0.75rem;
  }

  .metric-number {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-fade,
  .scroll-fade.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}