* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.30), transparent 36%),
    linear-gradient(180deg, #f8fafc 0%, #e5e7eb 100%);
  color: #111827;
}

.app {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 28px 18px 44px;
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.40), transparent 34%),
    radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.38), transparent 34%),
    linear-gradient(145deg, #0f172a 0%, #1e1b4b 56%, #312e81 100%);
  color: white;
  border-radius: 32px;
  padding: 28px 22px 22px;
  margin-bottom: 14px;
  box-shadow:
    0 26px 70px rgba(30, 27, 75, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.eyebrow {
  margin: 0;
  opacity: 0.76;
  font-size: 14px;
  font-weight: 700;
}

h1 {
  font-size: 82px;
  line-height: 0.9;
  margin: 12px 0 14px;
  letter-spacing: -4px;
  font-weight: 900;
}

#statusText {
  margin: 0;
  opacity: 0.92;
  font-size: 14px;
  font-weight: 700;
}

.formula {
  margin: 10px 0 0;
  opacity: 0.52;
  font-size: 13px;
  font-weight: 650;
}

.progress-wrap {
  margin-top: 18px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 750;
  color: rgba(255,255,255,0.62);
}

.progress-top strong {
  color: rgba(255,255,255,0.9);
}

.progress-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #2dd4bf 0%, #22c55e 45%, #a3e635 100%);
  box-shadow:
    0 0 18px rgba(45, 212, 191, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.45);
  transition: width 0.5s ease;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.card,
.form-section,
.settings-panel {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(24, 24, 32, 0.08);
  backdrop-filter: blur(18px);
}

.card {
  padding: 17px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(24, 24, 32, 0.11);
}

.card span {
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.card strong {
  color: #111827;
  font-size: 20px;
  letter-spacing: -0.4px;
}

.form-section {
  padding: 18px;
  margin-bottom: 14px;
}

h2 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: -0.3px;
}

label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 10px;
}

input {
  width: 100%;
  border: 1px solid #dedee5;
  background: rgba(255,255,255,0.94);
  border-radius: 16px;
  padding: 14px 15px;
  font-size: 20px;
  font-weight: 800;
  margin-top: 7px;
  margin-bottom: 12px;
  outline: none;
}

input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

button {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 15px;
  font-size: 15px;
  font-weight: 850;
  background: linear-gradient(135deg, #14b8a6, #6366f1);
  color: white;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(99,102,241,0.26);
}

button:active {
  transform: scale(0.985);
}

.settings-panel {
  padding: 14px 16px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 750;
}

.settings-panel summary {
  cursor: pointer;
  list-style: none;
}

.settings-panel summary::-webkit-details-marker {
  display: none;
}

.settings-panel summary::after {
  content: "›";
  float: right;
  font-size: 20px;
  transform: rotate(90deg);
  opacity: 0.55;
}

.settings-panel[open] summary::after {
  transform: rotate(-90deg);
}

.settings-content {
  margin-top: 14px;
}

@media (max-width: 420px) {
  .app {
    padding-top: 18px;
  }

  h1 {
    font-size: 68px;
  }
}