:root {
  --blue: #3a43f0;
  --blue-dark: #2f3fc7;
  --ink: #1c1c35;
  --muted: #667085;
  --line: #ffffff;
  --soft: #f6f7fb;
  --yellow: #ffdc54;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav-shell,
.hero-inner,
.section-shell,
.footer-shell,
.footer-bottom {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.nav-shell {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 38px;
}

.logo-link {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.logo-link img {
  width: 150px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a,
.login-link,
.footer-column a {
  transition: color .2s ease;
}

.nav-links a:hover,
.login-link:hover,
.footer-column a:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}

.login-link { color: var(--blue); }

.signup-button,
.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 5px 0 var(--blue-dark);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.signup-button {
  min-height: 42px;
  padding-inline: 18px;
  box-shadow: none;
  border-radius: 999px;
}

.signup-button:hover,
.primary-button:hover {
  background: #3448eb;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--blue-dark);
}

.hero {
  overflow: hidden;
  background: var(--soft);
}

.hero-inner {
  position: relative;
  min-height: 590px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding-block: 72px;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-art img {
  position: absolute;
  display: block;
  height: auto;
}

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

.hero-art-blue {
  top: 14%;
  left: 2%;
  width: clamp(130px, 17vw, 190px);
  transform: rotate(-12deg);
  animation: hero-art-float 5.4s ease-in-out infinite;
}

.hero-art-green {
  top: 10%;
  right: 6%;
  width: clamp(70px, 9vw, 100px);
  transform: rotate(12deg);
  animation: hero-art-float 4.8s ease-in-out .6s infinite;
}

.hero-art-red {
  bottom: 8%;
  left: 4%;
  width: clamp(110px, 13vw, 145px);
  transform: rotate(10deg);
  animation: hero-art-float 5.8s ease-in-out 1.1s infinite;
}

.hero-art-yellow {
  right: 7%;
  bottom: 5%;
  width: clamp(44px, 6vw, 66px);
  transform: rotate(-9deg);
  animation: hero-art-float 5s ease-in-out .3s infinite;
}

.hero-copy {
  position: relative;
  top: -5px;
  max-width: 820px;
  justify-self: center;
  text-align: center;
  opacity: 0;
  animation: hero-enter .9s cubic-bezier(.2,.75,.25,1) .12s forwards;
}

.hero-copy .eyebrow {
  animation: eyebrow-enter .7s cubic-bezier(.2,.75,.25,1) .05s both;
}

.hero h1 {
  text-wrap: balance;
  color: var(--ink);
}

.hero-description {
  margin-inline: auto;
}

.hero-actions {
  justify-content: center;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes eyebrow-enter {
  from {
    opacity: 0;
    letter-spacing: .24em;
  }
  to {
    opacity: 1;
    letter-spacing: .08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-copy .eyebrow,
  .hero h1,
  .hero-art img {
    animation: none;
  }

  .hero h1 {
    background: none;
    color: var(--ink);
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.hero-description {
  max-width: 560px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.text-button {
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.text-button span { margin-left: 4px; }

.hero-demo {
  min-height: 410px;
  overflow: hidden;
  border: 1px solid #dedff0;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(50, 54, 114, .16);
  transform: rotate(1deg);
}

.demo-toolbar {
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: #5d6075;
  font-size: 12px;
  font-weight: 800;
}

.demo-dots { display: flex; gap: 5px; }
.demo-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9cbd8;
}
.demo-status { justify-self: end; color: #1ca66b; }

.demo-content {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  min-height: 358px;
}

.condition-card {
  padding: 34px 26px;
  border-right: 1px solid var(--line);
  background: #fafaff;
}

.condition-card > p {
  margin: 0 0 20px;
  color: #888aa0;
  font-size: 12px;
  font-weight: 800;
}

.condition-card div {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.condition-card span { color: #9295a7; }
.condition-card strong { color: var(--ink); }

.message-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  background: linear-gradient(160deg, #eef0ff 0%, #dfe3ff 100%);
}

.message-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.message-card p {
  margin: 0 0 22px;
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 900;
  line-height: 1.55;
}

.message-card small {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: #4d557a;
  font-size: 10px;
  font-weight: 800;
}

.proof-strip {
  max-width: 1120px;
  min-height: 112px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  display: grid;
  gap: 2px;
  padding: 24px 40px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { font-size: 17px; }
.proof-strip span { color: var(--muted); font-size: 12px; }

.features-section {
  padding: 100px 0 110px;
  background: var(--white);
}

.section-heading {
  margin-bottom: 38px;
  text-align: center;
}

.section-heading h2,
.how-copy h2,
.cta-card h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background: var(--white);
}

.feature-number {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.feature-visual {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px;
  border-radius: 10px;
  background: var(--soft);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.conditions-visual {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 14px;
  padding: 36px;
  border: 10px solid #eceeff;
  background: var(--white);
  font-size: 12px;
}
.conditions-visual span { color: #8a8da1; }
.conditions-visual b { padding: 8px 10px; border-radius: 6px; background: #f1f2fa; }

.canvas-visual {
  position: relative;
  gap: 12px;
  border: 10px solid #fff2c2;
  background: #fffbea;
}
.canvas-box {
  width: 74px;
  height: 74px;
  border: 3px solid #4255ff;
  border-radius: 10px;
  background: white;
  box-shadow: 6px 6px 0 rgba(66,85,255,.12);
}
.canvas-line {
  position: absolute;
  width: 130px;
  height: 3px;
  bottom: 42px;
  background: #4255ff;
  transform: rotate(-8deg);
}

.share-visual {
  flex-direction: column;
  gap: 16px;
  background: #edf9f5;
  border: 10px solid #dff2ec;
  color: #27745d;
  font-size: 12px;
  font-weight: 800;
}
.qr {
  width: 82px;
  height: 82px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: white;
  box-shadow: 0 8px 20px rgba(47,117,94,.12);
}
.qr i { background: #2c8067; }
.qr i:nth-child(2),
.qr i:nth-child(3) { background: #83c3ad; }

.how-section {
  padding: 100px 0;
  background: #97a3ff;
  color: var(--white);
}

.how-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 80px;
}

.how-copy .eyebrow { color: #abb3ff; }
.how-copy > p:not(.eyebrow) {
  margin: 22px 0 30px;
  color: #d8dcf4;
  font-size: 16px;
}

.how-list {
  border-top: 1px solid rgba(255,255,255,.18);
}

.how-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  min-height: 130px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.how-list article > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #2b315c;
  font-size: 13px;
  font-weight: 900;
}

.how-list h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.how-list p {
  margin: 0;
  color: #cfd3e9;
  font-size: 13px;
}

.use-cases-section {
  padding: 90px 0 100px;
  background: var(--soft);
}

.use-cases-section .section-heading { margin-bottom: 36px; }

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "museum restaurant"
    "medicine bus";
  gap: 16px;
}

.use-case-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 26px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.use-case-card span {
  font-size: 12px;
  font-weight: 900;
}

.use-case-card h3 {
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 1.5;
}

.use-case-museum {
  grid-area: museum;
  background: #ffffff;
}
.use-case-museum span { color: #000000; }

.use-case-restaurant {
  grid-area: restaurant;
  background: #ffffff;
}
.use-case-restaurant span { color: #000000; }

.use-case-medicine {
  grid-area: medicine;
  background: #ffffff;
}
.use-case-medicine span { color: #020202; }

.use-case-bus {
  grid-area: bus;
  background: #ffffff;
}
.use-case-bus span { color: #000000; }

.cta-section {
  padding: 90px 0;
  background: var(--soft);
}

.cta-card {
  width: min(1120px, calc(100% - 48px));
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
  padding: 48px 58px;
  border-radius: 20px;
  background: var(--blue);
  color: var(--white);
}
.cta-card .eyebrow { color: #cfd3ff; }
.cta-card h2 { max-width: 650px; }
.light-button {
  flex: none;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 5px 0 #ccd1ff;
}
.light-button:hover { background: #f7f8ff; box-shadow: 0 7px 0 #ccd1ff; }

.site-footer {
  background: #17182c;
  color: var(--white);
}

.footer-shell {
  min-height: 260px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  padding: 58px 0 42px;
}

.footer-brand img {
  width: 150px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  margin: 16px 0 0;
  color: #aaaec6;
  font-size: 13px;
}
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}
.footer-column h3 { margin: 0 0 8px; font-size: 14px; }
.footer-column a { color: #cfd1df; }

.footer-bottom {
  min-height: 68px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #9da1b9;
  font-size: 12px;
}

a:focus-visible {
  outline: 3px solid #ffdc54;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-shell,
  .hero-inner,
  .section-shell,
  .footer-shell,
  .footer-bottom,
  .cta-card {
    width: min(100% - 36px, 680px);
  }
  .nav-links { display: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 62px;
  }
  .hero-copy { text-align: center; }
  .hero-description { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-demo { width: 100%; max-width: 600px; margin-inline: auto; }
  .proof-strip { width: calc(100% - 36px); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 400px; }
  .how-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-shell { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .nav-shell { height: 68px; }
  .logo-link img { width: 125px; }
  .login-link { display: none; }
  .signup-button { min-height: 38px; font-size: 12px; }
  .hero-inner { padding-block: 48px; }
  .hero-art-blue {
    top: 8%;
    left: -28px;
    width: 100px;
  }
  .hero-art-green {
    top: 7%;
    right: -8px;
    width: 52px;
  }
  .hero-art-red {
    bottom: 3%;
    left: -20px;
    width: 82px;
  }
  .hero-art-yellow {
    right: 2%;
    bottom: 4%;
    width: 34px;
  }
  .hero-copy { top: -24px; }
  .hero h1 { font-size: 40px; }
  .hero-description { font-size: 16px; }
  .hero-actions { flex-direction: column; gap: 16px; }
  .primary-button { width: 100%; }
  .hero-demo { min-height: 390px; transform: none; }
  .demo-content { grid-template-columns: 1fr; }
  .condition-card { display: none; }
  .message-card { min-height: 338px; }
  .proof-strip {
    grid-template-columns: 1fr;
    padding-block: 12px;
  }
  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .proof-strip div:last-child { border-bottom: 0; }
  .features-section,
  .how-section,
  .use-cases-section { padding-block: 72px; }
  .feature-card { min-height: 410px; }
  .how-grid { gap: 38px; }
  .how-list article { grid-template-columns: 44px 1fr; }
  .use-cases-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "museum" "restaurant" "medicine" "bus";
    gap: 12px;
  }
  .use-case-card { min-height: 150px; }
  .use-case-card h3 { font-size: 18px; }
  .cta-section { padding-block: 48px; }
  .cta-card {
    min-height: 300px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 36px 28px;
  }
  .cta-card h2 { font-size: 34px; }
  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-column:last-child { grid-column: 1 / -1; }
}

/* Hide the account link until the Supabase session is resolved. */
.nav-actions #account-nav-link[hidden] { display: none !important; }
