/* CSS Reset and Variables */
:root {
  /* Strictly limited color palette */
  --hue: 206;
  --blue-base: hsl(var(--hue), 74%, 72%); /* Exact logo blue color */
  --white: #ffffff;
  --black-100: #000000;
  
  /* Gray tones created strictly via opacity of black to respect the palette */
  --black-80: rgba(0, 0, 0, 0.8);
  --black-60: rgba(0, 0, 0, 0.6);
  --black-40: rgba(0, 0, 0, 0.4);
  --black-15: rgba(0, 0, 0, 0.15);
  --black-5: rgba(0, 0, 0, 0.05);

  /* Blue-based grays/opacities (never introducing different hues) */
  --blue-hover: hsl(var(--hue), 74%, 60%); /* darker blue */
  --blue-bg-light: hsla(var(--hue), 74%, 72%, 0.08);

  /* Animation Easings */
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo-in-out: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-natural-bloom: cubic-bezier(0.76, 0, 0.1, 1);
  
  /* Spacing */
  --section-padding: 160px;
  --content-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--white);
  color: var(--black-100);
  line-height: 1.8;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
  height: 100vh;
}

/* Intro Overlay Styling */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--blue-base);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: all;
  transition: opacity 0.8s var(--ease-expo-out), visibility 0.8s var(--ease-expo-out);
}

#intro-white-curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  opacity: 0;
  z-index: 10001;
  transition: opacity 1.8s var(--ease-natural-bloom);
}

#intro-flower-container {
  position: relative;
  z-index: 10002;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#intro-flower {
  width: 100%;
  height: auto;
  /* CSS Filter to make the blue logo pure white */
  filter: brightness(0) invert(1);
  transform: scale(0) rotate(-45deg);
  transform-origin: center;
}

#intro-logo-container {
  position: absolute;
  z-index: 10003;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s var(--ease-expo-out);
}

#intro-wordmark {
  width: 320px;
  height: auto;
}

/* Intro Active State Animations */
#intro-overlay.anim-bloom #intro-flower {
  animation: bloom-motion 3.8s var(--ease-natural-bloom) forwards;
}

#intro-overlay.anim-bloom #intro-white-curtain {
  opacity: 1;
}

#intro-overlay.anim-logo #intro-logo-container {
  opacity: 1;
}

#intro-overlay.anim-logo-fade #intro-logo-container {
  opacity: 0;
}

#intro-overlay.anim-fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes bloom-motion {
  0% {
    transform: scale(0) rotate(-45deg);
  }
  30% {
    transform: scale(1.2) rotate(15deg);
  }
  100% {
    transform: scale(45) rotate(90deg);
  }
}

/* Typography & General Classes */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black-100);
}

h1 {
  font-size: 56px;
  line-height: 1.15;
}

h2 {
  font-size: 32px;
  line-height: 1.3;
}

h3 {
  font-size: 22px;
}

p {
  color: var(--black-40); /* Default paragraph text color is lighter */
}

/* Strict Text Emphasis Rule */
p strong {
  color: var(--black-100);
  font-weight: 700;
}

.section-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-title {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black-100);
  position: relative;
  margin-bottom: 60px;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--blue-base);
  margin-top: 12px;
}

.text-lead {
  font-size: 20px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--black-40);
  margin-bottom: 24px;
}

.text-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--black-40);
  margin-bottom: 20px;
}

/* Buttons and Clickable Elements */
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--blue-base);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 4px;
  transition: background-color 0.3s var(--ease-expo-out), transform 0.2s var(--ease-expo-out);
}

.btn-solid:hover {
  background-color: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-solid:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--black-100);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  padding: 11px 28px;
  border: 1px solid var(--black-100);
  border-radius: 4px;
  transition: background-color 0.3s var(--ease-expo-out), color 0.3s var(--ease-expo-out), transform 0.2s var(--ease-expo-out);
}

.btn-outline:hover {
  background-color: var(--black-100);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--black-5);
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-flower-icon {
  height: 28px;
  width: auto;
}

.header-wordmark {
  height: 16px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  text-decoration: none;
  font-size: 14px;
  color: var(--black-60);
  font-weight: 700;
  transition: color 0.3s var(--ease-expo-out);
}

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

.header-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-trigger {
  display: none;
  background: none;
  border: none;
  color: var(--black-100);
  cursor: pointer;
}

/* Mobile Nav Overlay */
#mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-expo-out), visibility 0.4s var(--ease-expo-out);
}

#mobile-nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.menu-close {
  position: absolute;
  top: 24px;
  right: 40px;
  background: none;
  border: none;
  color: var(--black-100);
  cursor: pointer;
}

.menu-close span, .menu-trigger span {
  font-size: 32px;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.nav-mobile a {
  text-decoration: none;
  font-size: 24px;
  color: var(--black-60);
  font-weight: 700;
  transition: color 0.3s var(--ease-expo-out);
}

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

.mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  width: 240px;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
  background-color: var(--white);
}

.hero-inner {
  text-align: center;
  max-width: 900px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-flower-wrapper {
  width: 100px;
  height: 100px;
  margin-bottom: 40px;
}

.hero-flower {
  width: 100%;
  height: auto;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-base);
  margin-bottom: 48px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  color: var(--black-40);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Reality Section */
#reality {
  padding: var(--section-padding) 0;
  border-bottom: 1px solid var(--black-5);
}

.reality-highlight {
  margin-bottom: 80px;
}

/* Grid on the same surface (NO cards) */
.reality-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.stat-item {
  border-top: 1px solid var(--black-15);
  padding-top: 32px;
}

.stat-number {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: var(--blue-base);
  margin-bottom: 12px;
}

.stat-text {
  font-size: 16px;
  line-height: 1.8;
}

.limits-divider {
  height: 1px;
  background-color: var(--black-5);
  margin: 80px 0;
}

.subsection-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 48px;
}

/* Limits layout on the surface (NO cards, plain grid) */
.limits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.limit-item {
  border-left: 2px solid var(--black-100);
  padding-left: 24px;
}

.limit-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.limit-desc {
  font-size: 15px;
  line-height: 1.7;
}

/* How It Works Section */
#how-it-works {
  padding: var(--section-padding) 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--black-5);
}

.how-text-block {
  max-width: 800px;
  margin-bottom: 80px;
}

/* Pipeline Flow styling (NO cards, clean surface flow) */
.pipeline-container {
  position: relative;
  width: 100%;
  margin: 60px 0;
  padding: 40px 0;
}

.pipeline-line {
  position: absolute;
  top: 60px;
  left: 80px;
  right: 80px;
  height: 2px;
  background-color: var(--black-10);
  z-index: 1;
}

.pipeline-flow-dot {
  position: absolute;
  top: -2px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--blue-base);
  box-shadow: 0 0 8px var(--blue-base);
  animation: pipeline-flow 5s infinite linear;
}

@keyframes pipeline-flow {
  0% { left: 0%; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.pipeline-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  position: relative;
  z-index: 2;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  text-align: center;
}

.pipeline-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--black-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pipeline-node span {
  font-size: 20px;
  color: var(--black-100);
}

.pipeline-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--black-100);
  margin-bottom: 4px;
}

.pipeline-sublabel {
  font-size: 12px;
  color: var(--black-40);
}

.pipeline-connector {
  flex: 1;
  padding: 10px;
  text-align: center;
  margin-top: 10px;
}

.pipeline-connector-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-base);
  background-color: var(--white);
  padding: 4px 12px;
  border: 1px solid var(--blue-base);
  border-radius: 20px;
  display: inline-block;
}

/* Why Blesc Section */
#why-blesc {
  padding: var(--section-padding) 0;
  border-bottom: 1px solid var(--black-5);
}

/* Grid on surface (NO cards) */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 60px;
}

.benefit-item {
  border-top: 1px solid var(--black-15);
  padding-top: 32px;
}

.benefit-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.benefit-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-base);
  font-family: monospace;
}

.benefit-title {
  font-size: 20px;
  font-weight: 700;
}

.benefit-text {
  font-size: 15px;
  line-height: 1.7;
}

/* Technology Section */
#technology {
  padding: var(--section-padding) 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--black-5);
}

.tech-intro {
  max-width: 800px;
  margin-bottom: 80px;
}

/* Ontology Knowledge Graph styling on surface */
.ontology-diagram-wrapper {
  margin-top: 80px;
}

.diagram-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black-60);
  margin-bottom: 40px;
  text-align: center;
}

.ontology-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.ontology-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  width: 200px;
  border: 1px solid var(--black-100);
  background-color: var(--white);
}

.ontology-node span.material-symbols-outlined {
  font-size: 32px;
}

.ontology-node .node-label {
  font-size: 15px;
  font-weight: 700;
}

.ontology-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--black-40);
  gap: 4px;
}

.ontology-arrow span {
  font-size: 24px;
}

.arrow-label {
  font-size: 12px;
  font-weight: 700;
}

/* Sequence scanner pulse animations */
@keyframes pulse-sleep {
  0%, 100% { border-color: var(--black-100); color: var(--black-100); }
  10%, 30% { border-color: var(--blue-base); color: var(--blue-base); }
}

@keyframes pulse-cognitive {
  0%, 100% { border-color: var(--black-100); color: var(--black-100); }
  30%, 50% { border-color: var(--blue-base); color: var(--blue-base); }
}

@keyframes pulse-depress {
  0%, 100% { border-color: var(--black-100); color: var(--black-100); }
  50%, 70% { border-color: var(--blue-base); color: var(--blue-base); }
}

#node-sleep {
  animation: pulse-sleep 6s infinite;
}

#node-cognitive {
  animation: pulse-cognitive 6s infinite;
}

#node-depress {
  animation: pulse-depress 6s infinite;
}

/* Philosophy Section */
#philosophy {
  padding: var(--section-padding) 0;
  border-bottom: 1px solid var(--black-5);
}

.philosophy-content {
  max-width: 900px;
}

.philosophy-lead {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black-100);
  margin-bottom: 48px;
}

.philosophy-story {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.philosophy-story .text-body {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 0;
}

/* Team Section (NO cards, plain text on same surface) */
#team {
  padding: var(--section-padding) 0;
  border-bottom: 1px solid var(--black-5);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 60px;
  row-gap: 48px;
}

.team-member {
  border-top: 1px solid var(--black-15);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
}

.member-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-base);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.member-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--black-100);
  margin-bottom: 2px;
}

.member-en {
  font-size: 13px;
  color: var(--black-40);
  font-family: sans-serif;
}

/* Contact CTA Section */
#contact {
  padding: var(--section-padding) 0;
  text-align: center;
  background-color: var(--blue-bg-light);
}

.contact-desc {
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 16px;
}

.contact-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Footer */
footer {
  background-color: var(--white);
  padding: 80px 0;
  border-top: 1px solid var(--black-5);
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  margin-bottom: 32px;
}

.footer-wordmark-img {
  height: 28px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--black-60);
  transition: color 0.3s var(--ease-expo-out);
}

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

.footer-copyright {
  font-size: 13px;
  color: var(--black-40);
}

/* Responsive Design Rules */
@media (max-width: 992px) {
  :root {
    --section-padding: 100px;
  }
  
  h1 {
    font-size: 40px;
  }
  
  .limits-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .team-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }
  
  .nav-desktop, .header-ctas {
    display: none;
  }
  
  .menu-trigger {
    display: block;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .reality-stats-grid, .benefits-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .pipeline-line {
    display: none;
  }
  
  .pipeline-steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  
  .pipeline-connector {
    margin: 8px 0;
  }
  
  .ontology-flow {
    flex-direction: column;
    gap: 20px;
  }
  
  .ontology-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
  
  .contact-ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .contact-ctas a {
    width: 100%;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
