/* ABOUTME: Shared design system styles for Afterglow marketing pages */
/* ABOUTME: Contains colors, typography, buttons, layout, and common components */

:root {
    /* Afterglow Design System Colors */
    --ag-green: rgb(26, 32, 15);
    --ag-backdrop-green: rgb(38, 48, 19);
    --ag-black: rgb(10, 10, 10);
    --ag-white: rgb(243, 241, 230);
    --ag-deep-orange: rgb(255, 108, 0);
    --ag-orange: rgb(243, 116, 23);
    --ag-light-green: rgb(104, 128, 86);
    --ag-gray-green: rgb(69, 71, 56);
    --ag-gray: rgb(79, 79, 79);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Animation timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--ag-black);
    color: var(--ag-white);
    line-height: 1.6;
    font-weight: 300;
    min-height: 100vh;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-center { text-align: center; }
.text-orange { color: var(--ag-deep-orange); }
.text-muted { color: var(--ag-light-green); }

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

p {
    font-size: 1rem;
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 58px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--ag-deep-orange);
    color: var(--ag-black);
}

.btn-primary:hover {
    background: var(--ag-orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 108, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--ag-white);
    border: 1px solid var(--ag-deep-orange);
}

.btn-secondary:hover {
    background: rgba(255, 108, 0, 0.1);
}

/* Header */
.header {
    padding: var(--space-md) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--ag-green) 0%, transparent 100%);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s var(--ease-out-expo);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 28px;
    width: auto;
}

.logo-badge {
    background: var(--ag-backdrop-green);
    border: 1px solid var(--ag-gray-green);
    color: var(--ag-light-green);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-cta {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Sections */
.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    max-width: 700px;
    margin-bottom: var(--space-xl);
}

/* Trust Chips */
.trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ag-gray-green);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--ag-light-green);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s var(--ease-out-expo);
}

.chip:hover {
    background: rgba(255, 108, 0, 0.1);
    border-color: var(--ag-deep-orange);
    color: var(--ag-white);
}

.chip svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.chip:hover svg {
    stroke: var(--ag-deep-orange);
}

/* FAQ */
.faq {
    padding: var(--space-2xl) 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ag-gray-green);
    border-radius: 16px;
    padding: var(--space-md);
    transition: all 0.3s var(--ease-out-expo);
}

.faq-item:hover {
    background: rgba(255, 108, 0, 0.05);
    border-color: var(--ag-deep-orange);
    transform: translateY(-3px);
}

.faq-question {
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--ag-white);
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question {
    color: var(--ag-deep-orange);
}

.faq-answer {
    font-size: 0.9rem;
    color: var(--ag-light-green);
    line-height: 1.6;
}

.faq-answer a {
    color: var(--ag-deep-orange);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    border-top: 1px solid var(--ag-gray-green);
    padding: var(--space-xl) 0;
    margin-top: var(--space-2xl);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    color: var(--ag-light-green);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--ag-white);
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--ag-gray);
    max-width: 600px;
    margin-top: var(--space-md);
}

/* Mobile Sticky CTA */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ag-black);
    border-top: 1px solid var(--ag-gray-green);
    padding: var(--space-sm) var(--space-md);
    z-index: 100;
    transition: transform 0.3s ease;
}

.sticky-cta .btn {
    width: 100%;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-cta { display: none; }

    .sticky-cta {
        display: block;
    }

    body {
        padding-bottom: 80px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
