/* ==========================================================================
   SOMNIA — Dream Journal landing & legal pages
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-space: #0a0a0f;
  --bg-deep: #12121a;
  --bg-card: rgba(24, 24, 27, 0.55);
  --border-card: rgba(167, 139, 250, 0.1);
  --border-card-hover: rgba(167, 139, 250, 0.28);

  --primary: #a78bfa;
  --primary-glow: rgba(167, 139, 250, 0.45);
  --secondary: #c4b5fd;
  --secondary-glow: rgba(196, 181, 253, 0.35);

  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.15);
  --moon: #e9d5ff;

  --gold: #c4b5fd;
  --gold-glow: rgba(196, 181, 253, 0.4);
  --gold-dark: #7c3aed;

  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-accent: #f4f4f5;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  
  --error: #f43f5e;
  --success: #10b981;

  /* Font Families */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.22) 0%, var(--bg-space) 55%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.15);
  border-radius: 5px;
  border: 2px solid var(--bg-space);
  transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(129, 140, 248, 0.35);
}

/* --- CELESTIAL BACKGROUND ELEMENTS --- */
.nebula-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0,0,0,0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: floatNebula 20s ease-in-out infinite alternate;
}

.nebula-glow-1 {
  top: 10%;
  right: -200px;
}

.nebula-glow-2 {
  top: 50%;
  left: -250px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
  animation-delay: -5s;
}

.nebula-glow-3 {
  bottom: 10%;
  right: -100px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
  width: 450px;
  height: 450px;
  animation-delay: -10s;
}

@keyframes floatNebula {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

/* Star Background Generator */
.stars-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 150px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 150px 240px, rgba(255,255,255,0.5), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 220px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 280px 120px, rgba(167,139,250,0.5), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, .serif-font {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-accent);
}

p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--secondary);
}

.highlight {
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold-glow);
}

/* --- NAVIGATION HEADER --- */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 3, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo svg {
  width: 28px;
  height: 28px;
  fill: var(--gold);
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition-smooth);
}

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

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

.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #03030c;
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(129, 140, 248, 0.3);
  transition: var(--transition-bounce);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.5);
  color: #03030c;
}

/* Mobile Menu Button */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.burger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* --- GLASS CARD COMPONENT --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: -1;
}

.glass-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: 0 10px 30px rgba(13, 11, 33, 0.6), 
              inset 0 0 15px rgba(165, 180, 252, 0.03);
}

/* --- BUTTONS --- */
.btn-cosmic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-bounce);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #03030c;
  box-shadow: 0 4px 20px rgba(129, 140, 248, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(129, 140, 248, 0.6);
  color: #03030c;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(129, 140, 248, 0.08);
  border-color: var(--secondary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #03030c;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
  color: #03030c;
}

/* --- COMMON WRAPPERS --- */
.page-wrapper {
  position: relative;
  z-index: 1;
}

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

.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

/* --- MARKETING LANDING PAGE (INDEX) --- */

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

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

.hero-content {
  z-index: 10;
}

.hero-tagline {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.hero-title {
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.app-badge-group {
  display: flex;
  gap: 1rem;
}

.app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.app-badge-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

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

.badge-text {
  text-align: left;
}

.badge-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
}

.badge-title {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  line-height: 1.2;
}

/* App Mockup Animation */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.mockup-glow {
  position: absolute;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 1;
}

.mockup-container {
  width: 280px;
  height: 570px;
  background: #090915;
  border: 12px solid #1e1b4b;
  border-radius: 40px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(129, 140, 248, 0.15);
  position: relative;
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.mockup-notch {
  width: 110px;
  height: 22px;
  background: #1e1b4b;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.mockup-screen {
  flex: 1;
  padding: 2.25rem 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 0%, #150f38 0%, #060512 80%);
  position: relative;
  overflow: hidden;
}

/* CSS Mockup UI elements */
.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
}

.mockup-stars {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border: 1px dashed rgba(129, 140, 248, 0.15);
  border-radius: 50%;
  animation: rotateMockup 30s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-planet {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 30% 30%, #fbbf24 0%, #d97706 70%);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  position: relative;
}

.mockup-planet::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
}

.mockup-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0.85rem;
  backdrop-filter: blur(5px);
  margin-top: auto;
  margin-bottom: 0.75rem;
  z-index: 5;
}

.mockup-card-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.mockup-card-text {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.mockup-nav {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.6rem 0;
  margin: 0 -1.25rem -1.25rem -1.25rem;
}

.mockup-nav-item {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-nav-item.active {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

@keyframes rotateMockup {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

/* Floating Astrology Icons background */
.floating-constellation {
  position: absolute;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  animation: pulseConstellation 4s ease-in-out infinite alternate;
}

.const-1 { top: 15%; left: 5%; font-size: 2rem; animation-delay: 0s; }
.const-2 { top: 30%; right: 8%; font-size: 2.5rem; animation-delay: 1.5s; }
.const-3 { bottom: 20%; left: 8%; font-size: 1.8rem; animation-delay: 0.7s; }

@keyframes pulseConstellation {
  0% { opacity: 0.3; transform: scale(1) translateY(0); }
  100% { opacity: 0.8; transform: scale(1.08) translateY(-10px); }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: left;
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: var(--transition-bounce);
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.feature-card:hover .feature-icon-wrapper {
  color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  margin-bottom: 0.75rem;
}

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

/* Detailed Showcases */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 8rem;
}

.showcase-row:nth-child(even) {
  direction: rtl;
}

.showcase-row:nth-child(even) .showcase-content {
  direction: ltr;
}

.showcase-content h2 {
  margin-bottom: 1.25rem;
}

.showcase-list {
  list-style: none;
  margin-top: 1.5rem;
}

.showcase-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.showcase-list-item svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Cosmic CTA Section */
.cta-section {
  position: relative;
  padding: 8rem 0;
  text-align: center;
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 0%, rgba(24, 17, 60, 0.5) 0%, rgba(7, 6, 23, 0.8) 80%);
  border: 1px solid rgba(129, 140, 248, 0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5),
              0 0 30px rgba(129, 140, 248, 0.1);
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

.cta-desc {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- SUPPORT PAGE (FAQ) --- */

.support-hero {
  text-align: center;
  padding: 5rem 0 3rem 0;
}

.support-search-container {
  max-width: 600px;
  margin: 2rem auto 0 auto;
  position: relative;
}

.support-search-input {
  width: 100%;
  padding: 1.15rem 1.5rem 1.15rem 3.5rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.support-search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.2);
}

.support-search-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
}

.support-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 4rem;
  margin-top: 3rem;
}

.support-sidebar-card {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.faq-categories {
  list-style: none;
}

.faq-category-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.faq-category-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.faq-category-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.faq-category-btn.active {
  background: rgba(129, 140, 248, 0.1);
  color: var(--primary);
  border: 1px solid rgba(129, 140, 248, 0.2);
}

/* Accordion FAQ styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.25rem;
}

.faq-question-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  padding: 0.75rem 0;
  color: var(--text-accent);
  font-size: 1.15rem;
  font-family: var(--font-serif);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq-question-btn:hover {
  color: var(--text-primary);
}

.faq-question-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Active FAQ states */
.faq-item.active .faq-question-btn {
  color: var(--primary);
}

.faq-item.active .faq-question-btn svg {
  transform: rotate(180deg);
  fill: var(--primary);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0.75rem 0 0.5rem 0;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

/* Contact/Ticket Form section */
.contact-section {
  margin-top: 5rem;
}

.contact-card {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-form-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-submit-wrapper {
  margin-top: 2rem;
  text-align: right;
}

/* --- LEGAL & PRIVACY PAGES --- */
.legal-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-card {
  padding: 3.5rem;
}

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

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-body h2 {
  font-size: 1.8rem;
  color: var(--text-accent);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  background: none;
  -webkit-text-fill-color: initial;
}

.legal-body h3 {
  font-size: 1.25rem;
  color: var(--text-accent);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-body p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
}

.legal-body ul, .legal-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.legal-body li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.legal-body blockquote {
  background: rgba(245, 158, 11, 0.05);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.legal-body blockquote p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- FOOTER --- */
.nav-footer {
  background: #020207;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 5rem 0 3rem 0;
  margin-top: 6rem;
  position: relative;
  z-index: 5;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
}

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

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 280px;
}

.footer-links-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-link:hover {
  color: var(--text-primary);
  padding-left: 3px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 4rem auto 0 auto;
  padding: 2rem 2rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

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

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

/* --- RESPONSIVENESS --- */

@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .app-badge-group {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .showcase-row, .showcase-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 3rem;
    direction: ltr;
  }
  
  .showcase-row .hero-mockup-wrapper {
    order: -1;
  }
  
  .support-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .support-sidebar-card {
    position: static;
  }
  
  .faq-category-btn {
    width: auto;
    display: inline-flex;
  }
  
  .faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  
  .container {
    padding: 3rem 1.5rem;
  }
  
  .nav-menu {
    display: none; /* Hide standard menu on mobile */
  }
  
  .burger-menu {
    display: block;
  }
  
  /* Mobile navigation active state styling would go here */
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-full {
    grid-column: span 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .legal-card {
    padding: 2rem 1.5rem;
  }
}

/* --- SOMNIA LANDING (distinct layout) --- */
.somnia-hero-center {
  text-align: center;
  padding: 5rem 2rem 3rem;
  position: relative;
}

.hero-orb {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, rgba(124, 58, 237, 0.08) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.somnia-hero-center .hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.somnia-hero-center .hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--moon) 0%, var(--primary) 55%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.somnia-hero-center .hero-desc {
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.somnia-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem auto 0;
  max-width: 900px;
}

.stat-pill {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  font-size: 0.875rem;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.stat-pill strong {
  color: var(--primary);
  font-weight: 600;
}

.somnia-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.step-card {
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--border-card);
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.06) 0%, rgba(10, 10, 15, 0.6) 100%);
  text-align: left;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-accent);
  background: none;
  -webkit-text-fill-color: initial;
}

.step-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.somnia-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.bento-cell {
  border-radius: 24px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.bento-cell:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
}

.bento-large { grid-column: span 7; }
.bento-small { grid-column: span 5; }
.bento-half { grid-column: span 6; }

.bento-cell h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-accent);
}

.bento-cell p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.lens-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.lens-chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(124, 58, 237, 0.12);
  color: var(--secondary);
}

.privacy-band {
  margin: 4rem 0;
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-card);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.12) 0%, rgba(10, 10, 15, 0.8) 50%, rgba(167, 139, 250, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.privacy-band h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-accent);
}

.privacy-band p {
  margin: 0;
  max-width: 520px;
}

.brand-logo {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 1.5rem;
}

@media (max-width: 900px) {
  .somnia-steps { grid-template-columns: 1fr; }
  .bento-large, .bento-small, .bento-half { grid-column: span 12; }
  .somnia-hero-center { padding-top: 3.5rem; }
}
