:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f1624;
  --bg-card: rgba(22, 31, 48, 0.72);
  --bg-card-hover: rgba(30, 42, 66, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(59, 130, 246, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-lg: 0 24px 60px -15px rgba(0, 0, 0, 0.75);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 18% 8%, rgba(59, 130, 246, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 82% 14%, rgba(99, 102, 241, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 50% 60%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(9, 13, 22, 0.78);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

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

.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.86rem;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(59, 130, 246, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 30px -6px rgba(59, 130, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1.5px);
}

/* Hero Section */
.hero {
  padding: 76px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 840px;
  margin: 0 auto 20px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 34px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Homebrew Command Box */
.brew-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 9, 17, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  padding: 8px 10px 8px 16px;
  margin: 0 auto 22px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  max-width: 100%;
}

.brew-prefix {
  color: #f59e0b;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  user-select: none;
}

.brew-cmd {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow-x: auto;
}

.brew-copy-btn {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.brew-copy-btn:hover {
  background: rgba(59, 130, 246, 0.28);
  color: #ffffff;
}

.kbd {
  display: inline-block;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-width: 2px;
  border-radius: 5px;
}

/* Screenshot Showcase */
.showcase-wrapper {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px;
  border-radius: calc(var(--radius-lg) + 8px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 90px -20px rgba(0, 0, 0, 0.85),
    0 0 80px -10px rgba(59, 130, 246, 0.25);
}

.showcase-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pill Highlights Row */
.type-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
}

.type-pill.text { color: #94a3b8; border-color: rgba(148, 163, 184, 0.25); }
.type-pill.link { color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.type-pill.code { color: #c084fc; border-color: rgba(192, 132, 252, 0.3); }
.type-pill.color { color: #fb923c; border-color: rgba(251, 146, 60, 0.3); }
.type-pill.file { color: #22d3ee; border-color: rgba(34, 211, 238, 0.3); }
.type-pill.image { color: #f472b6; border-color: rgba(244, 114, 182, 0.3); }
.type-pill.secret { color: #34d399; border-color: rgba(52, 211, 153, 0.35); }

/* Sections */
.section {
  padding: 84px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.06rem;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Workflow / Steps Banner */
.workflow-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.workflow-step {
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.workflow-step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.workflow-step p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Page Hero (Help & Contact) */
.page-header {
  padding: 64px 0 36px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto;
}

/* Help Page Components */
.help-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 84px;
}

.help-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.help-card h2 {
  font-size: 1.38rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-card p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.96rem;
}

.code-block {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #93c5fd;
  overflow-x: auto;
  margin: 12px 0;
}

.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.shortcuts-table th,
.shortcuts-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.93rem;
}

.shortcuts-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

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

.shortcuts-table td:first-child {
  white-space: nowrap;
  width: 220px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.faq-item {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.faq-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Contact Page Components */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  padding-bottom: 90px;
  align-items: start;
}

.contact-info-card,
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.email-showcase {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.email-address {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #60a5fa;
  word-break: break-all;
}

.email-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  background: rgba(6, 9, 17, 0.75);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

/* Toast notification */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #10b981;
  color: #06281e;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 920px) {
  .features-grid,
  .workflow-banner,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .navbar-inner {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 12px;
  }
}
