/* ----------------------------------------------------
   BwithU Website Design System - Premium Redesign
   Adhering strictly to BwithU Brand Guidelines
   ---------------------------------------------------- */

:root {
  /* Colors */
  --bg-deep-space: #060816;
  --bg-deep-space-rgb: 6, 8, 22;
  --color-aurora-purple: #a855f7;
  --color-aurora-purple-rgb: 168, 85, 247;
  --color-neon-cyan: #38bdf8;
  --color-neon-cyan-rgb: 56, 189, 248;
  --color-soft-white: #f5f7ff;
  --color-muted: #94a3b8;
  --color-border-glass: rgba(245, 247, 255, 0.07);
  --color-border-glass-hover: rgba(56, 189, 248, 0.25);
  
  /* Fonts */
  --font-headers: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------
   Base CSS Reset & Typography
   ------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-deep-space);
  color: var(--color-soft-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep-space);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  border: 2px solid var(--bg-deep-space);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-neon-cyan);
}

/* -------------------------------------------
   Immersive Animations & Keyframes
   ------------------------------------------- */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.35; filter: blur(40px); }
  50% { opacity: 0.6; filter: blur(60px); }
}

@keyframes spinAurora {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes breath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes borderFlash {
  0%, 100% { border-color: var(--color-border-glass); }
  50% { border-color: var(--color-neon-cyan); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-breath {
  animation: breath 4s ease-in-out infinite;
}

/* -------------------------------------------
   Ambient Lighting & Backgrounds
   ------------------------------------------- */
.aurora {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
  filter: blur(80px);
  mix-blend-mode: plus-lighter;
}

.aurora-1 {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
  top: -20vw;
  left: -10vw;
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

.aurora-2 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(0, 0, 0, 0) 70%);
  top: 40vw;
  right: -10vw;
  animation: pulseGlow 14s ease-in-out infinite alternate-reverse;
}

/* Dynamic particles container */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: var(--color-neon-cyan);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle 8s linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100px) translateX(30px); opacity: 0; }
}

/* -------------------------------------------
   Layout Containers
   ------------------------------------------- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header & Navigation Bar (Glassmorphic) */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 8, 22, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-glass);
  transition: padding var(--transition-normal);
  padding: 1.25rem 0;
}

.glass-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(6, 8, 22, 0.85);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-soft-white);
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: scale(1.02);
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.cyan-highlight {
  color: var(--color-neon-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-neon-cyan);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-soft-white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* -------------------------------------------
   Buttons Design System
   ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headers);
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-neon-cyan) 0%, var(--color-aurora-purple) 100%);
  color: #020617;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(56, 189, 248, 0.4);
}

.btn-glow {
  position: relative;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.4;
  filter: blur(10px);
  transition: filter var(--transition-fast);
}

.btn-glow:hover::before {
  filter: blur(15px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-soft-white);
  border: 1px solid var(--color-border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

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

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #c084fc;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-headers);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-neon-cyan) 10%, var(--color-aurora-purple) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--color-border-glass);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-neon-cyan);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Floating Glassmorphic Hero Visual Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.companion-glass-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-glass);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.companion-glass-card:hover {
  border-color: var(--color-border-glass-hover);
  box-shadow: 0 30px 60px -10px rgba(56, 189, 248, 0.15);
}

.companion-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(56, 189, 248, 0.05) 50%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  filter: blur(10px);
}

.companion-visual-inner {
  position: relative;
  z-index: 2;
  width: 60%;
  height: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mascot-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal), filter var(--transition-normal);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
  animation: float 6s ease-in-out infinite;
}

.hero-mascot-image:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 12px 24px rgba(168, 85, 247, 0.4));
}

.live-status-dot {
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2), 0 0 15px #22c55e;
}

/* Floating speech bubble */
.floating-speech-bubble {
  position: absolute;
  top: -15px;
  right: -25px;
  background: rgba(245, 247, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-glass);
  padding: 0.95rem 1.5rem;
  border-radius: 24px 24px 24px 4px;
  max-width: 240px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 10;
  animation: float 5.5s ease-in-out infinite alternate;
}

/* -------------------------------------------
   Section Headers Block
   ------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: var(--color-neon-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-family: var(--font-headers);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* -------------------------------------------
   Simulated Companion Playground
   ------------------------------------------- */
.playground-section {
  padding: 6rem 0;
  background: radial-gradient(circle at bottom, rgba(168, 85, 247, 0.05), transparent 45%);
}

.playground-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: flex-start;
}

/* Browser Simulation UI Mockup */
.browser-mockup {
  background: rgba(6, 8, 22, 0.6);
  border: 1px solid var(--color-border-glass);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  height: 520px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}

.browser-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--color-border-glass);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.browser-dots {
  display: flex;
  gap: 0.4rem;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.browser-tabs {
  display: flex;
  gap: 0.5rem;
}

.browser-tabs .tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-glass);
  padding: 0.35rem 0.95rem;
  border-radius: 12px 12px 0 0;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
}

.browser-tabs .tab.active {
  background: var(--bg-deep-space);
  border-bottom-color: transparent;
  color: var(--color-soft-white);
}

.browser-address-bar {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-glass);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  gap: 0.5rem;
}

.address-input {
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 0.75rem;
  width: 100%;
  outline: none;
}

.browser-body {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  position: relative;
  overflow: hidden;
}

/* Simulated inner page */
.browser-viewport {
  background: #0b0d1e;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.viewport-default-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-soft-white);
}

.viewport-default-content p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* Skeleton loader layout */
.mock-article-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sk-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.sk-1 { width: 90%; }
.sk-2 { width: 75%; }
.sk-3 { width: 50%; }

/* Simulation Overlays */
.sim-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 13, 30, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10;
  transition: opacity var(--transition-normal);
}

.sim-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.sim-search-tab {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-glass);
  padding: 1.25rem;
  border-radius: 16px;
}

.sim-search-tab h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--color-neon-cyan);
}

.search-result-item h5 {
  font-size: 0.85rem;
  color: var(--color-soft-white);
  margin-bottom: 0.25rem;
}

.search-result-item p {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.sim-calendar-event {
  width: 100%;
  display: flex;
  justify-content: center;
}

.calendar-card {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 1.25rem;
  border-radius: 16px;
  text-align: center;
  max-width: 260px;
}

.cal-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.calendar-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.cal-time {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.cal-location {
  font-size: 0.75rem;
  color: var(--color-neon-cyan);
}

/* Sidebar Chat UI */
.browser-sidebar {
  border-left: 1px solid var(--color-border-glass);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--color-border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.sidebar-online {
  color: #22c55e;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.sidebar-online::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}

.chat-log {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-turn {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.chat-avatar {
  font-size: 1rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-glass);
}

.chat-message-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-glass);
  padding: 0.75rem 0.95rem;
  border-radius: 0 16px 16px 16px;
  font-size: 0.8rem;
  max-width: 85%;
}

.user-turn {
  flex-direction: row-reverse;
}

.user-turn .chat-message-bubble {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
  border-radius: 16px 0 16px 16px;
}

.chat-message-text {
  word-break: break-word;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid var(--color-border-glass);
  background: rgba(6, 8, 22, 0.8);
}

.chat-input-area form {
  display: flex;
  gap: 0.5rem;
}

.chat-input-area input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-glass);
  border-radius: 12px;
  padding: 0.5rem 0.95rem;
  color: var(--color-soft-white);
  font-size: 0.8rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.chat-input-area input:focus {
  border-color: var(--color-neon-cyan);
}

.chat-send-btn {
  background: var(--color-neon-cyan);
  color: #020617;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

/* Floating browser overlay bear character */
.browser-character {
  position: absolute;
  bottom: 5%;
  left: 3%;
  z-index: 20;
}

.sim-bear-wrapper {
  position: relative;
}

.sim-mascot-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.sim-speech-bubble {
  position: absolute;
  bottom: 54px;
  left: 0;
  background: rgba(245, 247, 255, 0.95);
  color: #020617;
  padding: 0.5rem 0.85rem;
  border-radius: 14px 14px 14px 2px;
  font-size: 0.75rem;
  font-weight: 600;
  width: max-content;
  max-width: 180px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: opacity var(--transition-normal);
}

.sim-speech-bubble.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Controls Panel Left */
.playground-controls h3 {
  font-family: var(--font-headers);
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.playground-controls p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.action-chips {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.chip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-glass);
  padding: 0.85rem 1.25rem;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  transition: all var(--transition-fast);
}

.chip:hover {
  background: rgba(56, 189, 248, 0.04);
  border-color: var(--color-neon-cyan);
  transform: translateX(4px);
}

.chip-icon {
  font-size: 1.15rem;
}

.chip-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-soft-white);
}

.playground-feature-preview h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.console-box {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--color-border-glass);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  font-family: monospace;
  font-size: 0.75rem;
  height: 90px;
  overflow-y: auto;
}

.console-line {
  margin-bottom: 0.35rem;
  color: var(--color-neon-cyan);
}

.console-line.text-muted {
  color: var(--color-muted);
}

/* -------------------------------------------
   Features Section Grid
   ------------------------------------------- */
.features-section {
  padding: 6rem 0;
}

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

/* Premium Neon Glow Card */
.feature-card-premium {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-glass);
  padding: 2.5rem;
  border-radius: 32px;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.feature-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(56, 189, 248, 0.08), transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.feature-card-premium:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-glass-hover);
  box-shadow: 0 20px 40px -10px rgba(56, 189, 248, 0.08);
}

.feat-glow {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  filter: blur(15px);
  pointer-events: none;
}

.feat-icon {
  display: inline-flex;
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.feature-card-premium h3 {
  font-family: var(--font-headers);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.feature-card-premium p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* -------------------------------------------
   Interactive Mood Customizer
   ------------------------------------------- */
.customizer-section {
  padding: 6rem 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.06), transparent 45%);
}

.customizer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

/* Main customizer display container */
.customizer-visual {
  display: flex;
  justify-content: center;
}

.customizer-glass-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-glass);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.customizer-glow-layer {
  position: absolute;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(56, 189, 248, 0.08) 40%, transparent 60%);
  filter: blur(25px);
  transition: background var(--transition-slow);
  z-index: 0;
}

.customizer-mascot-image {
  width: 55%;
  height: 55%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

.customizer-balloon {
  position: absolute;
  bottom: 8%;
  background: rgba(6, 8, 22, 0.85);
  border: 1px solid var(--color-border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.65rem 1.25rem;
  border-radius: 20px;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  z-index: 2;
  transition: transform var(--transition-normal);
}

.balloon-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-soft-white);
}

/* Sparkle particles absolute layers */
.sparkle {
  position: absolute;
  font-size: 1.25rem;
  z-index: 2;
  opacity: 0.5;
  pointer-events: none;
}

.sp-1 { top: 20%; left: 20%; animation: float 4s ease-in-out infinite alternate; }
.sp-2 { top: 30%; right: 20%; animation: float 5s ease-in-out infinite alternate-reverse; }
.sp-3 { bottom: 25%; right: 25%; animation: float 6s ease-in-out infinite; }

/* Customizer Selection Options */
.customizer-content h2 {
  font-family: var(--font-headers);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.customizer-content p {
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.mood-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-mood {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-glass);
  padding: 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all var(--transition-fast);
  color: var(--color-soft-white);
  font-weight: 600;
  outline: none;
}

.btn-mood:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-mood.active {
  background: rgba(168, 85, 247, 0.07);
  border-color: var(--color-aurora-purple);
  box-shadow: 0 0 20px -5px rgba(168, 85, 247, 0.3);
}

/* State Specific Accents */
.customizer-section.state-thinking .btn-mood.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--color-neon-cyan);
  box-shadow: 0 0 20px -5px rgba(56, 189, 248, 0.4);
}

.mood-icon {
  font-size: 1.35rem;
}

.mood-name {
  font-size: 0.9rem;
}

.mood-explanation-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-glass);
  border-radius: 20px;
  padding: 1.5rem;
}

.mood-explanation-box h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mood-explanation-box p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* -------------------------------------------
   Brand showcase / Philosophy Section
   ------------------------------------------- */
.brand-section {
  padding: 6rem 0;
}

.brand-traits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.trait-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-glass);
  padding: 2rem;
  border-radius: 24px;
  text-align: center;
  transition: all var(--transition-normal);
}

.trait-card:hover {
  transform: scale(1.02);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.trait-card h4 {
  font-family: var(--font-headers);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-neon-cyan);
}

.trait-card p {
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* -------------------------------------------
   FAQ Accordions Section
   ------------------------------------------- */
.faq-section {
  padding: 6rem 0;
  background: radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.06), transparent 45%);
}

.faq-accordion {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-glass);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.5rem 2rem;
  font-family: var(--font-headers);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-soft-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.faq-arrow {
  font-size: 0.8rem;
  color: var(--color-muted);
  transition: transform var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease;
  padding: 0 2rem;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--color-border-glass-hover);
}

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

.faq-item.active .faq-answer {
  max-height: 200px; /* arbitrary height to slide down */
}

/* -------------------------------------------
   Bottom Call to Action & Newsletter
   ------------------------------------------- */
.cta-bottom-section {
  padding: 6rem 0 8rem;
}

.cta-glass-banner {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-glass);
  padding: 5rem 2rem;
  border-radius: 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.cta-banner-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
}

.cta-glass-banner h2 {
  font-family: var(--font-headers);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-glass-banner p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.cta-action-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

/* Newsletter styling */
.newsletter-box {
  max-width: 480px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border-glass);
  padding-top: 2.5rem;
}

.newsletter-box h4 {
  font-family: var(--font-headers);
  font-size: 0.95rem;
  color: var(--color-soft-white);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-glass);
  border-radius: 9999px;
  padding: 0.8rem 1.5rem;
  color: var(--color-soft-white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: var(--color-neon-cyan);
}

.newsletter-form .btn {
  padding-left: 2rem;
  padding-right: 2rem;
}

.form-feedback {
  display: block;
  font-size: 0.8rem;
  color: var(--color-neon-cyan);
  margin-top: 0.75rem;
  transition: opacity var(--transition-normal);
}

.form-feedback.hidden {
  display: none;
}

/* -------------------------------------------
   Footer Block (Glassmorphic Layout)
   ------------------------------------------- */
.footer-glass {
  background: rgba(2, 6, 23, 0.8);
  border-top: 1px solid var(--color-border-glass);
  padding: 5rem 0 2rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-brand-text {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 1.35rem;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links h5 {
  font-family: var(--font-headers);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-soft-white);
  margin-bottom: 0.5rem;
}

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

.footer-links a:hover {
  color: var(--color-neon-cyan);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--color-border-glass);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* -------------------------------------------
   Media Queries & Responsiveness Overrides
   ------------------------------------------- */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }

  .playground-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .customizer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .customizer-visual {
    order: -1;
  }
  
  .mood-buttons-grid {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .mood-explanation-box {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .section-container {
    padding: 0 1.5rem;
  }

  .nav-menu {
    display: none; /* simple hidden mobile nav for demo simplicity */
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cta-action-row {
    flex-direction: column;
    gap: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: 20px;
    gap: 1rem;
  }

  .newsletter-form input {
    border-radius: 9999px;
  }

  .newsletter-form .btn {
    border-radius: 9999px;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .browser-body {
    grid-template-columns: 1fr;
    height: 100%;
  }

  .browser-sidebar {
    display: none; /* hide sidebar simulation in narrow mobile screen for usability */
  }
}
