:root {
  color-scheme: dark;
  --background: #07101f;
  --surface: #101c31;
  --surface-light: #162641;
  --text: #f6f9ff;
  --muted: #aebbd0;
  --border: rgba(163, 203, 255, 0.18);
  --cyan: #27c9ed;
  --danger: #d63b4c;
  --success: #67e8b2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 10%, rgba(39, 201, 237, 0.18), transparent 28rem),
    linear-gradient(150deg, #07101f, #0b1730 65%, #07101f);
}

a {
  color: #8edff3;
  text-decoration: none;
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem max(1.25rem, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(7, 16, 31, 0.82);
}

.brand {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}

.brand span {
  color: var(--cyan);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

h1 {
  max-width: 780px;
  margin: 0.3rem 0 1rem;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1;
}

h2 {
  margin-top: 0.45rem;
}

.eyebrow,
.step {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.app-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.app-card,
.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--surface-light), var(--surface));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.app-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.app-card p,
.card p,
.card li {
  color: var(--muted);
  line-height: 1.6;
}

.card li + li {
  margin-top: 0.5rem;
}

button {
  font: inherit;
}

.danger-button,
.back-button {
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.danger-button {
  background: var(--danger);
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.back-button {
  margin-bottom: 1.5rem;
  padding-left: 0;
  color: #8edff3;
  background: transparent;
}

.confirmation {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.2rem 0;
  color: var(--muted);
  line-height: 1.5;
}

.confirmation input {
  margin-top: 0.3rem;
}

.notice {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(214, 59, 76, 0.1);
}

.message {
  min-height: 1.5rem;
  margin-top: 1rem;
  color: var(--muted);
}

.message.success {
  color: var(--success);
}

.message.error {
  color: #ff8f9b;
}

footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .container {
    padding: 3rem 0;
  }

  .app-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
}
