/* Import Cyber-Premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@500;700;800&display=swap');

/* Redesigned CSS Design Tokens */
:root {
  /* Option 2: Black-Pink Palette */
  --primary-pink: #FF2D72;
  --secondary-pink: #FF80AB;
  --pink-glow: rgba(255, 45, 114, 0.25);
  
  --dark-bg: #0F0F0F;
  --mesh-line: rgba(255, 255, 255, 0.03);
  
  /* Bento backgrounds & borders */
  --bento-bg: rgba(20, 16, 18, 0.7);
  --bento-border: rgba(255, 45, 114, 0.12);
  --bento-border-hover: rgba(255, 45, 114, 0.45);
  --bento-glow: rgba(255, 45, 114, 0.08);
  
  --white: #FFFFFF;
  --text-grey: #DFD0D4;
  --text-muted: #8E7D81;
  
  /* Fonts */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Header dimensions */
  --header-height: 80px;
  --header-height-shrink: 65px;
  --container-width: 1200px;
  
  /* Animations & Transitions */
  --curve-bezier: cubic-bezier(0.2, 1, 0.2, 1);
  --transition-slow: all 0.5s var(--curve-bezier);
  --transition-fast: all 0.2s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark-bg);
  /* Cyber Grid Background Line Drawing */
  background-image: 
    linear-gradient(to right, var(--mesh-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--mesh-line) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

/* Customized Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 45, 114, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-pink);
}

/* Neon Glow Ambient Backdrops */
.neon-blob-1 {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 45, 114, 0.16) 0%, transparent 75%);
  top: -80px;
  left: 10%;
  z-index: 0;
  pointer-events: none;
  animation: drift-slow 15s infinite alternate;
}

.neon-blob-2 {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 128, 171, 0.1) 0%, transparent 75%);
  top: 50%;
  right: -100px;
  z-index: 0;
  pointer-events: none;
  animation: drift-slow 20s infinite alternate-reverse;
}

@keyframes drift-slow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -50px) scale(1.1); }
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* Sticky Header styling */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background-color: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-slow);
}

header.shrink {
  height: var(--header-height-shrink);
  background-color: rgba(10, 10, 10, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 45, 114, 0.15);
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes shrink-header {
    to {
      height: var(--header-height-shrink);
      background-color: rgba(10, 10, 10, 0.95);
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
      border-bottom: 1px solid rgba(255, 45, 114, 0.15);
    }
  }
  header {
    animation: shrink-header auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 120px;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.7rem;
  background: linear-gradient(135deg, var(--white) 30%, var(--primary-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  color: var(--primary-pink);
  -webkit-text-fill-color: var(--primary-pink);
}

nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav a {
  text-decoration: none;
  color: var(--text-grey);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

nav a:hover, nav a.active {
  color: var(--primary-pink);
  text-shadow: 0 0 10px rgba(255, 45, 114, 0.4);
}

.nav-btn {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--secondary-pink) 100%);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px var(--pink-glow);
  transition: var(--transition-slow);
  text-decoration: none;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255, 45, 114, 0.6);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Redesigned Centered Hero Section with Overlapping Mockups */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 120px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-info-wrapper {
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
  z-index: 5;
}

.hero-tag {
  background: rgba(255, 45, 114, 0.1);
  border: 1px solid rgba(255, 45, 114, 0.25);
  color: var(--secondary-pink);
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-heading {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.hero-heading span {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--secondary-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-grey);
  max-width: 600px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* App Badges */
.btn-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #000000;
  border: 1px solid #2A2A2A;
  color: #FFFFFF;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 12px;
  transition: var(--transition-slow);
}

.btn-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-badge:hover {
  border-color: var(--primary-pink);
  background-color: #080808;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 45, 114, 0.2);
}

.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-text .small {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #A0A0A0;
}

.badge-text .large {
  font-size: 1rem;
  font-weight: 700;
}

/* Triple Overlapping Mockups Grid */
.hero-showcase-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 480px;
  margin: 0 auto;
  z-index: 2;
  margin-top: 20px;
}

.mockup-item {
  position: absolute;
  width: 210px;
  height: 430px;
  background-color: #080808;
  border: 7px solid #222222;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  overflow: hidden;
  transition: var(--transition-slow);
}

.mockup-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom alignment for overlapping phones */
.mockup-item.phone-left {
  left: 10%;
  bottom: 0;
  transform: rotate(-10deg) scale(0.9);
  z-index: 1;
  opacity: 0.7;
}

.mockup-item.phone-center {
  left: 50%;
  top: 0;
  transform: translateX(-50%) scale(1.05);
  z-index: 3;
  border-color: #333333;
  box-shadow: 0 30px 80px rgba(255, 45, 114, 0.25), 0 0 30px rgba(0,0,0,0.9);
}

.mockup-item.phone-right {
  right: 10%;
  bottom: 0;
  transform: rotate(10deg) scale(0.9);
  z-index: 2;
  opacity: 0.7;
}

.mockup-item:hover {
  transform: translateY(-10px) scale(1.1) !important;
  z-index: 10;
  opacity: 1 !important;
  border-color: var(--primary-pink);
  box-shadow: 0 30px 80px rgba(255, 45, 114, 0.4);
}

/* Stat strip */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
  margin-top: 40px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-pink);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modern Bento Grid Features Section */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 24px;
  margin-top: 50px;
}

.bento-card {
  background-color: var(--bento-bg);
  border: 1px solid var(--bento-border);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition-slow);
}

/* Card custom grid placements */
.bento-card.wide {
  grid-column: span 2;
}

.bento-card.tall {
  grid-row: span 2;
  justify-content: space-between;
}

.bento-card:hover {
  border-color: var(--bento-border-hover);
  box-shadow: 0 15px 40px var(--bento-glow);
  transform: translateY(-4px);
}

/* Card inner designs */
.bento-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background-color: rgba(255, 45, 114, 0.1);
  color: var(--primary-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.bento-card.tall .bento-icon {
  margin-bottom: 0;
}

.bento-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.bento-content p {
  color: var(--text-grey);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Limit content width for wide bento cards on desktop for elegant readability */
@media (min-width: 769px) {
  .bento-card.wide .bento-content {
    max-width: 580px;
  }
}


/* Staggered Horizontal Scroll Gallery Showcase */
.gallery-section {
  padding-bottom: 120px;
  overflow: hidden;
}

.gallery-track-container {
  margin-top: 40px;
  position: relative;
  width: 100%;
  cursor: grab;
}

.gallery-track-container:active {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 20px 0;
  transition: transform 0.1s linear;
}

.gallery-item {
  width: 240px;
  height: 480px;
  background-color: #080808;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  transition: var(--transition-slow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--primary-pink);
  box-shadow: 0 25px 50px rgba(255, 45, 114, 0.2);
}

/* Glassmorphism Corporate Dashboard credentials card */
.company-card-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.company-dashboard {
  background: linear-gradient(135deg, rgba(25, 20, 22, 0.8) 0%, rgba(10, 8, 9, 0.8) 100%);
  border: 1px solid var(--bento-border);
  border-radius: 30px;
  padding: 48px;
  width: 100%;
  max-width: 950px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.7);
}

.company-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.company-meta h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.company-meta p {
  color: var(--text-grey);
  font-size: 0.98rem;
  line-height: 1.6;
}

.company-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 45, 114, 0.1);
  color: var(--primary-pink);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.company-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.dashboard-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.dashboard-val {
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: right;
}

.dashboard-val a {
  color: var(--secondary-pink);
  text-decoration: none;
  transition: var(--transition-fast);
}

.dashboard-val a:hover {
  text-shadow: 0 0 10px rgba(255, 128, 171, 0.5);
}

/* Call To Action layout */
.cta-banner {
  background: linear-gradient(135deg, rgba(25, 15, 20, 0.9) 0%, rgba(10, 5, 8, 0.9) 100%);
  border: 1px solid var(--bento-border);
  border-radius: 30px;
  padding: 60px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

.cta-banner h2 {
  font-size: 2.8rem;
  font-weight: 800;
  max-width: 700px;
}

.cta-banner p {
  color: var(--text-grey);
  font-size: 1.1rem;
  max-width: 550px;
}

/* Legal layout details */
.legal-page {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
}

.legal-container {
  max-width: 820px;
  margin: 0 auto;
  background-color: var(--bento-bg);
  border: 1px solid var(--bento-border);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.legal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white) 30%, var(--primary-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.legal-content {
  font-size: 0.96rem;
  color: var(--text-grey);
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--white);
  margin-top: 36px;
  margin-bottom: 16px;
  border-left: 3px solid var(--primary-pink);
  padding-left: 14px;
}

.legal-content p {
  margin-bottom: 18px;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--secondary-pink);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Footer layout */
footer {
  background-color: #060606;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand p {
  color: var(--text-grey);
  font-size: 0.92rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  text-decoration: none;
  color: var(--text-grey);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--primary-pink);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 28px;
}

.footer-bottom-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--text-grey);
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-heading {
    font-size: 3rem;
  }
  
  .hero-showcase-container {
    height: 380px;
  }
  
  .mockup-item {
    width: 170px;
    height: 350px;
  }
  
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(220px, auto);
  }
  
  .bento-card.wide {
    grid-column: span 2;
  }
  
  .bento-card.tall {
    grid-row: span 1;
    height: auto;
  }
  
  .company-dashboard {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #0E0C0D;
    padding: 40px 20px;
    border-bottom: 1px solid rgba(255, 45, 114, 0.2);
    gap: 24px;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.9);
    z-index: 99;
  }
  
  .hero-showcase-container {
    height: 280px;
  }
  
  .mockup-item {
    width: 120px;
    height: 250px;
  }
  
  .mockup-item.phone-left {
    left: 5%;
  }
  
  .mockup-item.phone-right {
    right: 5%;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-card.wide {
    grid-column: span 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .legal-container {
    padding: 24px;
  }
}
