/* Supa Notepad marketing site styles */

:root {
  --bg: #0d1117;
  --bg-alt: #10151d;
  --surface: #161b22;
  --border: #2a3038;
  --text: #e6edf3;
  --text-dim: #9aa4af;
  --accent: #58a6ff;
  --accent-dim: rgba(88, 166, 255, 0.15);
  --radius: 10px;
  --font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  line-height: 1.25;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
  color: var(--text-dim);
}

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

.nav-links a {
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  font-size: 13px;
  padding: 8px 14px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background-color: #7cb8ff;
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */

.hero {
  padding: 96px 0 72px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--accent-dim), transparent 60%);
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 16px;
}

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

/* Features */

.features {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.features h2,
.screenshots h2,
.download h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--accent);
}

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

/* Screenshots */

.screenshots {
  padding: 72px 0;
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.screenshot-frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.2s ease;
}

.screenshot-frame:hover {
  box-shadow: 0 30px 90px rgba(88, 166, 255, 0.2);
}

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

/* Download */

.download {
  padding: 96px 0;
  text-align: center;
}

.download p {
  color: var(--text-dim);
  margin-bottom: 32px;
}

.download-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.7;
}

.download-note code {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2, rgba(255, 255, 255, 0.06));
  color: var(--text);
  opacity: 1;
  font-size: 12px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .feature-card,
  .screenshot-frame {
    transition: none;
  }
}
