/* ===== Hero ===== */
.hero {
    padding: 140px 0 90px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 25%, rgba(0, 123, 255, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 85% 80%, rgba(0, 180, 220, 0.03) 0%, transparent 60%),
        linear-gradient(180deg, #f2f5f9 0%, #e9edf3 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid texture — nods to fingerprint scanning precision */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 123, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Single dramatic glow behind headline */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0, 140, 240, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ---- Headline ---- */
.hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: #0b1a2e;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.025em;
    animation: heroFadeIn 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero h1 span {
    background: linear-gradient(135deg, #007bff 0%, #0098e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Subtle underline glow beneath the number */
.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 220, 0.4), transparent);
    border-radius: 2px;
}

/* ---- Description ---- */
.hero p {
    font-size: 18px;
    color: #5e6f82;
    margin-bottom: 48px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: heroFadeIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s both;
}

/* ---- CTA Buttons ---- */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
    animation: heroFadeIn 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s both;
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---- Card shell ---- */
.badge {
    width: 268px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 42px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    position: relative;
    cursor: default;
}

/* Top accent bar — slides in from center on hover */
.badge::before {
    content: "";
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    position: absolute;
    width: calc(100% + 2px);
    left: -1px;
    top: -1px;
    border-radius: 9px 9px 0 0;
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.35s ease;
}

.badge:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 36px rgba(0, 160, 220, 0.16);
    border-color: rgba(0, 160, 220, 0.12);
}

.badge:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

/* Staggered entrance with scale pop */
.badge:nth-child(1) { animation: badgeIn 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.45s both; }
.badge:nth-child(2) { animation: badgeIn 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.55s both; }
.badge:nth-child(3) { animation: badgeIn 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.65s both; }
.badge:nth-child(4) { animation: badgeIn 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.75s both; }

@keyframes badgeIn {
    0%   { opacity: 0; transform: translateY(24px) scale(0.94); }
    60%  { opacity: 1; transform: translateY(-2px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Icon — gentle idle float + glow on hover ---- */
.badge-img {
    height: 102px;
    width: auto;
    margin-bottom: 22px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.4s ease;
    animation: iconFloat 5s ease-in-out infinite;
}

.badge:hover .badge-img {
    animation: none;
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 6px 16px rgba(0, 180, 220, 0.18));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* Each icon floats at a different phase so they don't move in lockstep */
.badge:nth-child(1) .badge-img { animation-delay: 0s; }
.badge:nth-child(2) .badge-img { animation-delay: 0.8s; }
.badge:nth-child(3) .badge-img { animation-delay: 1.6s; }
.badge:nth-child(4) .badge-img { animation-delay: 2.4s; }

/* ---- Typography ---- */
.badge-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.badge:hover .badge-title {
    color: #0056b3;
}

.badge-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.57;
    max-width: 14em;
    margin: 0 auto;
    padding-bottom: 30px;
}

/* ===== Trust Bar ===== */
.trust-bar {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    padding: 32px 0;
    flex-wrap: wrap;
}

.trust-stat {
    text-align: center;
}

.trust-stat .ts-num {
    font-size: 1.625rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.trust-stat .ts-num .plus {
    color: #007bff;
}

.trust-stat .ts-label {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

.trust-divider {
    width: 1px;
    height: 36px;
    background: #e9ecef;
    border-radius: 1px;
}

/* ===== Features ===== */
.features {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #e9ecef;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    border-radius: 16px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: #666;
}

/* ===== Solutions ===== */
.solutions {
    padding: 80px 0;
    background: #f5f7fa;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.solution-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.solution-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s;
}

.solution-card:hover .solution-icon {
    transform: scale(1.1);
}

.solution-card:nth-child(1) .solution-icon { background: #e3f2fd; color: #1976d2; }
.solution-card:nth-child(2) .solution-icon { background: #e8f5e9; color: #388e3c; }
.solution-card:nth-child(3) .solution-icon { background: #fff3e0; color: #f57c00; }
.solution-card:nth-child(4) .solution-icon { background: #fce4ec; color: #c2185b; }
.solution-card:nth-child(5) .solution-icon { background: #f3e5f5; color: #7b1fa2; }

.solution-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.solution-card p {
    font-size: 13px;
    color: #666;
}

/* ===== Advantages ===== */
.advantages {
    padding: 80px 0;
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-item {
    padding: 24px;
    border-left: 3px solid #007bff;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s, background 0.3s;
}

.advantage-item:hover {
    transform: translateX(4px);
    background: #e9f5ff;
}

.advantage-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.advantage-item p {
    font-size: 13px;
    color: #666;
}

/* ===== Tech Architecture ===== */
.tech-arch {
    background: #0a0f1d;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.tech-arch::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tech-arch .section-title,
.tech-arch .section-desc {
    color: white;
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 32px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 640px;
    transition: all 0.3s;
    position: relative;
}

.arch-layer:hover {
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 0 32px rgba(0, 123, 255, 0.06);
    transform: translateX(6px);
}

.arch-layer:nth-child(even):hover {
    transform: translateX(-6px);
}

.arch-layer:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    max-width: 520px;
}

.arch-layer-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.arch-layer-icon.layer-1 {
    background: rgba(0, 123, 255, 0.15);
    color: #64b5f6;
}

.arch-layer-icon.layer-2 {
    background: rgba(0, 212, 255, 0.15);
    color: #22d3ee;
}

.arch-layer-icon.layer-3 {
    background: rgba(26, 115, 232, 0.15);
    color: #4285f4;
}

.arch-layer-icon.layer-4 {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.arch-layer-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.arch-layer-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.arch-connector {
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, rgba(0, 123, 255, 0.3), rgba(0, 212, 255, 0.2));
    margin: 0 auto;
    position: relative;
}

.arch-connector::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ===== Security ===== */
.security {
    padding: 80px 0;
    background: #1a1a2e;
    color: white;
}

.security .section-title,
.security .section-desc {
    color: white;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.security-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: background 0.3s;
}

.security-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.security-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.security-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.security-item p {
    font-size: 13px;
    opacity: 0.8;
}

/* ===== Terminal ===== */
.terminal-section {
    padding: 80px 0;
    background: white;
}

.terminal-block {
    max-width: 720px;
    margin: 0 auto;
    background: #0a0f1d;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(0, 123, 255, 0.06);
}

.terminal-chrome {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-chrome .t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-chrome .t-dot:nth-child(1) { background: #ef4444; }
.terminal-chrome .t-dot:nth-child(2) { background: #f59e0b; }
.terminal-chrome .t-dot:nth-child(3) { background: #10b981; }

.terminal-chrome .t-title {
    margin-left: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.terminal-body {
    padding: 24px 28px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 13px;
    line-height: 2;
}

.terminal-body .t-prompt { color: #10b981; }
.terminal-body .t-cmd { color: white; }
.terminal-body .t-output { color: rgba(255, 255, 255, 0.5); margin-left: 8px; }
.terminal-body .t-highlight { color: #64b5f6; }
.terminal-body .t-dim { color: rgba(255, 255, 255, 0.25); }

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #00d4ff;
    vertical-align: middle;
    margin-left: 2px;
    box-shadow: 0 0 8px #00d4ff;
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 80px 0;
    background: #f5f7fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.testimonial-rating {
    color: #f5a623;
    margin-bottom: 16px;
}

.testimonial-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h5 {
    font-size: 14px;
    font-weight: 600;
}

.author-info p {
    font-size: 12px;
    color: #999;
}

/* ===== FAQ ===== */
.faq {
    padding: 80px 0;
    background: #f5f7fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 24px;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-arrow {
    font-size: 20px;
    transition: transform 0.3s;
    color: #007bff;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 14px;
    color: #666;
    padding: 0 24px 24px;
    display: none;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===== CTA ===== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    text-align: center;
}

.cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeIn {
    0%   { opacity: 0; transform: translateY(24px) scale(0.94); }
    60%  { opacity: 1; transform: translateY(-2px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .badge-img {
        animation: none;
    }
    .badge {
        animation: fadeInUp 0.1s ease both !important;
    }
    .hero h1,
    .hero p,
    .hero-actions {
        animation: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid,
    .advantages-grid,
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-badges {
        gap: 16px;
    }
    .badge {
        width: 240px;
    }
    .arch-layer:nth-child(even) {
        margin-left: 0;
        max-width: 640px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 16px;
        margin-bottom: 36px;
    }
    .hero-actions {
        margin-bottom: 56px;
    }
    .features-grid,
    .solutions-grid,
    .advantages-grid,
    .security-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .trust-inner {
        gap: 36px;
    }
    .trust-divider {
        display: none;
    }
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    .trust-badges {
        gap: 16px;
    }
    .badge {
        width: 100%;
        max-width: 300px;
    }
}