:root {
  --brand: #6d4aff;
  --brand-deep: #4d2dd1;
  --brand-glow: #b9a9ff;
  --aqua: #45d7c4;
  --warm: #ffca70;
  --page: #f7f7fc;
  --card: rgba(255, 255, 255, 0.88);
  --display: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
}

body {
  background:
    radial-gradient(circle at 8% 14%, rgba(109, 74, 255, .08), transparent 26rem),
    radial-gradient(circle at 92% 18%, rgba(69, 215, 196, .08), transparent 24rem),
    var(--surface);
}

.site-header {
  height: 72px;
  padding-inline: max(24px, calc((100vw - 1280px) / 2));
  grid-template-columns: 210px 1fr 210px;
  border-bottom-color: rgba(73, 62, 111, .1);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 30px rgba(35, 26, 72, .04);
}

.brand { font-family: var(--display); font-size: 18px; font-weight: 780; letter-spacing: -.02em; }
.brand-logo { filter: drop-shadow(0 7px 12px rgba(109, 74, 255, .2)); }
.main-nav { justify-self: center; gap: 34px; }
.main-nav .nav-menu > button { color: #282235; font-weight: 650; }
.nav-popover { border-radius: 16px; box-shadow: 0 24px 70px rgba(39, 28, 83, .16); }
.local-badge { border-color: rgba(109, 74, 255, .2); color: var(--brand-deep); background: #f1edff; }
.icon-button { border-radius: 12px; }

.hero {
  position: relative;
  min-height: 760px;
  padding: 92px 24px 74px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 246, 255, .88), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 25% 20%, rgba(109, 74, 255, .14), transparent 20rem),
    radial-gradient(circle at 78% 38%, rgba(69, 215, 196, .13), transparent 18rem);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  width: 320px;
  height: 320px;
  border: 1px solid rgba(109, 74, 255, .13);
  border-radius: 46% 54% 63% 37%;
  pointer-events: none;
  transform: rotate(20deg);
}
.hero::before { top: 75px; left: -190px; }
.hero::after { right: -205px; bottom: 80px; border-color: rgba(69, 215, 196, .18); }
.hero-heading { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.hero-heading h1 { margin-top: 12px; font-family: var(--display); font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.hero-heading p { max-width: 720px; margin: 20px auto 0; color: #514b61; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.45; }
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-trust span { padding: 8px 13px; border: 1px solid rgba(85, 72, 128, .12); border-radius: 999px; color: #514963; background: rgba(255,255,255,.72); font-size: 12px; font-weight: 650; box-shadow: 0 8px 30px rgba(53,38,101,.05); }

.dropzone {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100vw - 48px));
  height: 320px;
  margin-top: 54px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 30px;
  outline: 2px dashed rgba(255,255,255,.48);
  outline-offset: -18px;
  background: linear-gradient(135deg, #5a39d6 0%, #7455ee 45%, #4ebfbc 120%);
  box-shadow: 0 30px 90px rgba(81, 54, 186, .28), inset 0 1px 0 rgba(255,255,255,.25);
}
.dropzone::before { position: absolute; content: ""; inset: 0; border-radius: inherit; background: radial-gradient(circle at 70% 12%, rgba(255,255,255,.2), transparent 14rem); pointer-events: none; }
.dropzone:hover, .dropzone.dragging, .dropzone:focus-visible { background: linear-gradient(135deg, #4f2cc9 0%, #6746e2 45%, #3fb4b0 120%); box-shadow: 0 36px 100px rgba(71, 43, 177, .34); }
.select-button { min-width: 250px; height: 64px; border-radius: 16px; box-shadow: 0 13px 36px rgba(25, 18, 57, .18); }
.select-chevron { height: 64px; }

.tool-catalog { width: min(1180px, calc(100vw - 48px)); padding-top: 105px; }
.section-heading h2, .knowledge-intro h2, .faq-section h2 { font-family: var(--display); font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; }
.section-heading p { font-size: 17px; }
.tool-grid { gap: 16px; }
.tool-grid button { min-height: 148px; padding: 24px; border: 1px solid rgba(74, 62, 111, .1); border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 12px 40px rgba(38,29,75,.055); }
.tool-grid button:hover { border-color: rgba(109,74,255,.32); background: white; box-shadow: 0 20px 55px rgba(59,42,125,.12); transform: translateY(-4px); }
.tool-grid button > span { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: var(--brand-deep); background: linear-gradient(135deg, #f0ecff, #e9f9f7); }
.tool-grid strong { margin-top: 17px; font-size: 15px; }
.guide-strip { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.guide-strip a { padding: 20px; display: flex; flex-direction: column; gap: 8px; border: 1px solid rgba(74,62,111,.1); border-radius: 18px; background: linear-gradient(145deg, #fff, #f8f6ff); text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.guide-strip a:hover { border-color: rgba(109,74,255,.35); transform: translateY(-3px); }
.guide-strip span { color: var(--brand-deep); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guide-strip strong { font-size: 14px; line-height: 1.35; }

.how-to { border: 1px solid rgba(74,62,111,.08); border-radius: 28px; background: linear-gradient(135deg, #f2efff, #eefaf8); box-shadow: 0 20px 60px rgba(41,29,83,.07); }
.how-to h2 { font-family: var(--display); font-size: 34px; letter-spacing: -.035em; }
.art-image { border-width: 2px; border-radius: 22px; background: rgba(255,255,255,.7); }

.knowledge-section, .faq-section { width: min(1120px, calc(100vw - 48px)); margin: 105px auto; }
.knowledge-intro { max-width: 780px; }
.knowledge-intro h2, .faq-section h2 { margin: 10px 0 16px; }
.knowledge-intro p, .faq-section > div:first-child p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.knowledge-grid { margin-top: 42px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.knowledge-grid article { padding: 30px; border: 1px solid rgba(74,62,111,.1); border-radius: 22px; background: var(--card); box-shadow: 0 14px 50px rgba(40,29,78,.06); }
.knowledge-grid article > span { color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.knowledge-grid h3 { margin: 22px 0 10px; font-family: var(--display); font-size: 21px; }
.knowledge-grid p { margin: 0; color: var(--muted); line-height: 1.72; }
.faq-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 72px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 20px 22px; border: 1px solid rgba(74,62,111,.1); border-radius: 17px; background: rgba(255,255,255,.82); }
.faq-list summary { cursor: pointer; font-weight: 750; }
.faq-list p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; }
.features article { padding: 16px; }
.features h2 { font-size: 15px; }
.features p { color: var(--muted); font-family: inherit; font-size: 14px; line-height: 1.7; }

footer { border-top: 0; background: #171321; color: #f5f1ff; }
.footer-grid > div > a:not(.brand), .footer-about p, .footer-bottom { color: #aaa2b7; }
.footer-grid > div > a:hover { color: white; }
.footer-brand { color: white; }
.footer-bottom { border-top-color: rgba(255,255,255,.09); }

body[data-theme="dark"] .hero { background: radial-gradient(circle at 25% 20%, rgba(109,74,255,.2), transparent 24rem), radial-gradient(circle at 78% 38%, rgba(69,215,196,.12), transparent 20rem); }
body[data-theme="dark"] .hero-heading p, body[data-theme="dark"] .hero-trust span { color: #c7bfd5; }
body[data-theme="dark"] .hero-trust span, body[data-theme="dark"] .tool-grid button, body[data-theme="dark"] .guide-strip a, body[data-theme="dark"] .knowledge-grid article, body[data-theme="dark"] .faq-list details { border-color: #3a304d; background: #191522; }
body[data-theme="dark"] .knowledge-grid p, body[data-theme="dark"] .knowledge-intro p, body[data-theme="dark"] .faq-list p { color: #aaa1b9; }

@media (max-width: 900px) {
  .site-header { height: 64px; grid-template-columns: 1fr auto; }
  .main-nav.open { top: 64px; border-radius: 18px; }
  .hero { min-height: 700px; padding-top: 72px; }
  .guide-strip, .knowledge-grid { grid-template-columns: 1fr 1fr; }
  .faq-section { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .hero { min-height: 660px; padding: 56px 14px 50px; }
  .hero-heading h1 { font-size: 44px; }
  .hero-heading p { font-size: 18px; }
  .hero-trust { gap: 7px; }
  .dropzone { width: 100%; height: 330px; margin-top: 38px; border-radius: 24px; }
  .tool-catalog, .knowledge-section, .faq-section { width: calc(100vw - 28px); }
  .guide-strip, .knowledge-grid { grid-template-columns: 1fr; }
  .how-to h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
