/* ============================================
   Boilerplate Technologies LLC
   ============================================ */

:root {
  --bg: #0a0a0f;
  --surface: #12121c;
  --surface-2: #161624;
  --border: rgba(139, 92, 246, 0.16);
  --border-strong: rgba(139, 92, 246, 0.38);
  --text: #ededf2;
  --text-muted: #a0a0b2;
  --text-faint: #6e6e80;
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --radius: 18px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Soft violet glow at the top of every page */
body::before {
  content: "";
  position: fixed;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.13) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

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

.container {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Nav
   ============================================ */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.wordmark {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.18s ease;
}

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

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

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--text);
  color: #0a0a0f;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

/* ============================================
   Landing page
   ============================================ */

.hero {
  text-align: center;
  padding: 130px 0 150px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero .tagline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 44px;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================
   Page headers (portfolio / support / legal)
   ============================================ */

.page-header {
  text-align: center;
  padding: 56px 0 48px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.page-header .subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 26px;
}

.page-header .disclaimer {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

/* ============================================
   Portfolio cards
   ============================================ */

.app-card {
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.app-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-info {
  min-width: 0;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-info h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-info p {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-soon {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
}

.pill-acquired {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.app-note {
  font-size: 13.5px;
  color: var(--text-faint);
  margin-top: 16px;
}

.store-buttons {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.store-buttons a {
  display: inline-block;
  transition: opacity 0.18s ease;
  opacity: 0.85;
}

.store-buttons a:hover {
  opacity: 1;
}

.store-buttons img {
  height: 42px;
  display: block;
}

/* ============================================
   Contact section
   ============================================ */

.contact-section {
  text-align: center;
  padding: 56px 0 110px;
}

.contact-section p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

/* ============================================
   Support page
   ============================================ */

.support-desc {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
}

.support-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: 110px;
}

.support-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.support-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  padding: 16px;
  font-family: var(--font-body);
  resize: vertical;
  min-height: 200px;
}

.support-textarea::placeholder {
  color: var(--text-faint);
}

.support-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.support-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ============================================
   Legal page
   ============================================ */

.legal-toc {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-toc a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.legal-toc a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.legal-content {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 110px;
  color: var(--text-muted);
  font-size: 15.5px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 64px;
  margin-bottom: 6px;
  color: var(--text);
  scroll-margin-top: 32px;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content a {
  color: var(--accent);
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content .effective-date {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 20px;
}

.legal-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 56px 0 0;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 32px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  transition: color 0.18s ease;
}

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

/* ============================================
   Motion & responsive
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 90px 0 110px;
  }
  .app-card {
    padding: 22px;
  }
  .nav-links {
    gap: 18px;
  }
  .footer {
    flex-direction: column;
    text-align: center;
  }
}