/* NTT DATA corporate web layer — tokens: static/brand/brand-tokens.json
   Skill: .cursor/skills/nttdata-brand-guideline/SKILL.md */

:root {
  --ntt-future-blue: #0072bc;
  --ntt-future-blue-50: #19a3fc;
  --ntt-future-blue-150: #005b96;
  --ntt-smart-navy: #070f26;
  --ntt-turquoise: #00dfed;
  --ntt-green: #00cb5d;
  --ntt-text-grey: #2e404d;
  --ntt-grey-50: #e8e8e8;
  --ntt-yellow: #ffc400;
  --ntt-font-sans: 'Noto Sans', Arial, system-ui, sans-serif;
  --ntt-font-serif: 'Noto Serif', Georgia, serif;
}

body.app-ready,
body.login-open {
  font-family: var(--ntt-font-sans);
}

.ntt-brand-logo {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.ntt-brand-logo--login {
  max-width: 280px;
  margin-bottom: 0.35rem;
}

.ntt-brand-logo--rail {
  max-width: 168px;
  margin-bottom: 0.45rem;
}

.login-brand--ntt {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.login-brand--ntt h1 {
  font-family: var(--ntt-font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.login-brand--ntt p {
  color: var(--ntt-grey-50);
  font-size: 0.92rem;
}

.login-overlay {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 114, 188, 0.35), transparent 60%),
    radial-gradient(900px 500px at 90% 110%, rgba(0, 223, 237, 0.18), transparent 55%),
    linear-gradient(160deg, var(--ntt-smart-navy) 0%, #0a1838 45%, #051024 100%);
}

.login-shell {
  border: 1px solid rgba(0, 114, 188, 0.35);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-primary,
.app-mega .btn-primary {
  background: linear-gradient(135deg, var(--ntt-future-blue) 0%, var(--ntt-future-blue-50) 100%);
  border-color: rgba(25, 163, 252, 0.5);
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(0, 114, 188, 0.35);
}

.glass-bg::before {
  background: var(--ntt-future-blue) !important;
}

.glass-bg::after {
  background: var(--ntt-turquoise) !important;
}

.app-mega .nav-item.active {
  background: rgba(0, 114, 188, 0.16);
  border-color: rgba(0, 223, 237, 0.35);
  color: var(--ntt-turquoise);
}

.app-mega .sidebar-header h1 {
  background: linear-gradient(90deg, #fff 20%, var(--ntt-turquoise));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Hub WOW ── */
.ntt-hub-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 114, 188, 0.35);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(0, 114, 188, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(0, 223, 237, 0.12), transparent 50%),
    linear-gradient(145deg, rgba(7, 15, 38, 0.95) 0%, rgba(10, 24, 56, 0.88) 100%);
  box-shadow: var(--shadow-lg);
}

.ntt-hub-shell::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 420px;
  height: 420px;
  background: conic-gradient(from 210deg, transparent, rgba(0, 223, 237, 0.15), transparent 60%);
  pointer-events: none;
  animation: ntt-glow-spin 18s linear infinite;
}

@keyframes ntt-glow-spin {
  to { transform: rotate(360deg); }
}

.ntt-hub-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.ntt-hub-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ntt-hub-brand-row img.ntt-brand-logo--hero {
  width: min(220px, 42vw);
  height: auto;
}

.ntt-pipe-divider {
  width: 3px;
  height: 42px;
  object-fit: contain;
  opacity: 0.85;
}

.ntt-hub-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ntt-turquoise);
  font-weight: 600;
}

.ntt-hub-title {
  font-family: var(--ntt-font-serif);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0.15rem 0 0.35rem;
}

.ntt-hub-subtitle {
  max-width: 52ch;
  color: var(--ntt-grey-50);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ntt-kpi-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.35rem;
}

.ntt-kpi {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.ntt-kpi-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.ntt-kpi-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.15rem;
}

.ntt-kpi-value.is-live {
  color: var(--ntt-green);
}

.ntt-kpi-value.is-warn {
  color: var(--ntt-yellow);
}

.ux-flow-card::before {
  background: linear-gradient(90deg, var(--ntt-future-blue), var(--ntt-turquoise)) !important;
}

.ux-flow-card .build-icon {
  background: rgba(0, 114, 188, 0.18) !important;
  color: var(--ntt-future-blue-50) !important;
}

.ux-flow-card .run-icon {
  background: rgba(0, 203, 93, 0.15) !important;
  color: var(--ntt-green) !important;
}

.ux-flow-card .sim-icon {
  background: rgba(0, 223, 237, 0.12) !important;
  color: var(--ntt-turquoise) !important;
}

.ux-flow-card:hover {
  border-color: rgba(0, 114, 188, 0.45) !important;
  box-shadow: 0 12px 40px rgba(0, 114, 188, 0.18) !important;
}

.ux-flow-action {
  color: var(--ntt-turquoise) !important;
}

@media (prefers-reduced-motion: reduce) {
  .ntt-hub-shell::after {
    animation: none;
  }
}
