:root {
  --text: #14213d;
  --muted: #66758c;
  --line: rgba(209, 224, 242, 0.9);
  --blue: #4f8fe8;
  --blue-strong: #2c6fe2;
  --yellow: #ffd51c;
  --glass: rgba(255, 255, 255, 0.42);
  --glass-strong: rgba(255, 255, 255, 0.64);
  --shadow-soft: 0 14px 40px rgba(57, 85, 166, 0.10);
  --shadow-deep: 0 22px 55px rgba(48, 76, 158, 0.18);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(92,168,255,0.2), transparent 28%),
    linear-gradient(180deg, #d7efff 0%, #edf5ff 22%, #f5f8fc 52%, #f8fafc 100%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-header {
  position: relative;
  overflow: visible;
  padding: 28px 0 18px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.85), transparent 18%),
    radial-gradient(circle at 90% 15%, rgba(255,255,255,0.58), transparent 15%),
    linear-gradient(180deg, rgba(88,164,243,0.92), rgba(166,219,255,0.35) 72%, transparent 100%);
  pointer-events: none;
}

.header-topbar {
  position: relative;
  z-index: 1;
  margin: 4px 0 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #14213d;
  background: linear-gradient(145deg, #fff9bf, #ffd51c 62%, #f0c200 100%);
  box-shadow: 0 12px 28px rgba(255, 210, 28, 0.35);
}

.brand-logo-core { font-size: 1.28rem; font-weight: 800; }
.brand-lockup h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.header-bell {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #163f89;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: var(--shadow-soft);
}

.header-bell i {
  font-size: 1.05rem;
  animation: bellBlink 1.2s infinite ease-in-out;
}

.bell-ping {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff4d6d;
  box-shadow: 0 0 0 0 rgba(255,77,109,0.55);
  animation: bellPulse 1.2s infinite;
}

@keyframes bellBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes bellPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255,77,109,0.48); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(255,77,109,0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255,77,109,0); }
}

.switcher {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(520px, 100%);
  margin: 0 auto 18px;
}

.switch-pill {
  border: 1px solid rgba(20, 33, 61, 0.08);
  min-height: 56px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  color: #29334f;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.switch-pill:hover { transform: translateY(-1px); }
.switch-pill.is-active {
  background: linear-gradient(180deg, #ffe764 0%, var(--yellow) 62%, #f5ca12 100%);
  color: #1f2937;
  box-shadow: 0 12px 25px rgba(255, 213, 28, 0.28);
}

.search-bar {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.92);
  border: 2px solid #93c4f7;
  border-radius: 18px;
  padding: 0 16px;
  min-height: 62px;
  box-shadow: var(--shadow-soft);
}
.search-bar svg {
  width: 24px;
  height: 24px;
  color: #4b84d8;
  flex: 0 0 auto;
}
.search-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}
.search-bar input::placeholder { color: #7b8797; }

.main-layout { padding-bottom: 48px; }

.menu-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 18px 2px 8px;
  scrollbar-width: none;
}
.menu-strip::-webkit-scrollbar { display: none; }

.menu-chip {
  border: 0;
  background: transparent;
  color: #2a3347;
  padding: 8px 0 12px;
  white-space: nowrap;
  font-weight: 600;
  position: relative;
}
.menu-chip::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  background: linear-gradient(90deg, #5d91f5, #2f74ef);
}
.menu-chip.is-selected { color: #0f172a; }
.menu-chip.is-selected::after { transform: scaleX(1); }

.banner-section {
  margin-top: 14px;
  background: rgba(255,255,255,0.28);
  border-radius: var(--radius-xl);
}

.banner-track { position: relative; min-height: 234px; }
.banner-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(14px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  border-radius: var(--radius-xl);
  padding: 26px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.banner-card::before,
.banner-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.74;
}
.banner-card::before { width: 180px; height: 180px; right: -26px; top: -46px; }
.banner-card::after { width: 130px; height: 130px; right: 26px; bottom: -36px; }
.banner-card.is-current {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.banner-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.banner-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.84;
}
.banner-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.4vw, 2.18rem);
  line-height: 1.12;
  max-width: 560px;
}
.banner-card p {
  margin: 0;
  max-width: 540px;
  line-height: 1.55;
}
.banner-theme-blue { color: #fffef8; background: linear-gradient(135deg, #1f66d7 0%, #4d97f7 50%, #7fc3ff 100%); }
.banner-theme-blue::before { background: rgba(255, 215, 84, 0.45); }
.banner-theme-blue::after { background: rgba(255,255,255,0.22); }
.banner-theme-violet { color: #fffdf8; background: linear-gradient(135deg, #7554ff 0%, #9b72ff 44%, #f5a7d9 100%); }
.banner-theme-violet::before { background: rgba(255,255,255,0.2); }
.banner-theme-violet::after { background: rgba(255,215,114,0.2); }
.banner-theme-light { color: #0f172a; background: linear-gradient(135deg, #fde68a 0%, #fff7c2 50%, #d8fff2 100%); }
.banner-theme-light .banner-badge { color: #1f2937; background: rgba(255,255,255,0.72); border-color: rgba(255,255,255,0.8); }
.banner-theme-light::before { background: rgba(255, 181, 71, 0.3); }
.banner-theme-light::after { background: rgba(105, 204, 169, 0.24); }
.banner-theme-navy { color: #eef7ff; background: linear-gradient(135deg, #102a43 0%, #1d4f91 52%, #3282d9 100%); }
.banner-theme-navy::before { background: rgba(122, 233, 255, 0.18); }
.banner-theme-navy::after { background: rgba(255,255,255,0.14); }
.banner-theme-silver { color: #0f172a; background: linear-gradient(135deg, #e8efff 0%, #ffffff 42%, #fff2b8 100%); }
.banner-theme-silver .banner-badge { color: #1f2937; background: rgba(255,255,255,0.82); border-color: rgba(193, 209, 232, 0.9); }
.banner-theme-silver::before { background: rgba(92, 143, 255, 0.18); }
.banner-theme-silver::after { background: rgba(255, 214, 63, 0.22); }

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(65, 87, 122, 0.22);
  transition: width 0.2s ease, background 0.2s ease;
}
.dot.is-active { width: 24px; background: var(--blue-strong); }

.cards-section { margin-top: 26px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,0.54), rgba(255,255,255,0.30));
  border: 1px solid rgba(255,255,255,0.46);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 25px;
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.08));
  pointer-events: none;
}
.card-item::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -34px;
  top: -34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.34);
  filter: blur(10px);
  pointer-events: none;
}
.card-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-deep);
  border-color: rgba(255,255,255,0.72);
}
.card-item.is-hidden { display: none; }
.card-top,
.card-bottom,
.prompt-card-copy,
.prompt-card-label,
.card-item h3,
.card-item p { position: relative; z-index: 1; }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 12px 24px rgba(50, 81, 160, 0.16);
}
.card-icon i { font-size: 1.55rem; }
.card-item h3 {
  margin: 2px 0 0;
  font-size: 1.04rem;
  line-height: 1.28;
}
.card-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-link-text,
.prompt-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #36508a;
}
.prompt-card-copy {
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.74);
  color: #1f2f52;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(42, 67, 135, 0.1);
}
.prompt-card-copy:hover { background: rgba(255,255,255,0.92); }

.theme-text { background: linear-gradient(135deg, #edf2ff, #dbe6ff); color: #3459d1; }
.theme-math { background: linear-gradient(135deg, #fff2df, #ffe0b3); color: #c26a00; }
.theme-color { background: linear-gradient(135deg, #f6ebff, #ebdcff); color: #8a3ffc; }
.theme-converter { background: linear-gradient(135deg, #e7fbf6, #d2f5ea); color: #0f8b6d; }
.theme-security { background: linear-gradient(135deg, #e9f3ff, #d4e7ff); color: #1665d8; }
.theme-web { background: linear-gradient(135deg, #eef1f7, #dfe6f2); color: #42516d; }
.theme-time { background: linear-gradient(135deg, #fff0ef, #ffe0db); color: #d05a42; }
.theme-misc { background: linear-gradient(135deg, #f3f4f8, #e5e8f0); color: #5a6275; }
.theme-prompt { background: linear-gradient(135deg, #f6ecff, #ead9ff); color: #6f36d9; }
.theme-ai { background: linear-gradient(135deg, #e6f6ff, #d5efff); color: #1472b9; }
.theme-growth { background: linear-gradient(135deg, #fff2e9, #ffe4ce); color: #c66a1a; }
.theme-study { background: linear-gradient(135deg, #edf8e8, #ddf1d1); color: #357a38; }

.empty-state {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px dashed #bfd3ee;
  color: #5b6677;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: rgba(20, 33, 61, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mp-global-footer {
  margin-top: 34px;
  padding: 0 0 34px;
}

.mp-footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 20px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.46));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
}

.mp-footer-brand {
  display: inline-block;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.mp-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 14px;
}

.mp-footer-links a {
  color: #4e5f79;
  font-weight: 600;
}

.mp-footer-copy {
  margin: 0;
  color: #6c7b91;
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .page-shell { width: min(100% - 20px, 1120px); }
  .hero-header { padding-top: 20px; }
  .switcher { gap: 10px; }
  .search-bar { min-height: 58px; }
  .banner-card { min-height: 220px; padding: 22px; }
  .mp-footer-inner { width: min(100% - 20px, 1120px); }
}

@media (max-width: 560px) {
  .brand-logo { width: 46px; height: 46px; border-radius: 15px; }
  .brand-lockup h1 { font-size: 1.6rem; }
  .header-bell {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .switch-pill { min-height: 50px; border-radius: 16px; }
  .search-bar { min-height: 56px; border-radius: 16px; padding: 0 14px; }
  .menu-strip { gap: 16px; }
  .banner-track { min-height: 208px; }
  .banner-card { padding: 20px; border-radius: 24px; }
  .banner-card h2 { font-size: 1.35rem; }
  .cards-grid { gap: 12px; }
  .card-item { min-height: 206px; border-radius: 22px; padding: 16px; }
  .card-item::before { border-radius: 21px; }
  .card-icon { width: 58px; height: 58px; border-radius: 18px; }
  .card-icon i { font-size: 1.38rem; }
  .card-item h3 { font-size: 0.97rem; }
  .card-item p { font-size: 0.86rem; }
  .prompt-card-copy { padding: 9px 12px; border-radius: 12px; font-size: 0.83rem; }
  .mp-global-footer { padding-bottom: 22px; }
  .mp-footer-inner { border-radius: 22px; }
  .mp-footer-links { gap: 10px 16px; }
  .mp-footer-copy { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .banner-card,
  .card-item,
  .dot,
  .menu-chip::after,
  .switch-pill,
  .copy-toast {
    transition: none;
  }
}

/* === MagicPicker lightweight scroll + fixed footer nav === */
html { scroll-behavior: auto; }
body { padding-bottom: 112px; }
.header-bell { display: none !important; }
.hero-header { overflow: visible; }
.switch-pill,
.menu-chip::after,
.banner-card,
.dot,
.card-item,
.prompt-card-copy,
.copy-toast {
  transition: none !important;
  animation: none !important;
}
.banner-section,
.card-item,
.mp-footer-inner {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.banner-section {
  background: #ffffff;
  border: 1px solid #e7eef7;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}
.banner-card {
  transform: none !important;
  box-shadow: none !important;
}
.banner-card::before,
.banner-card::after,
.card-item::before,
.card-item::after {
  display: none !important;
}
.card-item {
  background: #ffffff !important;
  border: 1px solid #e6edf5 !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
}
.card-item:hover {
  transform: none !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
  border-color: #e6edf5 !important;
}
.mp-global-footer { padding-bottom: 120px; }
.mp-fixed-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 18px));
  background: rgba(255,255,255,0.98);
  border: 1px solid #e6edf5;
  border-radius: 28px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  z-index: 60;
}
.mp-fixed-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
  border-radius: 20px;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
}
.mp-fixed-nav-item i { font-size: 1.08rem; }
.mp-fixed-nav-item.is-active {
  background: #f4f8fd;
  color: #0f172a;
}
.mp-fixed-nav-item--center { gap: 5px; }
.mp-fixed-nav-wa {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #3bd26f, #19b955);
  color: #fff;
  box-shadow: 0 10px 22px rgba(25, 185, 85, 0.28);
}
.mp-fixed-nav-item--center .mp-fixed-nav-wa i { font-size: 1.32rem; }
@media (max-width: 560px) {
  body { padding-bottom: 104px; }
  .mp-global-footer { padding-bottom: 112px; }
  .mp-fixed-nav {
    width: calc(100% - 14px);
    border-radius: 24px;
    bottom: 8px;
    padding: 7px 6px;
  }
  .mp-fixed-nav-item {
    min-height: 54px;
    font-size: 0.69rem;
  }
  .mp-fixed-nav-wa {
    width: 44px;
    height: 44px;
  }
}


.search-wrap {
  width: min(640px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 40;
}
.search-wrap .search-bar {
  width: 100%;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
  z-index: 140;
}
.search-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.search-suggestion-item:last-child {
  border-bottom: 0;
}
.search-suggestion-item:hover {
  background: rgba(255,255,255,0.06);
}
