/* ==========================================================================
   LP — Samurai Honeypot for Forms
   Dark page (#050505). Follows beta-minimal design tokens.
   ========================================================================== */

/* --- Page-level override (dark) --- */
body.page-template-lp-plugin,
body.page-template-lp-plugin-ja {
    background: #050505;
    color: #fff;
    padding-top: 0;
}

.lp {
    --accent: #2394ab;
    --bg: #050505;
    --muted: rgba(255,255,255,.4);
    --border: rgba(35,148,171,.12);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ==========================================================================
   Shared
   ========================================================================== */
.lp-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 100px 24px;
    text-align: center;
}

.lp-section-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
}

.lp-section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.04em;
    margin-bottom: 20px;
}

.lp-section-sub {
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 300;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.lp-divider {
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 36px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: color .3s ease, box-shadow .3s ease;
}

.lp-btn span { position: relative; z-index: 1; }

.lp-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    transition: left .3s ease;
    z-index: 0;
}

.lp-btn:hover::before { left: 0; }

/* Primary */
.lp-btn-primary {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.lp-btn-primary::before { background: var(--accent); }

.lp-btn-primary:hover {
    color: var(--bg);
    box-shadow: 0 0 40px rgba(35,148,171,.3);
}

/* Outline */
.lp-btn-outline {
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.5);
}

.lp-btn-outline::before { background: rgba(255,255,255,.08); }
.lp-btn-outline:hover { color: #fff; }

/* Large */
.lp-btn-lg {
    height: 56px;
    padding: 0 48px;
    font-size: 14px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.lp-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}

.lp-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(35,148,171,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35,148,171,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    animation: lpGridIn 2s ease forwards;
    opacity: 0;
}

@keyframes lpGridIn { to { opacity: 1; } }

.lp-hero-inner {
    position: relative;
    z-index: 1;
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,.08);
    padding: 8px 16px;
    margin-bottom: 40px;
}

.lp-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: lpPulse 2s ease-in-out infinite;
}

@keyframes lpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

.lp-hero-title {
    font-size: clamp(40px, 8vw, 96px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.05em;
    margin-bottom: 24px;
}

.lp-hero-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 400;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: 24px;
}

.lp-hero-sub {
    font-size: clamp(15px, 2.2vw, 20px);
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 40px;
}

.lp-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.lp-hero-note {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: .08em;
    color: rgba(255,255,255,.2);
    margin-top: 20px;
}

/* Scroll hint */
.lp-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.lp-scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: lpScroll 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes lpScroll {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   Problem Cards
   ========================================================================== */
.lp-problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
    text-align: left;
}

.lp-problem-card {
    padding: 32px 28px;
    border: 1px solid rgba(255,255,255,.06);
    transition: border-color .3s ease;
}

.lp-problem-card:hover {
    border-color: var(--border);
}

.lp-problem-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 16px;
}

.lp-problem-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lp-problem-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

/* ==========================================================================
   13 Layers Grid
   ========================================================================== */
.lp-layers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
    text-align: left;
}

.lp-layer-card {
    padding: 28px 24px;
    border: 1px solid rgba(255,255,255,.06);
    transition: border-color .3s ease, box-shadow .3s ease;
}

.lp-layer-card:hover {
    border-color: rgba(35,148,171,.25);
    box-shadow: 0 0 24px rgba(35,148,171,.06);
}

.lp-layer-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.lp-layer-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}

.lp-layer-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.lp-layer-card-last {
    grid-column: span 1;
}

/* Result block */
.lp-layers-result {
    margin-top: 48px;
    padding: 32px;
    border: 1px solid var(--border);
}

.lp-layers-result p {
    font-size: 18px;
    font-weight: 400;
}

.lp-layers-result strong {
    color: var(--accent);
    font-weight: 800;
}

.lp-layers-result-sub {
    font-size: 14px !important;
    color: var(--muted);
    margin-top: 8px;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    margin-top: 48px;
    text-align: left;
}

.lp-feature {
    padding: 36px 28px;
    background: var(--bg);
    transition: background .3s ease;
}

.lp-feature:hover {
    background: rgba(255,255,255,.02);
}

.lp-feature h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}

.lp-feature p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.lp-feature code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: rgba(35,148,171,.1);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 2px;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.lp-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 48px;
}

.lp-compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
    text-align: center;
}

.lp-compare-table thead th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: var(--muted);
}

.lp-compare-table thead th:first-child {
    text-align: left;
}

.lp-compare-table thead th.lp-compare-highlight {
    color: var(--accent);
}

.lp-compare-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    color: rgba(255,255,255,.45);
}

.lp-compare-table tbody td:first-child {
    text-align: left;
    color: rgba(255,255,255,.6);
    font-size: 13px;
}

.lp-compare-table tbody td.lp-compare-highlight {
    color: var(--accent);
    font-weight: 700;
}

.lp-compare-table tbody tr:hover td {
    background: rgba(35,148,171,.03);
}

/* ==========================================================================
   Setup Steps
   ========================================================================== */
.lp-setup-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
}

.lp-setup-step {
    flex: 0 1 320px;
    padding: 40px 32px;
    border: 1px solid rgba(255,255,255,.06);
    text-align: center;
}

.lp-setup-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border: 1px solid var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.lp-setup-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lp-setup-step p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.lp-setup-arrow {
    font-size: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.lp-setup-note {
    font-size: 14px;
    color: var(--muted);
    margin-top: 32px;
}

.lp-setup-note strong {
    color: rgba(255,255,255,.7);
}

/* ==========================================================================
   Compatibility Stack
   ========================================================================== */
.lp-compat-stack {
    max-width: 560px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.lp-compat-item {
    width: 100%;
}

.lp-compat-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    margin-bottom: 8px;
    text-align: left;
}

.lp-compat-box {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.06);
    text-align: left;
}

.lp-compat-box strong {
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
}

.lp-compat-box p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

.lp-compat-box-primary {
    border-color: rgba(35,148,171,.3);
    background: rgba(35,148,171,.04);
}

.lp-compat-box-primary strong {
    color: var(--accent);
}

.lp-compat-plus {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    color: rgba(255,255,255,.15);
    padding: 12px 0;
}

/* ==========================================================================
   Requirements
   ========================================================================== */
.lp-req { padding-top: 60px; padding-bottom: 60px; }

.lp-req-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.lp-req-item dt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    margin-bottom: 4px;
}

.lp-req-item dd {
    font-size: 15px;
    color: rgba(255,255,255,.7);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.lp-faq-list {
    max-width: 720px;
    margin: 48px auto 0;
    text-align: left;
}

.lp-faq-item {
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.lp-faq-item summary {
    padding: 20px 0;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color .3s ease;
}

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

.lp-faq-item summary::after {
    content: '+';
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 400;
    color: var(--accent);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform .3s ease;
}

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

.lp-faq-item summary:hover { color: #fff; }

.lp-faq-item p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    padding: 0 0 20px;
}

.lp-faq-item code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: rgba(35,148,171,.1);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 2px;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.lp-cta {
    padding: 120px 24px;
}

.lp-cta-title {
    font-size: clamp(36px, 7vw, 80px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.04em;
    margin-bottom: 20px;
}

.lp-cta-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--muted);
    margin-bottom: 40px;
}

/* ==========================================================================
   Dark header/footer overrides
   ========================================================================== */
body.page-template-lp-plugin .site-header.scrolled,
body.page-template-lp-plugin-ja .site-header.scrolled {
    background: rgba(5,5,5,.95);
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

body.page-template-lp-plugin .site-header-logo img,
body.page-template-lp-plugin-ja .site-header-logo img { filter: none; }
body.page-template-lp-plugin .site-nav-list li a,
body.page-template-lp-plugin-ja .site-nav-list li a { color: rgba(255,255,255,.5); }
body.page-template-lp-plugin .site-nav-list li a:hover,
body.page-template-lp-plugin .site-nav-list li.current-menu-item a,
body.page-template-lp-plugin-ja .site-nav-list li a:hover,
body.page-template-lp-plugin-ja .site-nav-list li.current-menu-item a { color: var(--accent); }
body.page-template-lp-plugin .site-nav-toggle span,
body.page-template-lp-plugin-ja .site-nav-toggle span { background: rgba(255,255,255,.6); }

body.page-template-lp-plugin .site-footer,
body.page-template-lp-plugin-ja .site-footer {
    border-top: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: .05em;
}

body.page-template-lp-plugin a.site-lang-item,
body.page-template-lp-plugin-ja a.site-lang-item { color: rgba(255,255,255,.4); }
body.page-template-lp-plugin a.site-lang-item:hover,
body.page-template-lp-plugin-ja a.site-lang-item:hover { color: var(--accent); }
body.page-template-lp-plugin .site-lang-sep,
body.page-template-lp-plugin-ja .site-lang-sep { color: rgba(255,255,255,.2); }

body.page-template-lp-plugin .site-footer-link,
body.page-template-lp-plugin-ja .site-footer-link { color: rgba(255,255,255,.3); }
body.page-template-lp-plugin .site-footer-link:hover,
body.page-template-lp-plugin-ja .site-footer-link:hover { color: var(--accent); }
body.page-template-lp-plugin .site-footer-logo,
body.page-template-lp-plugin-ja .site-footer-logo { filter: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .lp-hero { min-height: auto; padding: 100px 20px 60px; }
    .lp-section { padding: 60px 20px; }
    .lp-problem-grid { grid-template-columns: 1fr; }
    .lp-layers-grid { grid-template-columns: 1fr; }
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-setup-steps { flex-direction: column; gap: 16px; }
    .lp-setup-arrow { transform: rotate(90deg); }
    .lp-setup-step { flex: none; width: 100%; }
    .lp-req-grid { gap: 24px; }
    .lp-cta { padding: 80px 20px; }

    body.page-template-lp-plugin .site-nav,
    body.page-template-lp-plugin-ja .site-nav {
        background: rgba(5,5,5,.98);
    }
}

@media (max-width: 480px) {
    .lp-hero-title { font-size: 36px; }
    .lp-section-title { font-size: 28px; }
    .lp-cta-title { font-size: 32px; }
}
