:root {
  --hero-ink: #eaf1ff;
  --hero-muted: #c5d5ff;
  --hero-bg: #050b18;
  --hero-accent: #7c3aed;
  --hero-accent-2: #2563eb;
  --hero-border: rgba(255, 255, 255, 0.12);
  --hero-contrast: rgba(255, 255, 255, 0.06);
}

.fluid-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 20px 72px;
  display: block;
  text-align: center;
  background: radial-gradient(1200px 600px at 85% 10%, rgba(110, 231, 255, 0.16), transparent),
              radial-gradient(900px 520px at 10% 0%, rgba(167, 139, 250, 0.2), transparent),
              var(--hero-bg);
  color: var(--hero-ink);
}

.fluid-hero .fluid-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.9;
}

.fluid-hero.fluid-hero--static .fluid-canvas-wrap {
  display: none;
}

#fluid-canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(120%);
}

.fluid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 24, 0.4) 0%, rgba(5, 11, 24, 0.75) 50%, rgba(5, 11, 24, 0.9) 100%);
  pointer-events: none;
}

.fluid-hero .hero-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hero-border);
  background: rgba(255, 255, 255, 0.06);
  color: #9bd8ff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.fluid-hero .hero-title {
  font-family: 'Space Grotesk', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif;
  margin: 8px 0 8px;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--hero-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.fluid-hero .hero-title-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.fluid-hero .hero-title-stack .hero-title-part {
  width: auto;
  text-align: center;
}

.fluid-hero .hero-title .hero-title-part-ai {
  color: var(--hero-accent);
  background: linear-gradient(120deg, var(--hero-accent), var(--hero-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fluid-hero .hero-title .hero-title-part {
  white-space: normal;
  overflow-wrap: anywhere;
  display: inline-block;
}

.fluid-hero .hero-title {
  word-break: break-word;
}

.fluid-hero .hero-subtitle {
  margin: 0 auto 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--hero-muted);
  width: min(760px, 100%);
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  text-align: center;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hero-border);
  background: rgba(255, 255, 255, 0.08);
  margin: 6px auto 18px;
  width: auto;
}

.hero-tagline-text {
  background: linear-gradient(120deg, var(--hero-accent), var(--hero-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-tagline.hero-tagline--typing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  width: clamp(360px, 78vw, 920px);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1200px) {
  .hero-tagline.hero-tagline--typing {
    width: min(90vw, 820px);
  }
}

@media (max-width: 1024px) {
  .hero-tagline.hero-tagline--typing {
    width: min(92vw, 720px);
  }
}

.hero-tagline-input {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(140deg, rgba(124, 58, 237, 0.12), rgba(37, 99, 235, 0.12)), rgba(5, 11, 24, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px rgba(124, 58, 237, 0.18);
  backdrop-filter: blur(10px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-prompt-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', 'Noto Sans JP', 'SFMono-Regular', Menlo, monospace;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 2px 8px 2px 0;
  color: var(--hero-ink);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(167, 139, 250, 0.9), rgba(37, 99, 235, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 12px rgba(167, 139, 250, 0.5),
    0 0 24px rgba(37, 99, 235, 0.35);
}

.hero-tagline--typing .hero-tagline-text {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  padding-right: 12px;
  text-align: left;
  font-family: 'Space Grotesk', 'Noto Sans JP', 'SFMono-Regular', Menlo, monospace;
  --typing-duration: 4.8s;
  animation:
    hero-tagline-type var(--typing-duration) steps(var(--typing-characters, 20)) 0.35s forwards,
    hero-type-spark var(--typing-duration) steps(var(--typing-characters, 20)) 0.35s forwards;
}

.hero-tagline--typing .hero-tagline-text::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(-2px, -50%);
  width: 2px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--hero-accent), var(--hero-accent-2));
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.65);
  animation: hero-caret-blink 1s steps(2, start) infinite;
}

.hero-tagline--typing .hero-tagline-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9) 0%, rgba(167, 139, 250, 0.6) 50%, rgba(37, 99, 235, 0) 75%);
  border-radius: 50%;
  transform: translate(-10px, -50%) scale(0.5) rotate(0deg);
  opacity: 0;
  filter: drop-shadow(0 0 0 rgba(124, 58, 237, 0));
  pointer-events: none;
  animation: hero-sparkle-step var(--typing-duration) steps(var(--typing-characters, 20)) 0.35s forwards;
  z-index: 1;
}

.hero-subtitle .hero-subtitle-line {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 992px) {
  .fluid-hero .hero-subtitle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    text-align: left;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hero-accent), var(--hero-accent-2));
  color: #0b1020;
  font-weight: 700;
  border: 1px solid rgba(124, 58, 237, 0.35);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--hero-border);
  color: var(--hero-ink);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.42);
  opacity: 0.95;
}

.hero-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.hero-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.value-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hero-border);
  color: var(--hero-muted);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.hero-card-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hero-border);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 45px rgba(3, 7, 18, 0.45);
}

.glass-card h3 {
  margin: 4px 0 6px;
  font-size: 18px;
  color: var(--hero-ink);
}

.glass-card p {
  margin: 0;
  color: var(--hero-muted);
  line-height: 1.5;
  font-size: 14px;
}

.card-kicker {
  margin: 0 0 6px;
  color: #a5b4fc;
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.bullet-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  color: var(--hero-muted);
  font-size: 14px;
}

.bullet-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hero-accent), var(--hero-accent-2));
  margin-top: 6px;
}

.philosophy-section {
  background: linear-gradient(180deg, #0b1021 0%, #0c1226 100%);
  color: #e6edff;
  padding: 72px 20px;
}

.philosophy-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 26px;
  letter-spacing: 0.01em;
}

.section-lead {
  margin: 0;
  max-width: 540px;
  color: #c5d5ff;
  line-height: 1.6;
}

.philosophy-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.philosophy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.philosophy-card h3 {
  margin: 6px 0 10px;
  font-size: 18px;
  color: #e8edff;
}

.philosophy-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: #c5d5ff;
  line-height: 1.5;
}

.value-rows {
  display: grid;
  gap: 10px;
}

.value-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.value-row:first-child {
  border-top: none;
  padding-top: 0;
}

.value-row strong {
  color: #eaf1ff;
  display: block;
  margin-bottom: 4px;
}

.value-row p {
  margin: 0;
  color: #c5d5ff;
  font-size: 14px;
  line-height: 1.5;
}

.culture-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 6px;
  align-items: stretch;
}

.culture-tag {
  position: relative;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(5, 11, 24, 0.35);
  display: grid;
  gap: 4px;
  align-items: start;
  text-align: center;
  justify-items: center;
  backdrop-filter: blur(8px);
}

.culture-tag__en {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #a5b4fc;
}

.culture-tag__jp {
  color: #d1dcff;
  font-size: 13px;
  line-height: 1.45;
}

.culture-tag--one,
.culture-tag--two,
.culture-tag--three,
.culture-tag--four {
  transform: none;
}

.feature-section {
  position: relative;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(56, 189, 248, 0.08));
  overflow: hidden;
}

.feature-section::before {
  content: "";
  position: absolute;
  inset: -10% -30%;
  background: radial-gradient(600px 400px at 20% 20%, rgba(110, 231, 255, 0.22), transparent),
              radial-gradient(600px 400px at 80% 0%, rgba(167, 139, 250, 0.18), transparent);
  z-index: 0;
  pointer-events: none;
}

.feature-grid-wrapper {
  position: relative;
  z-index: 1;
}

.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  color: #eaf1ff;
}

.feature-card .feature-description {
  color: #d1dcff;
}

.promo-highlight {
  background: radial-gradient(900px 440px at 20% 0%, rgba(96, 165, 250, 0.14), transparent),
              radial-gradient(900px 440px at 80% 0%, rgba(56, 189, 248, 0.12), transparent),
              linear-gradient(135deg, #0f172a, #0b1220);
  color: #eaf1ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-highlight__body {
  color: #d1dcff;
}

.coupon-section {
  background: linear-gradient(180deg, #0c1222 0%, #0b1020 100%);
}

.coupon-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #eaf1ff;
}

.coupon-title {
  color: #eaf1ff;
}

.coupon-card-subtitle {
  color: #c5d5ff;
}

.coupon-btn {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #0b1220;
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.coupon-section__note {
  color: #c5d5ff;
}

@media (max-width: 768px) {
  .fluid-hero {
    padding: 88px 16px 80px;
  }

  .fluid-hero .hero-shell {
    grid-template-columns: 1fr;
  }

  .fluid-hero .hero-title {
    font-size: clamp(24px, 6.4vw, 32px);
    line-height: 1.2;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .fluid-hero .hero-title .hero-title-part {
    display: inline-block;
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .hero-tagline.hero-tagline--typing {
    width: min(94vw, 460px);
  }

  .hero-tagline-input {
    gap: 10px;
    padding: 12px 14px;
  }

  .hero-tagline--typing .hero-tagline-text {
    flex: 1 1 auto;
    min-width: 0;
    direction: rtl;
    text-align: left;
    text-overflow: clip;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0px, rgba(0, 0, 0, 0.45) 22px, #000 56px, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0px, rgba(0, 0, 0, 0.45) 22px, #000 56px, #000 100%);
    -webkit-mask-mode: alpha;
    mask-mode: alpha;
    animation:
      hero-tagline-type-mobile var(--typing-duration) steps(var(--typing-characters, 20)) 0.35s forwards,
      hero-type-spark var(--typing-duration) steps(var(--typing-characters, 20)) 0.35s forwards;
  }
}

@media (max-width: 520px) {
  .fluid-hero {
    padding: 72px 14px 76px;
  }

  .fluid-hero .hero-title {
    font-size: clamp(22px, 7vw, 28px);
    text-align: center;
  }
}

@keyframes hero-tagline-type-mobile {
  from {
    max-width: 0;
  }
  to {
    max-width: 100%;
  }
}

@keyframes hero-tagline-type {
  from {
    max-width: 0;
  }
  to {
    max-width: calc(var(--typing-characters, 20) * 1ch);
  }
}

@keyframes hero-type-spark {
  0% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    text-shadow:
      0 0 16px rgba(255, 255, 255, 0.45),
      0 0 26px rgba(167, 139, 250, 0.75),
      0 0 36px rgba(37, 99, 235, 0.55);
  }
  100% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes hero-caret-blink {
  0%, 45% {
    opacity: 1;
  }
  55%, 100% {
    opacity: 0;
  }
}

@keyframes hero-sparkle-step {
  0% {
    opacity: 0;
    transform: translate(-10px, -50%) scale(0.5) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(124, 58, 237, 0));
  }
  35% {
    opacity: 1;
    transform: translate(-10px, -50%) scale(1.35) rotate(28deg);
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 24px rgba(124, 58, 237, 0.85));
  }
  100% {
    opacity: 0;
    transform: translate(-10px, -50%) scale(0.6) rotate(64deg);
    filter: drop-shadow(0 0 0 rgba(124, 58, 237, 0));
  }
}

@keyframes hero-signal-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.08), 0 0 22px rgba(37, 99, 235, 0.35);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.05), 0 0 28px rgba(37, 99, 235, 0.55);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.08), 0 0 22px rgba(37, 99, 235, 0.35);
  }
}
