:root {
  --bg: #121212;
  --surface: #1b1b1f;
  --surface-soft: #202027;
  --text: #f4f4f6;
  --text-muted: #b6b6c2;
  --primary: #d629ff;
  --secondary: #ff2d7a;
  --accent: #ff3b30;
  --border: #2f2f38;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(circle at top right, rgba(214, 41, 255, 0.16), transparent 35%),
    radial-gradient(circle at bottom left, rgba(255, 45, 122, 0.12), transparent 40%),
    var(--bg);
  overflow-x: hidden;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.main-nav {
  display: none;
  gap: 1rem;
  color: var(--text-muted);
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--secondary);
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.75rem 1.15rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.06);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 8px 24px rgba(214, 41, 255, 0.28);
  animation: pulseGlow 3.2s ease-in-out infinite;
}

.btn-secondary {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.hero {
  padding: 4rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
}

.kicker {
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.hero-subheadline {
  color: var(--text-muted);
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.hero-card {
  background: linear-gradient(160deg, rgba(255, 45, 122, 0.12), rgba(214, 41, 255, 0.12));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.feature-card::before,
.steps article::before,
.blog-card::before,
.faq-item::before {
  content: "";
  position: absolute;
  inset: -130% -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.08) 50%, transparent 58%);
  transform: translateX(-100%) rotate(4deg);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.hero-card:hover,
.feature-card:hover,
.steps article:hover,
.blog-card:hover {
  border-color: rgba(214, 41, 255, 0.65);
  box-shadow: 0 15px 34px rgba(214, 41, 255, 0.2);
  transform: translateY(-6px) rotateX(1.5deg) rotateY(-1.5deg);
}

.hero-card:hover::before,
.feature-card:hover::before,
.steps article:hover::before,
.blog-card:hover::before,
.faq-item:hover::before {
  transform: translateX(100%) rotate(4deg);
}

.peek-actions {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0;
}

.prompt-output {
  min-height: 3rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  color: #fff;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.prompt-output.prompt-fx {
  border-color: rgba(255, 45, 122, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 45, 122, 0.2), 0 10px 24px rgba(214, 41, 255, 0.18);
  transform: translateY(-1px);
}

.section {
  padding: 3rem 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-intro {
  color: var(--text-muted);
  max-width: 65ch;
}

.card-grid,
.blog-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.feature-card,
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.steps {
  display: grid;
  gap: 1rem;
}

.steps article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.steps span {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.faq-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease, transform 0.28s ease;
}

.faq-item:hover {
  border-color: rgba(255, 45, 122, 0.55);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: none;
  text-align: left;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.faq-question:hover {
  color: #fff;
  background: rgba(255, 45, 122, 0.08);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  max-height: 180px;
}

.faq-item.open .faq-question {
  color: var(--secondary);
}

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

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 0 1.2rem;
  color: var(--text-muted);
}

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

.article-wrap {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

.article-content,
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.article-content h2 {
  margin-top: 1.5rem;
}

.cta-banner {
  border: 1px solid rgba(214, 41, 255, 0.45);
  background: linear-gradient(145deg, rgba(214, 41, 255, 0.17), rgba(255, 45, 122, 0.15));
}

.cta-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(214, 41, 255, 0.2);
}

.meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.article-page {
  padding-top: 0.5rem;
}

.article-title {
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 1rem;
}

.article-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 41, 255, 0.45);
  background: rgba(214, 41, 255, 0.1);
  color: #f0e8ff;
}

.article-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 65ch;
}

.article-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 3px solid var(--secondary);
  padding: 0.65rem 0.85rem;
  margin: 0 0 1.5rem;
  background: rgba(255, 45, 122, 0.06);
  border-radius: 0 10px 10px 0;
}

.article-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.article-content h3 {
  font-size: 1.08rem;
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
  color: #eaeaf1;
}

.article-content p,
.article-content li {
  max-width: 68ch;
}

.article-content ul,
.article-content ol {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.article-content li {
  margin-bottom: 0.35rem;
}

.article-content a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--primary);
}

/* Body links use accent colors; CTA buttons inside articles keep button styling */
.article-content a.btn {
  text-decoration: none;
}

.article-content a.btn-primary {
  color: #fff;
}

.article-content a.btn-primary:hover {
  color: #fff;
}

.article-content a.btn-secondary {
  color: var(--text);
}

.article-content a.btn-secondary:hover {
  color: var(--text);
}

.article-content a.btn-outline:hover {
  color: var(--text);
}

.article-content code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 0.88em;
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.article-steps {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.1rem;
  max-width: 68ch;
}

.article-steps li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}

.article-steps li::marker {
  color: var(--primary);
  font-weight: 800;
}

.callout {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  background: rgba(31, 31, 38, 0.85);
}

.callout-warm {
  border-color: rgba(255, 59, 48, 0.35);
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.08), rgba(214, 41, 255, 0.06));
}

.callout-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.callout .callout-heading {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.callout p {
  margin: 0;
  color: var(--text-muted);
}

.callout .btn {
  margin-top: 0.85rem;
}

.article-quote {
  margin: 1.75rem 0;
  padding: 1rem 1rem 1rem 1.15rem;
  border-left: 4px solid var(--primary);
  background: rgba(214, 41, 255, 0.08);
  border-radius: 0 12px 12px 0;
}

.article-quote p {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  color: #ececf3;
}

.cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin: 0 0 0.35rem;
}

.cta-banner h2 {
  margin-top: 0;
}

.cta-footnote {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(214, 41, 255, 0.26);
  }
  50% {
    box-shadow: 0 10px 30px rgba(255, 45, 122, 0.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

@media (min-width: 720px) {
  .main-nav {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .card-grid,
  .steps,
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .article-wrap {
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
  }

  .cta-banner {
    position: sticky;
    top: 88px;
  }
}
