:root {
  --home-bg: #090e14;
  --home-panel: #111a24;
  --home-panel-strong: #151f2b;
  --home-line: #243342;
  --home-muted: #91a6bd;
  --home-accent: #00d8ee;
  --home-gold: #f7c84b;
}

.home-page,
.home-page *,
.home-page *::before,
.home-page *::after { box-sizing: border-box; }

.home-page {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 50% -18%, #173044 0, var(--home-bg) 48%);
  color: #f2f7ff;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

.home-page a { color: inherit; }

.home-hero { min-height: 600px; display: flex; align-items: center; justify-content: center; padding: 156px 24px 54px; text-align: center; }
.home-hero-inner { width: min(760px, 100%); }
.home-eyebrow { display: none; }
.home-hero h1 { margin: 0 0 14px; color: #f2f7ff; font-size: clamp(38px, 5vw, 68px); font-weight: 800; letter-spacing: -.045em; line-height: 1.18; }
.home-hero h1 span { color: var(--home-accent); }
.home-hero-lead { margin: 0 auto 32px; color: #9cb1c6; font-size: 16px; }
.home-hero-lead i { padding: 0 7px; color: #58768c; font-style: normal; }
.home-composer { position: relative; text-align: left; }
.home-composer textarea { display: block; width: 100%; max-width: 100%; height: 155px; resize: none; padding: 19px 20px; border: 1px solid #2b3b4c; border-radius: 16px; outline: none; background: #0e1721; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); color: #f2f7ff; font: inherit; font-size: 16px; }
.home-composer textarea:focus { border-color: #1bd6e8; box-shadow: 0 0 0 3px rgba(16, 216, 233, .13), 0 16px 40px rgba(0, 0, 0, .2); }
.home-composer textarea::placeholder { color: #657991; }
.home-suggestion-list { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; right: 0; max-height: 320px; overflow-x: hidden; overflow-y: auto; padding: 0; border: 1px solid #2b3748; border-radius: 8px; background: #111925; box-shadow: 0 18px 38px rgba(0, 0, 0, .42); text-align: left; }
.home-suggestion-list[hidden] { display: none; }
.home-suggestion-option { border-bottom: 1px solid rgba(152, 162, 179, .14); }
.home-suggestion-option:last-child { border-bottom: 0; }
.home-suggestion-option.active { background: rgba(32, 199, 167, .09); }
.home-suggestion-option.negative { background: rgba(227, 91, 79, .08); }
.home-suggestion-option.negative.active { background: rgba(227, 91, 79, .19); }
.home-suggestion-main { display: grid; gap: 5px; width: 100%; padding: 10px 12px; border: 0; border-radius: 0; background: transparent; color: #f3f7fb; cursor: pointer; font: inherit; text-align: left; }
.home-suggestion-main:hover, .home-suggestion-main:focus-visible { background: rgba(32, 199, 167, .08); outline: none; }
.home-suggestion-head { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-suggestion-head strong { min-width: 0; overflow: hidden; color: #f3f7fb; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.home-suggestion-head > span, .home-suggestion-length { flex: 0 0 auto; color: #8390a2; font-size: 11px; }
.home-suggestion-snippet { overflow: hidden; color: #aeb8c7; font-size: 12px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.home-suggestion-preview { padding: 0 12px 12px; }
.home-suggestion-preview p { max-height: 96px; margin: 0 0 9px; overflow: auto; padding: 9px 10px; border-left: 2px solid rgba(32, 199, 167, .48); background: #0d131d; color: #bbc5d2; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.home-suggestion-insert { width: 100%; min-height: 34px; border: 1px solid rgba(32, 199, 167, .48); border-radius: 6px; background: rgba(32, 199, 167, .12); color: #aef4e6; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.home-suggestion-insert:hover, .home-suggestion-insert:focus-visible { border-color: var(--home-accent); background: rgba(32, 199, 167, .2); outline: none; }
.home-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.home-primary-button, .home-secondary-button { min-height: 46px; border: 1px solid #264252; border-radius: 999px; padding: 0 26px; font: inherit; cursor: pointer; text-decoration: none; }
.home-primary-button { min-width: 170px; border-color: #11c7d7; background: linear-gradient(135deg, #0daab8, #096274); color: #031217; font-weight: 700; }
.home-secondary-button { display: inline-flex; align-items: center; justify-content: center; background: #101a25; color: #c9d9e8; }
.home-primary-button:hover, .home-secondary-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.home-composer-hint { min-height: 20px; margin: 14px 0 0; color: #6d839a; font-size: 12px; }
.home-composer-hint.is-success { color: #8fe9cf; }
.home-composer-hint.is-error { color: #ff9a91; }

.home-reveal {
  opacity: 1;
  transform: none;
}

.home-page.motion-ready .home-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease var(--home-reveal-delay, 0ms), transform .65s cubic-bezier(.2, .7, .2, 1) var(--home-reveal-delay, 0ms);
}

.home-page.motion-ready .home-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.home-page.motion-ready .home-hero-inner > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}

.home-page.motion-ready .home-hero-inner.is-visible > * {
  opacity: 1;
  transform: none;
}

.home-page.motion-ready .home-hero-inner.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.home-page.motion-ready .home-hero-inner.is-visible > *:nth-child(3) { transition-delay: 150ms; }
.home-page.motion-ready .home-hero-inner.is-visible > *:nth-child(4) { transition-delay: 220ms; }
.home-page.motion-ready .home-hero-inner.is-visible > *:nth-child(5) { transition-delay: 290ms; }

.home-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0 70px; }
.home-section + .home-section { border-top: 1px solid #21303e; }
.home-section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; font-size: 25px; line-height: 1.25; }
.home-section-title::before { width: 4px; height: 29px; border-radius: 2px; background: var(--home-accent); content: ""; }
.home-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.home-info-card, .home-pack-card { border: 1px solid #263747; border-radius: 15px; background: linear-gradient(145deg, #151f2b, #101923); }
.home-info-card { min-height: 184px; padding: 22px; }
.home-card-icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 16px; border: 1px solid #146376; border-radius: 10px; background: #0d3440; color: var(--home-accent); font-size: 18px; }
.home-info-card h3, .home-pack-card h3 { margin: 0 0 7px; font-size: 17px; }
.home-info-card p, .home-pack-card > p:not(.home-pack-category) { margin: 0; color: var(--home-muted); font-size: 14px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; }
.home-section-link { margin-bottom: 26px; color: var(--home-accent) !important; font-size: 13px; }
.home-featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.home-pack-card { padding: 22px; }
.home-pack-category { margin: 0 0 9px; color: var(--home-accent); font-size: 12px; }
.home-pack-card h3 { font-size: 18px; }
.home-pack-card small { display: block; margin-top: 14px; color: #71869d; font-size: 12px; }
.home-pack-card small b { margin-right: 6px; color: var(--home-gold); }
.home-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.home-faq-grid details { border: 1px solid #263747; border-radius: 12px; padding: 15px 18px; background: #111a24; }
.home-faq-grid summary { cursor: pointer; font-weight: 700; }
.home-faq-grid p { margin: 11px 0 0; color: var(--home-muted); font-size: 14px; }
.home-footer { padding: 27px 24px; border-top: 1px solid #1e2b38; color: #6c8197; font-size: 12px; text-align: center; }

@media (max-width: 800px) {
  .home-hero { min-height: 560px; padding-top: 50px; }
  .home-hero h1 { font-size: 40px; }
  .home-hero-lead { font-size: 14px; }
  .home-composer textarea { height: 170px; }
  .home-feature-grid, .home-featured-grid, .home-faq-grid { grid-template-columns: 1fr; }
  .home-section { width: min(100% - 36px, 680px); padding-top: 38px; padding-bottom: 52px; }
}

@media (max-width: 480px) {
  .home-hero h1 { font-size: 34px; }
  .home-hero-lead i { display: none; }
  .home-actions { flex-direction: column; }
  .home-primary-button, .home-secondary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; transition: none !important; }
  .home-page.motion-ready .home-reveal,
  .home-page.motion-ready .home-hero-inner > * { opacity: 1; transform: none; }
}
