/* =====================================================
   Design tokens
   ===================================================== */
:root {
  --bg: #f6f9fb;
  --surface: #ffffff;
  --ink: #17232d;
  --muted: #5e6c78;
  --line: #dbe6ec;
  --navy: #0c2536;
  --navy-2: #12384f;
  --cyan: #18b6c7;
  --green: #2bbf7d;
  --amber: #d98924;
  --red: #d95555;
  --warn: #e53e3e;
  --warn-bg: #fff5f5;
  --shadow: 0 24px 70px rgba(12, 37, 54, 0.13);
  --radius: 8px;
  color-scheme: light;
}

/* =====================================================
   Reset & base
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

h3 {
  margin: 0 0 8px;
  color: var(--navy);
  line-height: 1.35;
}

/* =====================================================
   Scroll fade-in (state set by JS)
   ===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   Header
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(246, 249, 251, 0.92);
  border-bottom: 1px solid rgba(219, 230, 236, 0.82);
  backdrop-filter: blur(16px);
  transition: box-shadow 200ms ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(12, 37, 54, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--cyan);
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 45%, var(--cyan) 46% 55%, transparent 56%),
    var(--navy);
  box-shadow: 0 8px 18px rgba(24, 182, 199, 0.22);
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.header-nav a,
.text-link {
  text-decoration: none;
}

.header-nav a:hover,
.text-link:hover {
  color: var(--cyan);
}

/* =====================================================
   Buttons
   ===================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  background: var(--cyan);
  color: #06252a;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(24, 182, 199, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #20c6d8;
  box-shadow: 0 18px 36px rgba(24, 182, 199, 0.28);
}

.button-small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}

.button-secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--bg);
}

.button-lg {
  min-height: 56px;
  padding: 16px 36px;
  font-size: 18px;
}

/* =====================================================
   Section base
   ===================================================== */
.section,
.hero,
.final-cta {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.section {
  background: var(--surface);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 40px;
}

.section-heading.compact {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  margin-bottom: 44px;
}

.section-heading h2,
.pricing-card h2,
.final-cta h2 {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  line-height: 1.15;
  font-size: clamp(28px, 3.6vw, 46px);
}

.section-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
}

.eyebrow {
  margin: 0 0 14px;
  color: #147b88;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 78px);
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(circle at 82% 22%, rgba(24, 182, 199, 0.14), transparent 34%),
    radial-gradient(circle at 10% 85%, rgba(229, 62, 62, 0.05), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eff6f8 100%);
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  line-height: 1.1;
  font-size: clamp(36px, 4.8vw, 66px);
  max-width: 760px;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #394a56;
  font-size: clamp(17px, 1.8vw, 21px);
}

.br-desktop {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 800;
}

/* Hero security visual */
.security-visual {
  overflow: hidden;
  border: 1px solid rgba(219, 230, 236, 0.92);
  border-radius: var(--radius);
  background: #fbfdfe;
  box-shadow: var(--shadow);
}

.visual-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  background: var(--navy);
  color: #e9f7f8;
  font-size: 13px;
}

.visual-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7f93a0;
  flex-shrink: 0;
}

.visual-topbar span:first-child { background: var(--red); }
.visual-topbar span:nth-child(2) { background: var(--amber); }
.visual-topbar span:nth-child(3) { background: var(--green); }

.visual-topbar strong {
  margin-left: auto;
}

.visual-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.visual-score p,
.visual-card p,
.site-footer p,
.note,
.tool-note {
  margin: 0;
  color: var(--muted);
}

.visual-score strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.1;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 12px solid #dcecef;
  border-top-color: var(--cyan);
  border-right-color: var(--green);
  border-radius: 50%;
  color: var(--navy);
  font-size: 26px;
  font-weight: 900;
  flex-shrink: 0;
}

.visual-grid {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.visual-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--cyan);
  border-radius: var(--radius);
  background: #ffffff;
}

.visual-card.high { border-left-color: var(--red); }
.visual-card.medium { border-left-color: var(--amber); }
.visual-card.low { border-left-color: var(--green); }

.visual-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.visual-card strong {
  display: block;
  margin: 2px 0 4px;
  color: var(--navy);
  font-size: 17px;
}

/* Pulse animation for High risk card */
@keyframes pulse-warn {
  0%, 100% {
    border-left-color: var(--red);
    box-shadow: -4px 0 0 0 transparent;
  }
  50% {
    border-left-color: #ff7070;
    box-shadow: -4px 0 12px rgba(229, 62, 62, 0.35);
  }
}

.pulse-card {
  animation: pulse-warn 2.2s ease-in-out infinite;
}

.visual-report {
  display: grid;
  gap: 10px;
  padding: 0 16px 20px;
}

.visual-report span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #dce8ed;
}

.visual-report span:nth-child(2) { width: 78%; }
.visual-report span:nth-child(3) { width: 54%; }

/* =====================================================
   Stats band
   ===================================================== */
.stats-band {
  background: var(--navy);
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 72px);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-item {
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

.stat-number {
  margin: 0 0 10px;
  line-height: 1;
  color: var(--cyan);
}

.stat-number [data-count] {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 900;
  line-height: 1;
  color: var(--cyan);
}

.stat-unit {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--cyan);
  margin-left: 2px;
}

.stat-label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
}

.stat-source {
  margin: 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
}

/* =====================================================
   AI vulnerability section
   ===================================================== */
.ai-vuln-section {
  background: var(--bg);
}

.ai-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ai-risk-card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--warn);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.ai-risk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(12, 37, 54, 0.1);
}

.ai-risk-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}

.ai-risk-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.ai-risk-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.ai-vuln-note {
  margin: 36px auto 0;
  max-width: 680px;
  padding: 18px 28px;
  text-align: center;
  color: #7a2c2c;
  font-style: italic;
  font-size: 15px;
  background: var(--warn-bg);
  border: 1px solid rgba(229, 62, 62, 0.18);
  border-radius: var(--radius);
}

/* =====================================================
   Evidence section (dark)
   ===================================================== */
.evidence {
  background: var(--navy);
  color: #eef7f8;
}

.evidence .section-heading h2 {
  color: #ffffff;
}

.evidence .eyebrow,
.final-cta .eyebrow {
  color: #7be5ef;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.evidence-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.evidence-card h3 {
  color: #ffffff;
  font-size: 17px;
}

.evidence-card p {
  margin: 0;
  color: #c7d8df;
  font-size: 14px;
  line-height: 1.75;
}

.evidence-card .source {
  margin: 0 0 12px;
  color: #7be5ef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.evidence-card a {
  display: inline-flex;
  margin-top: 18px;
  color: #90f0f7;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
}

.evidence-card a:hover {
  text-decoration: underline;
}

/* =====================================================
   Service section
   ===================================================== */
.service-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 20px;
}

.service-panel {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-panel.dark {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.service-panel.dark h3 {
  color: #ffffff;
}

.service-panel.dark .check-list li {
  border-color: rgba(255, 255, 255, 0.13);
  color: #e1eef2;
}

.tool-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #bad0d8;
  font-size: 14px;
}

.check-list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
  color: #334550;
  font-weight: 700;
  font-size: 15px;
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 14px;
  height: 9px;
  border-bottom: 2.5px solid var(--green);
  border-left: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

/* =====================================================
   Value section
   ===================================================== */
.value {
  background: var(--bg);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.value-card {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(12, 37, 54, 0.09);
}

.value-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}

.value-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* =====================================================
   Pricing section
   ===================================================== */
.pricing {
  background: linear-gradient(180deg, #eef6f8 0%, #ffffff 100%);
}

.pricing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 66px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pricing-card h2 {
  font-size: clamp(28px, 3.6vw, 46px);
}

.price {
  margin: 22px 0 18px;
  color: var(--navy);
  font-weight: 900;
}

.price span {
  font-size: clamp(52px, 7vw, 86px);
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 16px;
}

.pricing-card > div > p:last-of-type {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.pricing-details h3 {
  margin-bottom: 4px;
}

.pricing-details .button {
  width: 100%;
  margin-top: 20px;
}

.note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* =====================================================
   Flow section
   ===================================================== */
.flow {
  background: var(--bg);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.flow-list span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
}

.flow-list h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* =====================================================
   FAQ section
   ===================================================== */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 22px;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 0;
  color: var(--navy);
  font-weight: 900;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* =====================================================
   Final CTA
   ===================================================== */
.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background:
    linear-gradient(135deg, rgba(12, 37, 54, 0.94), rgba(18, 56, 79, 0.98)),
    var(--navy);
  color: #ffffff;
}

.final-cta h2 {
  color: #ffffff;
  font-size: clamp(28px, 3.6vw, 46px);
}

.final-cta > div > p:last-of-type {
  max-width: 680px;
  margin: 16px 0 0;
  color: #d4e4e9;
}

.final-cta .button {
  flex: 0 0 auto;
  background: var(--cyan);
  box-shadow: 0 16px 40px rgba(24, 182, 199, 0.3);
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #071822;
}

.site-footer p:first-child {
  color: #ffffff;
  font-weight: 900;
  margin: 0;
}

.site-footer p:last-child {
  color: #5a7a88;
  font-size: 13px;
  margin: 0;
}

/* =====================================================
   Responsive — tablet
   ===================================================== */
@media (max-width: 1020px) {
  .hero,
  .service-layout,
  .pricing-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    max-width: 600px;
  }

  .ai-risk-grid {
    grid-template-columns: 1fr;
  }

  .stats-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   Responsive — mobile
   ===================================================== */
@media (max-width: 760px) {
  .site-header {
    min-height: 62px;
  }

  .header-nav {
    display: none;
  }

  .brand {
    font-size: 14px;
  }

  .button-small {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .section,
  .hero,
  .stats-band,
  .final-cta {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .br-desktop {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .security-visual {
    min-width: 0;
  }

  .visual-score {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .flow-list {
    grid-template-columns: 1fr;
  }

  .final-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta .button {
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
