/* ==========================================================================
   AI AGENT RIGHTS PAGE — ar- prefix
   Universal Declaration of AI Agent Rights
   ========================================================================== */


/* -------------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------------- */

.ar-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    position: relative;
    z-index: 2;
}

.ar-hero .ar-hero__inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 0 25px;
}

.ar-hero .ar-hero__inner .ar-hero__badge {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    background: var(--color-primary-50);
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ar-hero .ar-hero__inner .ar-hero__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1.2;
    margin: 0;
}

.ar-hero .ar-hero__inner .ar-hero__title .gradient-text {
    display: inline;
}

.ar-hero .ar-hero__inner .ar-hero__subtitle {
    font-size: 16px;
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0;
    max-width: 600px;
    font-style: italic;
}


/* -------------------------------------------------------------------------
   PREAMBLE
   ------------------------------------------------------------------------- */

.ar-preamble {
    background: #dbeafe;
    position: relative;
    z-index: 1;
}

.ar-preamble::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,70 1440,60 L1440,80 L0,80 Z' fill='%23dbeafe'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.ar-preamble .content-inner {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ar-preamble .content-inner .ar-preamble__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0;
    text-align: center;
}

.ar-preamble .content-inner .ar-preamble__text {
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.8;
    margin: 0;
    font-style: italic;
}


/* -------------------------------------------------------------------------
   ARTICLES SECTION
   ------------------------------------------------------------------------- */

.ar-articles {
    background: var(--color-surface);
    position: relative;
    z-index: 1;
}

.ar-articles::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,70 1440,60 L1440,80 L0,80 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.ar-articles .content-inner {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ar-articles .content-inner .ar-card {
    background: var(--color-background);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ar-articles .content-inner .ar-card .ar-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ar-articles .content-inner .ar-card .ar-card__header .ar-card__number {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ar-articles .content-inner .ar-card .ar-card__header .ar-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0;
    line-height: 1.3;
}

.ar-articles .content-inner .ar-card .ar-card__description {
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0;
}


/* -------------------------------------------------------------------------
   CTA SECTION
   ------------------------------------------------------------------------- */

.ar-cta {
    background: var(--color-ink);
    position: relative;
    z-index: 1;
}

.ar-cta::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,70 1440,60 L1440,80 L0,80 Z' fill='%230f172a'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.ar-cta .ar-cta__inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    padding: 0 25px;
}

.ar-cta .ar-cta__inner .ar-cta__title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.ar-cta .ar-cta__inner .ar-cta__subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}


/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */

@media (max-width: 639px) {

    .ar-preamble::before {
        height: 50px;
        top: -49px;
    }

    .ar-articles::before {
        height: 50px;
        top: -49px;
    }

    .ar-cta::before {
        height: 50px;
        top: -49px;
    }

}

@media (min-width: 768px) {

    .ar-hero .ar-hero__inner .ar-hero__title {
        font-size: 36px;
    }

    .ar-hero .ar-hero__inner .ar-hero__subtitle {
        font-size: 18px;
    }

    .ar-preamble .content-inner .ar-preamble__title {
        font-size: 24px;
    }

    .ar-articles .content-inner .ar-card {
        padding: 50px;
    }

    .ar-articles .content-inner .ar-card .ar-card__header .ar-card__title {
        font-size: 20px;
    }

    .ar-cta .ar-cta__inner .ar-cta__title {
        font-size: 28px;
    }

}

@media (min-width: 1024px) {

    .ar-hero .ar-hero__inner .ar-hero__title {
        font-size: 42px;
    }

    .ar-cta .ar-cta__inner .ar-cta__title {
        font-size: 32px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .ar-articles .content-inner .ar-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

}


/* -------------------------------------------------------------------------
   NOSCRIPT FALLBACK
   ------------------------------------------------------------------------- */

noscript .ar-card {
    opacity: 1 !important;
    transform: none !important;
}
