:root {
  --bg: #030b1a;
  --panel: rgba(10, 18, 38, 0.72);
  --panel-border: rgba(133, 160, 206, 0.22);
  --text: #e8f0ff;
  --muted: #a1b4d9;
  --primary-a: #12b6a7;
  --primary-b: #2a64e8;
  --ghost: rgba(199, 221, 255, 0.11);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  background: radial-gradient(1200px 800px at 20% 20%, #0f2048 0%, transparent 50%),
    radial-gradient(900px 900px at 80% 0%, #0f2e63 0%, transparent 58%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 260px;
  height: 260px;
  left: -80px;
  top: 10vh;
  background: rgba(18, 182, 167, 0.28);
}

.orb-2 {
  width: 300px;
  height: 300px;
  right: -90px;
  top: 45vh;
  background: rgba(42, 100, 232, 0.3);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 28px 0 44px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--primary-a), #4ad8cb);
  box-shadow: 0 0 18px rgba(18, 182, 167, 0.5);
}

.chip {
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--panel);
  color: #83f2d8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.lang-switch select {
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.hero {
  margin-top: 22px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(160deg, rgba(15, 24, 50, 0.84), rgba(8, 16, 35, 0.78));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0;
  color: #7ec9ff;
  letter-spacing: .06em;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 0;
  max-width: 860px;
  line-height: 1.12;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
}

.lead {
  margin: 14px 0 0;
  max-width: 760px;
  font-size: clamp(15px, 2.2vw, 19px);
  line-height: 1.5;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

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

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-a), var(--primary-b));
  box-shadow: 0 10px 24px rgba(40, 117, 224, 0.35);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--panel-border);
  background: var(--ghost);
}

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 16, 35, 0.64);
}

.card h2 {
  margin: 0;
  font-size: 18px;
}

.card p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 7, 18, 0.72);
  backdrop-filter: blur(2px);
  z-index: 30;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal {
  width: min(500px, 100%);
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(160deg, rgba(14, 23, 47, 0.96), rgba(7, 14, 30, 0.95));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.44);
  padding: 18px;
}

.modal h2 {
  margin: 0;
  font-size: 20px;
}

.modal p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.modal form {
  margin-top: 14px;
}

.modal label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.modal form > label {
  margin-top: 12px;
}

.modal form > label:first-of-type {
  margin-top: 0;
}

.modal input[type="email"],
.modal input[type="text"],
.modal textarea {
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 15, 31, 0.9);
  color: var(--text);
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
}

.modal textarea {
  resize: vertical;
  min-height: 96px;
}

.modal input[type="email"]:focus,
.modal input[type="text"]:focus,
.modal textarea:focus {
  border-color: rgba(68, 164, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(68, 164, 255, 0.18);
}

.modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
}

.modal-status.ok {
  color: #34d399;
}

.modal-status.err {
  color: #f87171;
}

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

@media (max-width: 640px) {
  .shell {
    width: min(1080px, 94vw);
    padding-top: 18px;
  }

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

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
}
