/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-color: #0E0E0F;
  --card-bg: rgba(28, 28, 30, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #FAFAF8;
  --text-secondary: #9E9890;
  --text-muted: #6B6560;
  
  /* Brand Accents */
  --electric-violet: #7B4FFF;
  --electric-violet-glow: rgba(123, 79, 255, 0.35);
  --amber-glow: #FF8C42;
  --amber-glow-glow: rgba(255, 140, 66, 0.3);
  --soft-rose: #FFB5C8;
  --ocean-teal: #1DBFC0;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Base Resets --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* --- Ambient Glowing Backgrounds --- */
.glow {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(140px);
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--electric-violet) 0%, transparent 80%);
  top: -150px;
  right: -50px;
  animation: float-glow 12s infinite alternate ease-in-out;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 80%);
  top: 35vh;
  left: -200px;
  animation: float-glow-reverse 15s infinite alternate ease-in-out;
}

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

@keyframes float-glow-reverse {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, -60px) scale(0.9); }
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  background-color: rgba(14, 14, 15, 0.7);
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition-smooth);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  background: linear-gradient(135deg, #FAFAF8 0%, #C9C4BC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition-spring);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary {
  background-color: var(--electric-violet);
  color: var(--text-primary);
  box-shadow: 0 4px 15px var(--electric-violet-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--electric-violet-glow);
  background-color: #8c64ff;
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-nav {
  padding: 8px 20px;
  font-size: 14px;
}

/* --- Hero Section --- */
.hero-section {
  padding: 140px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.tagline-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--electric-violet);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.highlight {
  background: linear-gradient(135deg, var(--electric-violet) 0%, var(--amber-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
}

/* Store Badge Buttons */
.cta-group {
  display: flex;
  gap: 16px;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--text-primary);
  color: var(--bg-color);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-spring);
}

.store-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.store-icon {
  font-size: 26px;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  opacity: 0.8;
}

.store-main {
  font-size: 15px;
  font-weight: 700;
}

/* --- Hero Simulator Preview --- */
.hero-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Premium Phone Frame Mockup */
.phone-frame {
  width: 310px;
  height: 610px;
  border: 11px solid #1C1C1E;
  border-radius: 40px;
  background-color: #0E0E0F;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 4px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.phone-notch {
  width: 100px;
  height: 24px;
  background-color: #1C1C1E;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at center, #1E1B2A 0%, #0C0B12 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.home-screen-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px 16px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.home-widgets-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Simulated Widget (Medium layout) */
.simulated-widget {
  width: 100%;
  height: 140px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  cursor: pointer;
  transition: var(--transition-spring);
}

.simulated-widget:hover {
  transform: scale(1.02);
}

.widget-image-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.widget-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

.widget-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 40%, rgba(14, 14, 15, 0.85) 100%);
  pointer-events: none;
}

/* Simulated Badge Styles */
.widget-group-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(14, 14, 15, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-streak-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--amber-glow);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 800;
  color: var(--bg-color);
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 4px 10px var(--amber-glow-glow);
}

.widget-caption-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.widget-sender {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
  opacity: 0.9;
}

.widget-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Dummy Screen Elements */
.dummy-apps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 10px;
}

.dummy-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
}

.icon-messages { background: linear-gradient(135deg, #34C759 0%, #248A3D 100%); }
.icon-camera { background: linear-gradient(135deg, #8E8E93 0%, #3A3A3C 100%); }
.icon-photos { background: linear-gradient(135deg, #FF9500 0%, #FF3B30 100%); }
.icon-safari { background: linear-gradient(135deg, #5AC8FA 0%, #007AFF 100%); }

.app-label {
  font-size: 9px;
  font-weight: 500;
  opacity: 0.8;
  white-space: nowrap;
}

/* --- Simulation Controller Overlay Card --- */
.simulation-controller-card {
  position: absolute;
  bottom: -40px;
  right: -80px;
  width: 250px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.controller-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background-color: #34C759;
  border-radius: 50%;
  box-shadow: 0 0 10px #34C759;
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.simulation-controller-card h4 {
  font-size: 13px;
  font-weight: 700;
}

.simulation-controller-card p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.simulation-progress-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background-color: var(--electric-violet);
  border-radius: var(--radius-full);
  transition: width 1s linear;
}

.simulation-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-step {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-step::before {
  content: "•";
}

.sim-step.active {
  color: var(--electric-violet);
}

.sim-step.complete {
  color: #34C759;
}

/* --- Features Section --- */
.features-section {
  padding: 100px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: var(--transition-spring);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(123, 79, 255, 0.2);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- FAQ Section --- */
.faq-section {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.faq-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--electric-violet);
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust according to text */
}

/* --- Early Access Sign up --- */
.signup-section {
  padding: 100px 24px;
  position: relative;
  z-index: 10;
}

.signup-container {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(123, 79, 255, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
  border: 1px solid var(--card-border);
  padding: 50px 40px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
}

.signup-container h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.signup-container p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
}

.signup-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.signup-form input {
  flex: 1;
  background-color: rgba(14, 14, 15, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 14px 24px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition-smooth);
}

.signup-form input:focus {
  outline: none;
  border-color: var(--electric-violet);
  box-shadow: 0 0 10px rgba(123, 79, 255, 0.15);
}

.success-message {
  margin-top: 16px;
  font-size: 14px;
  color: #34C759;
  font-weight: 600;
  display: none;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 24px;
  background-color: #080809;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--text-primary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 80px;
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto 40px;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .simulation-controller-card {
    right: 0;
    bottom: -60px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .navbar-container {
    padding: 14px 16px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .store-button {
    padding: 8px 16px;
  }
  
  .store-icon {
    font-size: 20px;
  }
  
  .store-main {
    font-size: 13px;
  }
  
  .signup-form {
    flex-direction: column;
    gap: 16px;
  }
  
  .signup-form input {
    width: 100%;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
