/* VexaFrame AI — App landing theme */
:root {
  --primary: #6c3ce8;
  --primary-dark: #5428c4;
  --secondary: #ff6b9d;
  --accent: #00d4aa;
  --accent-2: #ffb347;
  --dark: #1a1625;
  --text: #4a4560;
  --text-light: #7a7590;
  --light-bg: #f8f6ff;
  --white: #ffffff;
  --surface-tint: rgba(108, 60, 232, 0.08);
  --shadow: 0 20px 60px rgba(108, 60, 232, 0.15);
  --shadow-sm: 0 8px 30px rgba(26, 22, 37, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

/* Navbar */
.navbar-artisan {
  padding: 1rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  background: rgba(255, 255, 255, 0.97) !important;
}

.navbar-artisan.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark) !important;
}

.navbar-brand span {
  color: var(--primary);
}

.nav-link {
  color: var(--dark) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.btn-nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.5rem !important;
  font-weight: 600;
}

.btn-nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: var(--white) !important;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--light-bg);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(108, 60, 232, 0.08);
  top: -100px;
  right: -150px;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 107, 157, 0.06);
  bottom: 0;
  left: -100px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid rgba(108, 60, 232, 0.15);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
}

.btn-primary-gradient {
  background: var(--primary);
  border: none;
  color: var(--white);
}

.btn-primary-gradient:hover {
  opacity: 0.92;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(108, 60, 232, 0.35);
}

.btn-outline-primary-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary-custom:hover {
  background: var(--primary);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--dark);
  line-height: 1.2;
}

.hero-stat span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

.phone-frame {
  background: url('../images/banner.png');
  background-size: cover;
  background-position: center;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow), 0 0 0 8px rgba(108, 60, 232, 0.08);
}

.phone-screen {
  border-radius: 28px;
  aspect-ratio: 9/19;
  overflow: hidden;
  position: relative;
}

.phone-screen-inner {
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mock-video-card {
  flex: 1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.mock-prompt {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  animation: float 4s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 15%;
  left: -20%;
  animation-delay: 0s;
  z-index: 100;
}

.floating-card.card-2 {
  bottom: 25%;
  right: -15%;
  animation-delay: 1.5s;
  z-index: 100;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Section common */
.section-padding {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title .subtitle {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Feature cards */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  height: 100%;
  border: 1px solid rgba(108, 60, 232, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: var(--white);
}

.feature-icon.purple {
  background: #6c3ce8;
}
.feature-icon.pink {
  background: #ff6b9d;
}
.feature-icon.teal {
  background: #00d4aa;
}
.feature-icon.orange {
  background: #ffb347;
}
.feature-icon.blue {
  background: #4facfe;
}
.feature-icon.violet {
  background: #a855f7;
}

.feature-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

/* How it works */
.how-section {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.how-section .section-title h2,
.how-section .section-title p {
  color: var(--white);
}

.how-section .section-title .subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.step-card {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
}

.step-card h4 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.step-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin: 0;
}

/* Use cases */
.use-case-tag {
  display: inline-block;
  background: var(--surface-tint);
  border: 1px solid rgba(108, 60, 232, 0.12);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  margin: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

/* App Gallery carousel */
.gallery-carousel {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  contain: layout style;
}

.gallery-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
}

.gallery-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0.25rem;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .gallery-slide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.screenshot-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-size: 100% 100%;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 9/16;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  min-height: 200px;
  min-width: 0;
}

.bg-1{
  background-image: url('../images/1.png');
}

.bg-2{
  background-image: url('../images/2.png');
}

.bg-3{
  background-image: url('../images/3.png');
}

.bg-4{
  background-image: url('../images/4.png');
}

.bg-solid-purple {
  background: #6c3ce8;
}
.bg-solid-teal {
  background: #00d4aa;
}
.bg-solid-orange {
  background: #ffb347;
}
.bg-solid-pink {
  background: #ff6b9d;
}
.bg-solid-blue {
  background: #4facfe;
}
.bg-solid-violet {
  background: #a855f7;
}
.bg-solid-primary-dark {
  background: #5428c4;
}
.bg-solid-accent {
  background: #00b894;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(108, 60, 232, 0.25);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-dot.active {
  background: var(--primary);
  transform: scale(1.15);
}

.screenshot-item span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(108, 60, 232, 0.06);
}

.testimonial-stars {
  color: var(--accent-2);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.testimonial-author h5 {
  font-size: 1rem;
  margin: 0;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Pricing */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  border: 2px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: rgba(108, 60, 232, 0.04);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Download CTA */
.download-section {
  background: var(--light-bg);
}

.download-box {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--white);
}

.download-box h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.download-box p {
  opacity: 0.9;
  max-width: 550px;
  margin: 0 auto 2rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  color: var(--dark);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: transform 0.25s ease;
}

.store-btn:hover {
  transform: scale(1.04);
  color: var(--dark);
}

.store-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.7;
}

/* FAQ */
.accordion-button:not(.collapsed) {
  background: var(--surface-tint);
  color: var(--primary-dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 60, 232, 0.2);
}

.accordion-item {
  border: 1px solid rgba(108, 60, 232, 0.1);
  border-radius: var(--radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

/* Contact */
.contact-form .form-control {
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(108, 60, 232, 0.15);
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(108, 60, 232, 0.15);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--surface-tint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  margin-right: 0.5rem;
  color: var(--white);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Legal pages */
.legal-page {
  padding: 120px 0 80px;
  background: var(--light-bg);
  min-height: 100vh;
}

.legal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  max-width: 1200px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-content .effective-date {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--primary);
  word-break: break-all;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 999;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 991px) {
  .floating-card {
    display: none;
  }

  .hero-section {
    text-align: center;
    padding-top: 100px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .phone-mockup {
    margin-top: 3rem;
  }

  .legal-content {
    padding: 2rem 1.5rem;
  }

  .navbar-brand {
    font-size: 1.1rem;
    max-width: calc(100vw - 4.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: 60px 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 1.85rem;
    word-break: break-word;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .hero-stats {
    gap: 1.25rem;
    justify-content: space-between;
  }

  .hero-stat {
    flex: 1 1 auto;
    min-width: 0;
  }

  .use-case-tag {
    margin: 0.25rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }

  .gallery-slide {
    gap: 0.75rem;
  }

  .screenshot-item {
    padding: 0.75rem;
    min-height: 0;
  }

  .screenshot-item span {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .download-box {
    padding: 2.5rem 1.25rem;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}
