:root {
  --bg: #070910;
  --surface: rgba(18, 22, 34, 0.76);
  --text: #f7f8ff;
  --muted: #a9b3c9;
  --accent: #22d3ee;
  --accent-2: #a855f7;
  --accent-3: #f472b6;
  --success: #34d399;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}
.bg-mesh::before,
.bg-mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}
.bg-mesh::before {
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.38), transparent 72%);
  top: -12%;
  left: -12%;
}
.bg-mesh::after {
  width: 55vw;
  height: 55vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%);
  bottom: -12%;
  right: -12%;
  animation-delay: -7s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(45px, -35px) scale(1.06); }
  66% { transform: translate(-25px, 25px) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-mesh::before,
  .bg-mesh::after { animation: none; }
}

.site-header {
  text-align: center;
  padding: 52px 20px 30px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.logo svg {
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45));
}
.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero {
  position: relative;
  padding: 64px 20px 80px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 120%, rgba(168, 85, 247, 0.2), transparent 70%);
}
.hero-content {
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin: 0 0 32px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(168, 85, 247, 0.32);
}
.hero-btn svg { flex-shrink: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 64px;
}
.feature {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: minmax(280px, 560px);
  justify-content: center;
  gap: 28px;
  padding: 0 20px 64px;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.75s ease forwards;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.25s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.card-top { display: flex; flex-direction: column; gap: 10px; }
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(34, 211, 238, 0.14);
  color: var(--accent);
}
.badge-accent {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
}
.card h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.card-body {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 16px;
  padding: 18px 20px;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.2s ease;
}
.card:hover .card-body { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.preview-text {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: #e2e6f0;
}
.card-bottom { display: flex; justify-content: flex-end; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.copy-btn svg { flex-shrink: 0; }
.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(168, 85, 247, 0.35);
}
.copy-btn:active { transform: translateY(0); }
.copy-btn.copied {
  background: var(--success);
  color: #052e1e;
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.3);
}
.copy-btn svg { pointer-events: none; }

.cta {
  text-align: center;
  padding: 40px 20px 80px;
}
.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.cta p {
  margin: 0 0 26px;
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 0 20px 44px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (min-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(280px, 520px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cards, .card { animation: none; opacity: 1; transform: none; }
  .copy-btn, .card-body, .hero-btn { transition: none; }
}
