/* Custom Design Tokens & Variables */
:root {
  --bg-color: #050716;
  --bg-darker: #02030a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(103, 80, 164, 0.3);
  
  --primary: #6750A4;    /* hexColorGood */
  --primary-light: #6750A4;
  --secondary: #625B71;  /* hexColorNeutral */
  --accent: #7D5260;     /* hexColorBad */
  --pink: #7D5260;       /* hexColorBad */
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px -10px rgba(103, 80, 164, 0.5);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid var(--bg-darker);
}
body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--accent);
}

/* Background Mesh Gradients */
.background-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  mix-blend-mode: screen;
  animation: float-glow 20s infinite alternate;
}

.glow-1 {
  top: -10%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: var(--primary);
}

.glow-2 {
  top: 30%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: var(--secondary);
  animation-delay: -5s;
}

.glow-3 {
  bottom: 10%;
  left: -10%;
  width: 45vw;
  height: 45vw;
  background: var(--accent);
  animation-delay: -10s;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(8%, 10%) scale(1.15);
  }
}

/* Layout Containers */
.main-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 7, 22, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--bg-card);
  font-size: 1.2rem;
  color: white;
  -webkit-text-fill-color: initial;
  box-shadow: 0 0 15px rgba(103, 80, 164, 0.4);
  overflow: hidden;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: var(--transition-fast);
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn {
  background: var(--primary);
  color: white !important;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-btn:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Glassmorphism Components */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(103, 80, 164, 0.15);
  border: 1px solid rgba(103, 80, 164, 0.3);
  color: #d8b4fe;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(103, 80, 164, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Smartphone Mockup */
.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 290px;
  height: 590px;
  background: #020205;
  border: 5px solid #1e293b;
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(103, 80, 164, 0.2);
  overflow: hidden;
  z-index: 5;
}



.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--bg-darker);
}

.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Glow ring behind phone */
.media-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(103, 80, 164, 0.3);
  z-index: 1;
  filter: blur(40px);
  animation: pulse-glow 6s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Sections Core Styling */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* App Modes (3 Columns) */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mode-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition-smooth);
}
.mode-card:hover::before {
  opacity: 1;
}

.mode-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.mode-emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* About I Ching info section */
.info-section {
  background: rgba(103, 80, 164, 0.04);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.info-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.info-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.info-quote {
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 2rem 0;
}

.info-symbol {
  font-size: 14rem;
  text-align: center;
  font-weight: 300;
  line-height: 1;
  color: var(--primary);
  animation: pulse-symbol 5s infinite ease-in-out;
  user-select: none;
}

@keyframes pulse-symbol {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 10px rgba(103, 80, 164, 0.1));
  }
  50% {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 0 35px rgba(103, 80, 164, 0.4));
  }
}

/* Target Audience & Quote */
.audience-section {
  position: relative;
}

.audience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.audience-bullet {
  font-size: 1.8rem;
  line-height: 1;
}

.audience-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.audience-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.night-box {
  margin-top: 3rem;
  background: rgba(98, 91, 113, 0.15);
  border: 1px solid rgba(103, 80, 164, 0.2);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.night-icon {
  font-size: 3rem;
}

.night-text {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  color: #e9d5ff;
}

/* Call To Action (CTA) */
.cta-section {
  padding: 8rem 0;
  position: relative;
  text-align: center;
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}

.cta-emoji {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.cta-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  display: block;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
              0 0 0 1px rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cta-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* Founder Team Section */
.founder-card {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.founder-img-wrapper {
  position: relative;
  flex-shrink: 0;
}

.founder-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.founder-img-wrapper::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: var(--primary);
  z-index: -1;
}

.founder-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.founder-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.founder-bio {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-link:hover {
  color: white;
}

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

/* Responsive Grid / Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .info-symbol {
    font-size: 10rem;
    grid-row: 1; /* Move symbol to top on tablet/mobile */
  }
  
  .modes-grid {
    grid-template-columns: 1fr;
  }
  
  .founder-card {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .nav-menu {
    display: none; /* Hide desktop nav menu */
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .glass-card {
    padding: 1.75rem;
  }
  
  .night-box {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Glassmorphic Language Dropdown Selector */
.lang-select {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.4rem 1.8rem 0.4rem 1rem; /* Extra padding on right to clear native arrow if any, or standard spacing */
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  appearance: none; /* Hide default native arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.4)' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.8rem;
}

.lang-select:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.lang-select option {
  background-color: #0c0f2b; /* Match deep container bg for options list */
  color: var(--text-primary);
  padding: 10px;
}

/* Screenshots Section Styling */
.screenshots-slider-wrapper {
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 80, 164, 0.3) var(--bg-darker);
}

.screenshots-slider-wrapper::-webkit-scrollbar {
  height: 8px;
}

.screenshots-slider-wrapper::-webkit-scrollbar-track {
  background-color: var(--bg-darker);
  border-radius: 10px;
}

.screenshots-slider-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(103, 80, 164, 0.4);
}

.screenshots-slider-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: rgba(103, 80, 164, 0.6);
}

.screenshots-track {
  display: flex;
  gap: 2rem;
  padding: 0 1rem;
  width: max-content;
}

.screenshot-slide {
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.screenshot-slide:hover {
  transform: translateY(-8px) scale(1.02);
}

.screenshot-phone-frame {
  width: 250px;
  height: 440px;
  background: #020205;
  border: 3px solid #1e293b;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
              0 0 25px rgba(103, 80, 164, 0.1);
  overflow: hidden;
  position: relative;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

