:root {
  color-scheme: light dark;
  --page-bg: #ffffff;
  --bg: #eef2ff;
  --bg-accent: #dbeafe;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(248, 250, 252, 0.78);
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.14);
  --success-bg: rgba(34, 197, 94, 0.16);
  --success-text: #166534;
  --warning-bg: rgba(245, 158, 11, 0.18);
  --warning-text: #92400e;
  --error-bg: rgba(239, 68, 68, 0.16);
  --error-text: #b91c1c;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 32px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #000000;
    --bg: #020617;
    --bg-accent: #0f172a;
    --surface: rgba(15, 23, 42, 0.78);
    --surface-strong: rgba(15, 23, 42, 0.92);
    --surface-soft: rgba(30, 41, 59, 0.72);
    --border: rgba(148, 163, 184, 0.18);
    --text: #e2e8f0;
    --text-soft: #cbd5e1;
    --muted: #94a3b8;
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-soft: rgba(96, 165, 250, 0.18);
    --success-bg: rgba(34, 197, 94, 0.18);
    --success-text: #86efac;
    --warning-bg: rgba(245, 158, 11, 0.2);
    --warning-text: #fde68a;
    --error-bg: rgba(239, 68, 68, 0.18);
    --error-text: #fca5a5;
    --shadow: 0 30px 80px rgba(2, 6, 23, 0.54);
    --shadow-soft: 0 18px 45px rgba(2, 6, 23, 0.42);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--text);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: page-enter 0.7s ease-out both;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  background: transparent;
  border: none;
  box-shadow: none;
  animation: card-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0;
  z-index: -1;
  display: none;
}

.card__glow--one {
  top: -100px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: rgba(59, 130, 246, 0.22);
}

.card__glow--two {
  right: -80px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  background: rgba(99, 102, 241, 0.18);
}

.card__aside {
  position: relative;
  padding: 52px 44px;
  background: transparent;
  border-right: none;
}

.card__content {
  padding: 52px 44px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  animation: fade-slide-up 0.8s ease-out 0.08s both;
}

.brand-lockup__logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.18));
}

.eyebrow {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: fade-slide-up 0.8s ease-out 0.14s both;
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.05;
  max-width: 12ch;
  animation: fade-slide-up 0.85s ease-out 0.2s both;
}

.intro {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 56ch;
  animation: fade-slide-up 0.9s ease-out 0.28s both;
}

.benefits {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  animation: fade-slide-up 0.85s ease-out both;
}

.benefit:nth-child(1) {
  animation-delay: 0.34s;
}

.benefit:nth-child(2) {
  animation-delay: 0.42s;
}

.benefit:nth-child(3) {
  animation-delay: 0.5s;
}

.benefit__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.benefit h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fade-slide-up 0.8s ease-out 0.16s both;
}

.content-title {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  line-height: 1.12;
  animation: fade-slide-up 0.85s ease-out 0.24s both;
}

.content-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  animation: fade-slide-up 0.9s ease-out 0.32s both;
}

.form {
  display: grid;
  gap: 22px;
  margin-top: 28px;
  animation: fade-slide-up 0.95s ease-out 0.4s both;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 9px;
}

.field--full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px 16px;
  font: inherit;
  color: inherit;
  background: var(--surface-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

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

.field input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 80%, white 20%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent 80%);
  transform: translateY(-1px);
}

.form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 46ch;
}

.submit-button {
  border: 0;
  min-width: 185px;
  border-radius: 18px;
  padding: 15px 24px;
  font: inherit;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(37, 99, 235, 0.28);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.message {
  display: none;
  margin: 0;
  padding: 15px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid transparent;
}

.message.is-visible {
  display: block;
}

.message.is-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: color-mix(in srgb, var(--success-text) 20%, transparent 80%);
}

.message.is-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-color: color-mix(in srgb, var(--warning-text) 20%, transparent 80%);
}

.message.is-error {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: color-mix(in srgb, var(--error-text) 18%, transparent 82%);
}

@keyframes page-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }

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

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

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

  .card__aside {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  h1 {
    max-width: 100%;
  }

  .brand-lockup__logo {
    width: min(100%, 320px);
  }
}

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

  .card {
    border-radius: 26px;
  }

  .card__aside,
  .card__content {
    padding: 28px 20px;
  }

  .brand-lockup {
    justify-content: center;
    margin-bottom: 22px;
  }

  .brand-lockup__logo {
    width: min(100%, 260px);
  }

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

  .field--full {
    grid-column: auto;
  }

  .form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-button {
    width: 100%;
    min-width: 0;
  }

  .benefit {
    padding: 16px;
  }

  .benefit__icon {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  padding: 32px;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.is-active .modal-box {
  transform: translateY(0);
}

.modal-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.5rem;
}

.modal-desc {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal-data-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.modal-data-list li {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.modal-data-list span:first-child {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 2px;
}

.modal-data-list span:last-child {
  color: var(--text);
  font-weight: 500;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-actions button {
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-cancel {
  background: var(--bg);
  color: var(--text-soft);
  border: 1px solid var(--border) !important;
}

.btn-cancel:hover {
  background: var(--border);
  color: var(--text);
}

.btn-confirm {
  background: var(--primary);
  color: #fff;
}

.btn-confirm:hover {
  background: var(--primary-dark);
}

.modal-box--center {
  text-align: center;
}

.modal-actions--center {
  justify-content: center;
  margin-top: 24px;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.1);
  animation: scale-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes scale-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
