:root {
  color-scheme: light;
  --ink: #24322f;
  --muted: #70685f;
  --paper: #ffffff;
  --cream: #fffdf6;
  --mint: #edf7f3;
  --leaf: #2e6f61;
  --leaf-dark: #19483f;
  --orange: #f1a53b;
  --peach: #fff0de;
  --blue: #eef6ff;
  --line: #e8e8e3;
  --shadow: 0 18px 46px rgba(74, 54, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 16%, rgba(241, 165, 59, 0.08), transparent 24%),
    radial-gradient(circle at 86% 8%, rgba(46, 111, 97, 0.08), transparent 22%),
    var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic",
    "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

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

.desktop-decor {
  display: none;
}

.scroll-dog {
  position: fixed;
  right: max(12px, calc((100vw - 430px) / 2 + 10px));
  top: 86px;
  z-index: 12;
  display: grid;
  gap: 4px;
  width: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  justify-items: center;
  cursor: pointer;
  transform: translate3d(0, var(--dog-y, 0px), 0);
  transition: transform 80ms linear;
}

.scroll-dog:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 6px;
  border-radius: 22px;
}

.scroll-dog img {
  display: block;
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(74, 54, 31, 0.18);
  animation: dog-step 620ms ease-in-out infinite;
}

.scroll-dog span {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(74, 54, 31, 0.12);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.scroll-dog.is-changing span {
  transform: scale(1.08);
  background: var(--leaf);
}

@keyframes dog-step {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-5px) rotate(4deg);
  }
}

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

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

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(232, 232, 227, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(74, 54, 31, 0.12);
}

.nav-links {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.header-cta,
.button,
.room-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.header-cta:hover,
.button:hover,
.room-nav a:hover,
.nav-links a:hover {
  transform: translateY(-1px);
}

.header-cta {
  padding: 0 16px;
  background: var(--leaf);
  color: #fff;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 66px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 74px) 0 54px;
  align-items: center;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
}

.hero::before {
  top: 10%;
  right: 2%;
  width: 150px;
  height: 150px;
  background: var(--mint);
}

.hero::after {
  bottom: 8%;
  left: 8%;
  width: 86px;
  height: 86px;
  background: var(--peach);
}

.hero-portrait {
  position: relative;
  margin: 0;
  justify-self: center;
}

.hero-portrait::before {
  position: absolute;
  inset: 7% -7% -6% 7%;
  z-index: 0;
  border: 2px dashed rgba(46, 111, 97, 0.35);
  border-radius: 32px;
  background: var(--mint);
  content: "";
  transform: rotate(-5deg);
}

.hero-portrait::after {
  position: absolute;
  right: -24px;
  bottom: 22px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  content: "LGTM!";
  font-size: 14px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.hero-portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 470px);
  aspect-ratio: 1;
  border: 8px solid var(--cream);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
  object-fit: cover;
  transform: rotate(2deg);
}

.hero-content {
  max-width: 690px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(74, 54, 31, 0.08);
}

h1 {
  font-size: clamp(42px, 7vw, 80px);
  text-wrap: balance;
}

h2 {
  font-size: clamp(34px, 5vw, 62px);
  text-wrap: balance;
}

h3 {
  font-size: 22px;
}

.hero-copy {
  margin: 24px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid transparent;
}

.button-primary {
  background: var(--leaf);
  color: #fff;
}

.button-primary:hover {
  background: var(--leaf-dark);
}

.button-secondary {
  border-color: var(--leaf);
  background: var(--cream);
  color: var(--leaf-dark);
}

.room-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto 54px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.78);
  box-shadow: 0 12px 30px rgba(74, 54, 31, 0.08);
}

.room-nav a {
  min-height: 38px;
  padding: 0 16px;
  background: #fff;
  color: var(--leaf-dark);
  font-size: 13px;
}

.intro-band {
  background: var(--leaf-dark);
  color: #fff;
}

.intro-inner {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(20px, 5vw, 70px);
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0;
  align-items: center;
}

.intro-quote {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.18;
}

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

.section-heading {
  margin: 0 auto 38px;
  max-width: 760px;
  text-align: center;
}

.section-heading p:last-child {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

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

.topic-card,
.post-list article,
.steps li {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 12px 30px rgba(74, 54, 31, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.topic-card:hover,
.post-list article:hover,
.steps li:hover {
  border-color: rgba(46, 111, 97, 0.34);
  box-shadow: 0 18px 42px rgba(74, 54, 31, 0.14);
  transform: translateY(-5px) rotate(-1deg);
}

.topic-card {
  position: relative;
  min-height: 286px;
  padding: 28px 24px;
  overflow: hidden;
}

.topic-card:nth-child(2) {
  margin-top: 28px;
  background: #eef8f3;
}

.topic-card:nth-child(3) {
  background: #fff1df;
}

.topic-card:nth-child(4) {
  margin-top: 28px;
  background: #edf5ff;
}

.topic-card::after {
  position: absolute;
  right: -32px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(241, 165, 59, 0.18);
  content: "";
}

.topic-icon {
  display: inline-grid;
  min-width: 56px;
  height: 42px;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.topic-card p,
.post-list p,
.roadmap p,
.final-cta p {
  color: var(--muted);
  font-weight: 700;
}

.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  padding: 96px clamp(20px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.88), rgba(255, 248, 232, 0.74)),
    var(--mint);
  align-items: start;
  overflow: hidden;
}

.roadmap::before {
  position: absolute;
  top: 38px;
  right: 7%;
  color: rgba(46, 111, 97, 0.12);
  content: "Coding Desk";
  font-size: clamp(56px, 12vw, 160px);
  font-weight: 900;
  line-height: 1;
}

.roadmap-copy {
  position: sticky;
  top: 104px;
}

.roadmap-copy p:not(.eyebrow) {
  margin: 18px 0 28px;
  font-size: 17px;
}

.steps {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 24px;
}

.steps span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.steps strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
}

.steps p {
  grid-column: 2;
  margin-top: -7px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-list article {
  min-height: 244px;
  padding: 28px;
}

.post-list article:nth-child(2) {
  margin-top: 32px;
}

.post-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--leaf-dark) !important;
  font-size: 13px;
  font-weight: 900 !important;
}

.banner-section {
  padding-top: 58px;
}

.banner-list {
  display: grid;
  gap: 16px;
}

.promo-banner {
  display: block;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(74, 54, 31, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.promo-banner:hover {
  box-shadow: 0 18px 42px rgba(74, 54, 31, 0.14);
  transform: translateY(-5px);
}

.promo-banner img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto 78px;
  padding: 42px;
  border-radius: 30px;
  background: var(--leaf-dark);
  color: #fff;
  align-items: center;
  box-shadow: var(--shadow);
}

.final-cta p:not(.eyebrow) {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.final-cta .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-footer {
  padding: 30px 20px 44px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  font-size: 14px;
}

.is-visible {
  animation: rise 560ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .scroll-dog,
  .scroll-dog img,
  .decor-card,
  .is-visible {
    animation: none;
    transition: none;
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
    text-align: center;
  }

  .hero-portrait img {
    width: min(100%, 430px);
  }

  .intro-inner,
  .roadmap,
  .post-list,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap-copy {
    position: static;
  }
}

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

  .brand span:last-child {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    width: min(100% - 28px, 1180px);
  }

  .hero-portrait::after {
    right: 2px;
    bottom: 12px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .room-nav {
    border-radius: 24px;
  }

  .room-nav a,
  .topic-grid {
    width: 100%;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card:nth-child(2),
  .topic-card:nth-child(4),
  .post-list article:nth-child(2) {
    margin-top: 0;
  }

  .steps li {
    grid-template-columns: 1fr;
  }

  .steps p {
    grid-column: auto;
    margin-top: 0;
  }

  .final-cta {
    padding: 28px;
  }
}

/* Smartphone-first campaign layout */
body {
  background:
    linear-gradient(90deg, rgba(46, 111, 97, 0.04), rgba(241, 165, 59, 0.04)),
    #ffffff;
}

.site-header,
main,
.site-footer {
  width: min(100%, 430px);
  margin-right: auto;
  margin-left: auto;
}

main {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(241, 165, 59, 0.1), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(46, 111, 97, 0.09), transparent 24%),
    var(--paper);
}

.site-header {
  padding: 10px 14px;
}

.nav-links {
  display: none;
}

.brand {
  gap: 8px;
  font-size: 14px;
}

.brand-logo {
  width: 34px;
  height: 34px;
}

.header-cta {
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  width: calc(100% - 28px);
  min-height: auto;
  gap: 26px;
  padding: 28px 0 34px;
  text-align: center;
}

.hero::before {
  top: 32px;
  right: -26px;
  width: 118px;
  height: 118px;
}

.hero::after {
  bottom: 46%;
  left: -20px;
  width: 72px;
  height: 72px;
}

.hero-portrait {
  width: min(88vw, 342px);
}

.hero-portrait::before {
  inset: 8% -5% -4% 6%;
  border-radius: 28px;
}

.hero-portrait::after {
  right: -5px;
  bottom: 14px;
  padding: 7px 13px;
  font-size: 12px;
}

.hero-portrait img {
  width: 100%;
  border-width: 7px;
  border-radius: 26px;
}

.hero-content {
  max-width: none;
}

.eyebrow {
  margin-bottom: 12px;
  padding: 6px 12px;
  font-size: 10px;
}

h1 {
  width: min(100%, 9.5em);
  margin: 0 auto;
  font-size: clamp(34px, 11vw, 44px);
}

h2 {
  font-size: clamp(30px, 9vw, 38px);
}

h3 {
  font-size: 19px;
}

.hero-copy {
  width: min(100%, 21em);
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
}

.hero-actions {
  gap: 10px;
  margin-top: 24px;
}

.hero-actions,
.button {
  width: 100%;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 14px;
}

.room-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: calc(100% - 28px);
  margin-bottom: 36px;
  padding: 12px;
  border-radius: 26px;
}

.room-nav a {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  font-size: 12px;
}

.intro-inner {
  grid-template-columns: 1fr;
  width: calc(100% - 28px);
  gap: 12px;
  padding: 28px 0;
  text-align: center;
}

.intro-quote {
  font-size: 30px;
}

.intro-inner p:last-child {
  font-size: 14px;
}

.section {
  width: calc(100% - 28px);
  padding: 62px 0;
}

.section-heading {
  margin-bottom: 28px;
}

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

.topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.topic-card {
  width: 88%;
  min-height: 218px;
  padding: 24px 22px;
  border-radius: 28px;
}

.topic-card:nth-child(odd) {
  justify-self: start;
}

.topic-card:nth-child(even) {
  justify-self: end;
}

.topic-card:nth-child(2),
.topic-card:nth-child(4) {
  margin-top: 0;
}

.topic-icon {
  min-width: 52px;
  height: 38px;
  margin-bottom: 20px;
}

.topic-card p {
  font-size: 14px;
}

.roadmap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 66px 14px;
  border-radius: 34px 34px 0 0;
}

.roadmap::before {
  top: 16px;
  right: -10px;
  font-size: 62px;
}

.roadmap-copy {
  position: static;
  text-align: center;
}

.roadmap-copy p:not(.eyebrow) {
  margin: 14px 0 22px;
  font-size: 14px;
}

.steps {
  gap: 14px;
}

.steps li {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 22px;
  border-radius: 26px;
}

.steps li:nth-child(even) {
  transform: translateX(10px);
}

.steps li:nth-child(odd) {
  transform: translateX(-10px);
}

.steps li:nth-child(even):hover {
  transform: translateX(10px) translateY(-5px) rotate(1deg);
}

.steps li:nth-child(odd):hover {
  transform: translateX(-10px) translateY(-5px) rotate(-1deg);
}

.steps span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.steps p {
  grid-column: auto;
  margin-top: 0;
  font-size: 14px;
}

.post-list {
  grid-template-columns: 1fr;
  gap: 16px;
}

.post-list article {
  width: 90%;
  min-height: auto;
  padding: 24px;
  border-radius: 28px;
}

.banner-section {
  padding-top: 42px;
}

.banner-list {
  gap: 14px;
}

.promo-banner,
.promo-banner img {
  border-radius: 20px;
}

.post-list article:nth-child(1),
.post-list article:nth-child(3) {
  justify-self: start;
}

.post-list article:nth-child(2) {
  justify-self: end;
  margin-top: 0;
}

.post-list p {
  font-size: 14px;
}

.final-cta {
  grid-template-columns: 1fr;
  width: calc(100% - 28px);
  gap: 20px;
  margin-bottom: 44px;
  padding: 28px 24px;
  border-radius: 30px;
  text-align: center;
}

.final-cta p:not(.eyebrow) {
  font-size: 14px;
}

.site-footer {
  background: var(--paper);
}

@media (min-width: 700px) {
  .site-header,
  main,
  .site-footer {
    box-shadow: 0 24px 80px rgba(74, 54, 31, 0.16);
  }

  .site-header {
    border-radius: 0;
  }
}

@media (min-width: 980px) {
  body {
    position: relative;
    min-height: 100vh;
  }

  .desktop-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
    pointer-events: none;
  }

  .site-header,
  main,
  .site-footer {
    position: relative;
    z-index: 1;
  }

  .scroll-dog {
    right: calc((100vw - 430px) / 2 - 86px);
    width: 68px;
  }

  .scroll-dog img {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .decor-card {
    position: absolute;
    display: grid;
    gap: 10px;
    width: clamp(118px, 12vw, 176px);
    padding: 10px;
    border: 1px solid rgba(228, 212, 189, 0.92);
    border-radius: 24px;
    background: rgba(255, 253, 246, 0.86);
    box-shadow: 0 18px 46px rgba(74, 54, 31, 0.12);
    backdrop-filter: blur(10px);
    animation: decor-float 7s ease-in-out infinite;
  }

  .decor-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 18px;
    object-fit: cover;
  }

  .decor-card span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--leaf);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
  }

  .decor-card-left {
    left: max(24px, calc((100vw - 430px) / 2 - 245px));
  }

  .decor-card-right {
    right: max(24px, calc((100vw - 430px) / 2 - 245px));
  }

  .decor-card-one {
    top: 96px;
    transform: rotate(-7deg);
  }

  .decor-card-two {
    top: 520px;
    transform: rotate(6deg);
    animation-delay: -2s;
  }

  .decor-card-three {
    top: 190px;
    transform: rotate(8deg);
    animation-delay: -3.5s;
  }

  .decor-card-four {
    top: 690px;
    transform: rotate(-6deg);
    animation-delay: -5s;
  }

  .desktop-decor::before,
  .desktop-decor::after {
    position: absolute;
    border-radius: 999px;
    content: "";
  }

  .desktop-decor::before {
    left: 7vw;
    top: 340px;
    width: 118px;
    height: 118px;
    background: rgba(46, 111, 97, 0.14);
  }

  .desktop-decor::after {
    right: 8vw;
    top: 470px;
    width: 92px;
    height: 92px;
    background: rgba(241, 165, 59, 0.18);
  }
}

@keyframes decor-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}
