/* ===== AMURA LISTING — Product Page ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #060609;
    --accent: #00a78a;
    --accent-dark: #0c7762;
    --accent-light: #0fcea9;
    --glow: rgba(0,167,138,0.15);
    --text: #F2F2F2;
    --text-dim: #7B8CA8;
    --surface: rgba(255,255,255,0.03);
    --border: rgba(255,255,255,0.06);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --gold: #D4A853;
    --gold-dim: rgba(212,168,83,0.12);
}

[data-theme="light"] {
    --bg: #F5F5F7;
    --text: #1A1A2E;
    --text-dim: #64748B;
    --surface: rgba(0,0,0,0.03);
    --border: rgba(0,0,0,0.06);
    --glow: rgba(0,167,138,0.10);
    /* Gold accents stay the same */
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== TOPBAR ===== */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 56px; display: flex; align-items: center; padding: 0 32px;
    background: var(--theme-nav-bg, rgba(6,6,9,0.7));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s, border-color 0.3s;
}
.topbar-inner {
    width: 100%; max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.topbar-logo img { height: 30px; width: auto; }
.topbar-back {
    font-size: 13px; font-weight: 500; color: var(--text-dim);
    display: flex; align-items: center; gap: 6px; transition: color 0.2s;
}
.topbar-back:hover { color: var(--text); }
.topbar-back svg { width: 16px; height: 16px; }
.topbar-actions {
    display: flex; align-items: center; gap: 12px;
}
.topbar-cta {
    padding: 7px 18px; font-size: 13px; font-weight: 600;
    color: #fff; background: var(--accent); border-radius: 7px;
    transition: background 0.2s, box-shadow 0.2s;
}
.topbar-cta:hover {
    background: var(--accent-dark);
    box-shadow: 0 0 24px var(--glow);
}

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

.listing-hero-bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(212,168,83,0.03) 0%, transparent 40%),
        linear-gradient(135deg, rgba(0,167,138,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated rows background */
.listing-hero-rows {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden; pointer-events: none;
}
.hero-row {
    position: absolute;
    left: -5%; right: -5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    animation: row-slide 12s linear infinite;
}
.hero-row:nth-child(1) { top: 15%; animation-delay: 0s; opacity: 0.3; }
.hero-row:nth-child(2) { top: 28%; animation-delay: 2s; opacity: 0.5; }
.hero-row:nth-child(3) { top: 41%; animation-delay: 4s; opacity: 0.2; }
.hero-row:nth-child(4) { top: 54%; animation-delay: 1s; opacity: 0.4; }
.hero-row:nth-child(5) { top: 67%; animation-delay: 3s; opacity: 0.3; }
.hero-row:nth-child(6) { top: 80%; animation-delay: 5s; opacity: 0.2; }

@keyframes row-slide {
    0% { transform: translateX(-2%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(2%); opacity: 0; }
}

.listing-hero-inner {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr;
    gap: 60px; align-items: center;
}

.listing-hero-content { max-width: 520px; }

.listing-hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 16px 6px 8px;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid rgba(212,168,83,0.18);
    border-radius: 100px;
    margin-bottom: 28px;
}
.listing-hero-tag-icon {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold);
    border-radius: 50%;
}
.listing-hero-tag-icon svg { width: 13px; height: 13px; color: #000; }

.listing-hero h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800; line-height: 1.05;
    letter-spacing: -0.04em; margin-bottom: 24px;
}
.listing-hero h1 .glow {
    background: linear-gradient(135deg, var(--gold), var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.listing-hero-desc {
    font-size: clamp(16px, 1.8vw, 18px);
    color: var(--text-dim); line-height: 1.7;
    margin-bottom: 36px;
}

.listing-hero-ctas {
    display: flex; flex-wrap: wrap; gap: 14px;
}

/* ===== BUTTONS ===== */
.btn-listing {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; font-size: 15px; font-weight: 600;
    color: #000; background: var(--gold);
    border-radius: 12px; position: relative; overflow: hidden;
    transition: all 0.3s;
}
.btn-listing::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%); transition: transform 0.5s;
}
.btn-listing:hover::before { transform: translateX(100%); }
.btn-listing:hover {
    box-shadow: 0 0 40px rgba(212,168,83,0.3), 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.btn-listing-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; font-size: 15px; font-weight: 600;
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px; transition: all 0.3s;
}
.btn-listing-outline:hover {
    border-color: rgba(212,168,83,0.3);
    background: rgba(212,168,83,0.05);
    transform: translateY(-2px);
}

/* ===== MOCK TABLE (Hero) ===== */
.hero-table-mock {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(10,10,18,0.6);
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.mock-toolbar {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.mock-search {
    flex: 1; padding: 8px 12px;
    font-size: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
}
.mock-filter-pill {
    padding: 6px 12px;
    font-size: 11px; font-weight: 600;
    color: var(--text-dim);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.mock-table {
    width: 100%;
    border-collapse: collapse;
}
.mock-table th {
    padding: 10px 16px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-dim);
    text-align: left;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.mock-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-dim);
}
.mock-table tr {
    transition: background 0.2s;
}
.mock-table tbody tr:hover {
    background: rgba(0,167,138,0.03);
}
.mock-rank {
    font-weight: 800;
    color: var(--gold);
    font-size: 15px;
}
.mock-name {
    font-weight: 600;
    color: var(--text);
}
.mock-table .mock-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: #fff;
    margin-right: 10px;
    vertical-align: middle;
}

.mock-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 14px;
    border-top: 1px solid var(--border);
}
.mock-page {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
    border-radius: 6px;
    color: var(--text-dim);
}
.mock-page.active {
    background: var(--gold);
    color: #000;
}

@media (min-width: 1024px) {
    .listing-hero-inner { grid-template-columns: 1fr 1.1fr; }
}

/* ===== SECTION SHARED ===== */
.ls-section {
    padding: 120px 0; position: relative;
}
.ls-section + .ls-section { border-top: 1px solid var(--border); }
.ls-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.ls-tag {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 20px;
}
.ls-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800; line-height: 1.12;
    letter-spacing: -0.025em; margin-bottom: 16px;
}
.ls-desc {
    font-size: 16px; color: var(--text-dim);
    line-height: 1.7; max-width: 560px; margin-bottom: 48px;
}

/* ===== FLOW — Excel → Table ===== */
.flow-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.flow-step {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.flow-step:last-child { border-bottom: none; }

.flow-step-badge {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
}
.flow-step-num {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
    color: #000; background: var(--gold);
    border-radius: 8px;
}
.flow-step-label {
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--gold);
}

.flow-step h3 {
    font-size: 20px; font-weight: 700;
    margin-bottom: 8px;
}
.flow-step p {
    font-size: 14px; color: var(--text-dim); line-height: 1.65;
}

/* Flow visual mock */
.flow-visual {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

/* Excel mock */
.excel-mock {
    font-family: 'Consolas', 'SF Mono', monospace;
    font-size: 11px;
}
.excel-mock-row {
    display: grid;
    grid-template-columns: 40px repeat(4, 1fr);
    gap: 1px;
}
.excel-mock-cell {
    padding: 6px 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.excel-mock-cell.header {
    background: rgba(212,168,83,0.06);
    color: var(--gold);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
}
.excel-mock-cell.index {
    color: rgba(255,255,255,0.2);
    text-align: center;
    font-size: 10px;
}

/* Widget code mock */
.widget-code {
    font-family: 'Consolas', 'SF Mono', monospace;
    font-size: 11px; line-height: 1.6;
    color: var(--text-dim);
    padding: 16px;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    overflow-x: auto;
}
.widget-code .tag { color: var(--accent); }
.widget-code .attr { color: var(--gold); }
.widget-code .str { color: var(--accent-light); }

@media (min-width: 768px) {
    .flow-step { grid-template-columns: 1fr 1fr; }
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.feature-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: rgba(0,167,138,0.25);
    box-shadow: 0 0 24px var(--glow);
}
.feature-card-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,167,138,0.08);
    border-radius: 10px;
    color: var(--accent);
    margin-bottom: 16px;
}
.feature-card-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
    font-size: 16px; font-weight: 700; margin-bottom: 8px;
}
.feature-card p {
    font-size: 14px; color: var(--text-dim); line-height: 1.65;
}

@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== RESPONSIVE SHOWCASE ===== */
.responsive-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 48px;
    align-items: start;
}

.device-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(10,10,18,0.6);
}
.device-label {
    padding: 10px 16px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-dim);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.device-label svg { width: 14px; height: 14px; color: var(--accent); }

.device-content {
    padding: 20px;
}

/* Desktop table mock in showcase */
.showcase-table {
    width: 100%; border-collapse: collapse;
    font-size: 12px;
}
.showcase-table th {
    padding: 8px 12px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-dim); text-align: left;
    border-bottom: 1px solid var(--border);
}
.showcase-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-dim);
}
.showcase-table .rank { color: var(--gold); font-weight: 800; }
.showcase-table .name { color: var(--text); font-weight: 600; }

/* Accordion mock */
.showcase-accordion {
    margin: 0 12px 8px;
    padding: 16px;
    background: rgba(0,167,138,0.03);
    border: 1px solid rgba(0,167,138,0.1);
    border-radius: 10px;
    display: flex; gap: 16px;
    font-size: 12px; color: var(--text-dim);
    line-height: 1.5;
}
.accordion-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    flex-shrink: 0;
}
.accordion-bio { flex: 1; }
.accordion-bio strong { color: var(--text); display: block; margin-bottom: 4px; }

/* Mobile card mock */
.mobile-card-mock {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex; gap: 14px;
    align-items: center;
}
.mobile-card-rank {
    font-size: 20px; font-weight: 800; color: var(--gold);
    width: 36px; text-align: center;
}
.mobile-card-info {
    flex: 1;
}
.mobile-card-name { font-size: 14px; font-weight: 600; color: var(--text); }
.mobile-card-meta { font-size: 12px; color: var(--text-dim); }
.mobile-card-arrow {
    color: var(--text-dim); opacity: 0.4;
}
.mobile-card-arrow svg { width: 16px; height: 16px; }

@media (min-width: 768px) {
    .responsive-showcase { grid-template-columns: 1.4fr 0.6fr; }
}

/* ===== USE CASE ===== */
.usecase-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px;
    font-size: 11px; font-weight: 700;
    color: var(--gold);
    background: var(--gold-dim);
    border-radius: 6px;
    margin-bottom: 10px;
}

.usecases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.usecase-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.usecase-card:hover {
    border-color: rgba(212,168,83,0.2);
    box-shadow: 0 0 20px rgba(212,168,83,0.08);
}
.usecase-card h3 {
    font-size: 17px; font-weight: 700; margin-bottom: 8px;
}
.usecase-card p {
    font-size: 14px; color: var(--text-dim); line-height: 1.65;
}

@media (min-width: 768px) { .usecases-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== CTA ===== */
.listing-cta {
    padding: 120px 0;
    text-align: center;
    position: relative; overflow: hidden;
}
.listing-cta::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(212,168,83,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.listing-cta-inner {
    position: relative; z-index: 1;
    max-width: 600px; margin: 0 auto; padding: 0 24px;
}
.listing-cta h2 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800; letter-spacing: -0.03em;
    line-height: 1.1; margin-bottom: 20px;
}
.listing-cta p {
    font-size: 17px; color: var(--text-dim);
    line-height: 1.7; margin-bottom: 36px;
}
.listing-cta-buttons {
    display: flex; flex-wrap: wrap;
    gap: 14px; justify-content: center;
}

/* ===== FOOTER ===== */
.listing-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px; text-align: center;
}
.listing-footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center;
    gap: 16px;
}
.listing-footer-logo img { height: 22px; }
.listing-footer-text { font-size: 13px; color: var(--text-dim); }

/* ===== REVEAL ===== */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

@media (max-width: 767px) {
    .listing-hero { min-height: auto; padding: 100px 0 60px; }
    .ls-section { padding: 80px 0; }
    .listing-cta { padding: 80px 0; }
    .topbar { padding: 0 16px; }
}
