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

:root {
  --background: #000000;
  --background-secondary: #0a0a0a;
  --foreground: #f8fafc;
  --foreground-muted: #94a3b8;
  --primary: #00e5ff;
  --primary-glow: rgba(0, 229, 255, 0.3);
  --primary-dark: #00b8d4;
  --accent: #7c3aed;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --card: #1e293b;
  --card-hover: #334155;
  --border: #334155;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --gradient-primary: linear-gradient(135deg, #00e5ff 0%, #7c3aed 100%);
  --gradient-dark: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

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

.text-gradient {
  background: linear-gradient(90deg, #ffffff 0%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Button Components */
.btn-subscription {
  position: relative;
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 14px 36px;
  font-size: 14px;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-subscription::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  background: linear-gradient(90deg, #00b8b8, #00b8b8) padding-box,
              conic-gradient(from var(--border-angle), transparent 25%, #00e5ff 50%, transparent 75%) border-box;
  animation: rotateBorder 3s linear infinite;
  z-index: -1;
}

.btn-subscription::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #000000;
  z-index: -1;
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorder {
  to { --border-angle: 360deg; }
}

.btn-subscription:hover {
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.btn-subscription.btn-sm {
  padding: 10px 24px;
  font-size: 12px;
}

.btn-cta {
  position: relative;
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 16px 40px;
  font-size: 14px;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  background: linear-gradient(90deg, #00b8b8, #00b8b8) padding-box,
              conic-gradient(from var(--border-angle), transparent 25%, #00e5ff 50%, transparent 75%) border-box;
  animation: rotateBorder 3s linear infinite;
  z-index: -1;
}

.btn-cta::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #000000;
  z-index: -1;
}

.btn-cta:hover {
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.btn-plan {
  width: 100%;
  padding: 16px 24px;
  background: #1a1a1a;
  border: 1px solid #333333;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  text-decoration: none;
}

.btn-plan:hover {
  background: #2a2a2a;
  border-color: var(--primary);
}

.btn-plan.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #000000;
}

.btn-plan.primary:hover { background: #00b8d4; }

/* Animations */
@keyframes starDrop {
  0% { transform: translateY(-20vh) scaleY(0); opacity: 0; }
  5% { transform: translateY(-10vh) scaleY(1); opacity: 1; }
  100% { transform: translateY(100vh) scaleY(0.3); opacity: 0; }
}

@keyframes cloud-flicker {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

@keyframes char-fall {
  0% { transform: translate3d(0, 0, 0); opacity: 0.9; }
  100% { transform: translate3d(0, calc(100vh - 60px), 0); opacity: 0; }
}

@keyframes slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-25%, 0, 0); }
}

@keyframes video-slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes screen-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes slideTestimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header specific */
.header-scrolled {
  background: rgba(0,0,0,0.8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,229,255,0.2);
}

/* Mobile menu */
.mobile-menu-open {
  opacity: 1 !important;
  visibility: visible !important;
}

/* FAQ accordion */
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

/* Download tabs */
.tab-btn.active {
  border-bottom-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* Prose overrides for content pages */
.prose-custom h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #262626;
}

.prose-custom p {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.prose-custom ul {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.prose-custom ul li {
  margin-bottom: 0.5rem;
}

.prose-custom a {
  color: var(--primary);
}

.prose-custom a:hover {
  text-decoration: underline;
}

.prose-custom strong {
  color: white;
}

/* Markdown blog styles */
.markdown-body h1 { font-size: 1.875rem; font-weight: 700; color: white; margin-top: 2.5rem; margin-bottom: 1.5rem; }
.markdown-body h2 { font-size: 1.5rem; font-weight: 700; color: white; margin-top: 2.5rem; margin-bottom: 1rem; }
.markdown-body h3 { font-size: 1.25rem; font-weight: 700; color: white; margin-top: 2rem; margin-bottom: 1rem; }
.markdown-body p { color: #cbd5e1; line-height: 1.8; margin-bottom: 1.5rem; }
.markdown-body ul { list-style: disc; padding-left: 1.5rem; color: #cbd5e1; margin-bottom: 1.5rem; }
.markdown-body ul li { margin-bottom: 0.5rem; }
.markdown-body ul li::marker { color: var(--primary); }
.markdown-body ol { list-style: decimal; padding-left: 1.5rem; color: #cbd5e1; margin-bottom: 1.5rem; }
.markdown-body ol li { margin-bottom: 0.5rem; }
.markdown-body ol li::marker { color: var(--primary); font-weight: bold; }
.markdown-body strong { color: white; font-weight: 600; }
.markdown-body a { color: var(--primary); }
.markdown-body a:hover { text-decoration: underline; }

/* Scrollbar hide for tabs */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Selection */
::selection {
  background: rgba(0, 229, 255, 0.3);
}
