/* Finlo product pages — Assists / Dine / Ticketing */
:root {
    --primary: #28a745;
    --primary-dark: #1e7e34;
    --secondary: #111111;
    --dark: #000000;
    --light: #ffffff;
    --gradient: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    --container-x: 24px;
}

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

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--container-x);
    padding-right: var(--container-x);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(40, 167, 69, 0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.btn-outline:hover {
    background: rgba(40, 167, 69, 0.12);
    border-color: var(--primary);
}

/* Header (matches index) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-menu > a,
.nav-menu .dropdown > a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.nav-menu > a:hover,
.nav-menu .dropdown > a:hover {
    color: var(--primary);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 220px;
    background: #151515;
    border: 1px solid rgba(40, 167, 69, 0.25);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 20;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.dropdown-content a:hover {
    background: rgba(40, 167, 69, 0.12);
    color: #fff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1001;
}

.mobile-overlay.active { display: block; }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 86vw);
    height: 100vh;
    background: var(--secondary);
    z-index: 1002;
    padding: 80px 28px 30px;
    transition: right 0.3s ease;
}

.mobile-menu.active { right: 0; }

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

/* Hero */
.product-hero {
    position: relative;
    padding: 140px 0 70px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(40, 167, 69, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 78% 28%, rgba(40, 167, 69, 0.12) 0%, transparent 42%),
        var(--dark);
}

.product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(40, 167, 69, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 167, 69, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.product-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.product-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.product-hero h1 {
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.12;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.product-hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-hero-lead {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin-bottom: 28px;
}

.product-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.product-hero-visual img {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.45));
}

.product-hero-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(40, 167, 69, 0.3) 0%, transparent 70%);
    z-index: -1;
    filter: blur(12px);
}

/* Sections */
.product-section {
    padding: 90px 0;
    position: relative;
}

.product-section.alt {
    background: linear-gradient(180deg, #0a0a0a 0%, #0c1510 50%, #000 100%);
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 52px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.28);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    margin-bottom: 14px;
}

.section-head p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    line-height: 1.7;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px 24px;
    border-radius: 18px;
    background:
        radial-gradient(120% 90% at 10% 0%, rgba(40, 167, 69, 0.12) 0%, transparent 55%),
        linear-gradient(160deg, #141414 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(40, 167, 69, 0.4);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, 0.14);
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
}

/* Flowchart */
.flow-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.flow-track {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.flow-step {
    flex: 1 0 160px;
    min-width: 150px;
    position: relative;
    text-align: center;
    padding: 0 8px;
}

.flow-step + .flow-step::before {
    content: '';
    position: absolute;
    top: 28px;
    left: -6%;
    width: 12%;
    height: 2px;
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.15), rgba(40, 167, 69, 0.7));
}

.flow-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1a3d24 0%, #0f2416 100%);
    border: 1px solid rgba(40, 167, 69, 0.45);
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0.08);
}

.flow-step h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.flow-step p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.flow-note {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

/* Vertical detail flow */
.detail-flow {
    display: grid;
    gap: 18px;
    max-width: 820px;
    margin: 0 auto;
}

.detail-flow-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-flow-item .flow-num {
    margin: 0;
}

.detail-flow-item h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.detail-flow-item p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
}

/* Use cases */
.use-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.use-card {
    padding: 22px 18px;
    border-radius: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.use-card i {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 12px;
}

.use-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.use-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Benefits strip */
.benefit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
    max-width: 900px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.benefit-item i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}

/* CTA */
.product-cta {
    padding: 90px 0;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(40, 167, 69, 0.2) 0%, transparent 55%),
        linear-gradient(180deg, #0b120e 0%, #000 100%);
}

.product-cta h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    margin-bottom: 14px;
}

.product-cta p {
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.product-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Related products */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.related-card:hover {
    border-color: rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.related-card img {
    width: 72px;
    height: 54px;
    object-fit: contain;
    border-radius: 8px;
    background: #0a1510;
}

.related-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.related-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
    padding: 70px 0 28px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 34px;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.footer-contact a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

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

.footer-contact i {
    color: var(--primary);
    width: 18px;
    margin-right: 6px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.footer-social a:hover {
    background: rgba(40, 167, 69, 0.2);
    color: var(--primary);
}

.footer-links h4 {
    font-size: 15px;
    margin-bottom: 14px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover { color: var(--primary); }

@media (max-width: 992px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: inline-flex; }
    .product-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    .product-hero-lead { margin-left: auto; margin-right: auto; }
    .product-hero-actions { justify-content: center; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .use-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .product-hero { padding: 120px 0 50px; }
    .product-section { padding: 64px 0; }
    .feature-grid,
    .use-grid,
    .benefit-list,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .flow-step + .flow-step::before { display: none; }
    .detail-flow-item {
        grid-template-columns: 48px 1fr;
        gap: 12px;
    }
    .detail-flow-item .flow-num {
        width: 48px;
        height: 48px;
        font-size: 15px;
    }
}
