:root {
  --bg: #f4f6f8;
  --bg-accent: #e8f2f0;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --line: #dbe3e8;
  --line-soft: #e9eef2;
  --text: #16212d;
  --muted: #5f6b78;
  --muted-strong: #334155;
  --brand: #0f766e;
  --brand-deep: #0c4a49;
  --accent: #d97706;
  --success: #15803d;
  --danger: #c2410c;
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f9fb 0%, #f1f5f7 100%);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero-shell {
  background: linear-gradient(135deg, #0f172a 0%, #123b46 58%, #17645f 100%);
  border-radius: 36px;
  padding: 22px;
  color: #f8fafc;
  box-shadow: var(--shadow-lg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 6px 22px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.14);
}

.brand-text,
.topbar-note {
  color: rgba(248, 250, 252, 0.86);
  font-size: 0.95rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
  gap: 20px;
}

.hero-copy,
.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  border-radius: 30px;
}

.hero-copy {
  padding: 34px;
}

.hero-panel {
  padding: 18px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow {
  color: #7dd3fc;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: 0.94;
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 0;
  color: rgba(248, 250, 252, 0.8);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-link,
.footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.hero-link {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.82);
  font-weight: 600;
}

.disclaimer {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.7;
}

.hero-stat-card {
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
  color: var(--text);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stat-label,
.stat-foot {
  margin: 0;
  color: var(--muted);
}

.hero-stat-card h2 {
  margin-top: 10px;
  font-size: clamp(3rem, 8vw, 4.4rem);
}

.stat-foot {
  margin-top: 14px;
  line-height: 1.7;
}

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

.info-card,
.practice-card,
.side-card,
.panel-card,
.footer {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
}

.info-card {
  border-radius: 22px;
  padding: 22px;
}

.info-title {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.info-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.78fr);
  gap: 18px;
  margin-top: 18px;
}

.practice-card,
.side-card,
.panel-card {
  border-radius: 28px;
  padding: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.section-kicker {
  color: var(--brand);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.section-head h3 {
  font-size: 1.5rem;
}

.session-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-accent);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.92rem;
}

.progress-card {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted-strong);
  font-weight: 700;
}

.progress-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebef;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-deep), #14b8a6);
  transition: width 0.35s ease;
}

.trainer-card {
  margin-top: 18px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  border: 1px solid var(--line-soft);
}

.status-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #155e75);
  color: white;
  font-size: 2.45rem;
}

.question-label {
  display: block;
  text-align: center;
  color: var(--muted-strong);
  font-weight: 700;
  margin-bottom: 18px;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.control-field {
  display: grid;
  gap: 8px;
}

.control-field label,
.timer-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

select,
input[type="file"],
textarea,
#answerInput {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--text);
  font: inherit;
}

select {
  padding: 13px 15px;
  font-weight: 600;
}

.timer-display {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 16px;
  background: #f0fdfb;
  border: 1px solid #ccebe7;
  color: var(--brand-deep);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
}

#answerInput {
  margin-top: 16px;
  padding: 18px 20px;
  text-align: center;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#answerInput:focus,
select:focus,
textarea:focus,
input[type="file"]:focus {
  outline: none;
  border-color: #6fbdb5;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.feedback {
  min-height: 34px;
  margin: 18px 0;
  text-align: center;
  font-weight: 800;
  font-size: 1.02rem;
}

.feedback.correct {
  color: var(--success);
}

.feedback.wrong {
  color: var(--danger);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  background: #edf2f6;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
}

.btn-success {
  background: linear-gradient(135deg, #0f766e, #16a34a);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.helper-text,
.feature-list li,
.upload-block p,
.about-copy p,
.footer-text,
.empty {
  color: var(--muted);
  line-height: 1.7;
}

.helper-text {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.94rem;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.side-card h3 {
  margin-top: 6px;
  font-size: 1.45rem;
}

.feature-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.feature-list li + li {
  margin-top: 10px;
}

.upload-block {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
}

.upload-block h4 {
  font-size: 1.05rem;
}

input[type="file"] {
  margin-top: 14px;
  padding: 14px;
  background: white;
  border-style: dashed;
}

textarea {
  margin-top: 14px;
  min-height: 130px;
  resize: vertical;
  padding: 14px 16px;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.history-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  font-weight: 700;
}

.history-item span {
  color: var(--muted);
}

.about-copy {
  margin-top: 18px;
}

.about-copy p + p {
  margin-top: 12px;
}

.footer {
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-name {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-text {
  margin: 6px 0 0;
}

.footer a {
  color: var(--brand-deep);
}

.btn:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .main-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .topbar,
  .section-head,
  .footer,
  .progress-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-strip,
  .control-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.3rem, 11vw, 3.6rem);
  }
}

@media (max-width: 560px) {
  .hero-shell,
  .practice-card,
  .side-card,
  .panel-card,
  .footer {
    border-radius: 22px;
  }

  .hero-copy,
  .hero-panel,
  .trainer-card,
  .practice-card,
  .side-card,
  .panel-card {
    padding: 20px;
  }

  .button-row .btn {
    width: 100%;
  }

  .status-icon {
    width: 80px;
    height: 80px;
    font-size: 2.1rem;
  }
}
