:root {
  --bg: #fdf8fc;
  --bg-soft: #fff2f8;
  --card: #ffffff;
  --text: #302433;
  --muted: #7f6b79;
  --title: #9f2f72;
  --title-soft: #b05287;
  --line: #f0d9e8;
  --line-strong: #e0c1d5;
  --accent: #cb3f88;
  --accent-strong: #8d245d;
  --logo: #b33076;
  --link: #bb3f80;
  --link-hover: #8e235f;
  --radius: 14px;
  --shadow: 0 18px 38px rgba(143, 53, 106, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(182, 110, 150, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 110, 150, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 82% 0%, rgba(203, 84, 146, 0.16), transparent 34%),
    radial-gradient(circle at 8% 96%, rgba(171, 95, 140, 0.12), transparent 30%),
    var(--bg);
  background-size: 30px 30px, 30px 30px, auto, auto, auto;
  font-family: "Space Grotesk", "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1800px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(253, 248, 252, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 70px;
}

.brand {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--logo);
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
  min-width: 0;
}

.nav-links a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--link-hover);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.lang-switcher select {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: var(--text);
}

.hero {
  padding: 68px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

.hero-main,
.hero-side {
  background: linear-gradient(180deg, #fff 0%, #fff7fc 100%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.hero-main {
  padding: 34px;
  animation: fade-up 0.6s ease both;
}

.hero-main h1 {
  font-size: clamp(1.9rem, 3.1vw, 3rem);
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--title);
}

.hero-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 64ch;
}

.cta-row {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  border-color: transparent;
}

.btn.secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--text);
}

.hero-side {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fade-up 0.75s ease both;
}

.hero-side h2 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--title-soft);
}

.hero-side p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-visual {
  margin: 6px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual figcaption {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fffbfe;
}

.section {
  padding: 10px 0 28px;
  animation: fade-up 0.75s ease both;
}

.section:nth-of-type(2) {
  animation-delay: 0.06s;
}

.section:nth-of-type(3) {
  animation-delay: 0.12s;
}

.section:nth-of-type(4) {
  animation-delay: 0.16s;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 1.16rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--title);
}

.section-intro {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.module-card h3 {
  margin: 0 0 8px;
  color: var(--title-soft);
  font-size: 1.05rem;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.module-points {
  margin: 12px 0;
  padding-left: 18px;
  color: var(--text);
  display: grid;
  gap: 6px;
}

.module-link {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.module-link:hover {
  color: var(--link-hover);
}

.tech-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tech-card,
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.tech-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe6f3;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

.tech-card h3,
.why-card h3 {
  margin: 0 0 8px;
  color: var(--title-soft);
  font-size: 0.98rem;
}

.tech-card p,
.why-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.case-card img {
  width: 100%;
  display: block;
}

.case-body {
  padding: 12px;
}

.case-body h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--title-soft);
}

.case-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.workflow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
}

.step-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
}

.workflow-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.usecases-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 12px 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--title-soft);
}

.faq-list p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.cta-panel {
  margin: 22px 0 42px;
  background: linear-gradient(120deg, #a73174, #7a1f52);
  color: #fff;
  border-radius: 16px;
  border: 1px solid rgba(122, 31, 82, 0.35);
  padding: 28px;
}

.cta-panel h2 {
  margin: 0;
  color: #ffe7f4;
}

.cta-panel p {
  margin: 10px 0 0;
  line-height: 1.7;
  color: rgba(255, 242, 250, 0.92);
}

.contact-form {
  margin: 16px 0 42px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.contact-form h2 {
  margin: 0;
  color: var(--title);
}

.contact-form p {
  margin: 8px 0 20px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.field.full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.field input:focus,
.field textarea:focus,
.lang-switcher select:focus,
.btn:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(203, 63, 136, 0.18);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  margin-top: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.86rem;
}

.friend-links {
  margin-top: 10px;
  line-height: 1.9;
}

.friend-links a {
  margin-right: 10px;
  white-space: nowrap;
}

.section a,
.cta-panel a,
.contact-form a,
.site-footer a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(187, 63, 128, 0.45);
  text-underline-offset: 2px;
}

.section a:hover,
.cta-panel a:hover,
.contact-form a:hover,
.site-footer a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

.hidden {
  display: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .header-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .nav-links a:nth-child(n + 8) {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .module-grid,
  .tech-grid,
  .why-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links a:nth-child(n + 6) {
    display: none;
  }
}

@media (max-width: 560px) {
  .nav-links a:nth-child(n + 4) {
    display: none;
  }
}
