/* ========================================
   ZAFTO Premium Polish Layer (Clean)
   ======================================== */

/* Sharp text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Hero enhancements */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo svg {
    width: 140px;
    height: 140px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.5);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

/* Stats bar */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding: 2rem 3rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* Buttons */
.btn {
    position: relative;
    padding: 16px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.12);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section styling */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
    padding: 8px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.5);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

/* Platform Cards */
.platform-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
}

.platform-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.8);
}

.platform-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.platform-card p {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    line-height: 1.6;
}

.platform-card-stat {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.platform-card-large {
    grid-row: span 2;
}

/* Trade Cards */
.trades-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.trade-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.trade-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

.trade-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
}

.trade-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trade-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}

.trade-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.trade-coming {
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.08);
}

.trade-active {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

/* Feature rows */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-row-reverse {
    direction: rtl;
}

.feature-row-reverse > * {
    direction: ltr;
}

.feature-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.feature-content p {
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

.feature-bullets li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Feature mockups */
.feature-mockup {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
}

.mockup-header {
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    gap: 8px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.mockup-content {
    padding: 1.5rem;
}

.mockup-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
}

.chat-user {
    background: rgba(255,255,255,0.08);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-ai {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Invoice mockup */
.mockup-invoice {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.invoice-header {
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.invoice-line {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.invoice-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.invoice-btn {
    background: #ffffff;
    color: #000000;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Office icons */
.feature-mockup-office {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.office-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.office-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 16px;
    transition: transform 0.2s;
}

.office-icon:hover {
    transform: scale(1.05);
}

.office-word {
    background: linear-gradient(135deg, #2b579a, #1e3a5f);
    color: white;
}

.office-excel {
    background: linear-gradient(135deg, #217346, #0d4a25);
    color: white;
}

.office-ppt {
    background: linear-gradient(135deg, #d24726, #a03517);
    color: white;
}

.office-text {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* Future section */
.future-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.future-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.future-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

.future-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
}

.future-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.future-card p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.future-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
}

.future-cta {
    text-align: center;
    margin-top: 4rem;
}

.future-cta p {
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}

/* Download section */
.download {
    text-align: center;
    padding: 10rem 0;
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.download h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.download-content p {
    color: rgba(255,255,255,0.5);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download-note {
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.3) !important;
    font-size: 0.9rem !important;
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-brand p {
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-company {
    margin-top: 1rem;
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.3) !important;
}

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* Nav refinements */
.nav {
    padding: 1rem 0;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-cta {
    background: #ffffff;
    color: #000000;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-card-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .trades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .future-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .feature-row-reverse {
        direction: ltr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .platform-grid,
    .trades-grid,
    .future-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-card-large {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-logo svg {
        width: 100px;
        height: 100px;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .features-list {
        gap: 5rem;
    }
}

/* Scroll animations */
.section-header,
.platform-card,
.trade-card,
.feature-row,
.future-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-header.visible,
.platform-card.visible,
.trade-card.visible,
.feature-row.visible,
.future-card.visible {
    opacity: 1;
    transform: translateY(0);
}
