:root {
  --bg: #f6f8fb;
  --bg-soft: #eef3fa;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #3a86ff;
  --accent-2: #0f3a63;
  --accent-3: #8eb8ff;
  --shadow: 0 20px 50px rgba(16, 24, 40, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(820px 520px at 0% -5%, rgba(58, 134, 255, 0.22), transparent 60%),
    radial-gradient(880px 520px at 100% -6%, rgba(15, 58, 99, 0.18), transparent 62%),
    linear-gradient(170deg, #f7f9fd 0%, #eff4fb 47%, #f7f9fd 100%);
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(circle at 2px 2px, #0f3a63 1px, transparent 0);
  background-size: 18px 18px;
}

.orb {
  position: fixed;
  width: 34vw;
  max-width: 480px;
  min-width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.16;
  z-index: 0;
  animation: orb-move 15s ease-in-out infinite alternate;
}

.orb.one {
  top: -10vh;
  left: -6vw;
  background: radial-gradient(circle, rgba(58, 134, 255, 0.72), rgba(58, 134, 255, 0.02) 68%);
}

.orb.two {
  top: 45vh;
  right: -9vw;
  background: radial-gradient(circle, rgba(15, 58, 99, 0.5), rgba(15, 58, 99, 0.03) 70%);
  animation-duration: 18s;
}

@keyframes orb-move {
  from { transform: translateY(-12px) translateX(-8px) scale(0.98); }
  to { transform: translateY(16px) translateX(12px) scale(1.04); }
}

.wrap {
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: 36px 0 56px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 34px;
  padding: 6px 0;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.back:hover {
  transform: translateY(-2px);
  border-color: rgba(58, 134, 255, 0.55);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(58, 134, 255, 0.35);
  color: var(--accent-2);
  background: rgba(58, 134, 255, 0.07);
  padding: 8px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  backdrop-filter: blur(4px);
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 0.95;
  max-width: 16ch;
  letter-spacing: -0.02em;
}

.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  max-width: 62ch;
}

.hero {
  margin-bottom: 34px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 255, 0.95));
  border: 1px solid rgba(58, 134, 255, 0.2);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(20px, 4vw, 38px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(58, 134, 255, 0.14), transparent 60%);
  transform: translateX(-50%);
  animation: shine 6.4s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 134, 255, 0.22), transparent 67%);
  right: -130px;
  bottom: -170px;
  pointer-events: none;
}

@keyframes shine {
  0%, 22% { transform: translateX(-62%); opacity: 0; }
  36% { opacity: 0.65; }
  56% { transform: translateX(48%); opacity: 0; }
  100% { transform: translateX(48%); opacity: 0; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(249, 251, 255, 0.96));
  box-shadow: 0 12px 30px rgba(15, 58, 99, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px);
  animation: in 0.55s ease forwards;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.24), transparent 35%, rgba(15, 58, 99, 0.2));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(58, 134, 255, 0.44);
  box-shadow: 0 22px 44px rgba(15, 58, 99, 0.2);
}

.card:hover::before {
  opacity: 1;
}

@keyframes in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.window-head {
  height: 38px;
  border-bottom: 1px solid rgba(58, 134, 255, 0.16);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(58, 134, 255, 0.05);
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff6b6b; }
.dot.yellow { background: #ffd166; }
.dot.green { background: #4cd97b; }

.url {
  font-size: 0.78rem;
  color: var(--accent-2);
  background: rgba(58, 134, 255, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.preview {
  width: 100%;
  height: 240px;
  border: 0;
  background: #f1f6ff;
  transition: filter 0.3s ease;
  filter: saturate(1.02) contrast(1.02);
}

.card:hover .preview {
  filter: saturate(1.12) contrast(1.06);
}

.content {
  padding: 14px 14px 16px;
}

.content h2 {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
}

.content p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border-radius: 11px;
  padding: 9px 12px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent), #2d75e3);
  box-shadow: 0 10px 20px rgba(58, 134, 255, 0.24);
}

.btn.ghost {
  color: var(--accent-2);
  border-color: rgba(58, 134, 255, 0.35);
  background: rgba(58, 134, 255, 0.05);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary:hover {
  box-shadow: 0 14px 26px rgba(58, 134, 255, 0.35);
}

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.note strong {
  color: var(--accent-2);
  font-weight: 600;
}

footer {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .topbar {
    margin-bottom: 20px;
  }

  .preview {
    height: 210px;
  }

  .orb {
    opacity: 0.16;
  }
}
