@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-light: #f4f7f6;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --accent-glow: #00b8ff;
    --accent-glow-secondary: #00ff88;
    --border-glass: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    background-image: url('light_bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-glow, .bg-glow-2 {
    display: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-glow);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    margin-top: 60px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #000;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #00b8ff, #00ff88);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 184, 255, 0.5);
}

section {
    padding: 5rem 5%;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #000;
}

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

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.1);
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.glass-card p {
    color: var(--text-secondary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: var(--card-shadow);
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.1);
}

.product-img {
    height: 250px;
    background: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.product-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.btn-buy {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--accent-glow);
    color: var(--text-primary);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: var(--accent-glow);
    color: #fff;
    border-color: var(--accent-glow);
}

.news-item {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: var(--accent-glow);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: color 0.3s;
    color: #000;
}

.news-item h3:hover {
    color: var(--accent-glow);
}

.news-item p {
    color: var(--text-secondary);
}

footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    margin-top: 5rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    header { flex-direction: column; gap: 1rem; }
    nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-light: #0a0f1a;
    --bg-card: rgba(16, 23, 38, 0.8);
    --text-primary: #f0f4f8;
    --text-secondary: #a0aec0;
    --accent-glow: #00ffcc;
    --accent-glow-secondary: #00b8ff;
    --border-glass: rgba(255, 255, 255, 0.1);
    background-image: none;
    background-color: var(--bg-light);
}

body.dark-mode header {
    background: rgba(10, 15, 26, 0.8);
}

body.dark-mode footer {
    background: rgba(10, 15, 26, 0.4);
}

body.dark-mode .hero h1,
body.dark-mode .section-title,
body.dark-mode .glass-card h3,
body.dark-mode .product-info h3,
body.dark-mode .news-item h3 {
    color: var(--text-primary);
}

/* Premium Logo Animations & Styles */
.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.brand-icon {
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 184, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.brand-container:hover .brand-icon {
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

.brand-text-wrapper {
    display: flex;
    align-items: baseline;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-name {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00b8ff, #00ff88, #00b8ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 8px rgba(0, 184, 255, 0.4));
    animation: shimmer 4s linear infinite;
}

.brand-tld {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(0, 184, 255, 0.9);
    margin-left: 2px;
    text-shadow: 0 0 10px rgba(0, 184, 255, 0.4);
}

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

/* Featured Product */
.featured-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(0, 184, 255, 0.15);
}

.featured-img {
    flex: 1;
    min-width: 300px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.featured-info {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.featured-info p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.featured-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1rem;
    align-self: flex-start;
}

/* Carousel */
.carousel-section {
    margin-top: 2rem;
}

.carousel-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem 0;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.carousel-track .product-card {
    min-width: 320px;
    max-width: 320px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--accent-glow);
    color: #fff;
    border-color: var(--accent-glow);
}

.carousel-btn.left { left: -25px; }
.carousel-btn.right { right: -25px; }

@media (max-width: 768px) {
    .featured-info { padding: 2rem; }
    .carousel-btn { display: none; }
}

/* Enhanced Footer Styles */
.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.newsletter-box {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.newsletter-box h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.newsletter-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}



body.dark-mode 



.footer-legal {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ftc-disclosure {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-glow);
}

.footer-links .divider {
    margin: 0 10px;
    color: var(--text-secondary);
    opacity: 0.5;
}

@media (max-width: 600px) {
    
    
}

/* ============================================================
   Product schema support — badge types, text-only cards, offers
   Badge colours live here, not in products.json. The data file
   picks a type; CSS owns the styling.
   ============================================================ */

.badge-primary {
    background: var(--accent-glow);
    color: var(--bg-dark);
}

.badge-secondary {
    background: var(--accent-glow-secondary);
    color: #fff;
}

.badge-neutral {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

body.dark-mode .badge-neutral {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

/* Text-only cards: no image frame, so the info panel takes the full width. */
.featured-card.no-image .featured-info {
    flex: 1 1 100%;
    padding: 3.5rem;
}

.product-card.no-image .product-info {
    padding-top: 2rem;
}

/* Badge for text-only cards — the image-overlay position doesn't apply. */
.product-badge-inline {
    display: inline-block;
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

/* Offers. No price element, so the footer is left-aligned rather than split. */
.product-footer {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    margin-top: auto;
}

.featured-card .product-footer .btn-buy {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.offer-pending {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

/* Sits directly under the buy button. Deliberately NOT faded out — the FTC's
   standard is "hard to miss", and an opacity trick to make a disclosure recede
   is the exact thing that fails it. Small, but full contrast and no italics. */
.offer-disclosure {
    flex-basis: 100%;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Certification is the one claim this site exists to make, so it reads as
   data rather than prose — monospace, sitting apart from the description. */
.product-cert {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0.6rem 0 0.9rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(128, 128, 128, 0.18);
}

.product-cert .cert-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.68rem;
    opacity: 0.65;
    margin-right: 0.4rem;
}

.offer-alternates {
    flex-basis: 100%;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.offer-alt-link {
    color: var(--accent-glow);
    text-decoration: none;
    font-weight: 600;
}

.offer-alt-link:hover {
    text-decoration: underline;
}

/* Forward-looking products: announced but not yet certified/purchasable.
   A normal state in a pre-launch market, not an error state. */
.offer-announced {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 20px;
    border: 1px dashed var(--border-glass);
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.offer-announced::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-glow-secondary);
    box-shadow: 0 0 8px var(--accent-glow-secondary);
}

body.dark-mode .offer-announced {
    background: rgba(255, 255, 255, 0.04);
}




/* Theme toggle is a button, not a link — it navigates nowhere. */
.theme-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s ease;
}

.theme-toggle-btn:hover {
    color: var(--accent-glow);
}

/* News items rendered from /api/news */
.news-item--full {
    width: 100%;
    text-align: left;
}

.news-item--full h3 a {
    color: inherit;
    text-decoration: none;
}

.news-item--full h3 a:hover {
    color: var(--accent-glow);
}

.news-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.news-more {
    color: var(--accent-glow);
    text-decoration: none;
}

.news-pin {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    background: var(--accent-glow-secondary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    vertical-align: middle;
}

/* Standard explainer page (/ul-3700) */
.standard-page {
    max-width: 820px;
    margin: 3rem auto 5rem;
    padding: 0 1.5rem;
}

.standard-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #00b8ff, #00ff88);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.standard-lede {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.standard-page .glass-card {
    margin-bottom: 1.5rem;
    text-align: left;
}

.standard-page .glass-card h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.standard-page .glass-card p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.standard-list {
    margin: 0 0 1rem 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.standard-list li { margin-bottom: 0.6rem; }

.highlight-card {
    border-color: var(--accent-glow) !important;
    box-shadow: 0 0 30px rgba(0, 184, 255, 0.12);
}
