/* ==========================================================================
   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-emerald: #059669;
  --accent-emerald-bg: #ecfdf5;
  --accent-emerald-border: #a7f3d0;

  --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: 1120px;
}

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

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

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;
}

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

a:hover {
  text-decoration: underline;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-dark);
}

.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;
}

.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: #38bdf8;
  font-weight: 600;
}

.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;
}

.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 */
.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(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 2.35rem;
  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: #34d399;
  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(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  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: 720px;
  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.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Feature Cards Grid */
.grid-3 {
  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);
}

.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-tag-emerald {
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
}

.card-tag-pro {
  background-color: #eef2ff;
  color: var(--accent-pro);
  margin-bottom: 0;
  vertical-align: middle;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

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

/* 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-emerald);
  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;
}

/* 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-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 / Mobile fallback strictly below 960px) */
@media (max-width: 959px) {
  .hero-grid,
  .grid-3,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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