/* ============================================================================
   Anvyr V2 — Home Page
   Hero · About · Products · Principles · Contact
   ============================================================================ */


/* ════════════════════════════════════════════════════════════════════════════
   HERO
   Large centered wordmark. Typographic presence.
   ════════════════════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* account for fixed header */
    position: relative;
}
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__wordmark {
    line-height: 0;
    user-select: none;
    display: block;
    margin: 0;
    font-size: 0; /* collapse whitespace around image */
}

/* Logo is 1000×500 (2:1). Size by width, let height follow naturally. */
.hero__logo {
    display: block;
    width: clamp(300px, 50vw, 620px);
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: contain;
    opacity: 0.92;
    transition: opacity var(--ease-slow);
}
.hero__logo:hover {
    opacity: 1;
}

/* In light mode, invert the white logo to black */
[data-theme="light"] .hero__logo {
    filter: invert(1);
}

.hero__tagline {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: var(--space-xl);
    letter-spacing: 0.03em;
}


/* ── Scroll Inviter ──────────────────────────────────────────────────────── */
.scroll-inviter {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid var(--border-active);
    transition: color var(--ease-base), border-color var(--ease-base);
    animation: scrollBounce 2.4s ease-in-out infinite;
}
.scroll-inviter:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}


/* ════════════════════════════════════════════════════════════════════════════
   ABOUT
   Left-aligned editorial prose.
   ════════════════════════════════════════════════════════════════════════════ */

.about {
    padding-top: var(--space-4xl);
}

.about__lead {
    font-size: 21px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.about p:not(.about__lead) {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}


/* ════════════════════════════════════════════════════════════════════════════
   PRODUCTS
   Full-width list of product cards. Currently one, room for more.
   ════════════════════════════════════════════════════════════════════════════ */

.products__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}


/* ════════════════════════════════════════════════════════════════════════════
   PRINCIPLES
   Three-column grid of numbered tenets.
   ════════════════════════════════════════════════════════════════════════════ */

.principles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

/* Add a subtle top border to each principle for visual rhythm */
.principle {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 1024px) {
    .principles__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (min-width: 640px) and (max-width: 1024px) {
    .principles__grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ════════════════════════════════════════════════════════════════════════════
   CONTACT
   Centered, understated.
   ════════════════════════════════════════════════════════════════════════════ */

.contact__inner {
    max-width: var(--max-width-prose);
}

.contact h2 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: var(--space-md);
}

.contact__sub {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}


/* ════════════════════════════════════════════════════════════════════════════
   CONSTITUTION BANNER
   Full-width teaser linking to the Constitution page.
   ════════════════════════════════════════════════════════════════════════════ */

.constitution-banner {
    padding: var(--space-2xl) var(--space-2xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}
[data-theme="light"] .constitution-banner {
    box-shadow: var(--shadow-card);
}

.constitution-banner__body {
    max-width: 640px;
}

.constitution-banner__body .section-label {
    margin-bottom: var(--space-md);
    display: block;
}

.constitution-banner__title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.constitution-banner__desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.constitution-banner__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color var(--ease-fast);
}
.constitution-banner__link:hover {
    color: var(--accent-hover);
}
.constitution-banner__link span {
    transition: transform var(--ease-fast);
}
.constitution-banner__link:hover span {
    transform: translateX(4px);
}

@media (max-width: 639px) {
    .constitution-banner {
        padding: var(--space-xl) var(--space-lg);
    }
    .constitution-banner__title {
        font-size: 22px;
    }
}


/* ════════════════════════════════════════════════════════════════════════════
   PRODUCT CARD — Responsive
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 639px) {
    .product-card {
        grid-template-columns: auto 1fr;
        gap: var(--space-md);
        padding: var(--space-lg);
    }
    .product-card__arrow {
        display: none;
    }
    .product-card__desc {
        font-size: 14px;
    }
    .product-card__icon {
        width: 40px;
        height: 40px;
    }

    .hero {
        min-height: 100vh;
    }
}
