/* ============================================
   Claude Session Manager — Landing Page
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(20, 20, 30, 0.7);
  --bg-card-hover: rgba(30, 30, 45, 0.8);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #606078;
  --accent: #D97757;
  --accent-glow: rgba(217, 119, 87, 0.25);
  --purple: #7c6aef;
  --green: #50e3a0;
  --blue: #64b5f6;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

code {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.85em;
  background: rgba(124, 106, 239, 0.1);
  color: var(--purple);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.nav-logo img {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.nav-github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

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

.nav-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 160px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #ffab70 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-mascot {
  margin-top: 48px;
  animation: float 3s ease-in-out infinite;
}

.hero-mascot img {
  filter: drop-shadow(0 8px 40px var(--accent-glow));
  border-radius: 16px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn-outline {
  background: none;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 10px 20px;
  margin-top: 16px;
}

.btn-outline:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

/* ---- Section headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Screenshot ---- */
.screenshot-section {
  padding: 0 24px 60px;
}

.screenshot-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Features ---- */
.features {
  padding: 100px 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.25s;
}

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

.feature-large {
  grid-column: span 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- IDE support ---- */
.ides-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, transparent, rgba(124, 106, 239, 0.03), transparent);
}

.ides-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
  min-width: 110px;
}

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

.ide-card img {
  border-radius: 8px;
  object-fit: contain;
}

.ide-card span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.ide-placeholder {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Install ---- */
.install-section {
  padding: 100px 24px;
}

/* DMG download box */
.install-dmg {
  max-width: 600px;
  margin: 0 auto 32px;
}

.install-dmg-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(217, 119, 87, 0.2);
}

.install-dmg-inner:hover {
  border-color: rgba(217, 119, 87, 0.4);
}

.install-dmg-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(217, 119, 87, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-dmg-info {
  flex: 1;
}

.install-dmg-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.install-dmg-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.install-dmg-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.install-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto 32px;
}

.install-divider::before,
.install-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.install-divider span {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.install-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(217, 119, 87, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.code-block {
  position: relative;
  background: rgba(15, 15, 25, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  overflow-x: auto;
}

.code-block code {
  font-size: 13px;
  color: var(--green);
  background: none;
  padding: 0;
  line-height: 1.8;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 7px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.copy-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.copy-btn.copied {
  color: var(--green);
  border-color: rgba(80, 227, 160, 0.3);
}

.install-prereqs {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: center;
}

.install-prereqs h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.prereq-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.prereq-pill {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-card);
}

/* ---- Contribute ---- */
.contribute-section {
  padding: 100px 24px;
  background: linear-gradient(180deg, transparent, rgba(217, 119, 87, 0.02), transparent);
}

.contribute-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.contribute-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.contribute-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.contribute-card ul,
.contribute-card ol {
  padding-left: 18px;
}

.contribute-card li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.footer-left img {
  border-radius: 4px;
}

.footer-center {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-right a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--text);
}

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

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .hero { padding: 130px 24px 60px; }
  .hero h1 { font-size: 32px; }
  .hero-mascot img { width: 100px; height: 100px; }

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

  .feature-large { grid-column: span 1; }

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

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .ides-grid {
    gap: 10px;
  }

  .ide-card {
    padding: 14px 18px;
    min-width: 90px;
  }
}
