:root {
  --background: #f7f8fa;
  --card: #ffffff;
  --foreground: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #0f172a;
  --primary-foreground: #ffffff;
  --accent: #dbeafe;
  --accent-foreground: #1e3a8a;
  --ring: rgba(15, 23, 42, 0.16);
  --radius: 14px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--foreground);
  background: radial-gradient(circle at 80% 10%, #e0f2fe 0%, transparent 35%),
    radial-gradient(circle at 10% 70%, #ecfeff 0%, transparent 30%), var(--background);
}

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

button {
  font: inherit;
}

.page {
  min-height: 100vh;
  padding: 24px;
  display: flex;
}

.shell {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.14);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--accent-foreground);
  font-size: 12px;
  padding: 6px 10px;
  font-weight: 600;
}

.hero {
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 10px);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 34px;
  animation: rise 560ms ease both;
}

h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.1rem);
}

.actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  padding: 11px 16px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: transparent;
}

.btn-primary:hover {
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
  background: #fff;
}

.subdomain-list {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  overflow: hidden;
}

.subdomain-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.subdomain-item:first-child {
  border-top: none;
}

.name {
  font-weight: 600;
}

.url {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
}

.status-live {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.status-soon {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
}

.foot {
  margin-top: auto;
  padding: 20px 6px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  animation: fade-in 180ms ease both;
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  width: min(560px, 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  margin: 0;
  font-size: 1.2rem;
}

.modal-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-close {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.modal-close:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.contact-form {
  margin-top: 18px;
}

.form-row + .form-row {
  margin-top: 12px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--foreground);
  background: #fff;
}

.form-input:focus,
.form-textarea:focus {
  outline: 3px solid var(--ring);
  outline-offset: 0;
  border-color: #cbd5e1;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.form-feedback {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #166534;
}

.form-feedback.is-error {
  color: #b91c1c;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 16px;
  }

  .shell {
    min-height: calc(100vh - 32px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .subdomain-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
