/* ============================================================
   KappS Site — shared stylesheet (homepage + service pages)
   Design tokens: deep space #050914 · brand blue #0066ff
   glass surfaces · 24-35px radii · generous 120px section spacing
   ============================================================ */

:root {
    --brand-blue: #0066ff;
    --brand-dark: #050914;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-gray: #888fb1;
    --text-body: #a0a6c0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--brand-dark);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.8;
}

.bg-aurora {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.10) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.07) 0%, transparent 50%);
    z-index: -1;
}

a { color: inherit; }

/* ---------- Nav ---------- */
nav {
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(5, 9, 20, 0.75);
    flex-wrap: wrap;
}
.brand-area { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.brand-logo { height: 42px; width: 42px; border-radius: 10px; object-fit: cover; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
    color: var(--text-gray); text-decoration: none;
    padding: 8px 14px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 500; transition: 0.25s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
    background: var(--brand-blue); color: #fff;
    padding: 16px 40px; border-radius: 50px; text-decoration: none;
    font-weight: 600; transition: 0.3s; border: none; cursor: pointer;
    font-size: 1.05rem; display: inline-block;
    box-shadow: 0 10px 30px rgba(0,102,255,0.3);
}
.btn:hover { transform: scale(1.04); box-shadow: 0 15px 40px rgba(0,102,255,0.5); }
.btn-sm { padding: 10px 26px; font-size: 0.88rem; }
.btn-ghost {
    background: transparent; color: #c8cce0;
    border: 1px solid var(--glass-border); padding: 15px 38px;
    border-radius: 50px; text-decoration: none; font-weight: 600;
    transition: 0.3s; font-size: 1.05rem; display: inline-block;
}
.btn-ghost:hover { border-color: var(--brand-blue); color: #fff; }

/* ---------- Section headers ---------- */
.section-header { text-align: center; padding: 60px 20px 30px; }
.section-header h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: #fff; margin-bottom: 14px; font-weight: 700; }
.section-header p { color: var(--text-body); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }

/* ---------- Hero (homepage, 2-col with intake form) ---------- */
.hero {
    padding: 90px 6% 70px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.22; margin-bottom: 22px; font-weight: 800; }
.hero h1 span { color: var(--brand-blue); text-shadow: 0 0 30px rgba(0,102,255,0.3); }
.hero p.desc { color: var(--text-gray); max-width: 620px; font-size: 1.1rem; margin-bottom: 18px; }
.hero .hero-trust { color: var(--text-gray); font-size: 0.9rem; margin: 22px 0 0; }
.hero .hero-trust b { color: #c8cce0; font-weight: 600; }

/* ---------- Intake form ---------- */
.intake-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 38px 36px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.intake-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.intake-card .intake-sub { color: var(--text-gray); font-size: 0.85rem; margin-bottom: 22px; }
.intake-form label { display: block; color: var(--text-body); font-size: 0.82rem; font-weight: 600; margin: 16px 0 6px; }
.intake-form input[type="text"],
.intake-form input[type="date"],
.intake-form select {
    width: 100%; padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 12px; color: #fff; font-size: 0.95rem;
    outline: none; transition: 0.3s; font-family: inherit;
}
.intake-form input:focus, .intake-form select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(0,102,255,0.2); }
.intake-form select option { background: #0a1122; color: #fff; }
.intake-form input[type="file"] {
    width: 100%; padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1.5px dashed rgba(255,255,255,0.15);
    border-radius: 12px; color: var(--text-gray); font-size: 0.85rem; cursor: pointer;
}
.intake-form .btn { width: 100%; margin-top: 24px; }
.intake-form .form-foot { margin-top: 14px; text-align: center; color: var(--text-gray); font-size: 0.78rem; }
.intake-result { display: none; }
.intake-result.show { display: block; }
.intake-result .ok-title { color: #4ade80; font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.intake-result textarea {
    width: 100%; min-height: 130px; margin: 12px 0;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 12px; color: #c8cce0; font-size: 0.8rem; padding: 12px; resize: vertical; font-family: inherit;
}
.intake-result .btn { margin: 6px 0; }
.intake-result .back-edit { color: var(--text-gray); font-size: 0.8rem; cursor: pointer; text-decoration: underline; display: inline-block; margin-top: 10px; }

/* ---------- Service cards (Launch / Recover / Retain) ---------- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1300px;
    margin: 0 auto 40px;
    padding: 0 6%;
}
.svc-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 44px 38px;
    transition: 0.4s;
    display: flex; flex-direction: column;
}
.svc-card:hover { border-color: var(--brand-blue); transform: translateY(-8px); }
.svc-card .svc-tag {
    display: inline-block; align-self: flex-start;
    color: var(--brand-blue); background: rgba(0,102,255,0.12);
    font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px;
    padding: 4px 12px; border-radius: 20px; margin-bottom: 18px;
}
.svc-card h3 { font-size: 1.55rem; margin-bottom: 8px; }
.svc-card .svc-en { color: var(--text-gray); font-size: 0.85rem; margin-bottom: 18px; }
.svc-card ul { list-style: none; margin-bottom: 26px; flex-grow: 1; }
.svc-card li { color: var(--text-body); padding: 9px 0; font-size: 0.93rem; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; }
.svc-card li::before { content: "●"; font-size: 0.55rem; margin-right: 13px; color: var(--brand-blue); flex-shrink: 0; }
.svc-price { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.svc-price small { font-size: 0.85rem; color: var(--text-gray); font-weight: 500; }
.svc-price-note { color: var(--text-gray); font-size: 0.8rem; margin-bottom: 20px; }
.svc-card .btn { text-align: center; }

/* ---------- Cases (anonymized writeups) ---------- */
.cases-scroller {
    overflow: hidden;
    max-width: 1300px;
    margin: 0 auto 40px;
    padding: 0 6%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.cases-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: case-scroll 90s linear infinite;
}
.cases-scroller:hover .cases-track { animation-play-state: paused; }
@keyframes case-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.case-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    padding: 34px 32px;
    transition: 0.3s;
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.case-card:hover { border-color: rgba(0,102,255,0.4); }
.case-card .case-quote { color: #e0e4f5; font-size: 0.95rem; line-height: 1.8; flex: 1; }
.case-card .case-quote::before { content: "“"; color: var(--brand-blue); font-size: 1.6rem; font-weight: 800; line-height: 0; margin-right: 4px; }
.case-card .case-meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); color: var(--text-gray); font-size: 0.8rem; display: flex; gap: 8px; flex-wrap: wrap; }
.case-card .case-meta span { background: rgba(0,102,255,0.12); color: var(--brand-blue); padding: 2px 10px; border-radius: 14px; font-weight: 600; font-size: 0.72rem; }

/* ---------- Knowledge base / official releases (home) ---------- */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 1300px;
    margin: 0 auto 30px;
    padding: 0 6%;
}
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 44px 40px;
    transition: 0.4s;
}
.glass-card:hover { border-color: var(--brand-blue); }
.glass-card h3 { font-size: 1.4rem; margin-bottom: 26px; border-left: 5px solid var(--brand-blue); padding-left: 16px; }
.home-post-item {
    padding: 13px 0; color: var(--text-body);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: flex-start; gap: 10px;
}
.home-post-item::before { content: "●"; font-size: 0.55rem; margin-top: 6px; color: var(--brand-blue); flex-shrink: 0; }
.home-post-link { color: #c8cce0; text-decoration: none; font-size: 0.9rem; line-height: 1.5; transition: 0.2s; display: block; }
.home-post-link:hover { color: var(--brand-blue); }
.home-post-meta { font-size: 0.7rem; color: var(--text-gray); margin-top: 2px; }
.home-post-summary { font-size: 0.75rem; color: var(--text-gray); margin-top: 4px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.view-all { margin-top: 20px; text-align: right; }

/* ---------- Money pages ---------- */
.page-hero { padding: 80px 6% 50px; text-align: center; max-width: 1000px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); line-height: 1.25; margin-bottom: 20px; font-weight: 800; }
.page-hero h1 span { color: var(--brand-blue); }
.page-hero p { color: var(--text-gray); font-size: 1.08rem; max-width: 720px; margin: 0 auto 32px; }
.page-hero .btn { margin: 6px 10px; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 6%; }
.sec { padding: 50px 0 30px; }
.sec h2 { font-size: 1.7rem; margin-bottom: 18px; font-weight: 700; }
.sec h2 .en-sub { display: block; font-size: 0.95rem; color: var(--text-gray); font-weight: 500; margin-top: 4px; }
.sec p, .sec li { color: var(--text-body); font-size: 1rem; }
.sec ul { list-style: none; margin: 14px 0; }
.sec ul li { padding: 8px 0; display: flex; align-items: flex-start; }
.sec ul li::before { content: "●"; font-size: 0.55rem; margin: 10px 13px 0 0; color: var(--brand-blue); flex-shrink: 0; }

/* pricing tables */
.price-table { width: 100%; border-collapse: collapse; margin: 22px 0 10px; background: var(--glass); border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border); }
.price-table th, .price-table td { padding: 16px 22px; text-align: left; font-size: 0.95rem; }
.price-table thead th { background: rgba(0,102,255,0.14); color: #fff; font-size: 0.9rem; font-weight: 700; }
.price-table tbody tr { border-top: 1px solid rgba(255,255,255,0.06); }
.price-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.price-table td:last-child { color: #fff; font-weight: 700; white-space: nowrap; }
.price-table .note { color: var(--text-gray); font-size: 0.78rem; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin: 24px 0; }
.step { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 22px; padding: 26px 24px; }
.step .step-num { color: var(--brand-blue); font-weight: 800; font-size: 0.8rem; letter-spacing: 1.5px; }
.step h4 { margin: 8px 0 6px; font-size: 1.05rem; }
.step p { color: var(--text-gray); font-size: 0.88rem; }

/* callout / trust boxes */
.callout {
    background: rgba(0,102,255,0.08);
    border: 1px solid rgba(0,102,255,0.25);
    border-radius: 20px;
    padding: 22px 26px;
    margin: 26px 0;
    color: #c8cce0; font-size: 0.95rem;
}
.callout b { color: #fff; }

/* english seo block */
.en-block {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 30px 32px;
    margin: 40px 0;
}
.en-block h3 { color: #fff; font-size: 1.15rem; margin-bottom: 12px; }
.en-block p { color: var(--text-gray); font-size: 0.9rem; }

/* related services strip */
.rel-links { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.rel-links a {
    color: var(--text-gray); text-decoration: none; font-size: 0.85rem;
    padding: 8px 18px; border: 1px solid var(--glass-border); border-radius: 30px; transition: 0.25s;
}
.rel-links a:hover { border-color: var(--brand-blue); color: #fff; }

/* intake section on money pages */
.intake-section { max-width: 720px; margin: 0 auto; padding: 30px 6% 80px; }

/* ---------- Footer ---------- */
footer { text-align: center; padding: 90px 20px 50px; border-top: 1px solid var(--glass-border); margin-top: 60px; }
.footer-brand { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; }
.footer-links { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 22px; }
.footer-links a { color: var(--text-gray); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-qr { display: flex; justify-content: center; gap: 50px; margin: 30px 0 20px; flex-wrap: wrap; }
.footer-qr div img { width: 130px; height: 130px; border-radius: 16px; background: #fff; padding: 8px; margin-bottom: 10px; }
.footer-qr p { color: var(--text-gray); font-weight: 500; font-size: 0.88rem; }
.footer-email { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 6px; }
.footer-email a { color: var(--brand-blue); text-decoration: none; }
.footer-email a:hover { text-decoration: underline; }
.footer-addr { color: var(--text-gray); font-size: 0.83rem; margin-top: 4px; }
.footer-legal { color: #555b73; font-size: 0.78rem; margin-top: 26px; }
.footer-legal a { color: #555b73; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 60px 6% 50px; gap: 40px; }
    .svc-grid, .home-grid, .cases-grid { padding: 0 5%; }
    nav { padding: 16px 5%; }
    .nav-link { padding: 6px 10px; font-size: 0.82rem; }
    .price-table th, .price-table td { padding: 12px 14px; font-size: 0.85rem; }
    .sec { padding: 40px 0 20px; }
}
