:root {
  --blue: #0537ff;
  --blue-2: #0029d8;
  --ink: #090a12;
  --muted: #667085;
  --soft: #f5f7fb;
  --soft-2: #eef2ff;
  --line: #e5e8f0;
  --white: #fff;
  --radius: 28px;
  --shadow: 0 24px 70px rgba(9, 10, 18, .10);
  --shadow-blue: 0 24px 70px rgba(5, 55, 255, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 12%, rgba(5, 55, 255, .08), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(5, 55, 255, .08), transparent 22rem),
    linear-gradient(90deg, rgba(9,10,18,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(9,10,18,.035) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 74px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 232, 240, .78);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; }
.brand img { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); }
.nav { display: flex; gap: 26px; color: #343846; font-size: 14px; font-weight: 650; }
.nav a { opacity: .78; transition: .2s ease; }
.nav a:hover { color: var(--blue); opacity: 1; }
.nav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 4px 4px 0 var(--blue);
  background: var(--white);
}

.section-pad { padding: 100px max(28px, calc((100vw - 1180px) / 2)); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
  font-weight: 900;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); display: inline-block; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(44px, 5.55vw, 72px);
  line-height: .93;
  letter-spacing: -.075em;
  margin-bottom: 28px;
  max-width: 700px;
}
h2 {
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: .98;
  letter-spacing: -.06em;
  margin-bottom: 20px;
}
h3 { font-size: 20px; letter-spacing: -.035em; margin-bottom: 8px; }
p { color: var(--muted); }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(380px, .82fr);
  align-items: center;
  gap: 64px;
  padding-top: 74px;
}
.hero-lede { font-size: 22px; max-width: 720px; color: #475467; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 900; letter-spacing: -.02em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--blue); color: white; box-shadow: 0 18px 40px rgba(5,55,255,.22); }
.button.ghost { border: 1px solid var(--line); background: white; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span {
  padding: 8px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line);
  color: #343846; font-size: 13px; font-weight: 750;
}

.hero-art { position: relative; min-height: 640px; }
.blue-frame {
  position: absolute; inset: 0 0 auto auto; width: min(470px, 100%); border-radius: 36px; overflow: hidden;
  background: var(--blue); box-shadow: var(--shadow-blue); border: 1px solid rgba(5,55,255,.28);
}
.blue-frame img { width: 100%; aspect-ratio: 0.92; object-fit: cover; object-position: center top; }
.blue-frame::after {
  content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 24px; pointer-events: none;
}
.floating-card {
  position: absolute; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px;
}
.card-terminal { left: -10px; bottom: 142px; font-size: 13px; }
.card-memory { right: 22px; bottom: 52px; display: grid; gap: 2px; min-width: 220px; }
.card-memory strong { color: var(--blue); }
.card-memory span { color: var(--muted); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; margin-right: 8px; }
.dot.blue { background: var(--blue); }

.strip { padding: 86px 28px; background: var(--ink); color: white; }
.strip-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.strip-kicker { color: #9db2ff; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; }
.strip h2 { margin-top: 16px; color: white; }
.strip p { font-size: 20px; color: #c9d2ee; }

.section-heading { max-width: 860px; margin-bottom: 44px; }
.section-heading p:not(.eyebrow) { font-size: 20px; }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cap-card {
  min-height: 230px; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.82); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(9,10,18,.035); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(5,55,255,.35); }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--soft-2); color: var(--blue); font-size: 23px; margin-bottom: 20px; }
.cap-card p { font-size: 15px; }

.action-loop { display: grid; grid-template-columns: .86fr 1fr; gap: 70px; align-items: center; background: linear-gradient(180deg, white, #f8faff); }
.loop-copy p:not(.eyebrow) { font-size: 20px; }
.loop-visual { position: relative; min-height: 540px; }
.loop-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 190px; height: 190px; border-radius: 999px; background: white; border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.loop-core img { width: 108px; border-radius: 999px; }
.loop-core span { position: absolute; bottom: 28px; font-weight: 950; color: var(--blue); }
.loop-visual::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 390px; height: 390px; transform: translate(-50%, -50%);
  border-radius: 999px; border: 2px dashed rgba(5,55,255,.32);
}
.loop-node {
  position: absolute; width: 150px; height: 150px; border-radius: 999px; background: var(--blue); color: white;
  display: grid; place-items: center; text-align: center; box-shadow: var(--shadow-blue);
}
.loop-node strong { font-size: 34px; line-height: 1; }
.loop-node span { font-weight: 900; }
.n1 { left: 50%; top: 0; transform: translateX(-50%); }
.n2 { right: 0; top: 50%; transform: translateY(-50%); }
.n3 { left: 50%; bottom: 0; transform: translateX(-50%); }
.n4 { left: 0; top: 50%; transform: translateY(-50%); }

.compare { background: white; }
.compare-table { border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: white; }
.row { display: grid; grid-template-columns: 1.05fr 1.35fr 1.45fr; }
.row > div { padding: 18px 20px; border-bottom: 1px solid var(--line); color: #4b5565; }
.row > div:first-child { font-weight: 900; color: var(--ink); }
.row.header > div { background: var(--blue); color: white; font-weight: 950; }
.row.caution > div { background: #fff8ee; }
.row:last-child > div { border-bottom: 0; }

.demo { background: var(--soft); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.timeline article { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 24px; min-height: 250px; position: relative; box-shadow: 0 12px 30px rgba(9,10,18,.05); }
.timeline article::after { content: ""; position: absolute; top: 44px; right: -14px; width: 14px; height: 2px; background: var(--blue); opacity: .35; }
.timeline article:last-child::after { display: none; }
.timeline span { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 999px; background: var(--blue); color: white; font-weight: 950; margin-bottom: 22px; }

.professional { display: grid; grid-template-columns: .72fr 1fr; gap: 70px; align-items: center; }
.pro-art { border-radius: 34px; overflow: hidden; background: var(--blue); box-shadow: var(--shadow-blue); max-height: 620px; }
.pro-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.use-list { display: grid; gap: 14px; }
.use-list div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: white; display: grid; gap: 4px; }
.use-list strong { font-size: 18px; }
.use-list span { color: var(--muted); }

.governance { background: var(--ink); color: white; }
.governance .section-heading p, .governance p { color: #c9d2ee; }
.governance h2 { color: white; }
.guardrails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.guardrails div { border: 1px solid rgba(255,255,255,.14); border-radius: 26px; padding: 24px; background: rgba(255,255,255,.045); min-height: 230px; }
.guardrails span { color: #9db2ff; font-weight: 950; }
.guardrails strong { display: block; margin: 16px 0 8px; color: white; font-size: 20px; }

.pilot { background: linear-gradient(135deg, var(--blue), #00135f); color: white; }
.pilot-card { max-width: 1040px; margin: 0 auto; padding: 48px; border-radius: 36px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); box-shadow: var(--shadow-blue); }
.pilot-card h2 { color: white; }
.pilot-card p { color: #dbe3ff; }
.pilot-card .eyebrow { color: white; }
.pilot-card .eyebrow::before { background: white; }
.pilot-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 34px; }
.pilot-steps div { padding: 18px; border-radius: 20px; background: white; color: var(--ink); display: grid; gap: 6px; }
.pilot-steps strong { color: var(--blue); font-size: 22px; }
.pilot .button.primary { background: white; color: var(--blue); }

.footer { padding: 42px max(28px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.footer p { margin: 6px 0 0; }
.footer img { width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line); }

.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .hero, .action-loop, .professional { grid-template-columns: 1fr; }
  .hero-art { min-height: 580px; order: -1; }
  .blue-frame { left: 50%; transform: translateX(-50%); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline, .guardrails, .pilot-steps { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; }
  .row > div { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .site-header { padding: 0 16px; }
  .brand span { display: none; }
  .nav-cta { font-size: 12px; padding: 9px 12px; box-shadow: 3px 3px 0 var(--blue); }
  .section-pad { padding: 72px 18px; }
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  .hero { padding-top: 36px; gap: 24px; }
  .hero-art { min-height: 455px; }
  .blue-frame { width: min(360px, 100%); }
  .floating-card { display: none; }
  .cap-grid, .timeline, .guardrails, .pilot-steps { grid-template-columns: 1fr; }
  .loop-visual { min-height: 430px; transform: scale(.78); }
  .pilot-card { padding: 28px; }
  .footer { align-items: flex-start; gap: 24px; }
}
.brand em { font-style: normal; color: var(--blue); font-weight: 950; }

.technical { background: linear-gradient(180deg, #fff, #f7f9ff); }
.tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tech-panel {
  min-height: 340px; position: relative; overflow: hidden; padding: 24px; border-radius: 30px;
  background: white; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tech-panel::before {
  content: ""; position: absolute; inset: auto -80px -120px auto; width: 260px; height: 260px; border-radius: 999px;
  background: radial-gradient(circle, rgba(5,55,255,.16), transparent 64%);
}
.panel-top { display: flex; gap: 7px; margin-bottom: 22px; }
.panel-top span { width: 11px; height: 11px; border-radius: 999px; background: #d7ddea; }
.panel-top span:first-child { background: var(--blue); }
.tech-panel h3 { font-size: 27px; margin-bottom: 8px; }
.provider-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.provider-cloud b { padding: 11px 14px; border-radius: 999px; background: var(--soft-2); color: var(--blue); border: 1px solid rgba(5,55,255,.14); }
.mock-chat { display: grid; gap: 12px; margin-top: 20px; }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 18px; font-weight: 750; font-size: 14px; }
.msg.user { justify-self: end; background: var(--blue); color: white; border-bottom-right-radius: 6px; }
.msg.agent { justify-self: start; background: var(--soft); color: var(--ink); border-bottom-left-radius: 6px; }
.tool-line { padding: 10px 12px; border-radius: 14px; background: #ecfff7; color: #067647; border: 1px solid #b6f2d2; font-weight: 900; font-size: 13px; }
.pet { position: absolute; image-rendering: pixelated; filter: drop-shadow(0 16px 18px rgba(9,10,18,.18)); }
.pet-a { width: 96px; right: 22px; bottom: 18px; }
.channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.channel-grid span { padding: 13px 10px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); text-align: center; font-weight: 900; color: #374151; }
.kanban-mock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.kanban-mock div { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 12px; min-height: 190px; }
.kanban-mock strong { display: block; color: var(--blue); margin-bottom: 12px; }
.kanban-mock span { display: block; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 9px; margin-bottom: 8px; color: #4b5565; font-weight: 750; font-size: 13px; }
.architecture-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.architecture-strip div { padding: 18px; border-radius: 22px; background: var(--ink); color: white; }
.architecture-strip strong { display: block; margin-bottom: 5px; }
.architecture-strip span { color: #c9d2ee; font-size: 14px; }

.business { background: #fff; }
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.biz-grid article { border: 1px solid var(--line); border-radius: 26px; background: white; padding: 24px; min-height: 240px; box-shadow: 0 10px 30px rgba(9,10,18,.035); }
.biz-grid span { color: var(--blue); font-weight: 950; letter-spacing: .08em; }
.biz-grid h3 { margin-top: 18px; }
.metric-band { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 30px; overflow: hidden; background: var(--blue); color: white; box-shadow: var(--shadow-blue); }
.metric-band div { padding: 28px; border-right: 1px solid rgba(255,255,255,.22); }
.metric-band div:last-child { border-right: 0; }
.metric-band strong { display: block; font-size: 44px; line-height: 1; letter-spacing: -.06em; }
.metric-band span { color: #dbe3ff; font-weight: 750; }
.metric-note { margin: 14px 4px 0; font-size: 13px; }

@media (max-width: 1000px) {
  .tech-grid, .biz-grid { grid-template-columns: 1fr; }
  .architecture-strip, .metric-band { grid-template-columns: repeat(2, 1fr); }
  .channel-grid, .kanban-mock { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .brand em { display:none; }
  .architecture-strip, .metric-band { grid-template-columns: 1fr; }
  .metric-band div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
}

/* v3: common task research + 7-day practical trial */
.common-tasks { background: linear-gradient(180deg, #fff, #f7f9ff); }
.task-radar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.task-radar article {
  position: relative; min-height: 235px; padding: 24px; border: 1px solid var(--line); border-radius: 28px;
  background: white; box-shadow: 0 12px 34px rgba(9,10,18,.045); overflow: hidden;
}
.task-radar article::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 180px; height: 180px; border-radius: 999px;
  background: radial-gradient(circle, rgba(5,55,255,.14), transparent 66%);
}
.task-radar strong { display: block; font-size: 20px; letter-spacing: -.035em; margin-bottom: 8px; }
.task-radar span { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: var(--soft-2); color: var(--blue); font-weight: 950; font-size: 12px; margin-bottom: 16px; }
.task-radar p { margin: 0; }
.source-note { margin-top: 16px; font-size: 13px; color: #7a8498; }
.pilot-lede { max-width: 860px; color: #dbe3ff !important; font-size: 18px; margin-bottom: 26px; }
.trial-steps { grid-template-columns: repeat(7, 1fr); gap: 10px; }
.trial-steps div { min-height: 150px; }
.trial-steps strong { font-size: 26px; }
.trial-steps span { font-size: 13px; line-height: 1.35; }
.brand img { object-fit: cover; }
.loop-core img { border: 2px solid rgba(5,55,255,.18); }

@media (max-width: 1000px) {
  .task-radar { grid-template-columns: repeat(2, 1fr); }
  .trial-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .task-radar, .trial-steps { grid-template-columns: 1fr; }
}

/* v3.1: make 7-day trial cards readable on desktop */
.trial-steps { grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; }
.trial-steps div { min-height: 155px; padding: 18px 14px; }
.trial-steps strong { font-size: 24px; margin-bottom: 10px; }
.trial-steps span { font-size: 13.5px; line-height: 1.42; }
@media (max-width: 1000px) { .trial-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .trial-steps { grid-template-columns: 1fr; } }

/* v3.2: institutional BlueteamForge links */
.brand-institutional-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(5,55,255,.28);
  transition: color .18s ease, border-color .18s ease;
}
.brand-institutional-link:hover { color: var(--blue-2); border-color: currentColor; }
.footer-link {
  color: var(--blue);
  font-weight: 800;
  border-bottom: 1px solid rgba(5,55,255,.24);
}
.footer-link:hover { border-color: currentColor; }

.brand-home { display: inline-flex; flex: 0 0 auto; }
.brand-home img { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); }

/* v4: multilingual pages */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
}
.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #536079;
  transition: .18s ease;
}
.lang-switcher a:hover { color: var(--blue); background: var(--soft-2); }
.lang-switcher a.active { color: white; background: var(--blue); }
:lang(ja), :lang(th), :lang(bg) { letter-spacing: normal; }
:lang(ja) h1, :lang(th) h1, :lang(bg) h1 { letter-spacing: -.045em; line-height: 1.02; }
:lang(ja) h2, :lang(th) h2, :lang(bg) h2 { letter-spacing: -.035em; line-height: 1.06; }
:lang(th) body, :lang(th) p, :lang(th) a, :lang(th) span, :lang(th) div { line-height: 1.58; }
@media (max-width: 1180px) {
  .lang-switcher { display: none; }
}
