/* Tech direction styles — kinetic, system-driven homepage (Top B) */
/* Scoped to .tech-app — does not affect Top A or other pages */

.tech-app {
  position: relative;
  background: #F4F6F9;
  color: #0B1220;
  font-family: 'Zen Kaku Gothic New', 'Inter Tight', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* === Dot grid background === */
.tech-app .tech-dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(11,18,32,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none; z-index: 0;
}

/* === Hero === */
.tech-app .tech-hero {
  min-height: 100vh;
  padding: 140px clamp(20px, 4vw, 56px) 60px;
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px;
  align-items: center;
  position: relative; z-index: 2;
}
.tech-app .tech-hero-eyebrow {
  font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.16em;
  color: #5C697C; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.tech-app .tech-hero-eyebrow .bracket { color: #22D3EE; }
.tech-app .tech-hero-title {
  font: 700 clamp(40px, 6.4vw, 92px)/1.05 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  letter-spacing: -0.025em;
  margin: 0; color: #0B1220;
}
.tech-app .tech-hero-title .stroke { -webkit-text-stroke: 1.5px #0B1220; color: transparent; }
.tech-app .tech-hero-title .accent { color: #1F5FA8; }
.tech-app .tech-hero-title .blink { display: inline-block; width: 0.2em; height: 0.85em; background: #22D3EE; vertical-align: -0.06em; animation: tech-blink 1s steps(2) infinite; margin-left: 0.06em; }
@keyframes tech-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.tech-app .tech-hero-en {
  font: 500 clamp(18px, 2vw, 26px)/1.2 'Inter Tight', sans-serif;
  color: #2E3A4F;
  letter-spacing: -0.01em;
  margin-top: 24px;
}
.tech-app .tech-hero-sub {
  margin-top: 24px;
  font: 500 clamp(16px, 1.8vw, 22px)/1.7 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  color: #2E3A4F;
  border-left: 2px solid #22D3EE;
  padding-left: 16px;
}
.tech-app .tech-hero-sub > div { display: block; }
.tech-app .tech-hero-lead {
  font: 400 16px/1.7 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  color: #2E3A4F; max-width: 50ch;
  margin-top: 28px;
}
.tech-app .tech-hero-actions { display: flex; gap: 12px; margin-top: 40px; }

/* Cube visual */
.tech-app .tech-cube-stage {
  aspect-ratio: 1/1;
  position: relative;
  perspective: 1200px;
  display: flex; align-items: center; justify-content: center;
}
.tech-app .tech-cube {
  width: 60%; height: 60%;
  position: relative;
  transform-style: preserve-3d;
  animation: tech-cube-spin 24s linear infinite;
}
@keyframes tech-cube-spin {
  from { transform: rotateX(-25deg) rotateY(0deg); }
  to { transform: rotateX(-25deg) rotateY(360deg); }
}
.tech-app .tech-cube .face {
  position: absolute; inset: 0;
  border: 1.5px solid #0B1220;
  background: rgba(244, 246, 249, 0.6);
}
.tech-app .tech-cube .face.front { transform: translateZ(50%); }
.tech-app .tech-cube .face.back  { transform: rotateY(180deg) translateZ(50%); }
.tech-app .tech-cube .face.right { transform: rotateY(90deg) translateZ(50%); }
.tech-app .tech-cube .face.left  { transform: rotateY(-90deg) translateZ(50%); background: rgba(31,95,168,0.18); border-color: #1F5FA8; }
.tech-app .tech-cube .face.top   { transform: rotateX(90deg) translateZ(50%); background: rgba(34,211,238,0.20); border-color: #22D3EE; box-shadow: inset 0 0 24px rgba(34,211,238,0.4); }
.tech-app .tech-cube .face.bottom { transform: rotateX(-90deg) translateZ(50%); }

/* Cube readouts */
.tech-app .tech-cube-readout {
  position: absolute;
  font: 500 10px/1 'JetBrains Mono', ui-monospace, monospace;
  color: #5C697C;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.tech-app .tech-cube-readout .line { width: 40px; height: 1px; background: #5C697C; }
.tech-app .tech-cube-readout.r1 { top: 12%; right: -4%; }
.tech-app .tech-cube-readout.r2 { bottom: 22%; left: -4%; }
.tech-app .tech-cube-readout.r3 { top: 50%; right: 0; }

/* === Marquee === */
.tech-app .tech-marquee {
  border-top: 1px solid #DCE2EB;
  border-bottom: 1px solid #DCE2EB;
  background: #fff;
  overflow: hidden;
  position: relative; z-index: 2;
}
.tech-app .tech-marquee-track {
  display: flex; gap: 64px;
  padding: 22px 0;
  animation: tech-marquee 28s linear infinite;
  white-space: nowrap;
}
@keyframes tech-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tech-app .tech-marquee-item {
  display: flex; align-items: center; gap: 14px;
  font: 600 18px/1 'Inter Tight', sans-serif; color: #0B1220;
  letter-spacing: -0.01em;
}
.tech-app .tech-marquee-item .sep { color: #22D3EE; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.tech-app .tech-marquee-item small { font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace; color: #5C697C; letter-spacing: 0.1em; }

/* === Section base === */
.tech-app .tech-section {
  padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 56px);
  max-width: 1320px; margin: 0 auto;
  position: relative; z-index: 2;
}
.tech-app .tech-section.dark {
  background: #0B1220; color: #E8ECF2;
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.tech-app .tech-section.dark > .inner {
  max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px);
}
.tech-app .tech-section-head { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: end; margin-bottom: 56px; }
.tech-app .tech-section-num { font: 700 64px/1 'JetBrains Mono', ui-monospace, monospace; color: #1F5FA8; letter-spacing: -0.04em; }
.tech-app .tech-section-num .slash { color: #22D3EE; }
.tech-app .tech-section-title { font: 700 clamp(34px, 4.6vw, 60px)/1.05 'Inter Tight', sans-serif; color: #0B1220; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 24ch; }
.tech-app .tech-section.dark .tech-section-title { color: #E8ECF2; }
.tech-app .tech-section-title .jp { display: block; font: 700 clamp(24px, 2.8vw, 34px)/1.2 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; color: #5C697C; margin-bottom: 16px; letter-spacing: -0.01em; }
.tech-app .tech-section.dark .tech-section-title .jp { color: #97A2B1; }

/* === Process / pinned timeline === */
.tech-app .tech-process {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.tech-app .tech-process::before {
  content: ''; position: absolute; top: 30px; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(to right, #5C697C 0 8px, transparent 8px 14px);
  z-index: 0;
}
.tech-app .tech-step {
  background: #fff; border: 1px solid #DCE2EB; border-radius: 10px;
  padding: 28px 24px;
  position: relative; z-index: 1;
  transition: all 240ms cubic-bezier(0.4,0,0.2,1);
}
.tech-app .tech-step:hover { border-color: #22D3EE; transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(11,18,32,0.18); }
.tech-app .tech-step .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid #1F5FA8;
  margin-bottom: 18px;
  position: relative;
}
.tech-app .tech-step.live .dot { background: #22D3EE; border-color: #22D3EE; box-shadow: 0 0 0 4px rgba(34,211,238,0.2); }
.tech-app .tech-step .lbl { font: 500 10px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.14em; color: #5C697C; text-transform: uppercase; margin-bottom: 6px; }
.tech-app .tech-step h3 { font: 700 22px/1.2 'Inter Tight', sans-serif; margin: 0 0 8px; color: #0B1220; letter-spacing: -0.01em; }
.tech-app .tech-step p { font: 400 14px/1.6 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; color: #2E3A4F; margin: 0; }
.tech-app .tech-step .meta { display: flex; gap: 8px; margin-top: 18px; }
.tech-app .tech-step .tag { font: 500 10px/1 'JetBrains Mono', ui-monospace, monospace; padding: 5px 7px; border-radius: 4px; background: #E8ECF2; color: #2E3A4F; letter-spacing: 0.06em; }

/* === KPIs === */
.tech-app .tech-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid rgba(232,236,242,0.18); border-radius: 12px; overflow: hidden; }
.tech-app .tech-kpi { padding: 36px 28px; border-right: 1px solid rgba(232,236,242,0.18); position: relative; overflow: hidden; }
.tech-app .tech-kpi:last-child { border-right: none; }
.tech-app .tech-kpi::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, #22D3EE, transparent);
  transform: translateX(-100%);
  animation: tech-kpi-scan 4s linear infinite;
}
.tech-app .tech-kpi:nth-child(2)::after { animation-delay: 1s; }
.tech-app .tech-kpi:nth-child(3)::after { animation-delay: 2s; }
.tech-app .tech-kpi:nth-child(4)::after { animation-delay: 3s; }
@keyframes tech-kpi-scan { 0% { transform: translateX(-100%); } 50%, 100% { transform: translateX(100%); } }
.tech-app .tech-kpi .lbl { font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.14em; color: #97A2B1; text-transform: uppercase; }
.tech-app .tech-kpi .num { font: 700 clamp(48px, 6vw, 84px)/1 'JetBrains Mono', ui-monospace, monospace; color: #E8ECF2; letter-spacing: -0.03em; margin: 18px 0 6px; }
.tech-app .tech-kpi .num small { font: 700 18px/1 'JetBrains Mono', ui-monospace, monospace; color: #22D3EE; }
.tech-app .tech-kpi .sub { font: 400 13px/1.4 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; color: #97A2B1; }

/* === Network grid === */
.tech-app .tech-network {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.tech-app .tech-site {
  background: #fff; border: 1px solid #DCE2EB; border-radius: 10px;
  padding: 24px;
  transition: all 240ms cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.tech-app .tech-site:hover { border-color: #1F5FA8; box-shadow: 0 8px 24px -8px rgba(11,18,32,0.18); }
.tech-app .tech-site .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tech-app .tech-site .id { font: 500 10px/1 'JetBrains Mono', ui-monospace, monospace; color: #5C697C; letter-spacing: 0.12em; }
.tech-app .tech-site .status { font: 500 10px/1 'JetBrains Mono', ui-monospace, monospace; color: #10B981; display: inline-flex; align-items: center; gap: 6px; }
.tech-app .tech-site .status::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: #10B981; box-shadow: 0 0 6px #10B981; }
.tech-app .tech-site h4 { font: 700 22px/1.2 'Inter Tight', sans-serif; margin: 0 0 4px; color: #0B1220; letter-spacing: -0.01em; }
.tech-app .tech-site .en { font: 500 12px/1 'JetBrains Mono', ui-monospace, monospace; color: #5C697C; letter-spacing: 0.1em; text-transform: uppercase; }
.tech-app .tech-site .addr { font: 400 13px/1.5 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; color: #2E3A4F; margin-top: 16px; padding-top: 16px; border-top: 1px dashed #DCE2EB; }
.tech-app .tech-site .arrow { margin-top: 16px; font: 600 12px/1 'Inter Tight', sans-serif; color: #1F5FA8; display: inline-flex; align-items: center; gap: 6px; }

/* === CTA strip === */
.tech-app .tech-cta-strip {
  background: linear-gradient(135deg, #0B1220 0%, #163F70 100%);
  color: #E8ECF2; border-radius: 16px;
  padding: 64px clamp(28px, 5vw, 64px);
  margin: 0 clamp(20px, 4vw, 56px) 64px;
  max-width: 1320px;
  display: grid; grid-template-columns: 1.4fr auto; gap: 48px; align-items: center;
  position: relative; overflow: hidden; z-index: 2;
}
.tech-app .tech-cta-strip::before {
  content: ''; position: absolute; right: -100px; top: -100px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(34,211,238,0.4), transparent 60%);
  filter: blur(40px);
}
.tech-app .tech-cta-strip h2 { font: 700 clamp(28px, 3.4vw, 44px)/1.15 'Inter Tight', sans-serif; margin: 0 0 12px; letter-spacing: -0.02em; }
.tech-app .tech-cta-strip p { font: 400 15px/1.6 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; color: #97A2B1; max-width: 50ch; margin: 0; }

/* === Footer === */
.tech-app .tech-footer { background: #060912; color: #97A2B1; padding: 80px clamp(20px, 4vw, 56px) 32px; position: relative; z-index: 2; }
.tech-app .tech-footer-inner { max-width: 1320px; margin: 0 auto; }
.tech-app .tech-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(232,236,242,0.10); }
.tech-app .tech-footer h4 { font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace; color: #22D3EE; margin: 0 0 16px; letter-spacing: 0.16em; text-transform: uppercase; }
.tech-app .tech-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tech-app .tech-footer a { color: #E8ECF2; text-decoration: none; font: 400 13px/1 'Inter Tight', sans-serif; }
.tech-app .tech-footer a:hover { color: #22D3EE; }
.tech-app .tech-footer-mark { font: 700 24px/1 'Inter Tight', sans-serif; color: #fff; margin: 24px 0 12px; letter-spacing: -0.02em; }
.tech-app .tech-footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace; color: #5C697C; letter-spacing: 0.04em; }
.tech-app .tech-footer-bottom .v { color: #22D3EE; }

/* Buttons */
.tech-app .tech-btn { font: 600 13px/1 'Inter Tight', sans-serif; padding: 14px 22px; border-radius: 6px; border: 1px solid #0B1220; background: #0B1220; color: #fff; cursor: pointer; transition: all 120ms cubic-bezier(0.4,0,0.2,1); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tech-app .tech-btn:hover { background: #163F70; border-color: #163F70; }
.tech-app .tech-btn.cyan { background: #22D3EE; color: #0B1220; border-color: #22D3EE; box-shadow: 0 0 24px -4px rgba(34,211,238,0.55); }
.tech-app .tech-btn.cyan:hover { background: #67e3f1; }
.tech-app .tech-btn.ghost { background: transparent; color: #0B1220; border-color: #DCE2EB; }
.tech-app .tech-btn.ghost.dark { color: #E8ECF2; border-color: rgba(232,236,242,0.24); }
.tech-app .tech-btn.ghost:hover { border-color: #0B1220; }
.tech-app .tech-btn.ghost.dark:hover { border-color: #22D3EE; color: #22D3EE; }

/* Reveal */
.tech-app .tech-reveal { opacity: 0; transform: translateY(20px); transition: opacity 480ms cubic-bezier(0.4,0,0.2,1), transform 480ms cubic-bezier(0.4,0,0.2,1); }
.tech-app .tech-reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .tech-app .tech-hero { grid-template-columns: 1fr; padding-top: 110px; }
  .tech-app .tech-cube-stage { display: none; }
  .tech-app .tech-process, .tech-app .tech-kpis, .tech-app .tech-network { grid-template-columns: 1fr 1fr; }
  .tech-app .tech-section-head { grid-template-columns: 1fr; }
  .tech-app .tech-section-num { font-size: 40px; }
  .tech-app .tech-cta-strip { grid-template-columns: 1fr; }
  .tech-app .tech-footer-top { grid-template-columns: 1fr 1fr; }
}
