/* 
 * SwiftOps Hub - Professional SaaS Landing Page Styles
 * Following the SaaS Landing Page Design Guidelines
 */

:root {
    /* Color Palette */
    --primary: #4f46e5;
    /* Indigo */
    --primary-hover: #4338ca;
    --secondary: #64748b;
    /* Slate */
    --accent: #0ea5e9;
    /* Sky Blue */
    --success: #10b981;
    /* Emerald */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #0f172a;
    /* Dark Slate */
    --text-muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 24px;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

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

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

/* --- Header --- */
.header {
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
}

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

/* --- Hero Section --- */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-tagline {
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-lead {
    font-size: 24px !important;
    font-weight: 600;
    color: var(--text-main) !important;
    margin-bottom: 12px !important;
    font-family: var(--font-heading);
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.trust-signal {
    margin-top: 48px;
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Social Proof --- */
.social-proof {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-alt);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.stars {
    color: #fbbf24;
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-quote {
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* --- Benefits --- */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

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

.benefit-card {
    padding: 0;
    /* Removing padding to allow image to hit edges */
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    /* Ensure image corners are rounded */
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h3 {
    margin-bottom: 16px;
}

.card-content p {
    flex: 1;
    /* Pushes content to fill the card */
    margin: 0;
}

.benefit-card:nth-child(1) {
    animation-delay: 0.1s;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.3s;
}

.benefit-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}



.product-image {
    width: 100%;
    margin: 0;
    height: 250px;
    background: #f8fafc;
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.product-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: #e2e8f0;
    border-bottom: 1px solid var(--border);
    z-index: 1;
}

.product-image::after {
    content: "•••";
    position: absolute;
    top: 2px;
    left: 10px;
    font-size: 18px;
    color: #94a3b8;
    letter-spacing: 2px;
    z-index: 2;
    line-height: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full screenshot is visible */
    object-position: center;
    transition: transform 0.5s ease;
    padding: 10px;
    /* Give it some breathing room */
}

.benefit-card:hover .product-image img {
    transform: scale(1.05);
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-muted);
}

/* --- Features --- */
.features {
    background-color: var(--bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.feature-item {
    display: flex;
    gap: 24px;
}

.feature-number {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.feature-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-muted);
}

/* --- How It Works --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.step-info {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex: 1;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #dcfce7;
    color: #166534;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-left: 8px;
}

.step-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Don't cut off step details */
    padding: 20px;
    transition: transform 0.3s ease;
}

.tech-logo-bg {
    background-color: #ffffff !important;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 300px;
    /* Fixed height for consistency */
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

/* No Agent Icon */
.no-agent-icon {
    width: 120px;
    height: 120px;
    border: 8px solid #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.no-agent-icon::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 8px;
    background: #ef4444;
    transform: rotate(-45deg);
}

.no-agent-icon span {
    font-size: 14px;
    font-weight: 900;
    color: #ef4444;
    line-height: 1.1;
    z-index: 1;
    background: white;
    padding: 4px;
}

/* Automation Stack */
.automation-stack {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tech-item img,
.tech-item svg {
    width: 100px;
    height: 100px;
}

.tech-item span {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

/* Sofa / Peace of Mind */
.sofa-visual {
    position: relative;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.sofa-svg {
    width: 120px;
    height: auto;
    z-index: 2;
}

.floating-symbols {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.symbol {
    position: absolute;
    font-size: 20px;
    animation: floatUp 3s infinite ease-in-out;
    opacity: 0;
}

.symbol-1 {
    left: 30%;
    animation-delay: 0s;
}

.symbol-2 {
    left: 50%;
    animation-delay: 1s;
}

.symbol-3 {
    left: 70%;
    animation-delay: 2s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-80px);
        opacity: 0;
    }
}

.step-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.step-image:hover .image-overlay {
    opacity: 1;
}

/* --- Suite Info Banner --- */
.suite-info-banner {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(14, 165, 233, 0.05));
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.banner-content {
    max-width: 600px;
}

.banner-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary);
}

.banner-content p {
    color: var(--text-muted);
}

.banner-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.banner-link {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.banner-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .suite-info-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .banner-actions {
        width: 100%;
    }

    .banner-link:hover {
        transform: translateY(-2px);
    }
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.cta-box {
    padding: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-box h2 {
    font-size: 42px;
    margin-bottom: 24px;
    color: white;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-box {
        padding: 40px;
        text-align: center;
    }

    .cta-box h2 {
        font-size: 32px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
}

.privacy-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* --- Footer --- */
.site-footer {
    padding: 40px 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: inherit;
    text-decoration: underline;
}

.footer-legal {
    margin-top: 12px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .benefits-grid,
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header .nav-links {
        display: none;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .cta-box h2 {
        font-size: 32px;
    }
}