:root {
    --navy: #0a1628;
    --navy-light: #142845;
    --navy-mid: #1a3050;
    --cyan: #00d4ff;
    --cyan-bright: #5ce8ff;
    --cyan-dim: #0099bb;
    --white: #ffffff;
    --gray: #a0b4c8;
    --gray-dim: #6a8298;
    --bg-dark: #030712;
    --gold: #c5a55a;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background & Particles */
.bg-gradient {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #030712 0%, #0a1628 25%, #142845 50%, #0a1628 75%, #030712 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#particles {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    pointer-events: none;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.nav.scrolled {
    padding: 0.6rem 2rem;
    background: rgba(3, 7, 18, 0.95);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
}

.nav-logo {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.nav-brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover { color: var(--cyan); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dim) 100%);
    color: var(--navy) !important;
    font-weight: 600 !important;
    border-radius: 8px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.nav-cta::after { display: none !important; }

/* Mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        padding: 1.5rem 2rem;
        background: rgba(3, 7, 18, 0.98);
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
        gap: 1rem;
    }
    .nav-links.open { display: flex; }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-logo {
    width: 140px;
    height: 140px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.5));
    animation: logoFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--cyan-dim);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    background: rgba(0, 212, 255, 0.05);
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.1); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    background: linear-gradient(120deg, var(--white) 0%, var(--cyan-bright) 50%, var(--white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    position: relative;
    z-index: 1;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero .tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--gray);
    max-width: 700px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.hero .subtitle {
    font-size: 1rem;
    color: var(--gray-dim);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    padding: 1rem 2.2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dim) 100%);
    color: var(--navy);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}
.btn-primary:hover::after { left: 100%; }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan-dim);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #b8943f 100%);
    color: var(--navy);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(197, 165, 90, 0.4);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gray-dim);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 1; }
}

/* Sections */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Mission Pillars */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pillar {
    background: linear-gradient(145deg, var(--navy-light) 0%, var(--navy) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--cyan-bright), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.pillar:hover::before { transform: scaleX(1); }
.pillar:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.15);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.pillar h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--cyan);
}

.pillar p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* About */
.about {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.8) 50%, transparent 100%);
    padding: 6rem 2rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 { margin-bottom: 1.5rem; }

.about-text p {
    color: var(--gray);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    text-align: left;
}

/* Research Cards */
.research-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.research-card {
    background: linear-gradient(145deg, var(--navy-light) 0%, var(--navy) 100%);
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-left: 4px solid var(--cyan);
    transition: all 0.4s ease;
}
.research-card:hover {
    transform: translateX(5px);
    border-left-color: var(--cyan-bright);
    box-shadow: -5px 0 30px rgba(0, 212, 255, 0.1);
}

.research-card .label {
    font-size: 0.8rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.research-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.research-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Store */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: linear-gradient(145deg, var(--navy-light) 0%, var(--navy) 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.15);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.08), transparent);
    animation: productShimmer 3s infinite;
}

@keyframes productShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.product-body {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cyan);
}

.product-fmv {
    font-size: 0.85rem;
    color: var(--gray-dim);
}

.product-donation {
    font-size: 0.8rem;
    color: var(--success);
    margin-bottom: 1rem;
    padding: 0.3rem 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    background: var(--navy);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: var(--white);
    text-align: center;
    font-size: 1rem;
}

/* Cart */
.cart-summary {
    background: linear-gradient(145deg, var(--navy-light) 0%, var(--navy) 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.15);
    margin-top: 3rem;
}

.cart-summary h3 {
    color: var(--cyan);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cart-items {
    list-style: none;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
}

.cart-item-name { flex: 1; }
.cart-item-qty { width: 60px; text-align: center; }
.cart-item-total { width: 80px; text-align: right; font-weight: 600; color: var(--white); }

.cart-totals {
    border-top: 2px solid rgba(0, 212, 255, 0.2);
    padding-top: 1rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.cart-total-row.grand-total {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 700;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.cart-tax-note {
    font-size: 0.8rem;
    color: var(--gray-dim);
    margin-top: 0.5rem;
}

.cart-checkout {
    margin-top: 1.5rem;
    text-align: center;
}

.cart-empty {
    text-align: center;
    color: var(--gray-dim);
    padding: 2rem;
}

/* EIN Notice */
.ein-notice {
    background: rgba(197, 165, 90, 0.1);
    border: 1px solid rgba(197, 165, 90, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.ein-notice strong {
    color: var(--gold);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, transparent 0%, var(--navy) 30%);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 44px;
    height: 44px;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.2));
}

.footer-brand-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-brand-sub {
    font-size: 0.8rem;
    color: var(--gray-dim);
}

.footer-info {
    color: var(--gray-dim);
    font-size: 0.9rem;
    text-align: right;
}

.footer-info a {
    color: var(--cyan-dim);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-info a:hover { color: var(--cyan); }

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-dim);
    font-size: 0.85rem;
}

/* Page header for inner pages */
.page-header {
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, var(--white) 0%, var(--cyan-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile */
@media (max-width: 600px) {
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; text-align: center; justify-content: center; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-info { text-align: center; }
    .store-grid { grid-template-columns: 1fr; }
    .product-actions { flex-direction: column; }
    .product-actions .btn { width: 100%; justify-content: center; }
}
/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a0b4c8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--navy);
    color: var(--white);
}

.form-success {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--cyan);
}

.form-error {
    color: #f87171;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* AI Disclosure Notice in Footer */
.ai-notice {
    font-size: 0.78rem;
    color: var(--gray, #8b95a5);
    margin-top: 0.5rem;
    line-height: 1.5;
    opacity: 0.85;
}

.ai-notice a {
    color: var(--cyan, #00d4ff);
    text-decoration: none;
}

.ai-notice a:hover {
    text-decoration: underline;
}
