/* DecryptAds marketing — mirrors app palette (tailwind brand + surface) */
:root {
  --bg: #020617;
  --bg-card: #0f172a;
  --bg-elevated: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --brand: #1e40af;
  --brand-hover: #1d4ed8;
  --brand-on: #f8fafc;
  --accent-cyan: #38bdf8;
  --accent-teal: #2dd4bf;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --max: 1100px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(30, 64, 175, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(45, 108, 192, 0.07), transparent);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--brand);
}

.logo span {
  color: var(--brand);
}

.site-header__brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-header__tagline {
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--text-dim);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

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

.nav a[aria-current="page"] {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--brand);
  color: var(--brand-on);
}

.btn--primary:hover {
  background: var(--brand-hover);
  color: var(--brand-on);
}

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

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.hero {
  padding: 2rem 0 3rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero__lead {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.grid-features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: rgba(30, 64, 175, 0.35);
  box-shadow: 0 0 0 1px rgba(30, 64, 175, 0.12);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: rgba(45, 108, 192, 0.16);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.9) 0%, rgba(31, 41, 55, 0.6) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.875rem;
  text-align: center;
  padding: 1.5rem;
}

.screenshot-placeholder strong {
  color: var(--text-muted);
  font-weight: 600;
}

.screenshot-placeholder small {
  font-size: 0.75rem;
  opacity: 0.85;
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.pricing-card--featured {
  border-color: rgba(30, 64, 175, 0.4);
  box-shadow: 0 0 40px rgba(30, 64, 175, 0.12);
  position: relative;
}

.pricing-card--featured::before {
  content: "Popular";
  position: absolute;
  top: -10px;
  right: 1rem;
  background: var(--brand);
  color: var(--brand-on);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.pricing-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.75rem 0;
}

.pricing-card .price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card ul {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.pricing-card li {
  margin-bottom: 0.45rem;
}

.contact-block {
  max-width: 520px;
}

.contact-block dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-block dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.contact-block dd {
  margin: 0;
  color: var(--text);
}

.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: rgba(30, 64, 175, 0.55);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

details.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 0.65rem;
  padding: 0 1rem;
}

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq[open] summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

details.faq p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__product {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--text-muted);
}

.page-hero {
  margin-bottom: 2rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.two-col {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.stack-lg {
  margin-top: 3rem;
}

.muted-list {
  color: var(--text-muted);
  padding-left: 1.2rem;
}

.muted-list li {
  margin-bottom: 0.5rem;
}

/* Full feature list: category cards with dense lists */
.feature-matrix .card h3 {
  margin-bottom: 0.75rem;
}

.feature-matrix .muted-list {
  margin: 0;
  font-size: 0.9rem;
}

.goals-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.goals-list li {
  margin-bottom: 0.65rem;
}

.goals-list strong {
  color: var(--text);
  font-weight: 600;
}

/* Blog index + article pages */
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.blog-list__item {
  margin: 0;
}

.blog-card {
  display: block;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.blog-card:hover {
  text-decoration: none;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.95);
}

.blog-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.blog-card__meta {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.blog-card__excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.blog-post__meta {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.blog-post__body {
  color: var(--text-muted);
  line-height: 1.7;
}

.blog-post__body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  color: var(--text);
}

.blog-post__body p {
  margin: 0 0 1rem;
}

.blog-post__body ul,
.blog-post__body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.blog-post__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

.blog-post__body pre {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
  line-height: 1.5;
}

.blog-post__body pre code {
  padding: 0;
  background: none;
  font-size: 0.8125rem;
  white-space: pre;
}

.blog-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.blog-screenshot-placeholder {
  margin: 1.25rem 0 1.75rem;
}

.blog-screenshot-placeholder__frame {
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.6);
}

.blog-screenshot-placeholder__caption {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}
