/* AIR LABS - AI Returns | Main Stylesheet */

/* ===== CSS Variables ===== */
:root {
  /* Colors - Pastel crypto theme */
  --color-primary: #7dd3fc;       /* Light blue (pastel) */
  --color-secondary: #c4b5fd;     /* Purple/violet (pastel) */
  --color-accent: #3b82f6;        /* Darker blue */
  --color-bg-dark: #0a0a0f;       /* Near black */
  --color-bg-card: #12121a;       /* Card background */
  --color-bg-hover: #1a1a24;      /* Hover state */
  --color-text: #e4e4e7;          /* Light gray text */
  --color-text-muted: #a1a1aa;    /* Muted text */
  --color-border: #27272a;        /* Subtle borders */
  --color-success: #4ade80;       /* Green for positive returns */
  --color-danger: #f87171;        /* Red for negative returns */

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

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Container */
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-dark);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-text);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.nav-logo:hover {
  color: #ffffff;
}

.nav-logo-icon {
  display: block;
  height: 1em;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-fast);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg-dark);
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-tagline {
  font-size: 1.125rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-bg-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(125, 211, 252, 0.3);
  color: var(--color-bg-dark);
}

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

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Cards ===== */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: var(--space-sm);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Tables ===== */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
}

th, td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-bg-dark);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

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

tr:hover td {
  background: var(--color-bg-hover);
}

.positive {
  color: var(--color-success);
}

.negative {
  color: var(--color-danger);
}

.coin-cell {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.coin-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ===== Whitepaper ===== */
.whitepaper-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-2xl);
  padding-top: 100px;
}

@media (max-width: 900px) {
  .whitepaper-layout {
    grid-template-columns: 1fr;
  }
}

.toc {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.toc h4 {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.toc ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toc a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  padding: var(--space-xs) 0;
  display: block;
  border-left: 2px solid transparent;
  padding-left: var(--space-md);
  transition: all var(--transition-fast);
}

.toc a:hover,
.toc a.active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.whitepaper-content {
  max-width: 800px;
}

.whitepaper-content section {
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
}

.whitepaper-content section:last-child {
  border-bottom: none;
}

.whitepaper-content h2 {
  margin-bottom: var(--space-lg);
}

.whitepaper-content p {
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.whitepaper-content ul {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.whitepaper-content li {
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
  position: relative;
  padding-left: var(--space-md);
}

.whitepaper-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

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

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

/* ===== Page Header ===== */
.page-header {
  padding-top: 120px;
  padding-bottom: var(--space-2xl);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2xl);
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Content Sections ===== */
.content-section {
  margin-bottom: var(--space-3xl);
}

.content-section h2 {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

/* ===== Utilities ===== */
.text-center {
  text-align: center;
}

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

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.updated-timestamp {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-wrapper h2,
.contact-info h2 {
  margin-bottom: var(--space-xl);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--color-bg-card);
  color: var(--color-text);
}

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

/* Contact Info Cards */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--transition-base);
}

.contact-card:hover {
  border-color: var(--color-primary);
}

.contact-card-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.contact-card h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.125rem;
}

.contact-card p {
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
}

.contact-card a {
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  font-size: 0.875rem;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.faq-item {
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.faq-item p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Print styles for whitepaper */
@media print {
  .nav, .footer, .toc {
    display: none;
  }

  .whitepaper-layout {
    display: block;
  }

  body {
    background: white;
    color: black;
  }

  .whitepaper-content {
    max-width: 100%;
  }
}
