/* ==========================================================================
   Fixify Landing — styles.css
   Font: Urbanist | Primary: #7C3AED | Secondary: #06B6D4
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  background: #F7F8FC;
  color: #1E1B4B;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Utility ---------- */
.text-accent {
  color: #7C3AED;
}

.text-white-accent {
  color: #C4B5FD;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7C3AED;
  background: #F5F3FF;
  border: 1px solid #E9D5FF;
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-ghost {
  color: #1E1B4B;
  background: transparent;
  border: 1.5px solid #CBD5E1;
}

.btn-ghost:hover {
  border-color: #7C3AED;
  color: #7C3AED;
}

.btn-white {
  color: #7C3AED;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  border-radius: 0.85rem;
}

.btn-arrow {
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: #fff;
}

.logo-icon svg {
  display: block;
}

.logo-icon.light {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: #fff;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1E1B4B;
}

.logo-accent {
  color: #7C3AED;
}

.logo-accent-light {
  color: #C4B5FD;
}

/* Footer logo text override */
.footer .logo-text {
  color: #fff;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748B;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #7C3AED;
}

.nav-cta {
  font-size: 0.9rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1E1B4B;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 10rem 0 5rem;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-top: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: #64748B;
  max-width: 640px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Live strip ---------- */
.live-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.live-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  font-size: 0.85rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

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

.live-text {
  font-weight: 600;
  color: #1E1B4B;
}

.live-detail {
  color: #64748B;
  font-weight: 500;
}

.live-card svg {
  flex-shrink: 0;
}

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
.problems,
.services,
.how-it-works,
.trust-section,
.testimonials {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 0.75rem;
  max-width: 640px;
  letter-spacing: -0.01em;
}

/* Center badges and titles in sections */
.problems .container,
.services .container,
.how-it-works .container,
.trust-section .container,
.testimonials .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ==========================================================================
   PROBLEMS
   ========================================================================== */
.problems-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  width: 100%;
  margin-top: 2.5rem;
}

.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border: 1.5px dashed #CBD5E1;
  border-radius: 1rem;
  text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.problem-card:hover {
  border-color: #7C3AED;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
}

.problem-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 12px;
  background: var(--pi-bg);
  color: var(--pi-color);
}

.problem-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.problem-text p {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.6;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  width: 100%;
}

.service-card {
  background: #F7F8FC;
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--si-bg);
  color: var(--si-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.6;
}

/* ==========================================================================
   HOW IT WORKS — Steps
   ========================================================================== */
.steps-wrapper {
  width: 100%;
  margin-top: 2.5rem;
}

.steps-progress {
  position: relative;
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

.progress-line {
  position: absolute;
  top: 0;
  left: 16.66%;
  right: calc(100% - 83.33%);
  height: 100%;
  background: linear-gradient(90deg, #06B6D4, #7C3AED);
  border-radius: 2px;
}

.progress-dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: #7C3AED;
  border-radius: 50%;
  border: 3px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #06B6D4);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step-card p {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.6;
  max-width: 300px;
}

/* ==========================================================================
   TRUST
   ========================================================================== */
.trust-card {
  background: linear-gradient(135deg, #F5F3FF, #ECFEFF);
  border-radius: 1.5rem;
  padding: 3rem;
  margin-top: 2.5rem;
  width: 100%;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.trust-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7C3AED;
  color: #fff;
  flex-shrink: 0;
}

.trust-item h4 {
  font-size: 1rem;
  font-weight: 700;
}

.trust-item p {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.6;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  width: 100%;
  align-items: start;
}

.testimonial-card {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7C3AED, #06B6D4);
  border-radius: 1rem 1rem 0 0;
}

.testimonial-card.featured {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12);
}

.t-rating {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.testimonial-card > p {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.t-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ta-bg);
  color: var(--ta-color);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.t-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1E1B4B;
}

.t-author span {
  font-size: 0.8rem;
  color: #64748B;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: #fff;
  text-align: center;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  max-width: 600px;
  letter-spacing: -0.01em;
}

.cta-section p {
  margin-top: 1rem;
  font-size: 1.1rem;
  opacity: 0.85;
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 4rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #CBD5E1;
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: #94A3B8;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #1E293B;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #fff;
}

/* ==========================================================================
   ANIMATIONS — rise-el
   ========================================================================== */
.rise-el {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rise-el.shown {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.rise-el:nth-child(2) {
  transition-delay: 0.08s;
}

.rise-el:nth-child(3) {
  transition-delay: 0.16s;
}

.rise-el:nth-child(4) {
  transition-delay: 0.24s;
}

.rise-el:nth-child(5) {
  transition-delay: 0.32s;
}

.rise-el:nth-child(6) {
  transition-delay: 0.40s;
}

/* Featured testimonial keeps scale after animation */
.testimonial-card.featured.rise-el.shown {
  transform: scale(1.03);
}

/* ==========================================================================
   RESPONSIVE — 1024px
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   RESPONSIVE — 768px
   ========================================================================== */
@media (max-width: 768px) {
  /* Navbar */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease;
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 8rem 0 3.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Live strip */
  .live-strip {
    flex-direction: column;
  }

  /* Sections */
  .section-title {
    font-size: 1.75rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .steps-progress {
    display: none;
  }

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

  /* Trust */
  .trust-card {
    padding: 2rem;
  }

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

  .trust-item {
    flex-direction: row;
    text-align: left;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card.featured {
    transform: none;
  }

  .testimonial-card.featured.rise-el.shown {
    transform: translateY(0);
  }

  /* CTA */
  .cta-section h2 {
    font-size: 1.75rem;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   RESPONSIVE — 480px
   ========================================================================== */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .problem-card {
    padding: 1.25rem;
  }

  .trust-card {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .navbar {
    position: relative;
    background: #fff;
    box-shadow: none;
  }

  .hamburger,
  .nav-cta {
    display: none;
  }

  .rise-el {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero {
    padding-top: 2rem;
  }

  .cta-section {
    background: #7C3AED;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .footer {
    background: #0F172A;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    visibility: visible;
  }

  * {
    visibility: visible;
  }
}

/* === Cube AI Badge === */
.cube-ai-strip{display:flex;justify-content:center;align-items:center;padding:16px 24px;background:#050505;border-top:1px solid rgba(255,255,255,.06)}
.cube-ai-link{display:inline-flex;align-items:center;gap:12px;padding:8px 20px 8px 12px;border-radius:100px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);text-decoration:none;transition:all .4s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}
.cube-ai-link::before{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(135deg,rgba(139,92,246,.1),rgba(6,182,212,.1));opacity:0;transition:opacity .4s ease}
.cube-ai-link:hover::before{opacity:1}
.cube-ai-link:hover{border-color:rgba(139,92,246,.3);box-shadow:0 0 30px rgba(139,92,246,.15),0 0 60px rgba(6,182,212,.08);transform:translateY(-1px)}
.cube-3d{width:20px;height:20px;position:relative;transform-style:preserve-3d;transform:rotateX(-25deg) rotateY(30deg);transition:transform .6s cubic-bezier(.4,0,.2,1)}
.cube-ai-link:hover .cube-3d{transform:rotateX(-25deg) rotateY(210deg)}
.cube-face{position:absolute;width:20px;height:20px;border:1.5px solid rgba(139,92,246,.6);border-radius:3px}
.cube-face.front{transform:translateZ(10px);background:rgba(139,92,246,.15)}
.cube-face.back{transform:translateZ(-10px) rotateY(180deg);background:rgba(6,182,212,.1)}
.cube-face.top{transform:rotateX(90deg) translateZ(10px);background:rgba(139,92,246,.2)}
.cube-face.bottom{transform:rotateX(-90deg) translateZ(10px);background:rgba(6,182,212,.05)}
.cube-face.left{transform:rotateY(-90deg) translateZ(10px);background:rgba(6,182,212,.1)}
.cube-face.right{transform:rotateY(90deg) translateZ(10px);background:rgba(139,92,246,.1);border-color:rgba(6,182,212,.5)}
.cube-ai-made{font-family:system-ui,-apple-system,sans-serif;font-size:12px;color:rgba(255,255,255,.4);letter-spacing:.02em;position:relative;z-index:1}
.cube-ai-name{font-family:system-ui,-apple-system,sans-serif;font-size:13px;font-weight:700;background:linear-gradient(135deg,#8B5CF6,#06B6D4);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:.01em;position:relative;z-index:1}
.cube-ai-arrow{width:14px;height:14px;color:rgba(255,255,255,.3);transition:all .3s ease;position:relative;z-index:1}
.cube-ai-link:hover .cube-ai-arrow{color:#8B5CF6;transform:translate(2px,-2px)}
