:root {
  --bg: #1a161b;
  --bg-elevated: rgba(45, 37, 49, 0.9);
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f6f1f9;
  --muted: rgba(246, 241, 249, 0.68);
  --muted-soft: rgba(246, 241, 249, 0.46);
  --accent: #efe3d3;
  --accent-text: #201b21;
  --danger: #ffb8b0;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 82% 30%, rgba(228, 189, 150, 0.08), transparent 20%),
    radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.05), transparent 26%),
    linear-gradient(160deg, #161218 0%, #221b24 48%, #17141a 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 32px;
  display: grid;
  place-items: center;
}

.page-noise {
  position: absolute;
  inset: 0;
  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: 36px 36px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  opacity: 0.45;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.4;
  animation: drift 15s ease-in-out infinite;
  pointer-events: none;
}

.orb-left {
  width: 300px;
  height: 300px;
  left: -90px;
  top: 18%;
  background: rgba(255, 255, 255, 0.12);
}

.orb-right {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: 12%;
  background: rgba(239, 227, 211, 0.16);
  animation-direction: reverse;
}

.hero-card {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  padding: 56px;
  border: 1px solid var(--line-soft);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow,
.modal-kicker,
.feature-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker,
.hero-copy,
.modal-header p,
.platform-hint,
.feature-card p {
  color: var(--muted);
}

.hero-kicker {
  margin: 20px 0 0;
  font-size: 16px;
}

h1,
h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  margin-top: 18px;
  max-width: 9ch;
  font-size: clamp(54px, 8vw, 88px);
  line-height: 0.95;
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button,
.icon-button {
  border-radius: 20px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.primary-button {
  padding: 16px 24px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
}

.primary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.ghost-button {
  padding: 16px 24px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
}

.primary-button:disabled,
.ghost-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.platform-hint {
  margin: 14px 0 0;
  font-size: 14px;
}

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

.feature-card {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
}

.feature-card h2 {
  margin-top: 20px;
  font-size: 28px;
}

.feature-card p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 10;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 6, 0.7);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 720px);
  margin: min(8vh, 48px) auto 0;
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(42, 34, 46, 0.98), rgba(29, 24, 32, 0.98));
  box-shadow: var(--shadow);
}

.icon-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.modal-header h2 {
  margin-top: 12px;
  font-size: clamp(36px, 6vw, 46px);
}

.modal-header p {
  margin: 12px 0 0;
  font-size: 15px;
}

.form-stack {
  margin-top: 26px;
}

.field {
  display: block;
}

.field + .field {
  margin-top: 14px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-soft);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(239, 227, 211, 0.55);
  box-shadow: 0 0 0 4px rgba(239, 227, 211, 0.08);
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.error-text {
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 14px;
}

.button-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.button-row > * {
  flex: 1 1 0;
}

.button-row.single {
  justify-content: center;
}

.button-row.single > * {
  flex: 0 0 auto;
  min-width: 180px;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(16px, -18px, 0) scale(1.04);
  }
}

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

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
  }

  .hero-card,
  .modal-card {
    padding: 26px 20px;
    border-radius: 28px;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  h1 {
    max-width: none;
  }
}

