/* AMP Global Soft — default page for newly created domains (Plesk) */

:root {
  --night: #1b1b19;
  --night-2: #242421;
  --ink: #353531;
  --accent: #f9c13c;
  --accent-hover: #e8b02b;
  --text: #f4f4f1;
  --text-soft: rgba(244, 244, 241, 0.72);
  --text-muted: rgba(244, 244, 241, 0.5);
  --line: rgba(255, 255, 255, 0.1);
  --ok: #4ade80;
  --warn: #ee4444;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

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

/* ---------- Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 55%, var(--night) 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}

.bg-glow {
  position: absolute;
  top: -20vmax;
  right: -15vmax;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 193, 60, 0.18) 0%, rgba(249, 193, 60, 0) 65%);
  animation: glow 9s ease-in-out infinite alternate;
}

.bg-watermark {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-weight: 700;
  font-size: clamp(120px, 22vw, 340px);
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.025);
  user-select: none;
}

@keyframes glow {
  from { transform: translate(0, 0) scale(1); opacity: 0.8; }
  to { transform: translate(-4vmax, 3vmax) scale(1.08); opacity: 1; }
}

/* ---------- Top bar ---------- */

.topbar {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px, 8vh, 96px) var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--accent);
}

.title {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.title .domain {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 6px 16px;
  border: 1px solid rgba(249, 193, 60, 0.35);
  border-radius: 999px;
  background: rgba(249, 193, 60, 0.08);
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.title .line {
  display: block;
  font-size: clamp(34px, 5.4vw, 76px);
}

.title .accent {
  color: var(--accent);
}

.rule {
  height: 1px;
  margin: clamp(28px, 5vh, 48px) 0;
  background: linear-gradient(90deg, rgba(249, 193, 60, 0.7), rgba(249, 193, 60, 0.1) 70%, transparent);
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.lead {
  max-width: 560px;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-soft);
}

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

/* ---------- Pill buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pill-arrow {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  transition: transform 0.3s var(--ease);
}

.pill:hover .pill-arrow {
  transform: rotate(45deg);
}

.pill-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 40px -12px rgba(249, 193, 60, 0.6);
}

.pill-primary .pill-arrow {
  background: var(--ink);
  color: var(--accent);
}

.pill-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.pill-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.pill-ghost .pill-arrow {
  background: var(--accent);
  color: var(--ink);
}

.pill-ghost:hover {
  border-color: rgba(249, 193, 60, 0.6);
  background: rgba(255, 255, 255, 0.04);
}

.pill-sm {
  padding: 5px 5px 5px 18px;
  font-size: 13px;
  gap: 10px;
}

.pill-sm .pill-arrow {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

/* ---------- Status ---------- */

.status {
  list-style: none;
  margin: clamp(40px, 7vh, 72px) 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.status li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-val {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}

.status-val i {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-val.ok i {
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2.4s infinite;
}

.status-val.wait i {
  background: var(--accent);
}

.status-val.bad i {
  background: var(--warn);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---------- Owner note ---------- */

.owner {
  margin-top: 32px;
  max-width: 720px;
  font-size: 14px;
  color: var(--text-soft);
}

.owner summary {
  cursor: pointer;
  width: fit-content;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.owner summary::-webkit-details-marker {
  display: none;
}

.owner summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  transition: transform 0.3s var(--ease);
}

.owner[open] summary::before {
  transform: rotate(45deg);
}

.owner summary:hover {
  color: var(--accent);
}

.owner p {
  margin: 12px 0 0 18px;
  line-height: 1.65;
}

.owner code {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.owner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

.footer {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer a:hover {
  color: var(--accent);
}

/* ---------- Focus ---------- */

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 999px;
}

/* ---------- Entry animation ---------- */

.eyebrow,
.title,
.rule,
.hero-bottom,
.status,
.owner {
  animation: rise 0.9s var(--ease) both;
}

.title { animation-delay: 0.08s; }
.rule { animation-delay: 0.16s; }
.hero-bottom { animation-delay: 0.24s; }
.status { animation-delay: 0.32s; }
.owner { animation-delay: 0.4s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .logo img { height: 38px; }
  .topbar .pill-sm { display: none; }
  .status { grid-template-columns: 1fr; gap: 16px; }
  .actions { width: 100%; }
  .actions .pill { flex: 1 1 auto; justify-content: space-between; }
  .bg-grid { background-size: 44px 44px; }
}

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