/* Root Variables - StepDeckStudio Scribe-inspired Design */
:root {
    --primary-color: #00BFFF;        /* Bright cyan from logo */
    --secondary-color: #1976D2;      /* Deep blue from logo */
    --accent-color: #C0D725;         /* Lime green from logo */
    --dark-color: #191A1F;           /* Deep dark text */
    --light-color: #FFFFFF;          /* White */
    --gray-light: #FAFBFC;           /* Very light background */
    --gray-medium: #F4F6F8;          /* Card backgrounds */
    --text-dark: #191A1F;            /* Primary text */
    --text-medium: #4A5568;          /* Secondary text */
    --text-light: #718096;           /* Tertiary text */
    --gradient-start: #1976D2;       /* Blue gradient */
    --gradient-end: #00BFFF;         /* Cyan gradient */
    --green-accent: #A4D233;         /* Bright green */
    --border-color: #E2E8F0;         /* Subtle borders */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

/* Reset & Base Styles - Scribe-inspired */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

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

/* Navbar - Compact Design - Fixed */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;  /* Increased from 0.75rem for more space around logo */
}

.navbar .container {
    display: flex;
    justify-content: center;  /* Always centered */
    align-items: center;
    min-height: auto;
    position: relative;
}

.navbar.scrolled .container {
    justify-content: center;  /* Stay centered when scrolled */
}

.logo {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 40px;  /* Position on left side */
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    margin-right: 20px;  /* Add space between logo and navigation */
}

.logo.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.logo a {
    display: block;
    cursor: pointer;
}

.logo-img {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
    display: block;
}

.navbar.scrolled .logo-img {
    height: 60px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    padding-left: 120px;  /* Space for the logo when visible (70px logo + 20px gap + 30px buffer) */
    transition: padding-left 0.3s ease;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 0.4rem 0;
    line-height: 1.2;
}

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

/* Hero Section - Compact with reduced navbar offset */
.hero {
    min-height: 85vh;
    background: var(--gray-light);
    position: relative;
    overflow: hidden;
    padding-top: 50px;
}

/* Decorative blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.hero::before {
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    top: -200px;
    right: -100px;
}

.hero::after {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    bottom: -150px;
    left: -150px;
}

.hero-content {
    display: flex;
    align-items: center;
    min-height: 75vh;  /* Reduced from 80vh */
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.5s ease-out backwards;
    animation-delay: 0s;
    overflow: hidden;  /* Clip the scaled logo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-img {
    width: 600px;
    height: auto;
    max-width: 90%;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.08));
    object-fit: contain;
    object-position: center;
}

@media (max-width: 768px) {
    .hero-logo-img {
        width: 450px;
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        width: 320px;
        max-width: 90%;
    }
    
    .hero-logo {
        margin-bottom: 2rem;
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;  /* Reduced from 1.5rem */
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.brand {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-emphasis {
    font-size: clamp(2rem, 5vw, 3.5rem);  /* Further reduced from 2.5rem/4.5rem */
    font-weight: 800;
    display: block;
    margin-top: 0.35rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.45rem, 0.9vw, 0.55rem);  /* 50% reduction from 0.9rem/1.1rem */
    color: var(--text-medium);
    margin-bottom: 1rem;
    max-width: 700px;
    line-height: 1.6;
    font-weight: 600;
}

.hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);  /* Reduced from 1rem/1.15rem */
    color: var(--text-medium);
    margin-bottom: 2rem;
    max-width: 650px;
    line-height: 1.6;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--light-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #1565C0;
}

.btn-secondary {
    background: var(--light-color);
    color: var(--secondary-color);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Section Styles - Scribe Inspired - Condensed */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

/* About Section - Scribe Style */
.about-section {
    background: var(--light-color);
}

.about-content p {
    font-size: 1.25rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;  /* Faster transition */
    position: relative;
    overflow: hidden;
    text-align: center;
    will-change: transform, box-shadow;  /* Performance hint */
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-medium);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Services Section - Scribe Card Style */
.services-section {
    background: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 899px) and (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: var(--light-color);
    padding: 2rem 1.75rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;  /* Faster transition */
    border: 1px solid var(--border-color);
    position: relative;
    text-align: center;
    will-change: transform, box-shadow;  /* Performance hint */
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover::after {
    opacity: 1;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Contact Section - Scribe Style */
.contact-section {
    background: var(--light-color);
}

/* Why Choose Section - Comparison */
.why-choose-section {
    background: var(--light-color);
    padding: 7rem 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.comparison-card {
    background: var(--gray-light);
    padding: 2rem 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;  /* Faster transition */
    text-align: center;
    will-change: transform, box-shadow;  /* Performance hint */
}

.comparison-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.comparison-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.comparison-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.comparison-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Pricing Preview */
.pricing-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--light-color);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

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

.pricing-card-pro {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.03), rgba(0, 191, 255, 0.03));
}

.pro-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-description {
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-preview {
        grid-template-columns: 1fr;
    }
}

/* Contact Section - Scribe Style */
.contact-section {
    background: var(--light-color);
}

.contact-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--light-color);
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-primary {
    width: 100%;
    cursor: pointer;
    font-size: 1.05rem;
    padding: 1.125rem;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* Footer - Scribe Minimalist Style */
.footer {
    background: var(--text-dark);
    padding: 3rem 0 2rem;
    color: var(--light-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo .logo-img {
    height: 70px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

/* Trust Section - Condensed */
.trust-section {
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.trust-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* For emoji-based trust numbers */
.trust-number:not(:has(+ .trust-label:contains('k+'))) {
    font-size: 2.5rem;
    color: inherit;
}

.trust-label {
    color: var(--text-medium);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive Design - Mobile & Tablet Optimizations - Condensed */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
    }

    .nav-links {
        gap: 1.25rem;
        font-size: 0.9rem;
    }

    .hero-content {
        text-align: center;
        min-height: 75vh;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .brand-emphasis {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    section {
        padding: 3rem 0;
    }

    .features,
    .services-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 24px;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
    
    .section-subtitle {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 70px;  /* Increased from 48px for mobile */
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }
    
    .brand-emphasis {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .service-card,
    .comparison-card {
        padding: 1.75rem 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem 1.75rem;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* Animations - Scribe Style - Optimized */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);  /* Reduced from 20px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.5s ease-out backwards;  /* Faster from 0.7s */
}

.hero-title {
    animation-delay: 0.1s;
}

.hero-description {
    animation-delay: 0.2s;
}

.cta-buttons {
    animation-delay: 0.3s;
}

/* Back to Top Button - Always visible when scrolling */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.2s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
