/* ARSES Homepage — Layout */

.arses-container {
    width: 100%;
    max-width: var(--arses-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.arses-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.arses-section {
    padding: 64px 0;
}

.arses-section__head {
    margin-bottom: 32px;
}

.arses-section__title {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--arses-green-900);
    letter-spacing: -0.02em;
}

.arses-section__subtitle {
    margin: 0;
    font-size: 1.05rem;
    color: var(--arses-muted);
    max-width: 560px;
}

/* Header layout */
.arses-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--arses-border);
}

.arses-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    flex-wrap: wrap;
}

.arses-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--arses-green-900);
    flex-shrink: 0;
}

.arses-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 12%;
    background: linear-gradient(135deg, var(--arses-green-600), var(--arses-mint));
    position: relative;
    box-shadow: var(--arses-shadow-sm);
}

.arses-brand__mark::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%) rotate(-30deg);
    width: 14px;
    height: 18px;
    border-radius: 50% 50% 40% 40%;
    background: var(--arses-green-800);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: var(--arses-green-800);
    border-radius: 0 80% 0 80%;
}

.arses-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.arses-brand__name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.arses-brand__tagline {
    font-size: 0.7rem;
    color: var(--arses-muted);
    font-weight: 500;
}

.arses-header__search {
    flex: 1;
    min-width: 200px;
    max-width: 420px;
    position: relative;
}

.arses-search__ai-badge {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--arses-green-700);
    pointer-events: none;
    z-index: 1;
}

.arses-search__input {
    width: 100%;
    padding: 12px 16px 12px 52px;
    border: 1px solid var(--arses-border);
    border-radius: 999px;
    background: var(--arses-card);
    font-size: 0.9rem;
    color: var(--arses-text);
    box-shadow: var(--arses-shadow-sm);
    transition: border-color var(--arses-transition), box-shadow var(--arses-transition);
}

.arses-search__input:focus {
    border-color: var(--arses-green-600);
    box-shadow: var(--arses-shadow-md);
}

.arses-nav {
    display: none;
}

.arses-nav__list {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.arses-nav__link {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--arses-muted);
    border-radius: 8px;
    transition: background var(--arses-transition), color var(--arses-transition);
}

.arses-nav__link:hover {
    background: rgba(184, 230, 207, 0.35);
    color: var(--arses-green-800);
}

.arses-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.arses-location {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--arses-muted);
}

.arses-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--arses-card);
    border: 1px solid var(--arses-border);
    transition: background var(--arses-transition), transform var(--arses-transition);
}

.arses-icon-btn:hover {
    background: rgba(184, 230, 207, 0.4);
    transform: translateY(-1px);
}

.arses-user-greeting {
    display: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--arses-green-800);
}

.arses-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.arses-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--arses-green-800);
    border-radius: 2px;
    transition: transform var(--arses-transition);
}

.arses-mobile-nav {
    padding: 0 24px 16px;
    border-bottom: 1px solid var(--arses-border);
}

.arses-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.arses-mobile-nav a {
    display: block;
    padding: 10px 0;
    color: var(--arses-text);
    font-weight: 500;
    border-bottom: 1px solid var(--arses-border);
}

/* Hero — V3 immersive full-bleed (copy left | glass panel right) */
.arses-hero {
    position: relative;
    overflow: hidden;
}

.arses-hero--v3 {
    display: flex;
    align-items: center;
    min-height: clamp(560px, 88vh, 860px);
    padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 72px);
}

.arses-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.arses-hero__bg-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 38%;
    transform: scale(1);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.arses-hero--v3:hover .arses-hero__bg-image {
    transform: scale(1.035);
}

.arses-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        102deg,
        rgba(250, 248, 243, 0.96) 0%,
        rgba(250, 248, 243, 0.88) 28%,
        rgba(250, 248, 243, 0.62) 48%,
        rgba(250, 248, 243, 0.28) 68%,
        rgba(250, 248, 243, 0.06) 85%,
        transparent 100%
    );
    pointer-events: none;
}

.arses-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.arses-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 320px);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.arses-hero__content {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 620px;
}

.arses-hero__tag {
    margin: 0 0 clamp(18px, 2.5vw, 24px);
}

.arses-hero__title {
    margin: 0 0 clamp(18px, 2.5vw, 28px);
    font-size: clamp(2.25rem, 4.4vw, 3.625rem);
    font-weight: 800;
    line-height: 1.06;
    color: var(--arses-green-900);
    letter-spacing: -0.038em;
}

.arses-hero__subtitle {
    margin: 0 0 clamp(28px, 4vw, 40px);
    font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
    color: var(--arses-muted);
    max-width: 50ch;
    line-height: 1.68;
}

.arses-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: clamp(16px, 2vw, 20px);
}

.arses-hero__ai-signal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: clamp(28px, 4vw, 40px) 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--arses-muted);
    letter-spacing: 0.01em;
    opacity: 0.72;
}

/* Grids */
.arses-quick-actions__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* Personalized intelligence — AI Learning Loop layout in components */

.seller-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}


.arses-delivery__board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* Living stream ticker — layout shell */
.arses-living-stream__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.arses-living-stream__viewport::before,
.arses-living-stream__viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(48px, 8vw, 120px);
    z-index: 2;
    pointer-events: none;
}

.arses-living-stream__viewport::before {
    left: 0;
    background: linear-gradient(90deg, var(--arses-cream) 0%, rgba(250, 248, 243, 0.55) 55%, transparent 100%);
}

.arses-living-stream__viewport::after {
    right: 0;
    background: linear-gradient(270deg, var(--arses-cream) 0%, rgba(250, 248, 243, 0.55) 55%, transparent 100%);
}

.arses-living-stream__track {
    display: flex;
    width: max-content;
    animation: arses-living-stream-scroll 48s linear infinite;
}

.arses-living-stream__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0 28px;
}

.arses-living-stream__item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 6px 0;
    transition: transform 0.22s ease, color 0.22s ease;
}

.arses-living-stream__item::after {
    content: "•";
    margin: 0 28px;
    font-size: 0.5rem;
    line-height: 1;
    color: rgba(26, 115, 84, 0.28);
    user-select: none;
}

.arses-living-stream__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    font-size: 0.75rem;
    opacity: 0.88;
}

.arses-living-stream__text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--arses-text);
    letter-spacing: -0.01em;
    transition: color 0.22s ease;
}

.arses-living-stream__label {
    font-weight: 600;
    color: var(--arses-green-900);
}

.arses-living-stream__actor {
    font-weight: 600;
    color: var(--arses-green-900);
}

.arses-living-stream__target {
    font-weight: 600;
    color: var(--arses-green-700);
}

.arses-living-stream__item--star .arses-living-stream__target {
    color: #6b4f8a;
}

.arses-living-stream__item--chat .arses-living-stream__target,
.arses-living-stream__item--chat .arses-living-stream__actor {
    color: var(--arses-green-900);
}

.arses-living-stream__item--truck .arses-living-stream__target {
    color: #b85c1e;
}

.arses-living-stream__viewport:hover .arses-living-stream__track {
    animation-play-state: paused;
}

.arses-living-stream__viewport:hover .arses-living-stream__item:hover {
    transform: scale(1.03);
}

.arses-living-stream__viewport:hover .arses-living-stream__item:hover .arses-living-stream__text,
.arses-living-stream__viewport:hover .arses-living-stream__item:hover .arses-living-stream__label {
    color: var(--arses-green-600);
}

.arses-living-stream__viewport:hover .arses-living-stream__item:hover .arses-living-stream__icon {
    opacity: 1;
}

.arses-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr) 1.2fr;
    gap: 32px;
    padding-bottom: 40px;
}

.arses-footer__bottom {
    padding: 24px 0;
    border-top: 1px solid var(--arses-border);
    text-align: center;
}

.arses-footer__copyright {
    margin: 0;
    font-size: 0.85rem;
    color: var(--arses-muted);
}

@media (min-width: 1024px) {
    .arses-nav {
        display: block;
    }

    .arses-location {
        display: flex;
    }

    .arses-user-greeting {
        display: block;
    }

    .arses-mobile-toggle {
        display: none;
    }
}
