/* ============================================
   CALLA SURETY - STYLES
   Brand Colors:
   - Primary Orange: #E85D04 to #F9A825 (gradient)
   - Dark Gray: #4A4A4A
   - Light backgrounds with trust/tech feel
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #E85D04;
    --color-primary-light: #F9A825;
    --color-primary-dark: #D44D00;
    --color-gray-900: #1a1a1a;
    --color-gray-800: #2d2d2d;
    --color-gray-700: #4A4A4A;
    --color-gray-600: #666666;
    --color-gray-500: #888888;
    --color-gray-400: #aaaaaa;
    --color-gray-300: #cccccc;
    --color-gray-200: #e5e5e5;
    --color-gray-100: #f5f5f5;
    --color-white: #ffffff;

    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    --gradient-hero: linear-gradient(135deg, #fdf8f3 0%, #fff9f0 50%, #f0f7ff 100%);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --container-max: 1200px;
    --section-padding: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-gray-900);
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-200);
}

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

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--color-gray-200);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-gray-700);
}

.logo-tagline {
    font-size: 10px;
    font-weight: 500;
    color: var(--color-gray-500);
    letter-spacing: 0.3px;
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-600);
    transition: color var(--transition-fast);
}

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

.nav-cta {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: var(--color-white) !important;
    border-radius: 6px;
}

.nav-cta:hover {
    opacity: 0.9;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-gray-700);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(232, 93, 4, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(249, 168, 37, 0.03) 0%, transparent 50%);
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-gray-600);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-gray-500);
}

.trust-icon {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: auto;
    z-index: 2;
}

.floating-card {
    position: absolute;
    background: var(--color-white);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-700);
    z-index: 3;
}

.floating-card .card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.card-icon.principal {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
}

.card-icon.agent {
    background: linear-gradient(135deg, #059669, #10B981);
}

.card-icon.surety {
    background: linear-gradient(135deg, #E85D04, #F9A825);
}

/* Principal card - top left with orbit animation */
.card-1 {
    top: 5%;
    left: -5%;
    animation: floatPrincipal 8s ease-in-out infinite;
}

/* Agent card - top right with orbit animation */
.card-2 {
    top: 5%;
    right: -5%;
    animation: floatAgent 8s ease-in-out infinite;
    animation-delay: -2.5s;
}

/* Surety card - bottom, moved down to avoid logo overlap */
.card-3 {
    bottom: -5%;
    left: 50%;
    animation: floatSurety 8s ease-in-out infinite;
    animation-delay: -5s;
}

/* More dynamic animations with X and Y movement */
@keyframes floatPrincipal {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, -20px) rotate(2deg);
    }
    50% {
        transform: translate(5px, -35px) rotate(-1deg);
    }
    75% {
        transform: translate(-10px, -15px) rotate(1deg);
    }
}

@keyframes floatAgent {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-15px, -25px) rotate(-2deg);
    }
    50% {
        transform: translate(-5px, -40px) rotate(1deg);
    }
    75% {
        transform: translate(10px, -15px) rotate(-1deg);
    }
}

@keyframes floatSurety {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(-40%) translateY(-20px) rotate(1deg);
    }
    50% {
        transform: translateX(-50%) translateY(-30px) rotate(-1deg);
    }
    75% {
        transform: translateX(-60%) translateY(-10px) rotate(1deg);
    }
}


.connection-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.connections-svg {
    width: 100%;
    height: 100%;
}

.connection-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 2s ease-out forwards;
}

.path-1 { animation-delay: 0.5s; }
.path-2 { animation-delay: 1s; }
.path-3 { animation-delay: 1.5s; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-gray-400);
    font-size: 12px;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--color-gray-300);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 14px; opacity: 0.5; }
}

/* Section Styles */
section {
    padding: var(--section-padding) 0;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(232, 93, 4, 0.1);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-gray-600);
}

/* Features Section */
.features {
    background: var(--color-gray-100);
}

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

.feature-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-white);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    background: var(--color-white);
}

.workflow-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.workflow-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px 0;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.step-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--color-white);
}

.principal-icon {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
}

.agent-icon {
    background: linear-gradient(135deg, #059669, #10B981);
}

.surety-icon {
    background: var(--gradient-primary);
}

.step-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.step-content > p {
    font-size: 16px;
    color: var(--color-gray-600);
    margin-bottom: 20px;
    max-width: 600px;
}

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

.step-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-gray-600);
}

.step-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.workflow-connector {
    display: flex;
    align-items: center;
    padding-left: 39px;
}

.connector-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-light));
}

.connector-dot {
    display: none;
}

/* Benefits Section */
.benefits {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-100) 100%);
}

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

.benefit-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-normal);
}

.benefit-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 40px rgba(232, 93, 4, 0.1);
}

.benefit-stat {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

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

.benefit-card p {
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* Trust Section */
.trust-section {
    background: var(--color-gray-900);
    color: var(--color-white);
}

.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.trust-text h2 {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--color-white);
    margin-bottom: 20px;
}

.trust-text > p {
    font-size: 17px;
    color: var(--color-gray-400);
    margin-bottom: 32px;
}

.trust-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-gray-300);
}

.trust-list svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary-light);
    flex-shrink: 0;
}

.trust-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-icon {
    width: 120px;
    height: 120px;
    stroke: var(--color-primary-light);
    z-index: 2;
    position: relative;
}

.shield-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(232, 93, 4, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* CTA Section */
.cta-section {
    background: var(--gradient-hero);
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.cta-text h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

.cta-text p {
    font-size: 17px;
    color: var(--color-gray-600);
}

.cta-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    transition: all var(--transition-fast);
    background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
}

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

.form-disclaimer {
    font-size: 12px;
    color: var(--color-gray-500);
    text-align: center;
    margin-top: 8px;
}

/* Footer */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-400);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-gray-800);
}

.footer-logo {
    width: 180px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: 14px;
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-800);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

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

.social-links svg {
    width: 18px;
    height: 18px;
    fill: var(--color-gray-400);
    transition: fill var(--transition-fast);
}

.social-links a:hover svg {
    fill: var(--color-white);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

    .hero-visual {
        display: none;
    }

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

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

    .trust-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .trust-visual {
        order: -1;
    }

    .cta-content {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-links {
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

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

    .step-features {
        grid-template-columns: 1fr;
    }

    .workflow-connector {
        padding-left: 0;
        justify-content: center;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-form {
        padding: 24px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .hero {
        padding-top: 100px;
    }

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

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

    .hero-trust {
        flex-direction: column;
        align-items: center;
    }

    .benefit-stat {
        font-size: 40px;
    }
}

/* Animations on scroll */
.feature-card,
.benefit-card,
.workflow-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.benefit-card.visible,
.workflow-step.visible {
    opacity: 1;
    transform: translateY(0);
}
