/* ==========================================================================
   HaloPrompt — Dribbble Award-Winning Mobile App Landing Page System
   Clean, Airy Light Canvas (#F8FAFC) + Crisp Dark Studio Contrast & 3D Phone Mockup
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Canvas Colors */
  --bg-page: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-dark-card: #0F172A;
  --bg-dark-surface: #1E293B;
  
  /* Borders */
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-dark: rgba(255, 255, 255, 0.1);
  
  /* Text */
  --text-dark: #0F172A;
  --text-body: #475569;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --text-light-muted: #94A3B8;
  
  /* Accents */
  --primary-indigo: #6366F1;
  --primary-indigo-dark: #4F46E5;
  --primary-violet: #8B5CF6;
  --accent-pink: #EC4899;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  
  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Soft Dribbble Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(15, 23, 42, 0.04);
  --shadow-floating: 0 20px 40px -10px rgba(99, 102, 241, 0.25), 0 10px 20px rgba(0, 0, 0, 0.05);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Atmosphere (Soft subtle gradient mesh on light canvas) */
.bg-mesh {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 800px;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.09) 0%, rgba(236, 72, 153, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Floating Pill Navbar (Dribbble Signature)
   ========================================================================== */
.nav-wrapper {
  position: sticky;
  top: 20px;
  z-index: 100;
  padding: 0 24px;
  max-width: 1060px;
  margin: 0 auto;
}

.navbar-pill {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-full);
  padding: 10px 18px 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-indigo) 0%, var(--accent-pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--primary-indigo);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-black {
  background: var(--text-dark);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.btn-black:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-indigo) 0%, var(--primary-indigo-dark) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.45);
}

.btn-white {
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background: var(--bg-subtle);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 70px 0 60px;
  text-align: center;
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-indigo);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-h1 .gradient-word {
  background: linear-gradient(135deg, var(--primary-indigo) 0%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ==========================================================================
   3D Realistic Phone Mockup Hero Centerpiece
   ========================================================================== */
.phone-showcase-container {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-frame {
  width: 360px;
  height: 720px;
  background: #090B10;
  border: 11px solid #1E293B;
  border-radius: 54px;
  box-shadow: 0 35px 80px -15px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.phone-mockup-frame:hover {
  transform: translateY(-6px);
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000000;
  border-radius: var(--radius-full);
  z-index: 10;
}

/* Phone Screen App UI */
.phone-screen {
  width: 100%;
  height: 100%;
  background: #090B10;
  color: #F8FAFC;
  padding: 44px 18px 20px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.screen-appbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.screen-card-hero {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/4.5;
  background: #151926;
  position: relative;
  margin-bottom: 12px;
}

.screen-card-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-prompt-box {
  background: #131724;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #CBD5E1;
  line-height: 1.5;
  margin-bottom: 12px;
}

.screen-btn-row {
  display: flex;
  gap: 8px;
}

.screen-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.screen-btn-primary {
  background: #6366F1;
  color: white;
}

.screen-btn-secondary {
  background: #1E293B;
  color: #F8FAFC;
}

/* Floating Micro Cards Flanking the Phone */
.float-card {
  position: absolute;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-floating);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  text-align: left;
  animation: floatAnim 6s ease-in-out infinite alternate;
}

.float-left {
  left: 20px;
  top: 30%;
}

.float-right {
  right: 20px;
  bottom: 25%;
  animation-delay: -3s;
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.float-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-h {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}

.float-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Bento Grid (Dribbble Light & Dark Cards)
   ========================================================================== */
.section {
  padding: 90px 0;
}

.sec-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.sec-badge {
  color: var(--primary-indigo);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.sec-h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.sec-p {
  color: var(--text-muted);
  font-size: 16px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
}

.bento-card.dark-card {
  background: var(--bg-dark-card);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.bento-card.dark-card:hover {
  border-color: var(--primary-indigo);
}

.bento-card.col-2 {
  grid-column: span 2;
}

.bento-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #F1F5F9;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.dark-card .bento-icon-badge {
  background: #1E293B;
  color: #FFFFFF;
}

.bento-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.bento-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.dark-card .bento-desc {
  color: var(--text-light-muted);
}

/* ==========================================================================
   Interactive Studio Tabs inside Bento
   ========================================================================== */
.studio-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 16px 0;
  scrollbar-width: none;
}

.studio-tab {
  background: #1E293B;
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.studio-tab.active, .studio-tab:hover {
  background: var(--primary-indigo);
  color: white;
  border-color: var(--primary-indigo);
}

/* ==========================================================================
   Curated Masonry Showcase
   ========================================================================== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.showcase-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.showcase-img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #E2E8F0;
}

.showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.showcase-card:hover img {
  transform: scale(1.06);
}

.showcase-info {
  padding: 16px;
  text-align: left;
}

.showcase-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.showcase-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-indigo);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-btn {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
}

.faq-content {
  padding: 0 24px 22px;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
  display: none;
}

.faq-card.open .faq-content {
  display: block;
}

.faq-card.open {
  border-color: var(--primary-indigo);
}

.faq-card.open .faq-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   Bottom High-Conversion CTA
   ========================================================================== */
.cta-wrapper {
  background: var(--bg-dark-card);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin: 40px 0 90px;
  position: relative;
  overflow: hidden;
}

.cta-h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.cta-desc {
  color: var(--text-light-muted);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 50px 0 30px;
  background: var(--bg-white);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--primary-indigo);
}

/* ==========================================================================
   Legal Documents Styling
   ========================================================================== */
.legal-card-light {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
  margin: 40px auto 90px;
  max-width: 840px;
  text-align: left;
}

.legal-card-light h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.legal-card-light h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 28px 0 10px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.legal-card-light p, .legal-card-light li {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-card-light ul {
  padding-left: 22px;
}

/* Toast */
.dribbble-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-dark);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dribbble-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .float-left {
    left: -10px;
    top: 25%;
  }
  .float-right {
    right: -10px;
    bottom: 20%;
  }
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }
  .nav-wrapper {
    padding: 0 16px;
    top: 12px;
  }
  .navbar-pill {
    padding: 8px 14px 8px 18px;
  }
  
  .hero {
    padding: 50px 0 40px;
  }
  .hero-h1 {
    font-size: 34px;
    letter-spacing: -1.2px;
  }
  .hero-subtitle {
    font-size: 15px;
    padding: 0 8px;
  }
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-cta-row .btn {
    width: 100%;
    max-width: 320px;
  }
  
  /* Phone Mockup scaling */
  .phone-showcase-container {
    padding: 0 12px;
  }
  .phone-mockup-frame {
    width: 100%;
    max-width: 330px;
    height: auto;
    min-height: 620px;
    border-width: 9px;
    border-radius: 44px;
  }
  .float-card {
    display: none;
  }
  
  /* Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bento-card.col-2 {
    grid-column: span 1;
  }
  .bento-card {
    padding: 26px 20px;
  }
  
  /* Showcase Grid */
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* CTA Box */
  .cta-wrapper {
    padding: 40px 20px;
    margin: 20px 0 60px;
    border-radius: var(--radius-lg);
  }
  .cta-h2 {
    font-size: 26px;
  }
  
  /* Legal Pages */
  .legal-card-light {
    padding: 24px 18px;
    margin: 24px auto 60px;
  }
  .legal-card-light h1 {
    font-size: 26px;
  }
  
  /* Footer */
  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 29px;
    letter-spacing: -0.8px;
  }
  .phone-mockup-frame {
    max-width: 295px;
    min-height: 570px;
    border-width: 7px;
    border-radius: 38px;
  }
  .phone-screen {
    padding: 38px 12px 14px;
  }
  .screen-prompt-box {
    font-size: 10px;
    padding: 8px;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .bento-title {
    font-size: 18px;
  }
  .sec-h2 {
    font-size: 26px;
  }
}

