@tailwind base;
@tailwind components;
@tailwind utilities;

html {
  scroll-behavior: smooth;
}
body {
  background: #05070a;
  color: #f8fafc;
  letter-spacing: -.01em;
}
.glass {
  background: rgba(12, 16, 22, 0.66);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.22);
}
.gradient-text {
  background: linear-gradient(100deg, #fff 5%, #dbeafe 38%, #3b82f6 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grid-bg {
  background: radial-gradient(circle at 78% 32%, rgba(37, 99, 235, 0.18), transparent 25%),
              radial-gradient(circle at 18% 12%, rgba(14, 165, 233, 0.08), transparent 24%),
              linear-gradient(rgba(148, 163, 184, 0.025) 1px, transparent 1px),
              linear-gradient(90deg, rgba(148, 163, 184, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(100px);
  pointer-events: none;
}
.eyebrow {
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .7rem;
  font-weight: 800;
}
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -.045em;
  margin-top: 1rem;
}
.section-copy {
  color: #64748b;
  font-size: 1.08rem;
  line-height: 1.8;
  margin-top: 1.5rem;
  max-width: 48rem;
}
.service-tab {
  transition: .3s ease;
}
.service-tab:hover,
.service-tab.active {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.07);
  transform: translateY(-2px);
}
.field {
  width: 100%;
  margin-top: .5rem;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid #263244;
  border-radius: .7rem;
  padding: .82rem 1rem;
  outline: none;
  color: #f8fafc;
}
.field:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
input[type=range] {
  accent-color: #3b82f6;
}
.range-value {
  color: #60a5fa;
  font-weight: 700;
}
.premium-hero-visual {
  position: absolute;
  right: -3rem;
  top: 8rem;
  width: 55%;
  height: 560px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  inset: 12% 3% 10% 5%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.34), transparent 56%);
  filter: blur(40px);
}
.hero-device {
  position: absolute;
  right: 7%;
  top: 14%;
  width: 72%;
  height: 58%;
  transform: perspective(1200px) rotateY(-18deg) rotateX(7deg) rotateZ(-3deg);
  border-radius: 22px 22px 10px 10px;
  background: linear-gradient(145deg, #151a21, #030405 72%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8), 0 0 70px rgba(37, 99, 235, 0.12);
}
.hero-device:after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -8%;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(#10141a, #020304);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.device-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Space Grotesk";
  font-size: 8rem;
  font-weight: 700;
  color: #2563eb;
  text-shadow: 0 0 50px rgba(37, 99, 235, 0.35);
}
.device-line {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}
.device-line.short {
  left: 30%;
  right: 30%;
  bottom: 13%;
  opacity: .45;
}
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(-18deg);
}
.orbit-a {
  width: 90%;
  height: 45%;
  right: -2%;
  top: 21%;
}
.orbit-b {
  width: 72%;
  height: 35%;
  right: 8%;
  top: 29%;
  border-color: rgba(34, 211, 238, 0.18);
}
.hero-chip {
  position: absolute;
  min-width: 145px;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(7, 12, 18, 0.78);
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 9px;
  letter-spacing: .08em;
}
.hero-chip b {
  color: #dbeafe;
  font-size: 10px;
}
.hero-chip span {
  color: #64748b;
}
.chip-a {
  right: 4%;
  top: 10%;
}
.chip-b {
  right: 0;
  top: 52%;
}
.chip-c {
  right: 18%;
  bottom: 9%;
}
@media (max-width: 1279px) {
  .premium-hero-visual {
    display: none;
  }
}

/* Trust Slider Styles */
.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.logo-track {
  display: flex;
  width: calc(250px * 34);
  animation: scroll 40s linear infinite;
  gap: 4rem;
  align-items: center;
}
.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.logo-item:hover {
  transform: translateY(-2px);
  color: #22d3ee;
}
.logo-item img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(0.9);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.logo-item:hover img {
  transform: scale(1.1);
  filter: brightness(1) invert(0);
  opacity: 1;
}
.logo-slider:hover .logo-track {
  animation-play-state: paused;
}

/* Animations */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 17));
  }
}

/* Custom Overlapping Cards */
.ecosystem-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecosystem-main-img {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.overlapping-card {
  position: absolute;
  background: rgba(13, 24, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 10;
  pointer-events: none;
}
.card-1 {
  bottom: -20px;
  left: 20px;
}
.card-2 {
  top: -20px;
  right: 20px;
}
.oc-icon {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oc-text {
  display: flex;
  flex-direction: column;
}
.oc-text strong {
  font-size: 0.9rem;
  color: #f8fafc;
}
.oc-text span {
  font-size: 0.75rem;
  color: #64748b;
}

@media (max-width: 640px) {
  .overlapping-card {
    display: none;
  }
}
