:root {
  --brand-primary: #1e3a8a;
  --brand-accent: #f97316;
  --brand-text: #202020;
  --brand-muted: #666666;
  --brand-bg: #ffffff;
  --brand-bg-soft: #f5f8fc;
  --brand-success: #16a34a;
  --brand-danger: #dc2626;
  --line: #dce7f5;
  --sky: #eaf4ff;
  --mint: #eaf7ef;
  --sun: #fff3e5;
  --pink: #fff0f3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(30, 58, 138, 0.12), transparent 30%),
    var(--brand-bg);
  color: var(--brand-text);
  font-family: "Noto Sans TC", "PingFang TC", "Segoe UI", "Microsoft JhengHei",
    Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 8px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand img {
  display: block;
  width: auto;
  height: 50px;
  max-height: 50px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 900;
  color: var(--brand-primary);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 56px);
  min-height: calc(100vh - 66px);
  padding: clamp(26px, 5vw, 64px) clamp(20px, 5vw, 72px) 42px;
  background:
    linear-gradient(135deg, rgba(234, 244, 255, 0.95), rgba(255, 255, 255, 0.78) 58%),
    linear-gradient(45deg, rgba(255, 243, 229, 0.82), transparent 46%),
    var(--brand-bg);
}

.hero-copy {
  align-self: center;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff3e5;
  color: var(--brand-accent);
  font-size: 14px;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 18px;
  color: var(--brand-primary);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--brand-primary);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  color: var(--brand-primary);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  color: #334155;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.2);
}

.button.primary {
  background: var(--brand-accent);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  box-shadow: 0 10px 22px rgba(30, 58, 138, 0.12);
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hero-meta div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.08);
}

.hero-meta dt {
  color: var(--brand-accent);
  font-weight: 900;
}

.hero-meta dd {
  margin: 0;
  color: #334155;
  font-weight: 800;
}

.hero-media {
  position: relative;
  align-self: center;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.95), transparent 24%),
    linear-gradient(135deg, #eaf4ff, #fff3e5 52%, #fff0f3);
  box-shadow: 0 22px 54px rgba(30, 58, 138, 0.14);
  isolation: isolate;
}

.hero-photo-card {
  position: absolute;
  inset: 44px 34px auto auto;
  width: min(88%, 620px);
  aspect-ratio: 1738 / 788;
  overflow: hidden;
  border: 10px solid #ffffff;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  transform: rotate(1deg);
}

.hero-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  width: 178px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(30, 58, 138, 0.14);
  backdrop-filter: blur(10px);
}

.floating-card strong {
  color: var(--brand-accent);
  font-size: 15px;
}

.floating-card span {
  color: var(--brand-primary);
  font-weight: 900;
}

.card-a {
  left: 28px;
  top: 82px;
  transform: rotate(-4deg);
}

.card-b {
  left: 58px;
  bottom: 82px;
  transform: rotate(3deg);
}

.spark {
  position: absolute;
  border-radius: 999px;
}

.spark-one {
  left: 24%;
  top: 46%;
  width: 92px;
  height: 92px;
  background: rgba(249, 115, 22, 0.2);
}

.spark-two {
  right: 10%;
  top: 10%;
  width: 54px;
  height: 54px;
  background: rgba(30, 58, 138, 0.12);
}

.section {
  padding: clamp(52px, 7vw, 96px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.intro {
  background: #ffffff;
}

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

.intro-grid article,
.course-card,
.signup-form {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(30, 64, 175, 0.08);
}

.intro-grid article {
  padding: 22px;
}

.soft-card:nth-child(1) {
  background: linear-gradient(180deg, #ffffff, var(--sky));
}

.soft-card:nth-child(2) {
  background: linear-gradient(180deg, #ffffff, var(--sun));
}

.soft-card:nth-child(3) {
  background: linear-gradient(180deg, #ffffff, var(--mint));
}

.intro-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-primary);
  font-size: 19px;
}

.intro-grid p {
  margin-bottom: 0;
  color: var(--brand-muted);
}

.courses {
  background: linear-gradient(180deg, var(--brand-bg-soft), #ffffff);
}

.course-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.course-card::after {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  content: "";
}

.course-card.featured {
  border-color: rgba(249, 115, 22, 0.5);
}

.course-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--brand-primary);
  font-weight: 900;
}

.course-time {
  color: var(--brand-accent);
  font-weight: 900;
}

.course-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.course-card li + li {
  margin-top: 10px;
}

.outcomes {
  background: #ffffff;
}

.outcome-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.outcome-list span {
  padding: 10px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--sky);
  color: var(--brand-primary);
  font-weight: 900;
}

.signup {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  gap: clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
}

.signup h2,
.signup .eyebrow {
  color: #ffffff;
}

.signup .eyebrow {
  background: rgba(255, 255, 255, 0.18);
}

.signup-copy p {
  color: rgba(255, 255, 255, 0.88);
}

.contact-list {
  margin: 24px 0 0;
  padding-left: 20px;
}

.contact-list li + li {
  margin-top: 8px;
}

.signup-form {
  padding: 26px;
  color: var(--brand-text);
}

.signup-form label,
.signup-form legend {
  display: block;
  color: var(--brand-primary);
  font-weight: 900;
}

.signup-form input[type="text"] {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font: inherit;
}

.signup-form fieldset {
  margin: 20px 0;
  padding: 0;
  border: 0;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.radio-row input {
  width: 18px;
  height: 18px;
}

.signup-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
  line-height: 1.55;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  font-weight: 800;
}

.form-status.error {
  color: var(--brand-danger);
}

.form-status.success {
  color: var(--brand-success);
}

.form-status.pending {
  color: var(--brand-primary);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px clamp(20px, 5vw, 72px);
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--brand-muted);
}

.site-footer p {
  margin: 0;
}

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

  .hero {
    min-height: auto;
  }

  .hero-media {
    aspect-ratio: 16 / 11;
  }

  .intro-grid,
  .course-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    min-height: 58px;
    padding: 8px 16px;
  }

  .site-nav {
    width: auto;
    justify-content: flex-end;
    gap: 12px;
    font-size: 15px;
  }

  .brand img {
    width: auto;
    height: 38px;
    max-height: 38px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }

  .hero-media {
    aspect-ratio: 1 / 1;
  }

  .hero-photo-card {
    inset: 24px 18px auto 18px;
    width: auto;
  }

  .floating-card {
    width: 142px;
    padding: 11px 12px;
    font-size: 14px;
  }

  .card-a {
    left: 18px;
    top: auto;
    bottom: 88px;
  }

  .card-b {
    left: auto;
    right: 18px;
    bottom: 26px;
  }

  .button {
    width: 100%;
  }
}
