/* ============================================
   Restaurant Data Scraper — Landing Page CSS
   Dark Theme / Premium / Minimal
   ============================================ */

:root {
    --lp-bg: #0a0a0a;
    --lp-bg-alt: #111111;
    --lp-surface: #161616;
    --lp-border: rgba(255,255,255,0.06);
    --lp-text: #e8e8e8;
    --lp-text-secondary: #888888;
    --lp-accent: #58B2DC;
    --lp-accent-dim: rgba(88,178,220,0.12);
    --lp-gradient: linear-gradient(135deg, #58B2DC 0%, #3a8fbf 100%);
    --font-en: 'Syne', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body.lp-body {
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: var(--font-jp);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Utility --- */
.lp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp-section {
    padding: 120px 0;
    position: relative;
}

@media (max-width:768px) {
    .lp-section { padding: 72px 0; }
}

.lp-label {
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--lp-accent);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lp-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--lp-accent);
}

.lp-heading {
    font-family: var(--font-en);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.lp-subheading {
    font-size: 1rem;
    color: var(--lp-text-secondary);
    max-width: 560px;
    line-height: 1.8;
}

/* --- Fade In --- */
.lp-fade {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.lp-fade.visible { opacity:1; transform:translateY(0); }
.lp-fade:nth-child(2) { transition-delay:.08s; }
.lp-fade:nth-child(3) { transition-delay:.16s; }
.lp-fade:nth-child(4) { transition-delay:.24s; }

/* ---- HEADER ---- */
.lp-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.lp-header.scrolled {
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--lp-border);
}
.lp-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lp-logo {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--lp-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lp-logo span { color: var(--lp-accent); }
.lp-header-cta {
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 24px;
    border: 1px solid var(--lp-border);
    border-radius: 100px;
    color: var(--lp-text);
    text-decoration: none;
    transition: all .35s var(--ease);
    display: flex;
    align-items: center;
    gap: 8px;
}
.lp-header-cta:hover {
    background: var(--lp-accent);
    border-color: var(--lp-accent);
    color: #000;
}

/* ---- HERO ---- */
.lp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
}

.lp-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lp-accent);
    padding: 8px 20px;
    border: 1px solid var(--lp-accent-dim);
    border-radius: 100px;
    margin-bottom: 32px;
    background: var(--lp-accent-dim);
}

.lp-hero h1 {
    font-family: var(--font-en);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.lp-hero h1 .accent { color: var(--lp-accent); }

.lp-hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--lp-text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.9;
}

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

.lp-btn-primary {
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 16px 36px;
    background: var(--lp-gradient);
    color: #000;
    border: none;
    border-radius: 100px;
    text-decoration: none;
    transition: all .4s var(--ease);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.lp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(88,178,220,0.25);
}

.lp-btn-ghost {
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 16px 36px;
    background: transparent;
    color: var(--lp-text);
    border: 1px solid var(--lp-border);
    border-radius: 100px;
    text-decoration: none;
    transition: all .4s var(--ease);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.lp-btn-ghost:hover {
    border-color: var(--lp-accent);
    color: var(--lp-accent);
    transform: translateY(-2px);
}

/* Hero glow */
.lp-hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(88,178,220,0.08) 0%, transparent 70%);
    top: 20%; left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

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

/* Stats bar */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--lp-border);
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 80px;
}
.lp-stat {
    background: var(--lp-surface);
    padding: 36px 24px;
    text-align: center;
}
.lp-stat-num {
    font-family: var(--font-en);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--lp-accent);
    line-height: 1;
    margin-bottom: 8px;
}
.lp-stat-label {
    font-size: 0.8rem;
    color: var(--lp-text-secondary);
}

@media (max-width:600px) {
    .lp-stats { grid-template-columns: 1fr; }
}

/* ---- PROBLEM ---- */
.lp-problem { background: var(--lp-bg-alt); }

.lp-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.lp-problem-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    padding: 40px 28px;
    transition: all .5s var(--ease);
}
.lp-problem-card:hover {
    border-color: rgba(88,178,220,0.2);
    transform: translateY(-4px);
}

.lp-problem-icon {
    width: 48px; height: 48px;
    background: var(--lp-accent-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.lp-problem-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.lp-problem-card p {
    font-size: 0.85rem;
    color: var(--lp-text-secondary);
    line-height: 1.7;
}

@media (max-width:768px) {
    .lp-problem-grid { grid-template-columns: 1fr; }
}

/* ---- SOLUTION ---- */
.lp-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 56px;
}
.lp-solution-visual {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.lp-code-block {
    background: #0d0d0d;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    padding: 24px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    line-height: 1.8;
    color: var(--lp-text-secondary);
    overflow-x: auto;
}
.lp-code-block .hl { color: var(--lp-accent); }
.lp-code-block .str { color: #a8d8a8; }
.lp-code-block .cm { color: #555; }

.lp-solution-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.lp-solution-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.lp-check {
    width: 28px; height: 28px;
    background: var(--lp-accent-dim);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--lp-accent);
    font-size: 0.85rem;
    margin-top: 2px;
}
.lp-solution-list h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.lp-solution-list p {
    font-size: 0.82rem;
    color: var(--lp-text-secondary);
    line-height: 1.6;
}

@media (max-width:768px) {
    .lp-solution-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- FEATURES ---- */
.lp-features { background: var(--lp-bg-alt); }

.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.lp-feature-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    padding: 36px 32px;
    transition: all .5s var(--ease);
    position: relative;
    overflow: hidden;
}
.lp-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--lp-gradient);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.lp-feature-card:hover::before { opacity: 1; }
.lp-feature-card:hover {
    border-color: rgba(88,178,220,0.15);
    transform: translateY(-3px);
}

.lp-feature-num {
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--lp-accent);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.lp-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.lp-feature-card p {
    font-size: 0.82rem;
    color: var(--lp-text-secondary);
    line-height: 1.7;
}

@media (max-width:600px) {
    .lp-feature-grid { grid-template-columns: 1fr; }
}

/* ---- FLOW ---- */
.lp-flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 56px;
    position: relative;
}

.lp-flow-steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--lp-border);
}

.lp-flow-step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 32px 0;
    position: relative;
}

.lp-flow-dot {
    width: 48px; height: 48px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--lp-accent);
    z-index: 1;
    transition: all .4s var(--ease);
}

.lp-flow-step:hover .lp-flow-dot {
    background: var(--lp-accent-dim);
    border-color: var(--lp-accent);
}

.lp-flow-step h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}
.lp-flow-step p {
    font-size: 0.85rem;
    color: var(--lp-text-secondary);
    line-height: 1.7;
}

/* ---- TRUST ---- */
.lp-trust { background: var(--lp-bg-alt); }

.lp-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.lp-trust-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all .5s var(--ease);
}
.lp-trust-card:hover {
    border-color: rgba(88,178,220,0.2);
}

.lp-trust-icon {
    width: 56px; height: 56px;
    background: var(--lp-accent-dim);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.lp-trust-card h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.lp-trust-card p {
    font-size: 0.82rem;
    color: var(--lp-text-secondary);
    line-height: 1.7;
}

@media (max-width:768px) {
    .lp-trust-grid { grid-template-columns: 1fr; }
}

/* ---- CTA ---- */
.lp-cta-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lp-cta-section::before {
    content: '';
    position: absolute;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(88,178,220,0.06) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.lp-cta-section .lp-container { position: relative; z-index:1; }

.lp-cta-section h2 {
    font-family: var(--font-en);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.lp-cta-section p {
    color: var(--lp-text-secondary);
    margin-bottom: 40px;
    font-size: 0.95rem;
}
.lp-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- FOOTER ---- */
.lp-footer {
    padding: 40px 0;
    border-top: 1px solid var(--lp-border);
    text-align: center;
}
.lp-footer p {
    font-size: 0.75rem;
    color: var(--lp-text-secondary);
}
.lp-footer a {
    color: var(--lp-accent);
    text-decoration: none;
    transition: opacity .3s;
}
.lp-footer a:hover { opacity: .7; }

/* ---- Divider ---- */
.lp-divider {
    height: 1px;
    background: var(--lp-border);
    border: none;
    margin: 0;
}

/* ---- Animated counter ---- */
@keyframes lp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

/* ---- Grain overlay ---- */
.lp-grain {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}
