*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --black: #050505;
  --ink: #171717;
  --gray-900: #252525;
  --gray-800: #3e3e3e;
  --gray-700: #5e5e5e;
  --gray-500: #8c8c8c;
  --gray-300: #d8d8d8;
  --gray-200: #e9e9e9;
  --gray-100: #f4f4f1;
  --paper: #fbfaf6;
  --white: #ffffff;
  --accent: #d9ff39;
  --accent-2: #9fe870;
  --font: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --section-gap: 48px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-family: var(--font);
  color: var(--black);
  background:
    radial-gradient(circle at 14px 14px, rgba(5, 5, 5, 0.08) 1.2px, transparent 1.2px) 0 0 / 28px 28px,
    var(--paper);
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--black);
  color: var(--accent);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.84);
  border-bottom: 1px solid rgba(5, 5, 5, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner,
.container,
.container-narrow,
.hero-inner,
.hero-foot,
.footer-inner {
  width: min(1180px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
}

.nav-inner {
  height: 72px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-logo::before {
  content: "G";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--black);
  background: var(--accent);
  border: 2px solid var(--black);
  border-radius: 50%;
  font-weight: 900;
}

.nav-logo .logo-suffix {
  margin-left: 2px;
  color: var(--gray-700);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  color: var(--gray-700);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: var(--black) !important;
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--black);
}

.nav-cta:hover {
  background: var(--accent);
}

section {
  padding: 104px 0;
  background: var(--paper);
  border-bottom: 1px solid rgba(5, 5, 5, 0.14);
}

.bg-light {
  background: var(--white);
}

.bg-dark {
  background: var(--black);
  color: var(--white);
}

.container-narrow {
  max-width: 940px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gray-700);
  font-family: var(--font);
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.bg-dark .eyebrow,
.final-cta .eyebrow {
  color: var(--accent-2);
}

.section-title {
  max-width: 980px;
  margin-bottom: 20px;
  font-size: 3.35rem;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.section-title em {
  position: relative;
  isolation: isolate;
  padding: 0 0.04em;
  font-style: normal;
  background: none;
}

.section-title em::before {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.05em;
  z-index: -1;
  height: 0.34em;
  background: var(--accent);
  border-radius: 999px;
}

.section-lead {
  max-width: 760px;
  margin-bottom: 60px;
  color: var(--gray-900);
  font-size: 1.04rem;
  line-height: 1.95;
  font-weight: 600;
}

.section-lead strong {
  color: var(--black);
  font-weight: 800;
}

.bg-dark .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.bg-dark .section-lead strong {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 64px 0 48px;
  display: block;
  background: transparent;
  border-bottom: 2px solid var(--black);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 4% 8% auto;
  width: 210px;
  height: 210px;
  background: var(--accent);
  border: 2px solid var(--black);
  border-radius: 50%;
  opacity: 0.42;
  animation: breathe 7s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  align-items: center;
  gap: 38px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--black);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--black);
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 30px;
  font-size: 4.35rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 em {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding: 0;
  font-style: normal;
  background: none;
  transform-origin: 50% 78%;
  animation: motionWord 4.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.hero h1 em::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.04em;
  z-index: -1;
  height: 0.34em;
  background: var(--accent);
  border-radius: 999px;
  transform: scaleX(0.14);
  transform-origin: left center;
  animation: motionHighlight 4.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.hero-sub {
  max-width: 620px;
  margin-bottom: 38px;
  color: var(--gray-900);
  font-size: 1.04rem;
  line-height: 1.95;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 172px;
  padding: 0 22px;
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  background: var(--black);
  box-shadow: 5px 5px 0 var(--accent);
}

.btn-primary:hover {
  background: var(--black);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--accent);
}

.btn-secondary {
  color: var(--black);
  background: var(--white);
  border-color: var(--black);
  box-shadow: 5px 5px 0 var(--black);
}

.btn-secondary:hover {
  color: var(--black);
  background: var(--accent);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--black);
}

.hero-mock,
.hero-visual,
.section-visual,
.page-visual {
  position: relative;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
  box-shadow: 14px 14px 0 var(--black);
}

.hero-mock {
  padding: 26px;
  animation: floaty 7s ease-in-out infinite;
}

.hero-visual {
  overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
}

.hero-visual::before {
  content: "AI learning flow";
  position: absolute;
  top: -18px;
  right: 18px;
  z-index: 2;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 900;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 999px;
  transform: rotate(4deg);
}

.hero-visual img,
.section-visual img,
.page-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual img {
  aspect-ratio: 16 / 9;
}

.section-visual {
  overflow: hidden;
  margin: 0 0 42px;
  box-shadow: 10px 10px 0 var(--black);
}

.section-visual img {
  aspect-ratio: 16 / 9;
}

.hero-mock::before {
  content: "AI tutor app";
  position: absolute;
  top: -18px;
  right: 18px;
  z-index: 2;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 900;
  background: var(--accent);
  border: 2px solid var(--black);
  border-radius: 999px;
  transform: rotate(4deg);
}

.mock-frame-tag,
.mock-tag,
.chat-example-tag {
  margin-bottom: 14px;
  color: var(--gray-500);
  font-family: var(--font);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mock-app-header,
.mock-student-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--gray-100);
  border: 1.5px solid var(--black);
  border-radius: 8px;
  margin-bottom: 12px;
}

.mock-juku-logo,
.mock-student-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent) !important;
  color: var(--black);
  border: 1.5px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.mock-student-avatar {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
}

.mock-juku-name {
  font-size: 0.78rem;
  font-weight: 900;
}

.mock-juku-name .small,
.mock-student-info .student-meta {
  display: block;
  color: var(--gray-700);
  font-size: 0.66rem;
  font-weight: 700;
}

.mock-msg,
.chat-bubble {
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.7;
  font-weight: 600;
}

.mock-msg.user,
.chat-bubble.user {
  color: var(--black);
  background: var(--gray-100);
  border: 1.5px solid var(--black);
}

.mock-msg.user {
  margin-left: 40px;
}

.chat-bubble.user {
  margin-left: 64px;
  text-align: right;
}

.mock-msg.ai,
.chat-bubble.ai {
  background: var(--white);
  border: 1.5px solid var(--black);
}

.mock-msg.ai {
  margin-right: 40px;
}

.chat-bubble.ai {
  margin-right: 64px;
}

.mock-cite,
.chat-bubble.ai .citation {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  color: var(--black);
  background: var(--gray-100);
  border: 1px solid var(--black);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.62rem;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-foot {
  position: relative;
  z-index: 1;
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--black);
  background: var(--white);
}

.hero-foot-item {
  min-height: 166px;
  padding: 24px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 2px solid var(--black);
}

.hero-foot-item:last-child {
  border-right: 0;
}

.hero-foot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-foot-num {
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.hero-foot-kicker {
  padding: 5px 10px;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.hero-foot-title {
  max-width: 300px;
  font-size: 1.18rem;
  line-height: 1.45;
  font-weight: 900;
}

.hero-foot-desc {
  max-width: 310px;
  color: var(--gray-700);
  font-size: 0.88rem;
  line-height: 1.75;
  font-weight: 700;
}

.problem-grid,
.flow-row,
.step-grid {
  display: grid;
  gap: 0;
  border: 2px solid var(--black);
  background: var(--white);
}

.problem-grid {
  grid-template-columns: repeat(3, 1fr);
}

.problem-card {
  min-height: 330px;
  padding: 32px 28px;
  position: relative;
  border: 0;
  border-right: 2px solid var(--black);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.problem-card:last-child {
  border-right: 0;
}

.problem-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--black);
  background: var(--accent);
  border: 2px solid var(--black);
  border-radius: 50%;
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 900;
}

.problem-title {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.48;
  font-weight: 900;
}

.problem-desc {
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.85;
  font-weight: 600;
}

.flow-row {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  counter-reset: flow-step;
}

.flow-step {
  position: relative;
  min-height: 230px;
  padding: 26px 22px 22px;
  border: 0;
  border-right: 2px solid var(--black);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  counter-increment: flow-step;
}

.flow-step:last-child {
  border-right: 0;
}

.flow-step::after {
  content: counter(flow-step, decimal-leading-zero);
  position: absolute;
  right: 12px;
  bottom: -18px;
  color: rgba(5, 5, 5, 0.05);
  font-size: 5.8rem;
  line-height: 1;
  font-weight: 900;
  pointer-events: none;
}

.flow-step-tag,
.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 3px 3px 0 var(--black);
}

.flow-step-title {
  position: relative;
  z-index: 1;
  font-size: 1.18rem;
  line-height: 1.55;
  font-weight: 900;
}

.flow-arrow {
  display: none;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(420px, 1.05fr);
  gap: var(--section-gap);
  align-items: center;
  padding: 68px 0;
  border-bottom: 1px solid rgba(5, 5, 5, 0.16);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-num {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gray-700);
  font-family: var(--font);
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0;
}

.feature-title {
  margin-bottom: 16px;
  font-size: 1.8rem;
  line-height: 1.42;
  font-weight: 900;
  letter-spacing: 0;
}

.feature-desc {
  margin-bottom: 20px;
  color: var(--gray-900);
  font-size: 1rem;
  line-height: 1.95;
  font-weight: 600;
}

.feature-desc strong {
  color: var(--black);
  font-weight: 800;
}

.feature-bullets {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.feature-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--gray-900);
  font-size: 0.92rem;
  line-height: 1.75;
  font-weight: 800;
}

.feature-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 1.5px solid var(--black);
  border-radius: 50%;
  transform: translateY(-50%);
}

.feature-mock,
.chat-example,
.faq-item {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--black);
}

.feature-mock {
  min-width: 0;
  min-height: 280px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mock-upload {
  padding: 32px;
  text-align: center;
  color: var(--gray-700);
  border: 2px dashed var(--black);
  border-radius: 8px;
  background: var(--gray-100);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 700;
}

.mock-upload .filename {
  display: block;
  margin-top: 8px;
  color: var(--black);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 900;
}

.mock-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(5, 5, 5, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
}

.mock-meta-row:last-child {
  border-bottom: 0;
}

.mock-meta-row .key {
  color: var(--gray-700);
}

.mock-meta-row .val {
  font-weight: 900;
}

.mock-student-info {
  line-height: 1.4;
}

.mock-student-info .student-name {
  font-size: 0.9rem;
  font-weight: 900;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.mock-stat {
  background: var(--gray-100);
  border: 1.5px solid var(--black);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
}

.mock-stat .stat-val {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.1;
}

.mock-stat .stat-lbl {
  margin-top: 2px;
  color: var(--gray-700);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0;
}

.mock-topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(5, 5, 5, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
}

.mock-topic:last-child {
  border-bottom: 0;
}

.mock-topic .topic-name {
  color: var(--black);
}

.mock-topic .topic-status.stuck,
.mock-dashboard-row .stuck {
  background: var(--accent);
  color: var(--black);
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 2px 8px;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
}

.mock-topic .topic-status.ok,
.mock-dashboard-row .ok {
  color: var(--gray-700);
  font-size: 0.72rem;
  font-weight: 800;
}

.chat-example {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px;
  color: var(--black);
}

.chat-example-tag {
  margin-bottom: 24px;
  text-align: center;
}

.chat-bubble.ai .chat-graph {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 14px 0 6px;
  border: 1.5px solid var(--black);
  border-radius: 8px;
  background: var(--white);
}

.chat-note {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--gray-100);
  border: 2px solid var(--black);
  border-radius: 8px;
  color: var(--gray-900);
  font-size: 0.92rem;
  line-height: 1.85;
  font-weight: 700;
}

.chat-note strong {
  font-weight: 900;
}

.step-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step-card {
  position: relative;
  min-height: 260px;
  padding: 30px 28px;
  background: var(--white);
  border: 0;
  border-right: 2px solid var(--black);
  display: flex;
  flex-direction: column;
}

.step-card:last-child {
  border-right: 0;
}

.step-title {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.5;
  font-weight: 900;
}

.step-desc {
  margin-bottom: 18px;
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.85;
  font-weight: 600;
}

.step-time {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(5, 5, 5, 0.18);
  color: var(--gray-900);
  font-family: var(--font);
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 900;
}

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

.faq-item {
  padding: 24px 28px;
}

.faq-q {
  position: relative;
  margin-bottom: 10px;
  padding-left: 38px;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 900;
}

.faq-q::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--accent);
  border: 1.5px solid var(--black);
  border-radius: 50%;
  color: var(--black);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 900;
}

.faq-a {
  position: relative;
  padding-left: 38px;
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.95;
  font-weight: 700;
}

.faq-a strong {
  color: var(--black);
  font-weight: 900;
}

.faq-a::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0.28em;
  color: var(--gray-500);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 900;
}

.final-cta {
  position: relative;
  padding: 106px 0;
  overflow: hidden;
  background: var(--accent);
  color: var(--black);
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  text-align: left;
}

.final-cta .container-narrow {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 64px;
  align-items: end;
}

.final-cta h2 {
  position: relative;
  max-width: 840px;
  margin-bottom: 26px;
  font-size: 4.2rem;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.final-cta h2 em {
  padding: 0;
  font-style: normal;
  background: none;
}

.final-cta-lead {
  max-width: 720px;
  margin: 0;
  color: var(--gray-900);
  font-size: 1rem;
  line-height: 1.95;
  font-weight: 700;
}

.final-cta-lead strong {
  color: var(--black) !important;
}

.final-panel {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--black);
}

.final-panel-label {
  display: block;
  margin-bottom: 14px;
  color: var(--gray-500);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 900;
}

.final-panel-title {
  margin-bottom: 20px;
  color: var(--black);
  font-size: 1.28rem;
  line-height: 1.5;
  font-weight: 900;
}

.final-ctas {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.final-panel .final-ctas {
  display: grid;
  gap: 14px;
}

.final-panel .btn {
  width: 100%;
}

.final-cta .btn-primary {
  color: var(--white);
  background: var(--black);
  box-shadow: 5px 5px 0 var(--accent);
}

.final-cta .btn-primary:hover {
  color: var(--white);
  background: var(--black);
}

.final-cta .btn-secondary {
  color: var(--black);
  background: var(--white);
  border-color: var(--black);
}

.footer {
  padding: 56px 0 32px;
  background: var(--black);
  color: var(--white);
  border-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.footer-logo {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.9;
  font-weight: 700;
  text-align: right;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-12px) rotate(0.4deg); }
}

@keyframes motionWord {
  0%, 8% { transform: translateY(0) rotate(0deg); }
  18% { transform: translateY(-0.08em) rotate(-1deg); }
  28%, 64% { transform: translateY(0) rotate(0deg); }
  72% { transform: translateY(-0.03em) rotate(0.6deg); }
  82%, 100% { transform: translateY(0) rotate(0deg); }
}

@keyframes motionHighlight {
  0%, 6% { transform: scaleX(0.14); opacity: 0.72; }
  20%, 66% { transform: scaleX(1); opacity: 1; }
  78%, 100% { transform: scaleX(1); opacity: 0.88; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

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

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
  }

  .hero-inner,
  .feature-row,
  .final-cta .container-narrow {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .final-cta h2 {
    font-size: 3.8rem;
  }

  .hero-mock,
  .hero-visual {
    max-width: 720px;
    margin: 8px auto 0;
  }

  .problem-grid,
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-card:nth-child(2),
  .step-card:nth-child(2) {
    border-right: 0;
  }

  .problem-card:nth-child(-n+2),
  .step-card:nth-child(-n+2) {
    border-bottom: 2px solid var(--black);
  }

  .problem-card:last-child,
  .step-card:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .flow-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-step:nth-of-type(3),
  .flow-step:nth-of-type(7) {
    border-right: 0;
  }

  .flow-step:nth-of-type(1),
  .flow-step:nth-of-type(3) {
    border-bottom: 2px solid var(--black);
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .final-panel {
    max-width: 430px;
  }
}

@media (max-width: 760px) {
  body,
  body * {
    overflow-wrap: anywhere !important;
    line-break: anywhere !important;
    word-break: break-all !important;
  }

  .nav-inner,
  .container,
  .container-narrow,
  .hero-inner,
  .hero-foot,
  .footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .nav-inner {
    height: 64px;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero {
    padding: 42px 0 32px;
  }

  .hero-inner {
    gap: 30px;
  }

  .hero h1 {
    max-width: 440px;
    font-size: 2rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
    line-break: anywhere;
  }

  .hero-visual::before {
    display: none;
  }

  .hero-sub,
  .section-lead,
  .feature-desc,
  .final-cta-lead {
    font-size: 0.96rem;
    overflow-wrap: anywhere;
    line-break: anywhere;
  }

  .hero-ctas,
  .final-ctas {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .btn {
    width: 100%;
    white-space: normal;
  }

  .hero-mock,
  .hero-visual,
  .section-visual {
    padding: 18px;
    box-shadow: 7px 7px 0 var(--black);
  }

  .hero-visual,
  .section-visual {
    padding: 0;
  }

  .hero-foot,
  .problem-grid,
  .flow-row,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .hero-foot-item,
  .problem-card,
  .problem-card:nth-child(2),
  .flow-step,
  .flow-step:nth-of-type(3),
  .flow-step:nth-of-type(7),
  .step-card,
  .step-card:nth-child(2) {
    min-height: auto;
    grid-column: auto;
    border-right: 0;
    border-bottom: 2px solid var(--black);
  }

  .hero-foot-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-foot-kicker {
    max-width: 100%;
    white-space: normal;
  }

  .hero-foot-item:last-child,
  .problem-card:last-child,
  .flow-step:nth-of-type(7),
  .step-card:last-child {
    border-bottom: 0;
  }

  section {
    padding: 78px 0;
  }

  .section-title {
    font-size: 2.05rem;
    line-height: 1.32;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 50px 0;
  }

  .feature-mock {
    order: -1;
    padding: 18px;
    box-shadow: 7px 7px 0 var(--black);
  }

  .chat-example {
    padding: 20px;
    box-shadow: 7px 7px 0 var(--black);
  }

  .mock-msg.user,
  .mock-msg.ai,
  .chat-bubble.user,
  .chat-bubble.ai {
    margin-left: 0;
    margin-right: 0;
  }

  .mock-msg,
  .chat-bubble {
    font-size: 0.76rem;
  }

  .faq-item {
    padding: 22px;
    box-shadow: 7px 7px 0 var(--black);
  }

  .final-cta {
    padding: 86px 0;
  }

  .final-cta h2 {
    font-size: 2.5rem;
    line-height: 1.18;
  }

  .final-panel {
    padding: 22px;
    box-shadow: 7px 7px 0 var(--black);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

    .footer-meta {
      text-align: left;
      overflow-wrap: anywhere;
      word-break: break-all;
    }
  }
