/* Shellfinity — Dark minimal landing page */

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

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --text: #e0e0e0;
  --text-dim: #888888;
  --heading: #ffffff;
  --accent: #00d4aa;
  --accent-dim: #00a886;
  --border: #222222;
  --mono: "JetBrains Mono", "Fira Code", "SF Mono", "Cascadia Code", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-w: 960px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Nav --- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: 32px;
  border-radius: 4px;
}

.logo-text {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

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

/* --- Buttons --- */

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: var(--accent-dim);
}

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

.btn-ghost:hover {
  background: var(--accent);
  color: #0a0a0a;
}

/* --- Sections --- */

section {
  padding: 96px 24px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

h1 {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -1px;
}

h2 {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
}

h3 {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

p {
  max-width: 640px;
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* --- Hero --- */

.hero {
  padding-top: 160px;
  padding-bottom: 96px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
}

/* Terminal snippet */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  max-width: 560px;
  overflow-x: auto;
}

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

.terminal .comment {
  color: var(--text-dim);
}

.terminal .pass {
  color: #4ade80;
}

.terminal .fail {
  color: #f87171;
}

/* --- Problem / Solution --- */

.problem-solution {
  background: var(--bg2);
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

.ps-grid .problem {
  border-left: 3px solid #f87171;
  padding-left: 20px;
}

.ps-grid .solution {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

/* --- How it works --- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
}

.step-number {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

/* --- Differentiators --- */

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.diff-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
}

.diff-card .vs {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.diff-card p {
  font-size: 14px;
  color: var(--text-dim);
}

/* --- Waitlist --- */

.waitlist {
  background: var(--bg2);
  text-align: center;
}

.waitlist p {
  margin: 0 auto 32px;
  color: var(--text-dim);
}

.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--heading);
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
}

.waitlist-form button {
  white-space: nowrap;
}

/* --- Footer --- */

footer {
  padding: 32px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
}

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

/* --- Responsive --- */

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  section {
    padding: 64px 20px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .ps-grid,
  .steps,
  .diff-grid {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .nav-links .nav-text {
    display: none;
  }
}
