/* ==========================================================================
   AssetRadar Official Site - Design System & Styles (SecCraft Works)
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-elevated: #1e293b;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #94a3b8;

  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-pro: #4f46e5;
  --accent-pro-hover: #4338ca;
  --accent-check: #2563eb;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #334155;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container-max: 1140px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

main {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background-color: #eef2ff;
  color: #3730a3;
  padding: 2px 6px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation (Single top sticky bar, isolated stacking layer) */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: #0f172a;
  border-bottom: 1px solid var(--border-dark);
  transform: translateZ(0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-on-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-badge {
  font-size: 0.7rem;
  color: #60a5fa;
  font-weight: 600;
}

.brand-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

.nav-cta {
  background-color: var(--accent-pro);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background-color: var(--accent-pro-hover);
}

/* Buttons (Blue & Indigo Only - No Green Buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none !important;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-pro {
  background-color: var(--accent-pro);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-pro:hover {
  background-color: var(--accent-pro-hover);
  transform: translateY(-1px);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: var(--border-dark);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #64748b;
}

.btn-outline-dark {
  background-color: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-outline-dark:hover {
  background-color: #f1f5f9;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 80% 20%, #1e293b 0%, #0f172a 70%);
  color: var(--text-on-dark);
  padding: 80px 0 88px;
  border-bottom: 1px solid var(--border-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background-color: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 2.3rem;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 32px;
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

.hero-trust-list li::before {
  content: "✓ ";
  color: #60a5fa;
  font-weight: 700;
}

/* Hero Safety & Security Design Card */
.hero-card {
  background-color: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-dark);
}

.hero-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
}

.status-pill {
  background-color: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.38);
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.74rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed #334155;
  font-size: 0.88rem;
  line-height: 1.5;
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.spec-label {
  color: var(--text-on-dark-muted);
  font-weight: 500;
  white-space: nowrap;
}

.spec-value {
  color: #f8fafc;
  font-weight: 600;
  text-align: left;
}

/* Sections Common */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
}

.section-kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.section-header h2 {
  margin: 0 0 14px;
  font-size: 1.75rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text-primary);
  text-wrap: balance;
}

.section-header p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  text-wrap: balance;
}

/* Dashboard Preview Mockup & 3-Point Highlight */
.preview-showcase {
  max-width: 1040px;
  margin: 0 auto 48px;
}

.browser-mockup {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.browser-mockup-bar {
  height: 34px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.browser-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dots span {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #cbd5e1;
}

.browser-mockup-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-mockup-img {
  width: 100%;
  height: auto;
  display: block;
}

.preview-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.preview-highlight-item {
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.preview-highlight-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #eef2ff;
  color: var(--accent-pro);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.preview-highlight-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.preview-highlight-item p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Feature Cards Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-features-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card-top-row {
  margin-bottom: 12px;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  background-color: #eff6ff;
  color: #1d4ed8;
  margin-bottom: 14px;
}

.card-top-row .card-tag {
  margin-bottom: 0;
}

.card-tag-blue {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.card-tag-indigo {
  background-color: #eef2ff;
  color: #4338ca;
}

.card-tag-pro {
  background-color: #eef2ff;
  color: var(--accent-pro);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-width: 0;
}

.pricing-card.featured {
  border: 2px solid var(--accent-pro);
  box-shadow: var(--shadow-md);
}

.pricing-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-pro);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.plan-price {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-unit {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
  margin-left: 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
}

.plan-features li {
  position: relative;
  font-size: 0.88rem;
  padding: 7px 0 7px 20px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.plan-features li.included::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--accent-check);
  font-weight: 700;
}

.plan-features li.excluded {
  color: #94a3b8;
}

.plan-features li.excluded::before {
  content: "−";
  position: absolute;
  left: 0;
  top: 7px;
  color: #cbd5e1;
  font-weight: 700;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin: 22px 0 0;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.faq-q {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.faq-a {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* Legal / Document Pages (privacy.html, legal.html) */
.doc-wrapper {
  padding: 56px 0 80px;
}

.doc-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.doc-card h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.doc-card h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-primary);
}

.doc-card p, .doc-card li {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
  font-size: 0.93rem;
}

.legal-table th {
  width: 30%;
  background-color: #f8fafc;
  color: var(--text-primary);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 48px 0 36px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.footer-desc {
  margin: 0;
  max-width: 460px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--text-on-dark-muted);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* Responsive: Tablet (below 960px) */
@media (max-width: 959px) {
  .hero-grid,
  .grid-3,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .grid-features-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-header h2 {
    font-size: 1.55rem;
  }
}

/* Responsive: Smartphone (below 640px) */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .preview-highlights,
  .grid-features-6,
  .grid-2,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .doc-card {
    padding: 28px 20px;
  }
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }
}