/* ==========================================================================
   China EntityCheck — Modern RegTech Design System
   Brand: China EntityCheck by Transfong
   Colors: Navy #011B64 | Teal #00B1B0 | Red #FF0006 | Light Tint #F2F3F7
   ========================================================================== */

@font-face {
    font-family: 'Space Grotesk';
    src: url('fonts/SpaceGrotesk-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url('fonts/SpaceGrotesk-Bold.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}

:root {
    --navy: #011B64;
    --navy-90: #0d256e;
    --navy-80: #1b337c;
    --navy-70: #4D5F92;
    --navy-20: #CCD1E0;
    --navy-10: #E5E8EF;
    --navy-05: #F2F3F7;
    --white: #FFFFFF;
    --teal: #00B1B0;
    --teal-dark: #008786;
    --teal-light: #e6f7f7;
    --red: #FF0006;
    --red-tint: #fff0f0;
    --purple: #6779BD;
    --green: #10B981;
    --amber: #F59E0B;

    --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-ja: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, sans-serif;

    --max-w: 1240px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
html[lang="ja"] body { font-family: var(--font-ja); line-height: 1.75; }

.tabular-nums { font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* Red Title Dot */
.red-dot { color: var(--red); display: inline-block; }

/* Navbar */
.site-nav {
    position: sticky;
    top: 0;
    background: rgba(1, 27, 100, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--white);
    letter-spacing: -0.02em;
}
.brand-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    font-weight: 700;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    color: var(--navy-20);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}
.lang-selector, .currency-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.lang-btn, .curr-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy-20);
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.lang-btn.active, .curr-btn.active {
    background: var(--teal);
    color: var(--navy);
}

/* Hero Section */
.hero-section {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 177, 176, 0.15);
    border: 1px solid rgba(0, 177, 176, 0.35);
    border-radius: var(--radius-full);
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--navy-20);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 580px;
}

/* Tier 0 Pulse Search Box */
.pulse-box {
    background: var(--white);
    border-radius: 4px;
    padding: 8px 8px 8px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
}
.pulse-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--navy);
}
.pulse-input::placeholder { color: var(--navy-70); opacity: 0.6; }
.pulse-btn {
    background: var(--teal);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 26px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}
.pulse-btn:hover { background: var(--white); box-shadow: 0 4px 12px rgba(0, 177, 176, 0.4); }

.hero-meta {
    font-size: 0.82rem;
    color: var(--navy-20);
    opacity: 0.8;
}

/* Clarity Lens Mockup */
.lens-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--navy-80), var(--navy-90));
    border: 3px solid rgba(0, 177, 176, 0.4);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 177, 176, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}
.lens-bg-text {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    font-size: 0.65rem;
    line-height: 1.3;
    font-family: monospace;
    overflow: hidden;
    pointer-events: none;
    padding: 20px;
}
.lens-card {
    background: rgba(255, 255, 255, 0.98);
    color: var(--navy);
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 2;
}
.lens-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--navy-05);
    padding-bottom: 12px;
    margin-bottom: 14px;
}
.lens-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.tag-alert { background: var(--red-tint); color: var(--red); }
.tag-pass { background: #ecfdf5; color: var(--green); }
.lens-body { display: flex; flex-direction: column; gap: 10px; font-size: 0.85rem; }
.lens-row { display: flex; justify-content: space-between; }
.lens-row span:first-child { color: var(--navy-70); }
.lens-row span:last-child { font-weight: 700; }

/* Section Generic */
.section { padding: 96px 0; }
.section-light { background: var(--white); color: var(--navy); }
.section-tint { background: var(--navy-05); color: var(--navy); }
.section-dark { background: var(--navy); color: var(--white); }

.section-label {
    color: var(--teal-dark);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    display: block;
}
.section-dark .section-label { color: var(--teal); }

.section-heading {
    font-family: var(--font-heading);
    font-size: 2.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.15;
}
.section-desc {
    font-size: 1.1rem;
    color: var(--navy-70);
    max-width: 680px;
    margin-bottom: 56px;
}
.section-dark .section-desc { color: var(--navy-20); }

/* 5 Forensic Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.module-card {
    background: var(--white);
    border: 1px solid var(--navy-10);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.module-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(1, 27, 100, 0.08);
}
.module-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 16px;
}
.module-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
}
.module-text {
    font-size: 0.95rem;
    color: var(--navy-70);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}
.module-pill {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--navy-05);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.price-card {
    background: var(--white);
    border: 1px solid var(--navy-20);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}
.price-card.featured {
    border: 2px solid var(--teal);
    box-shadow: 0 20px 48px rgba(1, 27, 100, 0.12);
}
.price-badge {
    position: absolute;
    top: -14px;
    left: 30px;
    background: var(--teal);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: var(--radius-full);
}
.price-tier-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.price-tier-desc {
    font-size: 0.88rem;
    color: var(--navy-70);
    margin-bottom: 24px;
    min-height: 42px;
}
.price-value-box {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.price-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
}
.price-unit {
    font-size: 0.9rem;
    color: var(--navy-70);
}
.price-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.price-features li {
    font-size: 0.9rem;
    color: var(--navy);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}
.price-features li::before {
    content: "✓";
    color: var(--teal);
    font-weight: 700;
}
.price-btn {
    width: 100%;
    padding: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    text-align: center;
    transition: var(--transition);
}
.price-btn-outline {
    border: 1px solid var(--navy);
    color: var(--navy);
}
.price-btn-outline:hover { background: var(--navy); color: var(--white); }
.price-btn-primary {
    background: var(--navy);
    color: var(--white);
}
.price-btn-primary:hover { background: var(--teal); color: var(--navy); }

/* Compliance Accordion / FAQ */
.faq-list {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--navy-10);
    padding: 24px 28px;
    border-radius: 4px;
}
.faq-item summary {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-content {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--navy-70);
    line-height: 1.65;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-brand h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.footer-brand p {
    color: var(--navy-20);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 24px;
}
.footer-backing {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-backing img { height: 28px; width: auto; opacity: 0.85; }
.footer-backing span { font-size: 0.8rem; color: var(--navy-20); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: var(--navy-20);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-title { font-size: 2.6rem; }
    .nav-links { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
