/* ==========================================================================
   Aarohi AI Website - unified Stylesheet
   ========================================================================== */

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

/* --- Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette */
  --bg-primary: #030011;
  --bg-secondary: #1b0f22;
  --bg-tertiary: #26132f;
  --bg-elevated: #2d1838;
  --bg-surface: #3a2147;
  
  --accent-primary: #c084fc;
  --accent-secondary: #ff4fd8;
  --accent-soft: rgba(192, 132, 252, 0.16);
  --accent-glow: rgba(255, 79, 216, 0.28);
  
  --user-gradient-start: #8b5cf6;
  --user-gradient-end: #d946ef;
  
  --text-primary: #fff7ff;
  --text-secondary: #d8c4e8;
  --text-muted: #a98fba;
  --text-accent: #f0abfc;
  
  --border-subtle: rgba(216, 196, 232, 0.12);
  --border-medium: rgba(216, 196, 232, 0.22);
  --glass-bg: rgba(27, 15, 34, 0.65);
  --glass-border: rgba(240, 171, 252, 0.16);
  
  --white: #ffffff;
  --black: #000000;
  
  /* Layout & Spacing */
  --header-height: 70px;
  --container-width: 1140px;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Easing & Animations */
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-hover: ease;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-elevated);
}

/* --- Decorative Ambient Glows --- */
.glow-backdrop {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(130px);
  opacity: 0.45;
}

.glow-top-left {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  animation: pulse-glow 8s infinite alternate ease-in-out;
}

.glow-bottom-right {
  bottom: 10%;
  right: -10%;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  animation: pulse-glow 10s infinite alternate-reverse ease-in-out;
}

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

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navigation --- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(3, 0, 17, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  object-fit: contain;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition-normal);
  position: relative;
  padding: 4px 0;
}

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

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

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

.cta-container {
  display: flex;
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms var(--ease-hover), box-shadow 150ms var(--ease-hover), background 150ms var(--ease-hover), filter 150ms var(--ease-hover);
  cursor: pointer;
  border: none;
  outline: none;
  will-change: transform;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--user-gradient-start), var(--user-gradient-end));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-glow {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  }
  
  .btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
  }
  
  .btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 79, 216, 0.5);
    filter: brightness(1.1);
  }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-normal);
}

/* --- Hero Section --- */
.hero {
  padding: 100px 0 80px;
  position: relative;
  display: flex;
  align-items: center;
}

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

.hero-content {
  max-width: 580px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(192, 132, 252, 0.3);
  color: var(--text-accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #f0abfc, #ff4fd8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: #0d0b1c;
  border: 8px solid #231b3e;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(192, 132, 252, 0.25);
  overflow: hidden;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-image: url('assets/chat-screen-wallpaper.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.chat-bubble-demo {
  background: rgba(44, 37, 86, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  max-width: 85%;
  margin-bottom: 12px;
  animation: float 4s ease-in-out infinite;
  align-self: flex-start;
  backdrop-filter: blur(8px);
}

.chat-bubble-demo.user {
  background: linear-gradient(135deg, var(--user-gradient-start), var(--user-gradient-end));
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  animation-delay: 2s;
}

.chat-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--white);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* --- Features Section --- */
.features {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(to right, #ffffff, #d8c4e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 40px 32px;
  border-radius: 24px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(255, 79, 216, 0.1), transparent 50%);
  opacity: 0;
  transition: var(--transition-normal);
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: scale(1.02) translateY(-4px);
    border-color: rgba(240, 171, 252, 0.35);
    box-shadow: 0 10px 30px rgba(192, 132, 252, 0.15);
  }

  .feature-card:hover::before {
    opacity: 1;
  }
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  font-size: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- Pricing / Subscription Section --- */
.pricing {
  padding: 80px 0;
  position: relative;
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(27, 15, 34, 0.8) 0%, rgba(13, 11, 28, 0.95) 100%);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 30px rgba(192, 132, 252, 0.2);
  border-radius: 32px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.pricing-badge {
  position: absolute;
  top: 24px;
  right: -32px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 36px;
  transform: rotate(45deg);
  text-transform: uppercase;
}

.pricing-plan {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.pricing-price-box {
  margin: 24px 0;
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
}

.pricing-period {
  font-size: 16px;
  color: var(--text-muted);
}

.pricing-trial-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 79, 216, 0.15);
  border: 1px solid rgba(255, 79, 216, 0.3);
  color: var(--accent-secondary);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.pricing-features-list {
  list-style: none;
  margin-bottom: 36px;
  text-align: left;
  display: inline-block;
}

.pricing-features-list li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features-list li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 16px;
}

/* --- Document Layout (FAQs / Policies) --- */
.doc-page {
  padding: 80px 0 100px;
  flex: 1;
}

.doc-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.doc-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(to right, #ffffff, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.doc-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.doc-content {
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 16px;
}

.doc-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-top: 32px;
  margin-bottom: 16px;
}

.doc-content p {
  margin-bottom: 16px;
}

.doc-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.doc-content li {
  margin-bottom: 10px;
}

/* --- FAQs Accordion (Native <details>) --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item[open] {
  border-color: var(--glass-border);
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.1);
  background: var(--bg-tertiary);
}

.faq-summary {
  padding: 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  outline: none;
}

/* Remove default summary arrow in WebKit */
.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 24px;
  color: var(--accent-primary);
  transition: transform var(--transition-normal);
  font-weight: 500;
  line-height: 1;
}

.faq-item[open] .faq-summary::after {
  transform: rotate(45deg);
  color: var(--accent-secondary);
}

.faq-content {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
  animation: slideDown 200ms var(--ease-out-quart);
}

.support-box {
  margin-top: 48px;
  text-align: center;
  background: rgba(192, 132, 252, 0.08);
  border: 1px dashed rgba(192, 132, 252, 0.3);
  padding: 32px;
  border-radius: 16px;
}

.support-box h3 {
  margin-bottom: 8px;
  color: var(--white);
}

.support-box a {
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
}

.support-box a:hover {
  text-decoration: underline;
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  background: #02000d;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  z-index: 10;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

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

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

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

.link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-group h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.link-group a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-normal);
  display: inline-block;
  width: fit-content;
}

.link-group a:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(216, 196, 232, 0.06);
  padding-top: 32px;
  text-align: center;
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-title {
    font-size: 44px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  /* Mobile Nav styles */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #030011;
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .cta-container {
    display: none; /* Hide button on mobile bar; can place inside mobile menu if needed */
  }

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

  .doc-card {
    padding: 32px 20px;
  }
  .doc-title {
    font-size: 32px;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-entrance {
  opacity: 0;
  animation: slideUpFade 400ms var(--ease-out-quart) forwards;
  will-change: transform, opacity;
}

.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-entrance {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
