/* =====================================================================
   Example.com — Website Creation Success Page
   Modern, premium, celebratory landing page styles (vanilla CSS).
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces & backgrounds */
  --bg: #06070c;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f3f6fc;
  --muted: #9aa6ba;
  --dim: #677084;

  /* Accents */
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --gold: #facc15;

  /* Gradients */
  --grad-success: linear-gradient(135deg, #34d399 0%, #10b981 45%, #22d3ee 100%);
  --grad-cta: linear-gradient(135deg, #34d399, #22d3ee);

  /* Misc */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--emerald-bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(52, 211, 153, 0.3); color: #fff; }

/* ---------- Ambient Background ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(16, 185, 129, 0.12), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(34, 211, 238, 0.08), transparent 55%),
    linear-gradient(180deg, #070810 0%, #06070c 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.orb--emerald {
  width: 520px; height: 520px; left: -120px; top: -80px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.55), transparent 70%);
  animation: float 18s var(--ease) infinite alternate;
}
.orb--cyan {
  width: 480px; height: 480px; right: -140px; top: 8%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 70%);
  animation: float 22s var(--ease) infinite alternate-reverse;
}
.orb--violet {
  width: 460px; height: 460px; left: 30%; bottom: -200px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.32), transparent 70%);
  animation: float 26s var(--ease) infinite alternate;
}
.grid-overlay {
  position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask: radial-gradient(circle at 50% 30%, #000, transparent 75%);
          mask: radial-gradient(circle at 50% 30%, #000, transparent 75%);
}
@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}

/* ---------- Confetti & Toast ---------- */
.confetti-canvas { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 160%);
  z-index: 80; display: flex; align-items: center; gap: 10px;
  background: rgba(18, 22, 32, 0.92); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); color: var(--text);
  padding: 13px 20px; border-radius: 14px;
  font-size: 0.92rem; font-weight: 500; white-space: nowrap;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85);
  transition: transform 0.45s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
.toast__icon {
  display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.2); color: var(--emerald-bright);
  font-size: 0.7rem; font-weight: 800;
}

/* ---------- Top Bar ---------- */
.topbar { position: relative; z-index: 5; }
.topbar__inner {
  max-width: 1080px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-success); color: #04130d;
  box-shadow: 0 8px 22px -8px rgba(16, 185, 129, 0.7);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.01em; }
.brand__dot { color: var(--emerald-bright); }
.topbar__status {
  display: inline-flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-bright);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Layout ---------- */
.container { max-width: 880px; margin: 0 auto; padding: 24px 24px 80px; position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero {
  text-align: center; padding: 36px 0 8px;
  display: flex; flex-direction: column; align-items: center;
}
.hero__badge { position: relative; width: 128px; height: 128px; display: grid; place-items: center; margin-bottom: 30px; }
.badge__halo {
  position: absolute; inset: -26px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.55), transparent 65%);
  filter: blur(6px); animation: halo 3s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 0.95; transform: scale(1.06); }
}
.badge__ring {
  position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, #34d399 90deg, #22d3ee 180deg, transparent 270deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  animation: spin 5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.badge__core {
  position: relative; width: 110px; height: 110px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #6ee7b7, #10b981 52%, #047857 100%);
  box-shadow:
    inset 0 -10px 22px rgba(0, 0, 0, 0.28),
    inset 0 8px 18px rgba(255, 255, 255, 0.25),
    0 18px 40px -12px rgba(16, 185, 129, 0.65);
  opacity: 0; transform: scale(0.3);
  animation: pop 0.6s 0.15s var(--ease) forwards;
}
@keyframes pop {
  0% { opacity: 0; transform: scale(0.3); }
  60% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}
.check { width: 56px; height: 56px; }
.check__path {
  fill: none; stroke: #fff; stroke-width: 4.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 34; stroke-dashoffset: 34;
  animation: draw 0.5s 0.55s var(--ease) forwards;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--emerald-bright); background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25); padding: 7px 15px; border-radius: 999px; margin-bottom: 20px;
}
.hero__eyebrow svg { width: 16px; height: 16px; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 6.5vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 18px;
}
.text-gradient { background: var(--grad-success); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { max-width: 560px; font-size: 1.08rem; color: var(--muted); }
.hero__subtitle strong { color: var(--text); font-weight: 600; }

/* ---------- Shared Card ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

/* ---------- Website Details Card ---------- */
.details { width: 100%; max-width: 600px; margin-top: 36px; padding: 24px; text-align: left; }
.details__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.details__site { display: flex; align-items: center; gap: 13px; }
.details__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.28); color: var(--emerald-bright);
}
.details__icon svg { width: 22px; height: 22px; }
.details__label { display: block; font-size: 0.78rem; color: var(--dim); }
.details__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 600;
  color: var(--emerald-bright); background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3); padding: 6px 12px; border-radius: 999px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-bright); animation: pulse-dot 2s infinite; }

.details__rows { display: flex; flex-direction: column; gap: 10px; }
.detail-row {
  display: flex; align-items: center; gap: 13px; padding: 13px 14px;
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.detail-row__icon {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted);
}
.detail-row__icon svg { width: 17px; height: 17px; }
.detail-row__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.detail-row__label { font-size: 0.74rem; color: var(--dim); }
.detail-row__value {
  font-size: 0.96rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.btn--copy {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 600; padding: 9px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  transition: all 0.25s var(--ease);
}
.btn--copy:hover { background: rgba(52, 211, 153, 0.16); border-color: rgba(52, 211, 153, 0.4); color: var(--emerald-bright); }
.btn--copy svg { width: 15px; height: 15px; }
.btn--copy .ic-check { display: none; color: var(--emerald-bright); }
.btn--copy.is-copied { background: rgba(52, 211, 153, 0.16); border-color: rgba(52, 211, 153, 0.45); color: var(--emerald-bright); }
.btn--copy.is-copied .ic-copy { display: none; }
.btn--copy.is-copied .ic-check { display: inline-flex; }

.details__pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--muted);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); padding: 7px 12px; border-radius: 999px;
}
.pill svg { width: 14px; height: 14px; color: var(--emerald-bright); }

/* ---------- Next Steps ---------- */
.next-steps { margin-top: 64px; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
/* Gradient border on hover */
.step::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, transparent, var(--accent-c, transparent), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.step:hover { transform: translateY(-6px); }
.step:hover::after { opacity: 1; }
.step--violet { --accent-c: rgba(168, 85, 247, 0.6); }
.step--cyan { --accent-c: rgba(34, 211, 238, 0.6); }
.step--emerald { --accent-c: rgba(52, 211, 153, 0.6); }
.step__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--border); transition: transform 0.35s var(--ease);
}
.step__icon svg { width: 22px; height: 22px; }
.step--violet .step__icon { background: rgba(168, 85, 247, 0.14); color: #c084fc; }
.step--cyan .step__icon { background: rgba(34, 211, 238, 0.14); color: #67e8f9; }
.step--emerald .step__icon { background: rgba(52, 211, 153, 0.14); color: var(--emerald-bright); }
.step:hover .step__icon { transform: scale(1.08) rotate(-4deg); }
.step__body { display: flex; flex-direction: column; gap: 6px; }
.step__title { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; }
.step__desc { font-size: 0.9rem; color: var(--muted); }
.step__arrow {
  position: absolute; top: 22px; right: 22px; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); transition: all 0.35s var(--ease);
}
.step__arrow svg { width: 15px; height: 15px; }
.step:hover .step__arrow { background: var(--accent-c); color: #fff; border-color: transparent; transform: translate(2px, -2px); }

/* ---------- CTA ---------- */
.cta {
  margin-top: 60px; text-align: center; padding: 46px 28px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border); border-radius: 28px;
}
.cta::before {
  content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 480px; height: 280px; background: radial-gradient(circle, rgba(52, 211, 153, 0.22), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.cta h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; position: relative; }
.cta p { color: var(--muted); margin: 8px 0 24px; position: relative; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 1rem; border-radius: 14px; padding: 16px 26px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn svg { width: 19px; height: 19px; }
.btn--primary {
  position: relative; overflow: hidden; color: #04140e;
  background: var(--grad-cta); box-shadow: 0 14px 34px -10px rgba(16, 185, 129, 0.7);
  animation: breathe 3.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 14px 34px -10px rgba(16, 185, 129, 0.6); }
  50% { box-shadow: 0 14px 44px -8px rgba(16, 185, 129, 0.95); }
}
.btn--primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg); animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine { 0% { left: -120%; } 55%, 100% { left: 140%; } }
.btn--primary:hover { transform: translateY(-3px); }
.btn--primary svg { transition: transform 0.3s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer {
  max-width: 1080px; margin: 0 auto; padding: 28px 24px 40px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--dim); font-size: 0.86rem; position: relative; z-index: 2;
}
.footer svg { color: #f87171; width: 14px; height: 14px; display: inline; vertical-align: middle; }
.footer__links { display: flex; gap: 18px; }
.footer__links a { color: var(--muted); transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }

/* ---------- Reveal Animation (fade-in-up) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }
/* Stagger hero children on load */
.js .hero > .reveal:nth-child(1) { transition-delay: 0.05s; }
.js .hero > .reveal:nth-child(2) { transition-delay: 0.18s; }
.js .hero > .reveal:nth-child(3) { transition-delay: 0.30s; }
.js .hero > .reveal:nth-child(4) { transition-delay: 0.42s; }
.js .hero > .reveal:nth-child(5) { transition-delay: 0.50s; }
/* Stagger step cards */
.js .steps .reveal:nth-child(2) { transition-delay: 0.10s; }
.js .steps .reveal:nth-child(3) { transition-delay: 0.20s; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .topbar__status span:last-child { display: none; }
  .topbar__status { padding: 8px; }
  .hero__badge { width: 108px; height: 108px; }
  .badge__core { width: 92px; height: 92px; }
  .cta { padding: 34px 18px; }
  .detail-row { flex-wrap: wrap; }
  .btn--copy { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .container { padding: 18px 16px 60px; }
  .hero { padding-top: 18px; }
  .footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
