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

/* Design Tokens & Variables */
:root {
  --bg-outer: #07090e;
  --bg-inner: #0b0f19;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --primary: #FF5A1F; /* Electric Screaming Orange */
  --primary-glow: rgba(255, 90, 31, 0.35);
  --secondary: #00F0FF; /* Neon Aqua */
  --secondary-glow: rgba(0, 240, 255, 0.35);
  --text-main: #FFFFFF;
  --text-muted: #9CA3AF;
  --text-dark: #6B7280;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 90, 31, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Scrollbar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background-color: var(--bg-outer);
  color: var(--text-main);
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* Scrollbar Customization for Webkit */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Main Mobile Mockup Frame (Desktop Centering) */
.phone-frame-wrapper {
  width: 100%;
  max-width: 440px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg-inner);
  overflow-x: hidden;
}

/* Desktop display as a mock device */
@media (min-width: 500px) {
  body {
    padding: 30px 0;
    background: radial-gradient(circle at top right, #131a2e 0%, #06080c 100%);
  }
  .phone-frame-wrapper {
    height: 880px;
    border-radius: 44px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 
                0 0 0 12px #1f2937, 
                0 0 0 13px rgba(255, 255, 255, 0.1),
                0 0 40px 10px rgba(255, 90, 31, 0.08);
    border: 4px solid #111827;
    overflow: hidden;
  }
  
  /* Mock Notch */
  .phone-frame-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    background-color: #1f2937;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 1000;
  }
}

/* Inner App Container with scrollable content */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* Hide Scrollbar for App Container in Mock */
.app-container::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Navigation Header */
header {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(255, 90, 31, 0.3);
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFF 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: 20px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(255, 90, 31, 0.08);
}

.menu-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  border-color: var(--border-focus);
  background: rgba(255, 90, 31, 0.1);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  z-index: 180;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.side-menu {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 200;
  width: min(78%, 300px);
  height: 100%;
  padding: 24px;
  background: #0f1522;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 44px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.side-menu-title {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
}

.menu-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.menu-close:hover {
  border-color: var(--border-focus);
  color: var(--primary);
}

.side-menu-link {
  display: block;
  padding: 14px 0;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.side-menu-link:hover {
  color: var(--primary);
  padding-left: 4px;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .side-menu {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Main Content Area */
main {
  flex: 1;
  padding-bottom: 40px;
}

/* Carousel Section at the Top */
.carousel-section {
  position: relative;
  width: 100%;
  padding-top: 15px;
  background: radial-gradient(circle at center, rgba(255, 90, 31, 0.08) 0%, transparent 70%);
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.carousel-container {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

/* Smartphone Mockup for Screenshot */
.screenshot-mock {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 9 / 19.5;
  background-color: #000;
  border-radius: 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 
              0 0 0 8px #1f2937, 
              0 0 25px rgba(255, 90, 31, 0.2);
  border: 3px solid #111827;
  overflow: hidden;
  position: relative;
}

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

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Hero Section */
.hero-section {
  padding: 24px 20px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.15) 0%, rgba(255, 159, 10, 0.15) 100%);
  border: 1px solid rgba(255, 90, 31, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
  50% { box-shadow: 0 0 12px var(--primary-glow); }
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.hero-title span {
  display: block;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #FF8D5C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 400;
}

/* Explainer Steps Section */
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 32px 20px 16px 20px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

.timeline {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-step {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 18px;
  transition: var(--transition);
  position: relative;
}

.timeline-step:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.step-number {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(255, 90, 31, 0.1);
  border: 1px solid rgba(255, 90, 31, 0.2);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Features Grid */
.features-grid {
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.feature-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.feature-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Designed For List */
.designed-list {
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.designed-tag {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--secondary);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* FAQ */
.faq-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.faq-item summary {
  position: relative;
  padding: 16px 42px 16px 16px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--primary);
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  padding: 0 16px 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* Privacy Box */
.privacy-card {
  margin: 24px 20px 0 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.03) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 14px;
}

.privacy-icon {
  flex-shrink: 0;
  color: #10B981;
  font-size: 1.3rem;
  padding-top: 2px;
}

.privacy-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.privacy-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #10B981;
}

.privacy-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Generic Pages Styles (Privacy, Terms, Support) */
.page-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

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

.page-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-block h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 10px;
}

.content-block p, .content-block ul {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.content-block ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  display: block;
}

.textarea-field {
  min-height: 120px;
  resize: vertical;
}

/* Footer styles */
footer {
  margin-top: 30px;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.15);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.copyright {
  font-size: 0.7rem;
  color: var(--text-dark);
}

/* Standard legal/support document pages */
body.legal-page {
  --primary: #000000;
  --text-main: #000000;
  --text-muted: #111111;
  --text-dark: #333333;
  --border: #d9d9d9;
  display: block;
  min-height: 100vh;
  padding: 0;
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.legal-page .phone-frame-wrapper {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 100vh;
  display: block;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

body.legal-page .phone-frame-wrapper::before {
  display: none !important;
}

body.legal-page .app-container {
  width: min(100%, 900px);
  height: auto;
  min-height: 100vh;
  margin: 0 auto;
  overflow: visible;
  padding: 0 24px;
}

body.legal-page header {
  position: static;
  padding: 24px 0 16px;
  background: #ffffff;
  border-bottom: 1px solid #d9d9d9;
  backdrop-filter: none;
}

body.legal-page .brand-name,
body.legal-page .nav-link,
body.legal-page .footer-link,
body.legal-page .copyright {
  color: #000000;
}

body.legal-page .logo-group {
  color: #000000;
  text-decoration: none !important;
}

body.legal-page .brand-name {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #000000;
  letter-spacing: 0;
}

body.legal-page .app-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

body.legal-page main {
  padding: 32px 0;
}

body.legal-page .page-header {
  padding: 0 0 20px;
  border-bottom: 1px solid #d9d9d9;
  background: #ffffff;
}

body.legal-page .page-title {
  margin-bottom: 8px;
  color: #000000;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
}

body.legal-page .page-subtitle {
  color: #000000;
  font-size: 1rem;
}

body.legal-page .page-content {
  padding: 24px 0 0;
  gap: 24px;
}

body.legal-page .content-block {
  gap: 10px;
}

body.legal-page .content-block h2 {
  margin-top: 0;
  color: #000000;
  font-size: 1.15rem;
  font-weight: 700;
}

body.legal-page .content-block p,
body.legal-page .content-block ul {
  color: #000000;
  font-size: 1rem;
}

body.legal-page .content-block ul {
  padding-left: 24px;
}

body.legal-page a {
  color: #000000 !important;
  text-decoration: underline !important;
}

body.legal-page header .logo-group {
  text-decoration: none !important;
}

body.legal-page footer {
  margin-top: 16px;
  padding: 24px 0;
  border-top: 1px solid #d9d9d9;
  background: #ffffff;
}
