html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.public-home {
  min-height: 100vh;
  padding-top: 78px;
  color: #17191d;
  background: #fff;
}

body.public-home::before,
body.public-home::after { display: none; }
.public-home a { color: inherit; text-decoration: none; }
.public-section,
.footer-main,
.footer-bottom { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }

.public-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  width: 100%;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(36px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #eceef0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.public-brand { display: inline-flex; align-items: center; gap: 11px; color: #124d9d !important; font-size: 19px; font-weight: 900; letter-spacing: -.035em; }
.public-brand svg { width: 38px; height: 38px; }
.public-nav { display: flex; align-items: center; gap: 30px; color: #59616d; font-size: 14px; font-weight: 750; }
.public-nav > a:first-child:hover { color: var(--blue-dark); }
.public-footer a:hover { color: #21a88d; }
.public-login { min-width: 88px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d8dde2; border-radius: 999px; transition: background .18s, transform .18s; }
.public-login:hover { background: #f5f7f8; transform: translateY(-1px); }

.public-hero {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  padding: 76px 36px 25px;
  text-align: center;
  background: #fff;
}
.public-hero::before {
  position: absolute;
  right: 0;
  bottom: -180px;
  left: 0;
  height: 480px;
  background: radial-gradient(ellipse at 50% 72%, rgba(214,234,255,.78), rgba(230,243,255,.5) 43%, transparent 72%);
  content: "";
}
.public-hero h1 { position: relative; z-index: 1; margin: 0; color: #15171a; font-size: clamp(48px, 6.6vw, 82px); font-weight: 900; letter-spacing: -.065em; line-height: 1.15; }
.public-hero h1 > span { display: block; animation: hero-fade-up .52s cubic-bezier(.2,.7,.2,1) both; }
.public-hero h1 > span:nth-child(2) { animation-delay: .13s; }
.public-lead { position: relative; z-index: 1; max-width: 620px; margin: 23px 0 0; color: #646d77; font-size: 17px; line-height: 1.8; }
.public-lead { animation: hero-fade-up .58s cubic-bezier(.2,.7,.2,1) .4s both; }
.public-hero-actions { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 29px; }
.public-hero-actions { animation: hero-fade-up .58s cubic-bezier(.2,.7,.2,1) .64s both; }
.public-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 25px; border-radius: 999px; font-size: 15px; font-weight: 800; transition: transform .18s, background .18s, box-shadow .18s; }
.public-hero-actions .public-button { animation: hero-fade-up .42s ease-out both; }
.public-hero-actions .public-button.primary { animation-delay: .84s; }
.public-hero-actions .public-button.secondary { animation-delay: .98s; }
.public-button:hover { transform: translateY(-2px); }
.public-button.primary { color: #fff !important; background: var(--blue-dark); box-shadow: 0 8px 18px rgba(7,87,213,.2); }
.public-button.primary:hover { background: #0647b5; }
.public-button.secondary { color: var(--blue-dark) !important; }
.public-button.secondary:hover { background: rgba(20,119,255,.08); }

.public-hero-art { position: relative; z-index: 1; width: min(100%, 1050px); min-height: 420px; display: grid; place-items: center; margin-top: 40px; }
.public-hero-art { animation: hero-fade-up .68s cubic-bezier(.2,.7,.2,1) .82s both; }
.art-halo { position: absolute; inset: 4% 0 0; border-radius: 28px; background: linear-gradient(130deg, rgba(222,237,255,.68), rgba(237,247,255,.92) 52%, rgba(228,239,255,.62)); }
.practice-board { position: relative; z-index: 2; width: min(570px, 76%); padding: 27px; border: 1px solid rgba(255,255,255,.96); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 25px 68px rgba(43,93,113,.14); text-align: left; }
.practice-board { animation: hero-fade-up .5s cubic-bezier(.2,.7,.2,1) 1.08s both; }
.board-topline { display: flex; align-items: center; justify-content: space-between; color: #657078; font-size: 13px; font-weight: 800; }
.board-light { width: 9px; height: 9px; border-radius: 50%; background: #19bd95; box-shadow: 0 0 0 4px rgba(25,189,149,.12); }
.board-title { margin: 18px 0 0; color: #20303a; font-size: 19px; font-weight: 850; }
.writing-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 17px 0; border-top: 1px dashed #cbd8dc; border-left: 1px dashed #cbd8dc; }
.writing-grid span { animation: hero-fade-up .38s ease-out both; }
.writing-grid span:nth-child(1) { animation-delay: 1.28s; }
.writing-grid span:nth-child(2) { animation-delay: 1.38s; }
.writing-grid span:nth-child(3) { animation-delay: 1.48s; }
.writing-grid span:nth-child(4) { animation-delay: 1.58s; }
.writing-grid span { aspect-ratio: 1.18; display: grid; place-items: center; border-right: 1px dashed #cbd8dc; border-bottom: 1px dashed #cbd8dc; color: #328f8a; font-family: "KaiTi", "STKaiti", serif; font-size: clamp(36px, 5vw, 57px); font-weight: 700; }
.writing-grid span:nth-child(2) { color: #1975bc; }
.writing-grid span:nth-child(3) { color: #bc8c36; }
.writing-grid span:nth-child(4) { color: #419e83; }
.board-bottom { display: flex; align-items: center; gap: 9px; color: #77838a; font-size: 12px; font-weight: 750; }
.board-pen { color: #16b7af; font-size: 18px; }
.art-tag { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid rgba(225,235,239,.95); border-radius: 14px; color: #385461; background: rgba(255,255,255,.95); box-shadow: 0 12px 30px rgba(40,83,92,.11); font-size: 12px; font-weight: 850; }
.art-tag { animation: hero-fade-up .4s ease-out both; }
.art-tag span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: #21ae92; }
.tag-challenge { top: 13%; left: 8%; transform: rotate(-4deg); animation-delay: 1.55s; }
.tag-study { right: 7%; bottom: 11%; transform: rotate(4deg); animation-delay: 1.7s; }
.tag-study span { background: #e4a83c; }

@keyframes hero-fade-up {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

.public-section { padding-block: 72px 96px; scroll-margin-top: 96px; }
.section-heading { margin-bottom: 34px; text-align: center; }
.section-heading h2 { margin: 0; color: #181a1d; font-size: clamp(30px, 4vw, 43px); font-weight: 900; letter-spacing: -.055em; line-height: 1.25; }
.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.practice-card { position: relative; min-height: 245px; overflow: hidden; padding: 23px 25px 26px; border: 1px solid #e8ecec; border-radius: 18px; background: #fff; transition: transform .2s, box-shadow .2s; }
.practice-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(36,79,72,.08); }
.practice-section.has-scroll-reveal .section-heading,
.practice-section.has-scroll-reveal .practice-card { transition: opacity .58s ease, transform .58s cubic-bezier(.2,.7,.2,1), box-shadow .2s; }
.practice-section.has-scroll-reveal:not(.is-visible) .section-heading,
.practice-section.has-scroll-reveal:not(.is-visible) .practice-card { opacity: 0; transform: translateY(20px); }
.practice-section.is-visible .practice-card:nth-child(1) { transition-delay: .12s; }
.practice-section.is-visible .practice-card:nth-child(2) { transition-delay: .27s; }
.practice-section.is-visible .practice-card:nth-child(3) { transition-delay: .42s; }
.practice-card-top { display: flex; justify-content: flex-end; }
.practice-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: #2476dc; font-size: 20px; font-weight: 900; }
.practice-icon-arrow { display: block; width: 23px; height: 23px; }
.card-individual .practice-icon { background: #13aaa1; }
.card-study .practice-icon { background: #e9a63a; }
.practice-card h3 { position: relative; z-index: 1; margin: 25px 0 0; color: #182226; font-size: 21px; font-weight: 900; letter-spacing: -.035em; }
.practice-description { position: relative; z-index: 1; max-width: 280px; margin: 10px 0 0; color: #6a7479; font-size: 13px; line-height: 1.8; }
.practice-card::after { position: absolute; right: -52px; bottom: -82px; width: 210px; height: 190px; border-radius: 50%; background: var(--card-glow); content: ""; }
.card-challenge { --card-glow: rgba(36,118,220,.08); }
.card-individual { --card-glow: rgba(19,170,161,.09); }
.card-study { --card-glow: rgba(233,166,58,.11); }
.card-decoration { position: absolute; right: 18px; bottom: 13px; z-index: 1; color: rgba(33,96,126,.12); }
.challenge-decoration { display: flex; align-items: center; gap: 9px; transform: rotate(-8deg); }
.challenge-decoration span { font-family: "KaiTi", "STKaiti", serif; font-size: 62px; font-weight: 900; }
.challenge-decoration i { width: 7px; height: 7px; border-radius: 50%; background: #e7aa3e; }
.challenge-decoration i:nth-of-type(2) { opacity: .58; }
.challenge-decoration i:nth-of-type(3) { opacity: .28; }
.individual-decoration { display: flex; gap: 2px; font-family: "KaiTi", "STKaiti", serif; font-size: 43px; font-weight: 900; transform: rotate(-7deg); }
.study-decoration { display: flex; gap: 6px; }
.study-decoration span { padding: 7px 9px; border: 1px solid rgba(19,170,161,.19); border-radius: 9px; color: rgba(19,124,119,.5); background: rgba(255,255,255,.55); font-size: 11px; font-weight: 900; transform: rotate(-5deg); }
.study-decoration span:nth-child(2) { transform: translateY(-9px) rotate(3deg); }
.study-decoration span:nth-child(3) { transform: rotate(8deg); }

.public-footer { color: #f5f6f7; background: #111314; }
.footer-main { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 58px; padding-block: 50px 42px; }
.footer-brand { color: #fff !important; font-size: 19px; }
.footer-brand svg { width: 35px; height: 35px; }
.footer-info h2 { margin: 0 0 13px; color: #fff; font-size: 15px; font-weight: 800; }
.footer-info p { max-width: 350px; margin: 0; color: #a4aaab; font-size: 12px; line-height: 1.85; }
.footer-guest-link { display: inline-flex; gap: 8px; margin-top: 12px; color: #fff !important; font-size: 12px; font-weight: 750; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 17px 23px; border-top: 1px solid #292c2d; }
.footer-legal { flex: 1; color: #9ca2a3; font-size: 11px; line-height: 1.8; text-align: left; }
.footer-legal p { margin: 0; }
.footer-icp { display: flex; align-items: flex-end; flex: 1; flex-direction: column; gap: 5px; color: #aeb4b5; text-align: right; }
.footer-icp-links { display: flex; align-items: center; justify-content: flex-end; gap: 9px; white-space: nowrap; }
.footer-icp a { text-decoration: underline; text-underline-offset: 3px; }
.footer-icp-number,
.footer-icp-system { color: #fff !important; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.5; }
.footer-icp-separator { color: #697071; font-size: 11px; }
.footer-address { margin: 2px 0 0; color: #9ca2a3; font-size: 11px; line-height: 1.8; }
.footer-icp a:focus-visible { outline: 2px solid #a6d9ca; outline-offset: 3px; }

@media (max-width: 900px) {
  .public-hero { padding-top: 78px; }
  .footer-main { gap: 30px; }
}

@media (max-width: 700px) {
  body.public-home { padding-top: 68px; }
  .public-section,
  .footer-main,
  .footer-bottom { width: min(calc(100% - 36px), 560px); }
  .public-header { height: 68px; padding-inline: 18px; }
  .public-brand { gap: 8px; font-size: 16px; }
  .public-brand svg { width: 32px; height: 32px; }
  .public-nav { gap: 12px; font-size: 12px; }
  .public-login { min-width: 70px; min-height: 36px; }
  .public-hero { padding: 60px 20px 18px; }
  .public-hero h1 { font-size: clamp(42px, 11vw, 58px); }
  .public-lead { max-width: 430px; margin-top: 17px; font-size: 14px; line-height: 1.8; }
  .public-hero-actions { gap: 8px; margin-top: 20px; }
  .public-button { min-height: 46px; padding-inline: 19px; font-size: 13px; }
  .public-hero-art { min-height: 300px; width: 100%; margin-top: 30px; }
  .art-halo { inset: 2% -20px 0; border-radius: 20px; }
  .practice-board { width: min(370px, 82%); padding: 18px; border-radius: 18px; }
  .board-title { margin-top: 13px; font-size: 16px; }
  .writing-grid { grid-template-columns: repeat(2, 1fr); margin: 12px 0; }
  .writing-grid span { font-size: 43px; }
  .tag-challenge { top: 3%; left: -1%; }
  .tag-study { right: -1%; bottom: 1%; }
  .art-tag { padding: 8px 10px; font-size: 10px; }
  .art-tag span { width: 21px; height: 21px; }
  .public-section { padding-block: 55px 65px; }
  .section-heading { margin-bottom: 23px; }
  .section-heading h2 { font-size: 30px; }
  .practice-grid { grid-template-columns: 1fr; gap: 11px; }
  .practice-card { min-height: 205px; padding: 20px; }
  .practice-card h3 { margin-top: 16px; font-size: 20px; }
  .practice-description { max-width: 245px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 34px 30px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-info h2 { font-size: 14px; }
  .footer-bottom { align-items: stretch; flex-direction: column; gap: 10px; padding-block: 14px 20px; }
  .footer-legal { font-size: 10px; }
  .footer-icp { align-items: flex-start; flex: 0 1 auto; text-align: left; }
  .footer-address { max-width: 34em; font-size: 10px; }
}

@media (max-width: 380px) {
  .public-header { padding-inline: 13px; }
  .public-brand { font-size: 14px; }
  .public-brand svg { width: 29px; height: 29px; }
  .public-nav { gap: 7px; }
  .public-login { min-width: 62px; }
  .public-hero { padding-inline: 15px; }
  .public-hero h1 { font-size: 40px; }
  .public-hero-art { min-height: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .public-home *, .public-home *::before, .public-home *::after { transition-duration: .01ms !important; }
  .practice-section.has-scroll-reveal:not(.is-visible) .section-heading,
  .practice-section.has-scroll-reveal:not(.is-visible) .practice-card { opacity: 1; transform: none; }
  .public-hero h1,
  .public-hero h1 > span,
  .public-hero .public-lead,
  .public-hero .public-hero-actions,
  .public-hero .public-hero-actions .public-button,
  .public-hero .public-hero-art,
  .public-hero .practice-board,
  .public-hero .writing-grid span { animation: none !important; clip-path: none; opacity: 1; transform: none; translate: none; }
  .public-hero .art-tag { animation: none !important; opacity: 1; translate: none; }
}
