/* ━━ TOKENS ━━ */
:root {
  --white:    #ffffff;
  --snow:     #f8f5f7;
  --pink-lt:  #fdf0f5;
  --mg:       #c8206e;   /* magenta — brand primary */
  --pu:       #4a2060;   /* purple  — brand secondary */
  --ink:      #18111a;   /* near-black text */
  --mid:      #5a4860;   /* mid-tone text */
  --pale:     #9a8898;   /* subdued text */
  --rule:     rgba(200,32,110,0.14);
  --shadow:   0 2px 24px rgba(200,32,110,0.07);
  --r:        4px;
}

/* ━━ RESET ━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ━━ TYPE SCALE ━━ */
.t-display {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.t-display .accent {
  font-weight: 300;
  background: linear-gradient(135deg, var(--mg) 0%, var(--pu) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.t-h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.t-h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.t-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 2;
  color: var(--mid);
}
.t-small {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--pale);
}
.t-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mg);
}

/* ━━ LAYOUT ━━ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 5vw;
}
.section {
  padding: 120px 0;
}
.section--lg {
  padding: 160px 0;
}

/* ━━ REVEAL ━━ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1),
              transform 0.85s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.36s; }

/* ━━ NAV ━━ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 5vw;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.0);
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.stuck {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  padding: 16px 5vw;
  box-shadow: 0 1px 0 var(--rule);
}
.nav-logo img { height: 34px; width: auto; }
.nav-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--mg), var(--pu));
  padding: 11px 28px;
  border-radius: var(--r);
  transition: opacity 0.25s;
}
.nav-btn:hover { opacity: 0.85; }
.nav.stuck .nav-btn { color: var(--white); }

/* ━━ HERO ━━ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(200,32,110,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 15% 70%, rgba(74,32,96,0.04) 0%, transparent 60%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--rule);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 48px;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mg), var(--pu));
}
.hero-cta-row {
  display: flex; align-items: center; gap: 20px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.btn-primary {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
  background: linear-gradient(135deg, var(--mg), var(--pu));
  padding: 15px 36px;
  border-radius: var(--r);
  transition: opacity 0.25s, transform 0.25s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-secondary {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 400;
  color: var(--mid);
  padding: 15px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.btn-secondary:hover { color: var(--mg); border-color: var(--mg); }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: fadeUp 1s 2s forwards;
}
.hero-scroll-label { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pale); }
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--mg), transparent); animation: pulse 2.2s infinite; }

/* ━━ DIVIDER ━━ */
.rule { height: 1px; background: var(--rule); }

/* ━━ STRENGTHS ━━ */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}
.strength {
  background: var(--white);
  padding: 48px 40px;
  position: relative;
}
.strength::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--mg), var(--pu));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.strength.in::before { transform: scaleX(1); }
.strength-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pale); margin-bottom: 24px;
}
.strength-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem; font-weight: 500; line-height: 1.5;
  color: var(--ink); margin-bottom: 16px;
}
.strength-body { font-size: 0.9rem; line-height: 1.9; color: var(--mid); }

/* ━━ SERVICES ━━ */
.services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 60px 52px;
  position: relative;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(200,32,110,0.3);
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--mg), var(--pu));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 48px; height: 48px;
  background: var(--pink-lt);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 36px;
  font-size: 1.4rem;
}
.service-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem; font-weight: 300;
  line-height: 1.3; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 20px;
}
.service-body { font-size: 0.92rem; line-height: 1.95; color: var(--mid); margin-bottom: 32px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tag {
  font-size: 0.72rem; font-weight: 400;
  color: var(--mg);
  border: 1px solid rgba(200,32,110,0.25);
  padding: 5px 12px;
  border-radius: 100px;
}

/* ━━ FULL BLOOM APPS ━━ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.app-card {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 60px 52px;
  position: relative;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.app-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(200,32,110,0.3);
}
.app-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--mg), var(--pu));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.app-card:hover::after { transform: scaleX(1); }
.app-btn {
  display: inline-block;
  margin-top: 8px;
}

/* ━━ AI MONITOR — SIGNATURE ━━ */
.ai-section {
  background: var(--ink);
  padding: 120px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.ai-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(200,32,110,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 60%, rgba(74,32,96,0.1) 0%, transparent 55%);
}
.ai-inner { position: relative; z-index: 1; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ai-tag { color: rgba(200,32,110,0.9); }
.ai-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300; line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 28px;
}
.ai-body { font-size: 0.95rem; line-height: 2.0; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.ai-points { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.ai-point { display: flex; align-items: flex-start; gap: 14px; }
.ai-point-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mg), var(--pu));
  margin-top: 8px; flex-shrink: 0;
}
.ai-point-text { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.75); }

/* AI TERMINAL — signature element */
.ai-terminal {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Inter', 'Courier New', monospace;
  font-size: 0.75rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.terminal-bar {
  background: rgba(255,255,255,0.07);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot-r { background: #ff5f56; }
.t-dot-y { background: #ffbd2e; }
.t-dot-g { background: #27c93f; }
.terminal-label { font-size: 0.65rem; color: rgba(255,255,255,0.35); margin-left: auto; letter-spacing: 0.1em; }
.terminal-body { padding: 24px 20px; display: flex; flex-direction: column; gap: 7px; min-height: 260px; }
.t-line { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.t-line .t-time { color: rgba(255,255,255,0.25); flex-shrink: 0; font-size: 0.68rem; }
.t-pass { color: #27c93f; }
.t-warn { color: #ffbd2e; }
.t-info { color: rgba(255,255,255,0.55); }
.t-score {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(39,201,63,0.08);
  border: 1px solid rgba(39,201,63,0.2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.t-score-label { color: rgba(255,255,255,0.5); font-size: 0.7rem; }
.t-score-num {
  font-size: 1.1rem; font-weight: 500;
  color: #27c93f;
  font-variant-numeric: tabular-nums;
}
.t-cursor { display: inline-block; width: 8px; height: 14px; background: var(--mg); animation: blink 1.1s step-end infinite; vertical-align: middle; }

/* ━━ FLOW ━━ */
.flow-list { display: flex; flex-direction: column; }
.flow-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.flow-item:last-child { border-bottom: none; }
.flow-step {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pale); padding-top: 5px;
}
.flow-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem; font-weight: 500;
  color: var(--ink); margin-bottom: 12px;
}
.flow-body { font-size: 0.9rem; line-height: 1.9; color: var(--mid); }
.flow-ai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 500;
  color: var(--mg);
  background: var(--pink-lt);
  border: 1px solid rgba(200,32,110,0.2);
  padding: 4px 10px; border-radius: 100px;
  margin-top: 10px;
}

/* ━━ CTA ━━ */
.cta-section {
  background: linear-gradient(135deg, var(--mg) 0%, var(--pu) 100%);
  padding: 100px 0;
  text-align: center;
}
.cta-section .t-label { color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.cta-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 16px;
}
.cta-sub { font-size: 0.95rem; color: rgba(255,255,255,0.7); margin-bottom: 44px; line-height: 1.8; }
.btn-white {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mg);
  background: var(--white);
  padding: 16px 48px; border-radius: var(--r);
  transition: opacity 0.25s, transform 0.25s;
}
.btn-white:hover { opacity: 0.92; transform: translateY(-1px); }
.cta-note { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 16px; }

/* ━━ FOOTER ━━ */
.footer {
  background: var(--white);
  padding: 48px 5vw;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap; gap: 20px;
}
.footer-logo img { height: 26px; width: auto; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 0.78rem; color: var(--pale); transition: color 0.25s; }
.footer-links a:hover { color: var(--mg); }
.footer-copy { font-size: 0.72rem; color: var(--pale); }

/* ━━ ANIMATIONS ━━ */
@keyframes fadeUp { to { opacity: 1; } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

/* ━━ RESPONSIVE ━━ */
@media (max-width: 800px) {
  .strengths-grid { grid-template-columns: 1fr; }
  .services-split { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; gap: 48px; }
  .flow-item { grid-template-columns: 80px 1fr; gap: 20px; }
  .footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .section, .section--lg { padding: 80px 0; }
  .service-card { padding: 40px 32px; }
  .app-card { padding: 40px 32px; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-scroll-line { animation: none; }
}
