:root {
  --bg: #f3f8fd;
  --bg-soft: #fbfdff;
  --panel: rgba(251, 253, 255, 0.86);
  --panel-strong: #ffffff;
  --text: #20364c;
  --muted: #6b7d90;
  --line: rgba(92, 122, 151, 0.12);
  --accent: #a8c6e6;
  --accent-deep: #6f96bf;
  --accent-soft: #e7f1fb;
  --shadow: 0 14px 36px rgba(93, 119, 146, 0.1);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 88px;
}

body {
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(168, 198, 230, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(214, 231, 248, 0.22), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f3f8fd 56%, #edf4fb 100%);
}

a,
button {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.site-shell {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(251, 253, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9dbfe1, var(--accent-deep));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.brand-text,
.nav a,
.button,
.project-name,
.play-value,
.hero-metrics strong,
.timeline-content h3,
.contact-chip strong,
.skill-console h3,
.principle-value {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  position: relative;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a.is-current {
  color: var(--text);
  background: rgba(231, 241, 251, 0.82);
}

.nav a.is-current::after,
.nav a:hover::after {
  display: none;
}

main {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.section {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: auto -100px -100px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 175, 230, 0.1), transparent 65%);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(210px, 0.58fr);
  gap: 16px;
  align-items: stretch;
}

.eyebrow {
  color: var(--accent-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.hero h1,
.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}

.section-heading h2 {
  font-size: clamp(20px, 2.6vw, 30px);
}

.section-heading p:last-child,
.hero-intro,
.timeline-content p,
.project-body p,
.story-card p,
.play-tip,
.skill-console p,
.hero-card-panel span,
.status-list,
.hero-note p,
.workflow-copy,
.method-panel,
.contact-chip span {
  color: var(--muted);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.contact-chip strong {
  font-size: 12px;
  font-weight: 500;
}

.hero-intro {
  margin-top: 14px;
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.7;
}

.hero-note {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  max-width: 58ch;
  padding: 12px 14px;
  border: 1px solid rgba(168, 198, 230, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-note-label,
.hero-card-title,
.console-label,
.play-title {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.section-heading .small-link {
  font-size: 12px;
  margin-left: auto;
  text-decoration: underline;
  color: var(--muted);
}

.hero-actions,
.hero-metrics,
.about-grid,
.project-grid,
.playground,
.contact-grid,
.skills-wall,
.chip-row,
.workflow-tags,
.method-board {
  display: flex;
  gap: 10px;
}

.hero-actions {
  margin-top: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.is-spinning {
  transform: scale(0.97);
}

.button-primary {
  background: linear-gradient(135deg, #9dbfe1, var(--accent-deep));
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.hero-metrics {
  margin-top: 16px;
  flex-wrap: wrap;
}

.hero-metrics article,
.play-card,
.story-card,
.project-card,
.skill-console,
.hero-card,
.chip-groups {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.hero-metrics article {
  min-width: 118px;
  padding: 11px 13px;
  border-radius: 14px;
}

.hero-metrics strong {
  display: block;
  font-size: 22px;
}

.hero-metrics span {
  font-size: 12px;
}

.hero-card {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-glow {
  position: absolute;
  top: -34px;
  right: -20px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 198, 230, 0.22), transparent 66%);
}

.status-list {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
}

.status-list li::before {
  content: "•";
  color: var(--accent-deep);
  margin-right: 8px;
}

.hero-card-panel {
  margin-top: 12px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(88, 118, 148, 0.92);
  color: #fff;
}

.hero-card-panel span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-card-panel strong {
  font-size: 15px;
  line-height: 1.25;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 500;
}

.focus-subtext {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.focus-badge {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  top: 14px;
  right: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.focus-panel-agent .focus-badge {
  background: rgba(168, 198, 230, 1);
}

.focus-panel-context .focus-badge {
  background: rgba(129, 201, 166, 1);
}

.focus-panel-delivery .focus-badge {
  background: rgba(255, 204, 102, 1);
}

.workflow-toggle {
  align-self: flex-start;
  padding: 2px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.workflow-toggle:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.52);
}

.section-heading p:last-child {
  margin-top: 8px;
  font-size: 13px;
}

.about-grid,
.playground,
.contact-grid,
.workflow-tags,
.chip-row,
.skills-wall,
.method-board {
  flex-wrap: wrap;
}

.about-grid {
  margin-top: 16px;
}

.story-card {
  flex: 1 1 220px;
  padding: 16px;
  border-radius: 16px;
}

.story-card h3,
.project-name,
.timeline-content h3,
.play-value {
  font-size: 17px;
  line-height: 1.2;
}

.story-card p {
  margin-top: 8px;
  line-height: 1.7;
  font-size: 13px;
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.focus-tags-compact {
  margin-top: 12px;
}

.focus-chip,
.workflow-tag {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 500;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.focus-chip {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.focus-chip.is-active,
.focus-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 198, 230, 0.34);
  background: rgba(231, 241, 251, 0.76);
}

.focus-chip-dark {
  background: rgba(35, 58, 80, 0.22);
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.focus-chip-dark.is-active,
.focus-chip-dark:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.9);
  color: #27435e;
  box-shadow: 0 8px 18px rgba(16, 33, 51, 0.16);
}

.work-chip {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.work-chip.is-active,
.work-chip:hover {
  background: rgba(231, 241, 251, 0.92);
}

.story-card-highlight {
  background: linear-gradient(135deg, rgba(168, 198, 230, 0.18), rgba(255, 255, 255, 0.8));
}

.workflow-card {
  flex: 1 1 100%;
  background: linear-gradient(135deg, rgba(101, 130, 160, 0.94), rgba(143, 173, 204, 0.9));
  color: #fff;
}

.workflow-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.workflow-card .console-label,
.workflow-card h3,
.workflow-card p,
.workflow-tag {
  color: inherit;
}

.workflow-copy {
  max-width: 72ch;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.workflow-tags {
  margin-top: 12px;
}

.chip,
.skill-pill,
.method-chip {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.workflow-tag {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.workflow-tag.is-active,
.workflow-tag:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.92);
  color: #27435e;
  box-shadow: 0 8px 20px rgba(20, 38, 58, 0.18);
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  border: 5px solid rgba(118, 175, 230, 0.18);
  background: var(--accent-deep);
}

.timeline-content {
  padding: 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
}

.timeline-content p {
  margin-top: 7px;
  line-height: 1.7;
  font-size: 13px;
}

.project-grid {
  margin-top: 16px;
  flex-direction: column;
}

.project-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
}

.project-card.is-active {
  border-color: rgba(168, 198, 230, 0.34);
  background: rgba(255, 255, 255, 0.82);
}

.project-trigger {
  width: 100%;
  padding: 16px;
  display: grid;
  gap: 6px;
  text-align: left;
}

.project-period,
.project-tag {
  font-size: 12px;
  color: var(--accent-deep);
  font-weight: 600;
}

.project-body {
  display: grid;
  gap: 8px;
  max-height: 0;
  padding: 0 16px;
  overflow: hidden;
  transition: max-height 0.28s ease, padding-bottom 0.28s ease;
}

.project-body p {
  font-size: 13px;
  line-height: 1.7;
}

.project-card.is-active .project-body {
  max-height: 240px;
  padding-bottom: 16px;
}

.method-board {
  margin-top: 12px;
}

.story-card-methods .method-board-inline {
  justify-content: flex-start;
  gap: 8px;
}

.story-card-methods .method-panel {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.75);
}

.method-chip:hover,
.method-chip.is-active,
.chip:hover,
.chip.is-selected,
.skill-pill:hover,
.skill-pill.is-active {
  transform: translateY(-1px);
  border-color: rgba(168, 198, 230, 0.34);
  background: rgba(231, 241, 251, 0.76);
}

.method-panel {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 13px;
}

.craft-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.78fr);
  gap: 12px;
  margin-top: 16px;
}

.chip-groups,
.skill-console,
.play-card {
  padding: 16px;
  border-radius: 18px;
}

.skills-wall {
  margin-top: 10px;
}

.skill-pill.is-hidden {
  opacity: 0.28;
}

.skill-console {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  background: linear-gradient(180deg, rgba(95, 124, 154, 0.95), rgba(124, 154, 186, 0.94));
  color: #fff;
}

.skill-console h3 {
  margin: 10px 0 12px;
  font-size: 22px;
  line-height: 1.08;
}

.skill-console p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
  font-size: 13px;
}

.playground {
  margin-top: 16px;
}

.play-card {
  flex: 1 1 240px;
}

.play-value {
  margin: 12px 0;
  font-size: clamp(20px, 4vw, 30px);
}

.play-tip {
  font-size: 13px;
}

.principle-value {
  margin: 12px 0;
  font-size: clamp(17px, 3vw, 24px);
  line-height: 1.24;
}

.footer {
  padding: 14px 0 2px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.download-section .button {
  min-width: 150px;
}

.footer-download {
  margin-bottom: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 120px);
  min-width: 180px;
  max-width: min(calc(100% - 24px), 360px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(95, 124, 154, 0.94);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
  font-size: 12px;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 30;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 900px) {
  .hero,
  .craft-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  section[id] {
    scroll-margin-top: 112px;
  }

  .site-shell {
    width: min(calc(100% - 16px), var(--max-width));
    padding-top: 12px;
  }

  .section {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .topbar {
    top: 8px;
    border-radius: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    padding-top: 2px;
  }

  .workflow-header {
    flex-direction: column;
  }

  .contact-chip {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
