/* Envolved Website Styles - Techy Dark Theme */

/* CSS Variables */
:root {
  /* Core Colors - Dark Techy Theme */
  --bg-deep: #0a0f1a;
  --bg-section: #0f172a;
  --bg-card: #1e293b;

  /* Accent Colors */
  --accent-primary: #22d3ee;
  --accent-primary-bright: #67e8f9;
  --accent-secondary: #8b5cf6;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;

  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Glassmorphism */
  --glass-bg: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(34, 211, 238, 0.15);
  --border-subtle: rgba(203, 213, 225, 0.12);

  /* Effects */
  --shadow-glow: 0 0 20px rgba(34, 211, 238, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(34, 211, 238, 0.25);

  /* Typography */
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Layout */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Blueprint Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.03) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(34, 211, 238, 0.03) 59px,
      rgba(34, 211, 238, 0.03) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(34, 211, 238, 0.03) 59px,
      rgba(34, 211, 238, 0.03) 60px
    ),
    var(--bg-deep);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-primary-bright);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Section Label */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(10, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.nav-cta {
  display: flex;
  gap: 1rem;
}

.nav-cta .btn-secondary {
  display: none;
}

@media (min-width: 640px) {
  .nav-cta .btn-secondary {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 15, 26, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.1), var(--shadow-glow);
}

.btn-primary:hover {
  background: rgba(34, 211, 238, 0.1);
  box-shadow: inset 0 0 30px rgba(34, 211, 238, 0.2), var(--shadow-glow-strong);
  color: var(--accent-primary-bright);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 0.9375rem;
}

/* Beta Badge */
.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--accent-secondary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
}

.beta-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Hero Section */
.hero {
  padding: 4rem 0 6rem;
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.trust-statement {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

/* Feature Cards */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Workflow Steps */
.workflow {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .workflow {
    grid-template-columns: repeat(3, 1fr);
  }
}

.workflow-step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-glow);
}

.workflow-step h3 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .highlight {
  background: rgba(34, 211, 238, 0.05);
  color: var(--accent-primary);
}

/* Data Sources Icons */
.data-sources-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .data-sources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .data-sources-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.data-source-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
}

.data-source-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.data-source-item .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.data-source-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Use Case Cards */
.use-case-card {
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--glass-border);
  margin-bottom: 2rem;
}

.use-case-card h3 {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.use-case-card ul {
  list-style: none;
  margin-top: 1rem;
}

.use-case-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.use-case-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: all 0.2s;
}

.pricing-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: var(--bg-deep);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.pricing-card h3 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1rem 0;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}

.pricing-card li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.pricing-card li:last-child {
  border-bottom: none;
}

.check-icon {
  color: var(--accent-success);
  font-family: var(--font-mono);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  transition: color 0.2s;
}

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

.faq-answer {
  display: none;
  padding-bottom: 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.2s;
  color: var(--accent-primary);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Page Header */
.page-header {
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  color: var(--text-secondary);
}

/* Feature Detail */
.feature-detail {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.feature-detail:last-child {
  border-bottom: none;
}

.feature-detail-content {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .feature-detail-content {
    grid-template-columns: 1fr 1fr;
  }

  .feature-detail:nth-child(even) .feature-detail-content {
    direction: rtl;
  }

  .feature-detail:nth-child(even) .feature-detail-content > * {
    direction: ltr;
  }
}

/* Footer */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.footer p {
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Visually Hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Code/Terminal Style Box */
.terminal-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--text-muted);
  overflow-x: auto;
}

.terminal-box .prompt {
  color: var(--accent-primary);
}

.terminal-box .output {
  color: var(--text-secondary);
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(34, 211, 238, 0.03) 100%);
  border-left: 3px solid var(--accent-primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.highlight-box p {
  color: var(--text-primary);
  margin: 0;
}

/* Waitlist Form */
.waitlist-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-form input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.waitlist-form input::placeholder {
  color: var(--text-muted);
}

/* App Redirect Page */
.app-redirect {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 4rem 0;
}

.app-redirect-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.app-redirect-card h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-redirect-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.app-redirect-status {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
