:root {
  --bg: #08080d;
  --bg-alt: #101018;
  --card: #14141e;
  --border: #24242f;
  --border-hover: #3a3a4d;
  --text: #f2f2f7;
  --text-dim: #9c9cb0;
  --accent1: #5b7dff;
  --accent2: #a35bff;
  --accent3: #ff5ba0;
  --gradient: linear-gradient(100deg, var(--accent1), var(--accent2) 55%, var(--accent3));
  --success: #3fd68f;
  --error: #ff5b6e;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

a {
  color: var(--accent1);
  text-decoration: none;
}
a:hover {
  color: var(--accent2);
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin-bottom: 28px;
}

p {
  color: var(--text-dim);
  margin: 0 0 16px;
}

.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent1);
  margin-bottom: 14px;
}

/* Background decoration */

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
}
.bg-glow-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: var(--accent1);
}
.bg-glow-2 {
  width: 480px;
  height: 480px;
  top: 240px;
  right: -160px;
  background: var(--accent3);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 80%);
}

main, .nav, .footer {
  position: relative;
  z-index: 1;
}

.nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8, 8, 13, 0.75);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-small {
  font-size: 1.05rem;
}

.hero {
  padding: 120px 0 88px;
}

.hero .lede {
  max-width: 520px;
  font-size: 1.12rem;
  color: var(--text-dim);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  border: 1px solid transparent;
  background-clip: padding-box;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient);
  border: none;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(163, 91, 255, 0.55);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(163, 91, 255, 0.7);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent1);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-small {
  padding: 9px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
}
.btn-small:hover {
  border-color: var(--accent1);
  color: var(--text);
}

.migration, .services, .about, .contact {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.migration {
  position: relative;
}
.migration::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 0% 0%, rgba(163, 91, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.migration-lede {
  max-width: 620px;
  font-size: 1.05rem;
}

.check-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-size: 0.98rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.card-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent2);
  letter-spacing: 0.08em;
}

.card h3 {
  font-size: 1.1rem;
  margin: 10px 0 10px;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.manifesto {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 3px solid;
  border-image: var(--gradient) 1;
}

.about-body {
  max-width: 620px;
}

.contact-sub {
  max-width: 520px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 480px;
}

.contact-form label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent1);
  box-shadow: 0 0 0 3px rgba(91, 125, 255, 0.18);
}

.contact-form button {
  margin-top: 18px;
  align-self: flex-start;
}

.contact-form button[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

#form-response {
  max-width: 480px;
  margin-top: 16px;
}

.alert {
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
}

.alert p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.alert-success {
  border-color: var(--success);
  background: rgba(63, 214, 143, 0.1);
}

.alert-error {
  border-color: var(--error);
  background: rgba(255, 91, 110, 0.1);
}

.direct-contact {
  margin-top: 36px;
  font-size: 0.9rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
}

/* Admin panel */

.admin-body .bg-grid,
.admin-body .bg-glow {
  opacity: 0.12;
}

.admin-badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

.admin-main {
  padding: 56px 0 80px;
}

.admin-count {
  font-size: 0.9rem;
}

.admin-empty {
  color: var(--text-dim);
  padding: 40px 0;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  color: var(--text-dim);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table .nowrap {
  white-space: nowrap;
  color: var(--text-dim);
}

.admin-message {
  max-width: 420px;
  white-space: pre-wrap;
}

.btn-delete {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--error);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-delete:hover {
  border-color: var(--error);
  background: rgba(255, 91, 110, 0.1);
}

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

@media (max-width: 640px) {
  .hero {
    padding: 88px 0 56px;
  }
}
