@font-face {
    font-family: 'Cal Sans';
    src: url('https://cal.com/cal.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #4338cb;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --secondary: #3cca47;
    --secondary-dark: #2da838;
    --secondary-light: #5ed969;
    --ink: #1e1b4b;
    --slate: #334155;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --text: #1e293b;
    --text-muted: #444464;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Red Hat Text', sans-serif;
    font-size: 20px;
    font-weight: 400;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cal Sans', 'Red Hat Text', sans-serif;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
}

a { color: var(--primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-dark); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

.animate-fade-up { animation: fadeUp 0.8s ease-out forwards; opacity: 0; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 4rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--gray-200);
    box-shadow: 0 4px 20px rgba(67, 56, 203, 0.06);
}

.nav-inner {
    max-width: 1650px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cal Sans', 'Red Hat Text', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(67, 56, 203, 0.3);
}

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

.nav-links a {
    color: var(--slate);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 202, 71, 0.35);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--ink);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(67, 56, 203, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 56, 203, 0.4);
}

.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
    color: var(--slate);
    padding: 1rem 1.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    background: white;
    cursor: pointer;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Sections */
.section {
    padding: 6rem 4rem;
}

.section-alt {
    background: var(--gray-50);
}

.section-dark {
    background: var(--ink);
    color: white;
}

.section-inner {
    max-width: 1650px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    font-family: 'Cal Sans', 'Red Hat Text', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Main content for text pages */
.main-content {
    padding: 10rem 4rem 6rem;
    display: flex;
    justify-content: center;
}

.content-block {
    max-width: 680px;
    width: 100%;
}

.content-block h1 {
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    margin-bottom: 2rem;
}

.content-block h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-block h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.content-block p {
    margin-bottom: 2.25rem;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text);
}

.content-block p:last-of-type {
    margin-bottom: 0;
}

.content-block .lead {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.content-block ul, .content-block ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-block li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 6rem 4rem;
    text-align: center;
    background: var(--white);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(67, 56, 203, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

.guarantee-badge {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 2.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.guarantee-badge svg {
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Footer */
footer {
    background: var(--ink);
    color: white;
    padding: 4rem 4rem 2rem;
}

.footer-inner {
    max-width: 1650px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1.25rem;
}

.footer-brand .logo-mark {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    max-width: 300px;
    line-height: 1.7;
}

.footer-links h5 {
    color: white;
    font-family: 'Cal Sans', 'Red Hat Text', sans-serif;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    text-transform: uppercase;
}

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

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.footer-cta:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 202, 71, 0.35);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 56, 203, 0.1);
}

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

/* Responsive */
@media (max-width: 1024px) {
    #navbar { padding: 1rem 2rem; }
    .section, .cta-section, .main-content { padding-left: 2rem; padding-right: 2rem; }
    .container { padding: 0 2rem; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
    footer { padding-left: 2rem; padding-right: 2rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

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

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

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
    }

    .nav-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 640px) {
    body { font-size: 18px; }
    #navbar { padding: 1rem 1.5rem; }
    .section, .cta-section { padding: 4rem 1.5rem; }
    .main-content { padding: 7rem 1.5rem 3rem; }
    .container { padding: 0 1.5rem; }
    .footer-content { grid-template-columns: 1fr; }
    footer { padding: 3rem 1.5rem 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
