/* =============================================
   PIATTAFORMA SaaS — Landing Page Styles
   ============================================= */

:root {
    --primary: #6C3CE1;
    --primary-dark: #5228CC;
    --primary-light: #8B5CF6;
    --secondary: #0EA5E9;
    --secondary-dark: #0284C7;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --success: #10B981;
    --text: #1E293B;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --bg: #ffffff;
    --bg-alt: #F8FAFC;
    --bg-dark: #0F172A;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* =============================================
   NAVBAR
   ============================================= */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    transition: var(--transition);
    flex-shrink: 0;
}

.navbar.scrolled .nav-logo { color: var(--primary); }

.nav-logo img {
    height: 40px;
    width: auto;
    max-width: 180px;
    border-radius: 0;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar.scrolled .nav-links a { color: var(--text-light); }
.nav-links a:hover { color: var(--accent); }

.btn-nav {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
}

.btn-nav:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

.navbar.scrolled .nav-toggle { color: var(--primary); }

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 8px 30px rgba(108, 60, 225, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 60, 225, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #38BDF8 100%);
    color: #fff;
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.35);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.45);
}

.btn-outline {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* =============================================
   HERO
   ============================================= */

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 40%, #312E81 70%, #4C1D95 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(108, 60, 225, 0.3), transparent),
        radial-gradient(ellipse 500px 300px at 80% 30%, rgba(14, 165, 233, 0.2), transparent),
        radial-gradient(ellipse 300px 300px at 60% 80%, rgba(245, 158, 11, 0.1), transparent);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.3), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-logo {
    margin-bottom: 32px;
}

.hero-logo img {
    height: auto;
    width: auto;
    max-width: min(80%, 500px);
    max-height: 90px;
    border-radius: 0;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
    object-fit: contain;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 50px;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #FBBF24 50%, #FDE68A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* =============================================
   SECTIONS COMMON
   ============================================= */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.08), rgba(14, 165, 233, 0.08));
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   PRODUCTS
   ============================================= */

.products {
    padding: 100px 0;
    background: var(--bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 48px 36px 40px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card.cassiopea::before {
    background: linear-gradient(90deg, #1565C0, #42A5F5);
}

.product-card.inventorypos::before {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.product-card.custom::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.product-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 24px;
}

.cassiopea .product-icon {
    background: linear-gradient(135deg, #1565C0, #42A5F5);
}

.inventorypos .product-icon {
    background: linear-gradient(135deg, #10B981, #34D399);
}

.custom .product-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-card .product-desc {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    margin-bottom: 32px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--text-light);
}

.product-features li i {
    color: var(--success);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.status-live {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-dev {
    background: rgba(108, 60, 225, 0.1);
    color: var(--primary);
}

.product-card .btn { width: 100%; justify-content: center; }

/* =============================================
   WHY US
   ============================================= */

.why-us {
    padding: 100px 0;
    background: var(--bg-alt);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.why-card {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    color: #fff;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.why-card p {
    color: var(--text-light);
    font-size: 0.92rem;
}

/* =============================================
   PROCESS
   ============================================= */

.process {
    padding: 100px 0;
    background: var(--bg);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.step {
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 30px rgba(108, 60, 225, 0.25);
}

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

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =============================================
   CTA
   ============================================= */

.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 400px 300px at 20% 50%, rgba(108, 60, 225, 0.25), transparent),
        radial-gradient(ellipse 400px 300px at 80% 50%, rgba(14, 165, 233, 0.15), transparent);
}

.cta-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 40px;
}

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

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

.footer {
    background: var(--bg-dark);
    padding: 60px 0 30px;
    color: rgba(255,255,255,0.6);
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-logo img {
    height: 36px;
    border-radius: 0;
}

.footer-links h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
    text-align: center;
    font-size: 0.85rem;
}

/* =============================================
   ANIMATIONS
   ============================================= */

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE — Tablet
   ============================================= */

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.88rem;
    }
}

/* =============================================
   RESPONSIVE — Mobile
   ============================================= */

@media (max-width: 768px) {
    /* Navbar mobile */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 1rem;
        color: rgba(255,255,255,0.9);
    }

    .nav-links a:hover {
        background: rgba(255,255,255,0.08);
    }

    .nav-links .btn-nav {
        text-align: center;
        margin-top: 8px;
    }

    .navbar.scrolled .nav-links {
        background: rgba(255,255,255,0.98);
    }

    .navbar.scrolled .nav-links a {
        color: var(--text);
    }

    .navbar.scrolled .nav-links a:hover {
        background: rgba(108, 60, 225, 0.06);
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.25;
    }

    .hero h1 br {
        display: none;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    .hero-logo {
        margin-bottom: 16px;
    }

    .hero-logo img {
        max-width: 70%;
        max-height: 60px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .hero-wave svg {
        height: 50px;
    }

    /* Sections mobile */
    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.92rem;
    }

    .products {
        padding: 60px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        padding: 32px 24px 28px;
    }

    .product-card h3 {
        font-size: 1.25rem;
    }

    .product-card .product-desc {
        font-size: 0.9rem;
    }

    .product-features li {
        font-size: 0.88rem;
    }

    .why-us {
        padding: 60px 0;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .why-card {
        padding: 28px 20px;
    }

    .why-card h3 {
        font-size: 1rem;
    }

    .why-card p {
        font-size: 0.85rem;
    }

    .process {
        padding: 60px 0;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .step {
        padding: 20px 12px;
    }

    .step h3 {
        font-size: 0.95rem;
    }

    .step p {
        font-size: 0.85rem;
    }

    .cta {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .footer {
        padding: 40px 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 28px;
    }
}

/* =============================================
   RESPONSIVE — Small phones
   ============================================= */

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 85px 0 50px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    .hero-logo {
        margin-bottom: 12px;
    }

    .hero-logo img {
        max-width: 65%;
        max-height: 48px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        gap: 5px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.92rem;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-icon {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions .btn {
        justify-content: center;
    }

    .product-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .product-card {
        padding: 28px 20px 24px;
    }

    .nav-logo span {
        font-size: 1rem;
    }

    .nav-logo img {
        height: 28px;
        max-width: 140px;
    }

    .footer-logo img {
        height: 28px;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }
}
