:root {
  --bg: #f5ead7;
  --bg-2: #fff7e8;
  --panel: rgba(255, 249, 237, 0.76);
  --panel-strong: rgba(255, 246, 229, 0.94);
  --line: rgba(89, 62, 39, 0.16);
  --line-strong: rgba(89, 62, 39, 0.28);
  --text: #3e2b1d;
  --muted: #766756;
  --ink: #3a2719;
  --teal: #20a77c;
  --sea: #3d8f55;
  --coral: #ee7040;
  --amber: #d59622;
  --lime: #9dbb39;
  --magenta: #c84f7d;
  --font-sans: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-hand: "Caveat", "Noto Serif SC", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(238, 112, 64, 0.18), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(32, 167, 124, 0.16), transparent 23rem),
    radial-gradient(circle at 56% 106%, rgba(200, 79, 125, 0.12), transparent 28rem),
    linear-gradient(180deg, #fff8ea 0%, #f5ead7 52%, #f7dfc2 100%);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(89, 62, 39, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 62, 39, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(89, 62, 39, 0.7), rgba(89, 62, 39, 0.2));
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.pixel-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.pixel-field::before,
.pixel-field::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--coral);
  box-shadow:
    120px 80px 0 var(--teal),
    210px 220px 0 var(--amber),
    86vw 120px 0 var(--lime),
    78vw 370px 0 var(--coral),
    62vw 70vh 0 var(--teal),
    18vw 82vh 0 var(--magenta),
    92vw 84vh 0 var(--amber);
  opacity: 0.42;
  animation: pixelDrift 9s steps(5, end) infinite;
}

.pixel-field::after {
  top: 45%;
  left: 12%;
  background: var(--teal);
  animation-duration: 12s;
  animation-direction: reverse;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(20px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 234, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
}

.brand-cube {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  box-shadow: 5px 5px 0 rgba(240, 178, 74, 0.7);
  transform: rotate(2deg);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.lang-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.lang-switcher button {
  min-width: 36px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.lang-switcher button.is-active {
  color: #fff8ea;
  background: var(--teal);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  min-height: calc(100vh - 69px);
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 70px) 56px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(89, 62, 39, 0.2), transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  width: 24px;
  height: 2px;
  background: var(--teal);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 72px;
  line-height: 0.96;
  font-weight: 900;
}

h2 {
  max-width: 820px;
  font-size: 46px;
  line-height: 1.1;
  font-weight: 900;
}

h3 {
  font-size: 22px;
  line-height: 1.24;
  font-weight: 900;
}

.hero-slogan {
  max-width: 640px;
  margin: 24px 0 0;
  color: #5f4736;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #fff8ea;
  background: var(--teal);
  box-shadow: 0 18px 46px rgba(32, 167, 124, 0.2), 5px 5px 0 rgba(238, 112, 64, 0.7);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.48);
}

.icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #fff8ea;
  background: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
}

.sketch-stage {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(89, 62, 39, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 238, 0.98), rgba(238, 220, 187, 0.9)),
    radial-gradient(circle at 50% 50%, rgba(238, 112, 64, 0.18), transparent 18rem);
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(89, 62, 39, 0.18);
}

.sketch-stage::before {
  content: "FOUNDER SKETCH / REAL BUSINESS SYSTEMS";
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 4;
  color: rgba(89, 62, 39, 0.58);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.sketch-title {
  position: absolute;
  left: 49%;
  top: 45%;
  z-index: 1;
  color: rgba(58, 39, 25, 0.54);
  font-family: var(--font-hand);
  font-size: 176px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.72;
  transform: translate(-50%, -50%) rotate(-5deg);
  text-transform: lowercase;
  -webkit-text-stroke: 1px rgba(58, 39, 25, 0.18);
  text-shadow:
    3px 3px 0 rgba(238, 112, 64, 0.16),
    -2px 2px 0 rgba(213, 150, 34, 0.12);
  opacity: 0.78;
  pointer-events: none;
}

.brush-ring {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 430px;
  height: 190px;
  z-index: 2;
  border: 10px solid rgba(238, 112, 64, 0.62);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
  opacity: 0.92;
}

.brush-ring-b {
  width: 470px;
  height: 210px;
  border-width: 4px;
  border-color: rgba(213, 150, 34, 0.58);
  transform: translate(-50%, -50%) rotate(9deg);
  animation: ringNudge 4.5s ease-in-out infinite;
}

.stickman {
  position: absolute;
  inset: auto 0 18px;
  z-index: 3;
  width: min(92%, 620px);
  margin: 0 auto;
  overflow: visible;
}

.sketch-line {
  fill: none;
  stroke: #3a2719;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  filter: drop-shadow(2px 2px 0 rgba(89, 62, 39, 0.18));
  animation: drawLine 1.45s ease forwards;
}

.head { animation-delay: 180ms; }
.body { animation-delay: 300ms; }
.arm-left { animation-delay: 420ms; }
.arm-right { animation-delay: 520ms; }
.leg-left { animation-delay: 640ms; }
.leg-right { animation-delay: 720ms; }
.hand-left { animation-delay: 840ms; }
.marker { animation-delay: 960ms; }
.marker-detail { animation-delay: 1080ms; }
.cable { animation-delay: 1180ms; }
.ground { animation-delay: 1250ms; }

.hero-portrait {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 6;
  width: 112px;
  aspect-ratio: 1;
  border: 2px solid rgba(89, 62, 39, 0.78);
  border-radius: 8px;
  overflow: hidden;
  background: #ead2b3;
  box-shadow: 8px 8px 0 rgba(32, 167, 124, 0.62);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.signal-strip div {
  min-width: 0;
  padding: 22px;
  background: rgba(255, 248, 234, 0.86);
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1.1;
}

.signal-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head.compact {
  max-width: 720px;
}

.section-head p:not(.eyebrow),
.cross-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-card,
.feature-card,
.timeline article,
.contact-card,
.split-offer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.process-card {
  min-height: 270px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 112, 64, 0.42);
  background: rgba(255, 242, 220, 0.94);
  box-shadow: 0 16px 46px rgba(89, 62, 39, 0.12);
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 34px;
  margin-bottom: 34px;
  border: 1px solid rgba(240, 178, 74, 0.48);
  border-radius: 6px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 900;
}

.process-card p,
.timeline p,
.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.work-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.feature-card {
  min-height: 0;
  padding: 18px;
  display: grid;
  gap: 22px;
  align-content: space-between;
  background:
    linear-gradient(145deg, rgba(238, 112, 64, 0.16), rgba(255, 246, 229, 0.9) 42%),
    var(--panel-strong);
}

.feature-media {
  height: 270px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ead2b3;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-shop {
  max-height: 230px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.48);
}

.feature-shop img {
  width: 100%;
  height: 100%;
  max-height: 230px;
  object-fit: contain;
}

.tag {
  color: var(--teal) !important;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timeline article {
  min-height: 190px;
  padding: 20px;
}

.timeline span {
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.split-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
  background:
    linear-gradient(120deg, rgba(32, 167, 124, 0.12), rgba(238, 112, 64, 0.14)),
    var(--panel-strong);
}

.cross-copy {
  max-width: 780px;
}

.big-link {
  flex: 0 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  min-height: 154px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(55, 213, 192, 0.5);
}

.contact-card.primary {
  color: #fff8ea;
  background: var(--teal);
  box-shadow: 8px 8px 0 rgba(238, 112, 64, 0.68);
}

.contact-card span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
}

.contact-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-card.primary em {
  color: rgba(255, 248, 234, 0.86);
}

.contact-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.contact-card-qr img {
  width: 100%;
  max-width: 128px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 70px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ringNudge {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(9deg) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) rotate(5deg) scale(1.03);
  }
}

@keyframes pixelDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -16px, 0);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 36px;
  }

  .sketch-stage {
    min-height: 510px;
  }

  .signal-strip,
  .process-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-layout {
    grid-template-columns: 1fr;
  }

  .split-offer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero,
  .section {
    width: 100%;
  }

  .hero {
    padding: 42px 16px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-slogan {
    font-size: 20px;
  }

  .sketch-stage {
    min-height: 420px;
  }

  .sketch-stage::before {
    max-width: 220px;
    line-height: 1.4;
  }

  .sketch-title {
    font-size: 104px;
  }

  .brush-ring {
    width: 300px;
    height: 140px;
  }

  .hero-portrait {
    width: 84px;
  }

  .signal-strip,
  .process-grid,
  .timeline,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip,
  .section {
    width: calc(100% - 32px);
  }

  .section {
    padding: 72px 0;
  }

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

  .feature-media {
    height: 260px;
  }

  .feature-shop,
  .feature-shop img {
    max-height: 260px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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