:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #223047;
  --muted: #65758f;
  --line: #d8e0ec;
  --orange: #db7900;
  --orange-dark: #b85f00;
  --blue: #2664eb;
  --green: #16a476;
  --shadow: 0 16px 45px rgba(31, 49, 75, 0.09);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(219, 121, 0, 0.11), rgba(38, 100, 235, 0.08)),
    var(--bg);
}

.login-panel {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.brand-mark {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}

.brand-mark img,
.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.login-panel h1 {
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 5vw, 2.3rem);
  line-height: 1.15;
}

.login-intro {
  color: var(--muted);
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  text-align: left;
}

.login-form label {
  color: #38465d;
  font-size: 0.9rem;
  font-weight: 700;
}

.login-form input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-form input {
  min-height: 48px;
  padding: 0 14px;
}

.login-form input:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(219, 121, 0, 0.13);
  background: #fff;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.password-field button {
  min-width: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f5fa;
  color: #354257;
  font-weight: 700;
  cursor: pointer;
}

.form-error {
  min-height: 20px;
  margin: 2px 0 0;
  color: #c22f2f;
  font-size: 0.88rem;
}

.primary-action,
.secondary-action,
.ghost-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-action {
  background: var(--orange);
  color: #101720;
  box-shadow: 0 10px 22px rgba(219, 121, 0, 0.22);
}

.primary-action:hover,
.secondary-action:hover,
.ghost-action:hover {
  transform: translateY(-1px);
}

.primary-action:active,
.secondary-action:active,
.ghost-action:active {
  transform: translateY(0);
}

.secondary-action,
.ghost-action {
  border-color: var(--line);
  background: #f7fafd;
  color: #26354c;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 84px);
  border-bottom: 1px solid rgba(216, 224, 236, 0.9);
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(14px);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  font-weight: 800;
}

.site-logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--orange-dark);
}

.hero-section {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: start center;
  padding: clamp(54px, 10vw, 96px) 24px 90px;
}

.hero-content {
  width: min(980px, 100%);
  text-align: center;
}

.hero-content h1 {
  margin-bottom: 24px;
  color: #202b3f;
  font-size: clamp(2.55rem, 6.8vw, 5.7rem);
  font-weight: 800;
  line-height: 0.98;
}

.hero-content h1 span {
  display: block;
  color: #ed8200;
}

.hero-content p {
  width: min(570px, 100%);
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.scroll-hint {
  margin-top: 62px;
  color: #7a89a0;
  font-size: 0.76rem;
}

.scroll-hint i {
  display: block;
  width: 1px;
  height: 28px;
  margin: 8px auto 0;
  background: linear-gradient(var(--orange), transparent);
}

.content-section {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  width: min(560px, 100%);
}

.section-heading h2,
.highlight-section h2,
.practice-card h2,
.author-card h2,
.ready-section h2 {
  margin-bottom: 14px;
  color: #253149;
  font-size: clamp(2rem, 4vw, 3.05rem);
  font-weight: 800;
  line-height: 1.08;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.8;
}

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

.feature-card {
  min-height: 228px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(31, 49, 75, 0.05);
}

.icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  font-weight: 800;
}

.pale {
  background: #fff1bd;
}

.blue {
  background: #d9e9ff;
}

.purple {
  background: #e9ddff;
}

.green {
  background: #c9f5df;
}

.rose {
  background: #ffd9df;
}

.amber {
  background: #ffe8a6;
}

.feature-card h3,
.step-list h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.feature-card p,
.step-list p,
.benefit-panel p,
.practice-card p,
.author-card p,
.ready-section p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.step-list {
  display: grid;
  gap: 28px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 22px;
  position: relative;
}

.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  width: 1px;
  height: calc(100% + 8px);
  background: var(--line);
}

.step-list span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--surface);
  z-index: 1;
}

code,
textarea {
  font-family: "JetBrains Mono", Consolas, monospace;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #e8eef8;
  color: #2858d8;
  font-size: 0.86em;
}

.benefit-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 42px;
  margin-top: 42px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.benefit-panel p {
  margin-bottom: 0;
  position: relative;
  padding-left: 24px;
}

.benefit-panel p::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

.practice-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.practice-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

textarea {
  min-height: 148px;
  resize: vertical;
  padding: 18px;
  background: #eef3fa;
  color: #233659;
  font-size: 0.9rem;
  line-height: 1.7;
}

.result-table {
  margin-top: 18px;
  overflow-x: auto;
}

.result-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.result-table th {
  background: #2f64e8;
  color: #fff;
  text-align: left;
}

.result-table th,
.result-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.status-line {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e9ba45;
  border-radius: 8px;
  background: #fff6dc;
  color: #8b5a00;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.author-card img {
  width: 220px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.ready-section {
  width: min(560px, calc(100% - 40px));
  margin: 70px auto 110px;
  padding: 44px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.ready-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.ready-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.ready-tags span {
  padding-left: 18px;
  position: relative;
  color: var(--muted);
  font-size: 0.8rem;
}

.ready-tags span::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.6rem;
}

footer {
  padding: 22px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-logo {
    min-width: 0;
  }

  .site-header nav {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 58px;
  }

  .feature-grid,
  .benefit-panel,
  .author-card {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .author-card img {
    width: min(260px, 100%);
  }
}

@media (max-width: 540px) {
  .login-panel,
  .practice-card,
  .benefit-panel,
  .author-card,
  .ready-section {
    padding: 22px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .ghost-action {
    padding: 0 14px;
  }

  .hero-actions,
  .practice-header {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}
