/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 120px 0 80px;
    /* background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%); */
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    /* line-height: 1.1; */
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.gradient-text {
    background: linear-gradient(135deg, #163300 0%, #3e9000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-actions p {
    display: inline-block;
    margin-top: 1rem;
    font-size: 13px;
    color: #999;
}


.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #EB1000;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
}

.hero-visual {
    position: relative;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* pointer-events: none; */
}

.main-image-container {
    border-radius: 16px;
    border: 2px solid #163300;
    padding: 10px 10px 10px 10px;
    background: #E9ECEF;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.main-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* border-left: 3px dashed #EB1000;
    border-right: 3px dashed #754642;
    border-top: 3px dashed #EB1000;
    border-bottom: 3px dashed #754642; */
    
    pointer-events: none;
    user-select: none;
}

.floating-card {
    position: absolute;
    background: transparent;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    
}


/* .sparkle_div {
    padding: 0;
    margin: 0;
    display: block;
    position: absolute;
    top: -49px;
    right: -16px;
    z-index: 99999;
} */

.card-1 {
    top: 24px;
    left: 0px;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    display: block;
    transform: rotate(0deg);
}


.card-3 {
    bottom: 288px;
    right: 0px;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    display: block;
    transform: rotate(0deg);
}

.card-3 .sparkle {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 48px;
    height: 48px;
    margin: 0;
    /* float: left; */
  }


  .card-5 {
    bottom: -8%;
    left: 0px;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    display: block;
    transform: rotate(180deg);
}

.card-1 .sparkle, .card-5 .sparkle {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 40px;
    height: 40px;
    margin: 0;
    /* float: left; */
  }
  
  .sparkle path:first-child {
    animation: sparkleLarge 3.75s linear infinite;
    -webkit-animation: sparkleLarge 3.75s linear infinite;
    fill: #c90 !important;
  }
  
  .sparkle path:last-child {
    animation: sparkle 3.75s linear infinite;
    -webkit-animation: sparkle 3.75s linear infinite;
    fill: #fc8719 !important;
  }

  .card-1 .sparkle path:first-child {
    animation: hero_float 1.5s linear infinite;
    -webkit-animation: hero_float 1.5s linear infinite;
    fill: #800900 !important;
  }

  .card-5 .sparkle path:first-child {
    animation: sparkleLarge 2.75s linear infinite;
    -webkit-animation: sparkleLarge 2.75s linear infinite;
    fill: #800900 !important;
  }

  .card-5 .sparkle path:last-child {
    animation: sparkle 2.75s linear infinite;
    -webkit-animation: sparkle 2.75s linear infinite;
    fill: #fc8719 !important;
  }


  .sparkle path {
    animation-play-state: running;
  }

  .sparkle path:hover {
    /* Stop all previous animations */
    animation: none !important;
    animation-delay: 0.1s;
    /* Start spinAndReturn animation on hover */
    animation: spinAndReturn 0.5s linear;
  }

  @keyframes spinAndReturn {
    0% {
      transform: rotate(45deg);
    }
    99% {
      transform: rotate(405deg);
    }
    100% {
      transform: rotate(45deg);
    }
  }
  
  /* also need keyframes and -moz-keyframes */
  @keyframes sparkle {
    8%, 41% {
        transform: translateX(-4px);
        -webkit-transform: translateX(-4px);
    }
    25%, 58% {
        transform: translateX(4px);
        -webkit-transform: translateX(4px);
    }
    75% {
        transform: translateX(-2px);
        -webkit-transform: translateX(-2px);
    }
    92% {
        transform: translateX(2px);
        -webkit-transform: translateX(2px);
    }
    0%, 100% {
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }
  }
  
  
  @keyframes sparkleLarge {
    8%, 41% {
        transform: translateX(4px);
        -webkit-transform: translateX(4px);
    }
    25%, 58% {
        transform: translateX(-4px);
        -webkit-transform: translateX(-4px);
    }
    75% {
        transform: translateX(2px);
        -webkit-transform: translateX(2px);
    }
    92% {
        transform: translateX(-2px);
        -webkit-transform: translateX(-2px);
    }
    0%, 100% {
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }
  }
  
  
  

.card-icon {
    font-size: 16px;
}

@keyframes hero_float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes hero_float2 {
    0%, 100% { transform: translateY(-10px); }
    50% { transform: translateY(0px); }
}

/* Features Section */
.features {
    padding: 80px 0 0 0;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-title-large {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle-small {
    font-size: 14px;
    color: darkgreen;
    max-width: 600px;
    margin: -1rem auto 0 auto;
}

.how-it-works .section-subtitle-small {
    margin: 0 auto 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #163300;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    width: 32px;
    height: 32px;
    transition: transform 0.5s ease;
}

.feature-icon.integrations {
    background: url('../assets/integrations.png') no-repeat center center;
    background-size: 100%;
}

.feature-icon.branding {
    background: url('../assets/branding.png') no-repeat center center;
    background-size: 98%;
}

.feature-icon.legal {
    background: url('../assets/legal.png') no-repeat center center;
    background-size: 89%;
}

.feature-icon.url {
    background: url('../assets/url.png') no-repeat center center;
    background-size: 89%;
}

.feature-icon.email {
    background: url('../assets/email_brand.png') no-repeat center center;
    background-size: 84%;
}

.feature-icon.secure {
    background: url('../assets/secure.png') no-repeat center center;
    background-size: 93%;
}

.feature-icon.signer_order {
    background: url('../assets/order.png') no-repeat center center;
    background-size: 86%;
}

.feature-icon.audit {
    background: url('../assets/audit.png') no-repeat center center;
    background-size: 80%;
}

.feature-icon.team {
    background: url('../assets/team_mang.png') no-repeat center center;
    background-size: 82%;
}

.feature-icon.filter {
    background: url('../assets/filter.png') no-repeat center center;
    background-size: 80%;
}

.feature-icon.track {
    background: url('../assets/track.png') no-repeat center center;
    background-size: 79%;
}

.feature-icon.organize {
    background: url('../assets/organize.png') no-repeat center center;
    background-size: 80%;
}

.feature-icon.signers {
    background: url('../assets/clients.png') no-repeat center center;
    background-size: 80%;
}

.feature-icon.mobile {
    background: url('../assets/mobile.png') no-repeat center center;
    background-size: 99%;
}

.feature-icon.auto {
    background: url('../assets/auto.png') no-repeat center center;
    background-size: 90%;
}

.feature-icon.file {
    background: url('../assets/file.png') no-repeat center center;
    background-size: 89%;
}

.feature-icon.save {
    background: url('../assets/save.png') no-repeat center center;
    background-size: 89%;
}

.feature-icon.lang {
    background: url('../assets/lang.png') no-repeat center center;
    background-size: 89%;
}   

.feature-icon.seal {
    background: url('../assets/seal.png') no-repeat center center;
    background-size: 86%;
}

.feature-icon.logic {
    background: url('../assets/logic.png') no-repeat center center;
    background-size: 100%;
}

.feature-icon.otp {
    background: url('../assets/2fa.png') no-repeat center center;
    background-size: 100%;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 0.75rem #9FE870);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px !important;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    /* background: linear-gradient(135deg, #EB1000 0%, #d10000 100%); */
    background: #9FE870 !important;
    border: 1px solid #163300 !important;
    color: #000 !important;
    /* box-shadow: 0 4px 15px rgba(235, 16, 0, 0.4); */
    box-shadow: 0 4px 15px rgba(16, 16, 16, 0.2);
    user-select: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 25px rgba(235, 16, 0, 0.6); */
    box-shadow: 0 4px 15px rgba(16, 16, 16, 0.4);
}