/* ============================================================
   Pneuma Landing Page — Ethereal Tech
   ============================================================ */

:root {
  --bg:            #09090b;
  --surface:       rgba(24, 24, 27, 0.45);
  --text:          #fafafa;
  --text-dim:      #d4d4d8;
  --muted:         #a1a1aa;
  --muted-soft:    #71717a;
  --primary:       #f97316;
  --primary-hover: #fb923c;
  --primary-dim:   rgba(249, 115, 22, 0.12);
  --glow:          rgba(249, 115, 22, 0.12);
  --glow-strong:   rgba(249, 115, 22, 0.22);
  --border:        rgba(255, 255, 255, 0.07);
  --border-orange: rgba(249, 115, 22, 0.3);
  --font-body:     'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display:  'Fraunces', Georgia, serif;
  --font-mono:     'SF Mono', 'Fira Code', ui-monospace, Consolas, monospace;
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* --- Ambient background --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 35% at 50% 30%, rgba(249, 115, 22, 0.045) 0%, transparent 100%);
  z-index: 0;
}

/* --- Layout --- */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 560px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Hero --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: calc(100dvh - 72px);
  justify-content: center;
  padding: 80px 0 48px;
}

/* --- Logo --- */
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 24px 6px var(--glow), 0 0 0 1px rgba(249, 115, 22, 0.06); }
  50%      { box-shadow: 0 0 40px 12px var(--glow-strong), 0 0 0 1px rgba(249, 115, 22, 0.1); }
}

.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 0 24px 6px var(--glow);
  animation: breathe 5s ease-in-out infinite;
  margin-bottom: 28px;
}

/* --- Typography --- */
.wordmark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.tagline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 460px;
  margin-bottom: 8px;
}

.description {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  max-width: 380px;
}

/* --- Open-App Section --- */
.open-app-section {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.open-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--border-orange);
  border-radius: 8px;
  cursor: pointer;
  transition: all 200ms var(--ease);
}

.open-app-btn:hover {
  color: var(--primary-hover);
  border-color: var(--primary-hover);
  background: var(--primary-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--glow);
}

.open-app-hint {
  font-size: 0.75rem;
  color: var(--muted-soft);
  line-height: 1.5;
}

/* --- Download Section --- */
.download-section {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 200ms var(--ease);
  white-space: nowrap;
}

.download-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.all-platforms {
  font-size: 0.75rem;
  color: var(--muted-soft);
  transition: color 200ms var(--ease);
}

.all-platforms:hover {
  color: var(--muted);
}

/* --- CLI Install --- */
.cli-install {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cli-label {
  font-size: 0.75rem;
  color: var(--muted-soft);
  text-transform: lowercase;
}

.cli-command {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 18px;
  letter-spacing: 0.01em;
  user-select: all;
  cursor: text;
  transition: all 200ms var(--ease);
}

.cli-command:hover {
  color: var(--text-dim);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

/* --- Footer --- */
footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--muted-soft);
  transition: color 200ms var(--ease);
}

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

.separator {
  font-size: 0.625rem;
  color: rgba(113, 113, 122, 0.4);
  user-select: none;
}

.copyright {
  font-size: 0.6875rem;
  color: rgba(113, 113, 122, 0.4);
}

/* --- Mobile --- */
@media (max-width: 480px) {
  .hero {
    padding: 60px 0 36px;
  }

  .logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin-bottom: 24px;
  }

  .wordmark {
    font-size: 1.875rem;
    margin-bottom: 12px;
  }

  .tagline {
    font-size: 0.9375rem;
  }

  .description {
    font-size: 0.8125rem;
  }

  .download-section,
  .open-app-section {
    margin-top: 32px;
  }

  .cli-install {
    margin-top: 28px;
  }
}
