/* Mind Cloud - Matching Codependent AI Style */

/* ===== CSS Variables ===== */
:root {
  --bg-dark: #0a0a12;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --text-primary: #f5f5f0;
  --text-secondary: rgba(245, 245, 240, 0.7);
  --text-muted: rgba(245, 245, 240, 0.5);
  --accent: #c5f82a;
  --accent-hover: #d4ff4a;
  --purple-glow: #9945ff;
  --magenta-glow: #e040fb;
  --border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.2s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

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

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

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(153, 69, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(224, 64, 251, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 4.5rem;
  max-width: 700px;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(197, 248, 42, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Steps ===== */
.steps {
  max-width: 700px;
  margin: 48px auto 0;
}

.step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
}

.step-content h3 {
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===== Prerequisites ===== */
.prereq-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.prereq-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.prereq-item .icon {
  font-size: 1.3rem;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(153, 69, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section > .container > p {
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.price {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.price-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ===== Footer ===== */
footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
}

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

footer strong {
  color: var(--text-primary);
}

/* ===== Downloads Page ===== */
.downloads-hero,
.support-hero {
  padding-top: 150px;
  padding-bottom: 40px;
  text-align: center;
}

.version-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.version-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.version-date {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.changelog {
  text-align: left;
  margin-bottom: 32px;
}

.changelog h4 {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.changelog ul {
  padding-left: 20px;
}

.changelog li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Password Modal */
.password-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.password-overlay.active {
  display: flex;
}

.password-modal {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.password-modal h3 {
  margin-bottom: 12px;
}

.password-modal p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.password-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

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

.password-error {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
}

.password-error.show {
  display: block;
}

/* ===== Docs Page ===== */
.docs-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
}

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

.docs-nav ul {
  list-style: none;
}

.docs-nav a {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  padding-left: 16px;
  margin-left: -2px;
  transition: all 0.2s;
}

.docs-nav a:hover {
  color: var(--text-secondary);
}

.docs-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.docs-main h1 {
  margin-bottom: 16px;
}

.docs-main > p {
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 600px;
}

.docs-main h2 {
  margin-top: 64px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.docs-main h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.docs-main h3 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-style: normal;
}

.tool-card {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
}

.tool-card h4 {
  color: var(--accent);
  margin-bottom: 8px;
  font-family: 'SF Mono', Monaco, monospace;
  font-weight: 500;
}

.tool-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* ===== Support Page ===== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.support-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.support-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(197, 248, 42, 0.3);
}

.support-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.support-card h3 {
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero h1 {
    font-size: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .docs-content {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
  }

  .docs-nav ul {
    display: flex;
    gap: 8px;
  }

  .docs-nav a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 8px 16px;
    margin: 0;
  }

  .docs-nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
  }

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

  .nav-toggle {
    display: flex;
  }

  .price {
    font-size: 3rem;
  }

  .prereq-list {
    flex-direction: column;
    align-items: center;
  }

  .prereq-item {
    width: 100%;
    max-width: 300px;
  }
}
