/* ======================================================
   ShareBible — Landing Page Stylesheet
   AdSense-compliant redesign: Hero + Rich Content
   ====================================================== */

/* -------- TOKENS -------- */
:root {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.45);
    --bg-dark: #09090f;
    --bg-section: #0f0f1a;
    --bg-card: rgba(255, 255, 255, 0.045);
    --bg-card-hover: rgba(255, 255, 255, 0.085);
    --gold: #d4af37;
    --gold-dim: rgba(212, 175, 55, 0.15);
    --jade: #3a6b56;
    --jade-dim: rgba(58, 107, 86, 0.18);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.22);
    --glass-bg: rgba(10, 10, 20, 0.42);
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Noto Serif KR', 'Georgia', serif;
    --radius: 20px;
    --radius-sm: 10px;
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    --transition: 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -------- UTILITIES -------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

/* ======================================================
   HERO — SPLIT GATEWAY
   ====================================================== */

#hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 560px;
}

.split-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.hub-header {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    pointer-events: none;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 4px;
    box-shadow: var(--shadow);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all var(--transition-fast);
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.lang-btn.active {
    background: var(--gold);
    color: #000;
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* --- Split Panes --- */
.split-pane {
    position: relative;
    flex-grow: 1;
    flex-basis: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: flex-grow var(--transition);
    cursor: pointer;
}

@media (min-width: 769px) {
    .split-layout:hover .split-pane { flex-grow: 0.538; }
    .split-layout:hover .split-pane:hover { flex-grow: 1; }
}

/* Background panels */
.pane-bg {
    position: absolute;
    top: -5%; left: -5%;
    width: 110%; height: 110%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

.bg-bible { background-image: url('assets/images/bible_bg.webp'); }
.bg-king  { background-image: url('assets/images/king_bg.webp'); }

/* Overlays */
.overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    transition: background-color 0.5s ease;
}

.overlay-bible { background-color: rgba(0, 0, 0, 0.48); }
.overlay-king  { background-color: rgba(0, 0, 0, 0.56); }

@media (min-width: 769px) {
    .split-layout:hover .overlay          { background-color: rgba(0, 0, 0, 0.76); }
    .split-layout:hover .split-pane:hover .overlay { background-color: rgba(0, 0, 0, 0.22); }
}

/* Glassmorphic card */
.pane-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2.5rem;
    border-radius: 26px;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    max-width: 420px;
    width: 82%;
    transform: translateY(16px);
    opacity: 0.92;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.split-pane:hover .pane-content {
    transform: translateY(0);
    opacity: 1;
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.pane-logo {
    height: 60px;
    width: auto;
    max-width: 88%;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}

.split-pane:hover .pane-logo { transform: scale(1.06); }

.description {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Tags inside pane */
.pane-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.tag {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
}

/* CTA button in pane */
.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 35px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: all 0.3s ease;
}

.pane-bible:hover .btn-explore {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: translateY(-2px);
}

.pane-king:hover .btn-explore {
    background: var(--jade);
    color: #fff;
    border-color: var(--jade);
    transform: translateY(-2px);
}

.arrow { transition: transform 0.3s ease; }
.split-pane:hover .arrow { transform: translateX(6px); }

/* ======================================================
   ABOUT SECTION
   ====================================================== */

.section-about {
    padding: 96px 0 80px;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

.section-about::before {
    content: '';
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.section-title-sm {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.section-desc strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

/* ======================================================
   AD SLOT
   ====================================================== */

.ad-slot-wrapper {
    padding: 24px;
    background: var(--bg-dark);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ======================================================
   FEATURES SECTIONS
   ====================================================== */

.section-features {
    padding: 96px 0;
}

.bible-theme {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.bible-theme::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.king-theme {
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

.king-theme::before {
    content: '';
    position: absolute;
    top: -80px; left: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(ellipse, rgba(58, 107, 86, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 48px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
}

.feature-content {
    flex-grow: 1;
    margin-bottom: 24px;
}

.bible-theme .feature-card:hover { border-color: rgba(212, 175, 55, 0.4); }
.king-theme .feature-card:hover  { border-color: rgba(58, 107, 86, 0.5); }

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.feature-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Feature Detail Button */
.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    transition: all var(--transition-fast);
    padding: 8px 0;
    width: fit-content;
}

.king-theme .btn-detail {
    color: #6ee79f;
}

.btn-detail .plus {
    display: inline-flex;
    width: 20px;
    height: 20px;
    background: var(--gold-dim);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.king-theme .btn-detail .plus {
    background: var(--jade-dim);
}

.btn-detail:hover {
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.btn-detail:hover .plus {
    transform: rotate(90deg);
}

/* CTA Button */
.cta-wrapper {
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-bible {
    background: var(--gold);
    color: #000;
}

.cta-bible:hover {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

.cta-king {
    background: var(--jade);
    color: #fff;
}

.cta-king:hover {
    background: transparent;
    border-color: var(--jade);
    color: #5a9b7d;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(58, 107, 86, 0.3);
}

/* ======================================================
   COMPARISON TABLE
   ====================================================== */

.section-comparison {
    padding: 96px 0;
    background: var(--bg-dark);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.comparison-table thead {
    background: rgba(255, 255, 255, 0.04);
}

.comparison-table th {
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.th-sharebible {
    color: var(--gold) !important;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table tbody tr:last-child td { border-bottom: none; }

.td-yes     { color: #6ee79f; font-weight: 500; }
.td-no      { color: rgba(255, 255, 255, 0.38); }
.td-partial { color: rgba(255, 200, 100, 0.8); }

/* ======================================================
   PLATFORM SECTION
   ====================================================== */

.section-platform {
    padding: 96px 0;
    background: var(--bg-section);
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 60px;
}

.platform-card {
    padding: 36px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.platform-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.platform-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.platform-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.platform-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Wisdom Quote */
.wisdom-quote {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 32px 36px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 16px;
}

.quote-source {
    font-size: 0.85rem;
    color: var(--gold);
    font-style: normal;
    font-weight: 600;
}

/* ======================================================
   FOOTER
   ====================================================== */

.site-footer {
    background: #060610;
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0.9);
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-tagline em {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-copyright {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-nav-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
}

.footer-legal-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 860px;
}

.footer-legal-note a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.2);
}

.footer-legal-note a:hover { color: var(--text-primary); }

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
    .stats-row     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    #hero {
        height: 100svh;
    }

    .split-layout {
        flex-direction: column;
    }

    .split-pane {
        width: 100%;
        height: 50%;
        flex-grow: 0;
        flex-basis: auto;
    }

    .hub-header { top: 20px; }
    .subtitle   { font-size: 0.7rem; letter-spacing: 3px; }

    .pane-logo    { height: 44px; margin-bottom: 1rem; }
    .pane-content { padding: 1.75rem; width: 88%; }
    .description  { font-size: 0.88rem; margin-bottom: 1rem; }
    .pane-tags    { display: none; }

    .section-about,
    .section-features,
    .section-comparison,
    .section-platform { padding: 64px 0; }

    .section-title    { font-size: 1.6rem; }
    .section-title-sm { font-size: 1.35rem; }
    .section-desc     { font-size: 0.96rem; }

    .features-grid  { grid-template-columns: 1fr; gap: 16px; }
    .stats-row      { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .platform-cards { grid-template-columns: 1fr; }
    .footer-grid    { grid-template-columns: 1fr; gap: 32px; }

    .table-wrapper { border-radius: var(--radius-sm); }
    .comparison-table th,
    .comparison-table td { padding: 12px 14px; font-size: 0.82rem; }

    .wisdom-quote { padding: 24px 20px; }
    .quote-text   { font-size: 0.98rem; }
}

@media (max-width: 480px) {
    .stat-number { font-size: 1.8rem; }
    .cta-button  { padding: 14px 28px; font-size: 0.92rem; }
}
