@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');
@import './variables.css';

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: var(--font-heading);
}

/* UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.grid {
    display: grid;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gap-xs {
    gap: 0.5rem;
}

.gap-sm {
    gap: 1rem;
}

.gap-md {
    gap: 2rem;
}

.gap-lg {
    gap: 4rem;
}

.gap-xl {
    gap: 6rem;
}

.mt-sm {
    margin-top: 1rem;
}

.mt-md {
    margin-top: 2rem;
}

.mt-lg {
    margin-top: 4rem;
}

.mt-xl {
    margin-top: 6rem;
}

.mb-lg {
    margin-bottom: 4rem;
}

.mb-xl {
    margin-bottom: 6rem;
}

.pt-md {
    padding-top: 2rem;
}

.pb-md {
    padding-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--bg-white);
}

.text-light {
    color: var(--text-light);
}

.text-muted {
    color: var(--text-secondary);
}

.text-sm {
    font-size: 0.875rem;
}

.bg-dark {
    background-color: var(--bg-dark);
}

.bg-light {
    background-color: #F1F5F9;
}

.relative {
    position: relative;
}

.section-padding {
    padding: var(--spacing-xxl, 6rem) 0;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-secondary:hover {
    color: var(--accent-color);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
}

.btn-outline-light:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(30, 64, 175, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0);
    }
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.05em;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
}

.nav-link:hover {
    color: var(--accent-color);
}

.mobile-only {
    display: none;
}

/* HERO */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: var(--bg-white);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero .btn-secondary {
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero .btn-secondary:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.1);
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.badge.blue {
    color: var(--primary-color);
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
}

.badge.outline {
    color: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.3);
    background: transparent;
}

.trust-indicators {
    margin-top: 3rem;
    opacity: 0.8;
    font-size: 0.9rem;
    color: var(--text-light);
}

.trust-item i {
    font-size: 1.2rem;
    color: var(--success-color);
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.floating-mockup {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
    transform: rotateY(-10deg) rotateX(5deg);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateY(-10deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-10deg) rotateX(5deg);
    }
}

/* PROBLEM */
.problem-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-box.danger {
    background: #FEF2F2;
    color: #EF4444;
}

/* SOLUTION */
.solution-grid {
    grid-template-columns: 1fr 1fr;
}

.feature-box {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.feature-box:hover {
    transform: scale(1.05);
}

.feature-box img {
    margin: 0 auto 1rem;
    height: 80px;
    object-fit: contain;
}

.feature-box h4 {
    font-size: 1.1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.check-list i {
    color: var(--success-color);
    font-size: 1.25rem;
}

/* HOW IT WORKS */
.steps-container {
    margin-top: 4rem;
}

.step-line {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #E2E8F0;
    z-index: -1;
}

.step-item {
    background: var(--bg-body);
    padding: 0 1rem;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 8px var(--bg-body);
}

/* B2B */
.b2b {
    overflow: hidden;
}

.b2b-visual .glow-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.dashboard-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all var(--transition-base);
}

.dashboard-img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.b2b-features .feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.b2b-features i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.b2b-features h4 {
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.b2b-features p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* FAQ */
.accordion-item {
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 0.5rem;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 0;
    text-align: left;
    background: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-right: 2rem;
}

.accordion-content p {
    padding-bottom: 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* FOOTER */
.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
}

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

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.logo-footer {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white);
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .hero-grid,
    .solution-grid,
    .grid-4.footer-col,
    .grid-2.b2b-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

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

    .hero-img-bg {
        object-position: center;
    }

    .hero-ctas {
        justify-content: center;
    }

    .trust-indicators {
        justify-content: center;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-only {
        display: inline-flex;
    }

    .header .container {
        padding: 0 1rem;
    }

    .menu-toggle {
        font-size: 1.8rem;
        color: var(--primary-color);
    }

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

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

    .step-line {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }

    .solution-visual {
        order: 2;
        margin-top: 2rem;
    }
}

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

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

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

    .hero-ctas {
        flex-direction: column;
    }

    .trust-indicators {
        flex-direction: column;
    }
}