/* =============================================
   Prism Labs v2 — inspired by convergedhub.ai
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 100;
  height: 64px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo { font-weight: 700; font-size: 1.125rem; display: flex; align-items: center; gap: 6px; color: #1e293b; line-height: 1; }
.logo:hover { text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; margin-top: -2px; }
.logo-main { display: block; font-size: 1rem; font-weight: 700; }
.logo-sub { display: block; font-size: 0.6rem; font-weight: 500; color: #64748b; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: #475569; transition: color .2s; }
.nav-links a:hover { color: #4f46e5; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 0.875rem;
  border-radius: 8px; padding: 10px 20px;
  transition: all .2s; cursor: pointer; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-primary { background: #4f46e5; color: #fff; border: 2px solid #4f46e5; }
.btn-primary:hover { background: #4338ca; border-color: #4338ca; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-white { background: #fff; color: #4f46e5; border: 2px solid #fff; }
.btn-white:hover { background: #eef2ff; border-color: #eef2ff; }
.btn-marketplace { background: #fff; color: #4f46e5; border: 2px solid #fff; }
.btn-marketplace:hover { background: #eef2ff; border-color: #eef2ff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 100px;
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #0f0a2e 0%, #1e0b4a 30%, #312e81 60%, #4f46e5 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99,102,241,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(139,92,246,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(79,70,229,0.15) 0%, transparent 50%);
  animation: heroAmbient 12s ease-in-out infinite alternate;
}
@keyframes heroAmbient {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: #fff;
  color: #4f46e5;
  border: none;
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}
.hero h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.hero-lead {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
  width: 100%;
}
.floating-tile {
  display: inline-block;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 100px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  animation: tileFloat 3s ease-in-out infinite;
}
.tile-code {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  animation-delay: 0.3s;
}
.tile-infra {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  animation-delay: 0.6s;
}
.tile-waiting {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
  animation-delay: 0.9s;
}
@keyframes tileFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: flex; gap: 40px; justify-content: center;
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
}
.hero-stats strong { display: block; font-size: 1.5rem; color: #fff; font-weight: 700; }

/* ---------- Built With ---------- */
.built-with {
  padding: 28px 0;
  text-align: center;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.built-with-label { font-size: 0.75rem; font-weight: 600; color: #94a3b8; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.badge-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; text-align: center; }
.section-dark { background: #f8fafc; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4f46e5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: #eef2ff;
  padding: 4px 14px;
  border-radius: 100px;
}
.section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; color: #0f172a; }
.section-sub { font-size: 1.05rem; color: #64748b; max-width: 600px; margin: 0 auto 48px; }

/* ---------- Steps ---------- */
.steps-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}
.step-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow .2s, transform .2s;
}
.step-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); transform: translateY(-3px); }
.step-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.step-arrow svg {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(79,70,229,0.2));
  animation: arrowPulse 2s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(4px); opacity: 1; }
}

/* ---------- Modules ---------- */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.module-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: left;
  transition: box-shadow .2s, transform .2s;
}
.module-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); transform: translateY(-3px); }
.module-icon { margin-bottom: 16px; }
.module-icon svg { width: 40px; height: 40px; }
.module-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.module-card p { font-size: 0.875rem; color: #64748b; line-height: 1.7; }

/* ---------- Use Cases ---------- */
.usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; text-align: left; }
.usecase-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 28px;
}
.usecase-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: #0f172a; }
.usecase-card ul li {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.usecase-card ul li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px;
  background: #4f46e5;
  border-radius: 50%;
}

/* ---------- About ---------- */
.about-content { max-width: 720px; margin: 0 auto; }
.about-card { text-align: left; }
.about-card p { font-size: 1rem; color: #475569; line-height: 1.8; margin-bottom: 16px; }
.about-card p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-content { max-width: 500px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.contact-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1e293b;
  background: #fff;
  resize: vertical;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.contact-textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.contact-textarea::placeholder { color: #94a3b8; }
.contact-note { margin-top: 20px; font-size: 0.85rem; color: #64748b; }
.contact-note a { color: #4f46e5; font-weight: 600; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: left;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); transform: translateY(-3px); }
.feature-icon { margin-bottom: 14px; }
.feature-icon svg { width: 32px; height: 32px; }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.85rem; color: #64748b; line-height: 1.65; }

/* ---------- CTA ---------- */
.cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
  color: #fff;
}
.cta h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta p { font-size: 1.05rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; }

/* ---------- Footer ---------- */
.footer { padding: 32px 0; background: #0f172a; color: #94a3b8; font-size: 0.8rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #94a3b8; transition: color .2s; }
.footer-links a:hover { color: #a5b4fc; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 110px 0 70px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .section { padding: 64px 0; }
  .steps-flow { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); padding: 8px 0; }
}
