:root {
  --blue: #4285f4;
  --red: #ea4335;
  --yellow: #fbbc05;
  --green: #34a853;
  --ink: #0f172a;
  --muted: #475569;
  --panel: #ffffff;
  --line: #e2e8f0;
  --bg: radial-gradient(circle at 10% 10%, rgba(66, 133, 244, 0.16), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(234, 67, 53, 0.13), transparent 28%),
    radial-gradient(circle at 40% 95%, rgba(52, 168, 83, 0.14), transparent 25%),
    #f8fafc;
  --shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

.topbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(248, 250, 252, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 20;
}

.topbar__content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.logo__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: conic-gradient(var(--blue), var(--red), var(--yellow), var(--green), var(--blue));
}

.nav {
  display: flex;
  gap: 1.2rem;
}

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

.hero {
  padding: 4.2rem 0 3rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffffcc;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.85rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0.9rem 0 1rem;
}

.hero__description {
  color: var(--muted);
  max-width: 57ch;
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  margin: 1.5rem 0 1.6rem;
  flex-wrap: wrap;
}

.button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.68rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: linear-gradient(125deg, var(--blue), #3367d6);
  box-shadow: 0 7px 20px rgba(66, 133, 244, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.button--secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.hero__stats li {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.75rem;
  background: #ffffffbf;
}

.hero__stats strong {
  display: block;
  font-size: 1.05rem;
}

.hero__stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card--highlight {
  position: relative;
}

.card--highlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(66, 133, 244, 0.6), rgba(234, 67, 53, 0.5), rgba(52, 168, 83, 0.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

textarea {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  resize: vertical;
  padding: 0.85rem;
  font: inherit;
  margin-top: 0.45rem;
}

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

.output {
  margin-top: 0.95rem;
  padding: 0.8rem;
  border-radius: 0.8rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

#share-link {
  display: inline-block;
  margin-top: 0.45rem;
  word-break: break-all;
  color: #1d4ed8;
}

.section {
  padding: 2.2rem 0 4rem;
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-index {
  display: inline-flex;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section--alt {
  background: linear-gradient(180deg, #ffffff6b, #ffffffdc);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.faq {
  display: grid;
  gap: 0.7rem;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.footer {
  padding: 1.2rem 0 2.2rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .steps,
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .topbar__content {
    min-height: 68px;
  }
}
