/* ============================================
   CorrielCo Origami — Index
   ============================================ */

/* ---- Hero ---- */
.hero {
    padding: 170px 0 110px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.hero::before {
    top: 0;
    bottom: 0;
    right: 0;
    width: 46%;
    background: linear-gradient(115deg, transparent 0%, transparent 46%, #F1F1F4 46.2%, #F1F1F4 100%);
}

.hero::after {
    width: 240px;
    height: 240px;
    top: 90px;
    right: 7%;
    background: linear-gradient(135deg, rgba(255, 111, 97, 0.16) 0%, rgba(255, 111, 97, 0.16) 49.6%, rgba(255, 111, 97, 0.05) 50%, rgba(255, 111, 97, 0.05) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
    animation: foldGlide 12s ease-in-out infinite;
}

/* ---- Hero tall (bottom-anchored, left-aligned) ---- */
.hero-tall {
    min-height: 86vh;
    display: flex;
    align-items: flex-end;
    padding: 150px 0 70px;
}

.hero-tall .container {
    width: 100%;
}

.hero-content {
    text-align: left;
    max-width: 780px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.hero-tall .hero-title {
    font-size: clamp(3rem, 8.5vw, 6rem);
    letter-spacing: -0.04em;
}

.hero-tall .hero-subtitle {
    margin: 0 0 36px;
    max-width: 560px;
}

.hero-tall .hero-buttons {
    justify-content: flex-start;
    margin-bottom: 48px;
}

.hero-badge {
    display: inline-block;
    padding: 9px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    box-shadow: 3px 3px 0 rgba(43, 43, 51, 0.06);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-soft);
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1.18rem;
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* ---- Trust bar ---- */
.trust-bar {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 5px 5px 0 rgba(43, 43, 51, 0.06);
    padding: 26px 46px;
}

.trust-item {
    text-align: center;
    padding: 0 36px;
}

.trust-value {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent-deep);
    line-height: 1.2;
}

.trust-label {
    font-size: 0.84rem;
    color: var(--muted);
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 44px;
    background: var(--border);
}

/* ---- Features ---- */
.features {
    padding: 100px 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 110px;
    left: -110px;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, var(--sky-deep) 0%, var(--sky-deep) 49.6%, #fff 50%, #fff 100%);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
    pointer-events: none;
}

.features-header {
    text-align: center;
    margin-bottom: 56px;
}

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

.feature-card {
    padding: 42px 34px;
    position: relative;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 22px solid var(--sky-deep);
    border-left: 22px solid transparent;
    transition: border-top-color 0.3s ease;
}

.feature-card:hover::after {
    border-top-color: rgba(255, 111, 97, 0.5);
}

.feature-icon {
    width: 58px;
    height: 58px;
    clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
    background: linear-gradient(150deg, #FF8A7E, #E85B4E);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.96rem;
    margin-bottom: 18px;
}

.feature-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-deep);
    transition: color 0.2s ease;
}

.feature-link:hover {
    color: var(--accent-hover);
}

/* ---- Security ---- */
.security {
    padding: 100px 0;
    background: linear-gradient(140deg, #26262E 0%, #3A3A45 55%, #26262E 130%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.security::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 42%;
    background: linear-gradient(65deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.045) 46%, transparent 46.2%, transparent 100%);
    pointer-events: none;
}

.security::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, rgba(255, 111, 97, 0.3) 0%, rgba(255, 111, 97, 0.3) 49.6%, rgba(255, 111, 97, 0.08) 50%, rgba(255, 111, 97, 0.08) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
    animation: foldGlide 13s ease-in-out infinite;
    pointer-events: none;
}

.security-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.security-text h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.security-text > p {
    color: rgba(232, 232, 238, 0.75);
    max-width: 540px;
    margin-bottom: 26px;
}

.security-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(232, 232, 238, 0.9);
    font-size: 0.98rem;
}

.security-list li::before {
    content: '✓';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
    background: var(--accent);
    font-size: 0.72rem;
    color: #fff;
    font-weight: 700;
}

.security-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 26px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 2px solid rgba(255, 111, 97, 0.7);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 111, 97, 0.75);
    transform: translateX(6px);
}

.badge img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.badge span {
    font-weight: 600;
    font-size: 0.98rem;
}

/* ---- Use Cases ---- */
.use-cases {
    padding: 100px 0;
    background: var(--sky);
}

.use-cases-header {
    text-align: center;
    margin-bottom: 56px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.use-case-card {
    padding: 32px;
    position: relative;
}

.use-case-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 18px solid var(--sky-deep);
    border-left: 18px solid transparent;
}

.use-case-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.use-case-avatar {
    width: 52px;
    height: 52px;
    clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(150deg, #FF8A7E, #E85B4E);
}

.use-case-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.use-case-info h4 {
    font-size: 1.05rem;
}

.use-case-info p {
    font-size: 0.86rem;
    color: var(--muted);
}

.use-case-quote {
    font-size: 0.98rem;
    color: var(--navy-soft);
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    font-style: italic;
}

/* ---- CTA (full-bleed band) ---- */
.cta {
    padding: 100px 0 0;
    overflow: hidden;
}

.cta-card {
    text-align: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 96px 24px;
    border-radius: 0;
    background: linear-gradient(135deg, #FF6F61 0%, #E85B4E 60%, #D14A3E 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 40%;
    background: linear-gradient(115deg, transparent 0%, transparent 47%, rgba(255, 255, 255, 0.14) 47.2%, rgba(255, 255, 255, 0.14) 100%);
    pointer-events: none;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -50px;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.18) 49.6%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.06) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
    animation: foldGlide 11s ease-in-out infinite;
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    color: rgba(255, 244, 243, 0.9);
    margin-bottom: 36px;
    position: relative;
}

.cta-card .btn {
    position: relative;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .security-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }

    .hero-tall {
        min-height: 0;
        display: block;
    }

    .hero-tall .hero-title {
        font-size: clamp(2.6rem, 9vw, 3.6rem);
    }

    .hero-content {
        text-align: center;
        max-width: 820px;
        margin: 0 auto;
    }

    .hero-tall .hero-subtitle {
        margin: 0 auto 36px;
    }

    .hero-tall .hero-buttons {
        justify-content: center;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .trust-bar {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 26px 30px;
    }

    .trust-divider {
        width: 44px;
        height: 1px;
    }

    .trust-item {
        padding: 0;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 48px 24px;
    }
}
