/**
 * AssignmentGeniusPro — marketing layer (Vite + Tailwind)
 * Deep dark + restrained lime, glass, light motion, hero request form.
 */
#agp-hero-form {
    overflow-anchor: none;
}

.agp-hero {
    position: relative;
    overflow: hidden;
    min-height: min(70vh, 40rem);
    background: #020303;
    isolation: isolate;
}

@media (min-width: 1024px) {
    .agp-hero {
        min-height: 36rem;
    }
}

.agp-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(22, 50, 28, 0.5) 0%, transparent 52%),
        linear-gradient(165deg, #020303 0%, #071a13 50%, #020303 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0.1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
    background-size: 100% 100%, 100% 100%, 480px 480px;
    filter: contrast(1.08);
}

.agp-hero__glow {
    position: absolute;
    width: min(50vw, 32rem);
    height: min(50vw, 32rem);
    right: -8%;
    top: -5%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(183, 255, 42, 0.1) 0%,
        rgba(120, 180, 50, 0.05) 45%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    animation: agp-float 18s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .agp-hero__glow { animation: none; }
}

@keyframes agp-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
    50% { transform: translate(-1rem, 0.5rem) scale(1.04); opacity: 1; }
}

.agp-hero__reveal {
    animation: agp-hero-fade 0.75s ease-out 0.05s both;
}

@keyframes agp-hero-fade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* Hero typography: one clear H1 + readable body (layout unchanged) */
.agp-hero__title {
    font-family: "Fraunces", "Georgia", ui-serif, serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: #ffffff;
    font-size: clamp(1.875rem, 4.5vw, 2.6rem);
}

@media (min-width: 1024px) {
    .agp-hero__title {
        font-size: 2.65rem;
        line-height: 1.08;
    }
}

.agp-hero__lede {
    line-height: 1.6;
    max-width: 34rem;
}

/* Primary CTAs: more contrast without changing layout */
.agp-hero .agp-cta.btn-primary,
.agp-request__btn {
    min-height: 2.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow:
        0 0 0 1px rgba(183, 255, 42, 0.22),
        0 0 28px rgba(183, 255, 42, 0.12),
        0 10px 28px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .agp-hero .agp-cta.btn-primary:hover,
    .agp-request__btn:hover {
        box-shadow:
            0 0 0 1px rgba(183, 255, 42, 0.4),
            0 0 40px rgba(183, 255, 42, 0.18),
            0 14px 32px rgba(0, 0, 0, 0.45);
        transform: translateY(-2px);
    }
}

.agp-hero__actions .btn-ghost.agp-cta-ghost {
    border-color: rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .agp-hero__actions .btn-ghost.agp-cta-ghost:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.06);
    }
}

/* Trust line under actions */
.agp-hero__trust {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    max-width: 40rem;
}

.agp-hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    line-height: 1.3;
    color: #c4c4c8;
    text-wrap: pretty;
    letter-spacing: 0.01em;
}

/* Fix invalid sm: in CSS - use media */
@media (min-width: 640px) {
    .agp-hero__trust li { font-size: 0.75rem; }
}

.agp-hero__trust-ic {
    color: #a3d636;
    flex-shrink: 0;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Quick request form (replaces instant pricing UI) */
.agp-request {
    position: relative;
    z-index: 1;
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem 1.5rem;
    background: linear-gradient(155deg, rgba(30, 38, 32, 0.85), rgba(12, 14, 12, 0.94));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

@media (min-width: 1024px) {
    .agp-request { padding: 1.5rem; }
}

.agp-request__kicker {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #b7ff2a;
    margin: 0 0 0.2rem 0;
}

.agp-request__fields {
    display: grid;
    gap: 1rem;
    margin-top: 0.25rem;
}

@media (min-width: 480px) {
    .agp-request__fields {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .agp-request__row-full {
        grid-column: 1 / -1;
    }
}

.agp-request label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a8a8b0;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.agp-request__hint {
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-size: 0.68rem;
    color: #71717a;
}

.agp-request__req {
    color: #c4d87a;
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-size: 0.65rem;
}

.agp-request__select,
.agp-request__input,
.agp-request__textarea {
    display: block;
    width: 100%;
    border-radius: 0.625rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0c0e0c;
    color: #f4f4f5;
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    max-width: 100%;
    min-height: 2.75rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    min-width: 0;
}

.agp-request__select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23888'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.2 8.28a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.1rem 1.1rem;
    padding-right: 2.25rem;
    cursor: pointer;
}

.agp-request__input::placeholder,
.agp-request__textarea::placeholder {
    color: #5c5c64;
}

textarea.agp-request__textarea {
    min-height: 4.5rem;
    resize: vertical;
}

.agp-request__input:focus,
.agp-request__select:focus,
.agp-request__textarea:focus,
.agp-request__input--err:focus {
    outline: none;
    border-color: rgba(183, 255, 42, 0.45);
    background: #080a08;
    box-shadow: 0 0 0 2px rgba(183, 255, 42, 0.18);
}

.agp-request__input--err {
    border-color: rgba(244, 98, 98, 0.5);
    box-shadow: 0 0 0 1px rgba(244, 98, 98, 0.2);
}

.agp-request__err {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #fca5a5;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0.01em;
}

.agp-request__inline-err {
    font-size: 0.8rem;
    color: #fecaca;
    margin: 0 0 0.35rem 0;
    line-height: 1.4;
    grid-column: 1 / -1;
}

@media (min-width: 480px) {
    .agp-request__inline-err { margin-top: 0.25rem; }
}

/* Fixed slot for success/error to limit scroll anchoring & CLS */
.agp-request__feedback {
    min-height: 4.5rem;
    margin-bottom: 0.35rem;
    contain: layout;
}

.agp-request__alert {
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.15rem;
    line-height: 1.5;
    font-size: 0.9rem;
    border: 1px solid transparent;
    will-change: opacity, transform;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.agp-request__select.agp-request__input--err {
    border-color: rgba(248, 113, 113, 0.45) !important;
    box-shadow: 0 0 0 1px rgba(248, 98, 98, 0.2);
}

.agp-request__alert--ok {
    background: rgba(22, 50, 28, 0.5);
    border-color: rgba(183, 255, 42, 0.28);
    color: #e4e4e7;
}
.agp-request__alert--ok strong { color: #b7ff2a; font-weight: 600; }

.agp-request__alert--err {
    background: rgba(50, 20, 20, 0.55);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.agp-request__submit {
    margin-top: 0.35rem;
    padding-top: 0.25rem;
}

.agp-hero-btn-spinner:not(.hidden) {
    animation: agp-hero-btn-spin 0.65s linear infinite;
}
@keyframes agp-hero-btn-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .agp-hero-btn-spinner:not(.hidden) {
        animation: none;
    }
}

.agp-hp {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scroll reveal: lightweight (JS adds .is-revealed) */
[data-agp-reveal] {
    opacity: 0.01;
    transform: translate3d(0, 10px, 0);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-agp-reveal].is-revealed,
.no-js [data-agp-reveal] {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
    [data-agp-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Sticky header shrink: toggle .is-scrolled on <header> (Alpine) */
#site-header.is-scrolled .nav-main-inner {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

#site-header.is-scrolled {
    background: rgba(8, 8, 8, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.aos-reduce [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* Blog preview / section rhythm */
.section-agp {
    scroll-margin-top: 5.5rem;
}

/* Page loader logo */
.agp-loader-logo {
    width: auto;
    height: 3rem;
    object-fit: contain;
}

/* --- Header mark: height-capped, width auto; works for wide or square newlogo.png --- */
.agp-brand {
    min-width: 0;
    margin-right: 0.5rem;
    max-width: min(100%, 16rem);
}
.agp-site-logo {
    display: block;
    height: 2.4rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 640px) {
    .agp-site-logo { height: 2.55rem; }
}
@media (min-width: 1024px) {
    .agp-site-logo { height: 2.8rem; }
}
@media (min-width: 1280px) {
    .agp-site-logo { height: 3.05rem; }
}

/* --- Footer: matches site canvas (dark, minimal) --- */
.agp-footer {
    background: #020303;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #9aa4a7;
    margin-top: 2.5rem;
    padding: 0;
}

@media (min-width: 1024px) {
    .agp-footer {
        margin-top: 3rem;
    }
}

.agp-footer__inner {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
    .agp-footer__inner {
        padding-top: 4.5rem;
        padding-bottom: 3rem;
    }
}

.agp-footer__grid {
    display: grid;
    gap: 2.5rem 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .agp-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .agp-footer__grid {
        grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
        gap: 2.5rem 2.5rem;
    }
}

.agp-footer__heading {
    font-family: var(--agp-sans, ui-sans-serif, system-ui, sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a3a3a3;
    margin: 0 0 1rem 0;
}

.agp-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.agp-footer__list a {
    color: #d4d4d8;
    font-size: 0.9375rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s ease;
}

.agp-footer__list a:hover {
    color: #b7ff2a;
}

.agp-footer__list--icons li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.agp-footer__list--icons a {
    color: #d4d4d8;
    word-break: break-word;
}

.agp-footer__list--icons a:hover {
    color: #b7ff2a;
}

.agp-footer__icon {
    color: #b7ff2a;
    flex-shrink: 0;
    margin-top: 0.1rem;
    opacity: 0.9;
}

.agp-footer__logo {
    display: block;
    width: auto;
    height: 3.25rem;
    max-width: min(100%, 12rem);
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 1024px) {
    .agp-footer__logo {
        height: 3.5rem;
    }
}

.agp-footer__description {
    font-size: 0.9rem;
}

.agp-footer__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.55rem;
    border-radius: 0.35rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #9aa4a7;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.agp-footer__bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: flex-start;
    font-size: 0.75rem;
    color: #737373;
}

@media (min-width: 1024px) {
    .agp-footer__bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.agp-footer__copyright {
    margin: 0;
    line-height: 1.5;
    max-width: 42rem;
}

.agp-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
}

.agp-footer__legal a {
    color: #a3a3a3;
    text-decoration: none;
    white-space: nowrap;
}

.agp-footer__legal a:hover {
    color: #b7ff2a;
}

.agp-footer__notice {
    margin-top: 1.5rem;
    line-height: 1.5;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
