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

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

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #ffffff;
    --card-bg: #f5f5f7;
    --text-main: #1d1d1f;
    --text-dim: #6e6e73;
    --accent-blue: #0071e3;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10001;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a.active {
    font-weight: 600;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

main {
    padding-top: 44px;
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 600;
    margin: 0;
    color: #1d1d1f;
}

.hero .tagline {
    font-size: 24px;
    color: var(--text-dim);
    margin-top: 10px;
}

/* ─── PRODUCT GRID ───────────────────────────────────────────────────────── */

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 28px;
    height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:hover .product-card {
    transform: scale(1.02);
}

.card-content h2 {
    font-size: 40px;
    margin: 10px 0;
}

.libra-card {
    background-image: url('../assets/img/dym-law-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.libra-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    border-radius: 28px;
}

.libra-card .card-content {
    position: relative;
    z-index: 2;
}

.category {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-dim);
}

.cta-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
    margin-top: 15px;
}

.coming-soon {
    background: #ffffff;
    border: 1px solid #d2d2d7;
}

.status {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 12px;
    border: 1px solid var(--text-dim);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-dim);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */

.footer {
    background: #f5f5f7;
    padding: 50px 0 20px 0;
    margin-top: 60px;
    border-top: 1px solid #d2d2d7;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-bottom: 1px solid #d2d2d7;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-size: 12px;
    color: #1d1d1f;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #86868b;
    text-decoration: none;
    font-size: 12px;
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 20px;
    font-size: 11px;
    color: #6e6e73;
    text-align: left;
}

/* ─── PRODUCT PAGE (LIBRA DARK) ─────────────────────────────────────────── */

.product-page {
    background-color: #000000;
    --text-main: #f5f5f7;
    --text-dim: #86868b;
}

.product-page .navbar {
    background: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-page .navbar .logo a,
.product-page .navbar .nav-links a {
    color: #ffffff !important;
}

.product-page .nav-links {
    background: transparent;
}

.product-page .nav-links li {
    border: none;
}

.product-page .nav-links a:hover {
    color: #ffffff;
}

.product-page .footer {
    background: #161617;
    color: #f5f5f7;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-page .footer-grid {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-page .footer-col h3 {
    color: #ffffff;
    text-transform: uppercase;
}

.product-page .footer-col ul li a {
    color: #86868b;
}

.libra-product-page {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

.hero-product {
    text-align: center;
    padding: 120px 20px;
    background: radial-gradient(circle at center, #111 0%, #000 70%);
}

.product-name {
    font-size: 21px;
    font-weight: 600;
    color: #818cf8;
    display: block;
    margin-bottom: 20px;
}

.hero-product h1 {
    font-size: 72px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 24px;
    color: #86868b;
    max-width: 700px;
    margin: 30px auto;
}

.btn-primary {
    background: #0071e3;
    color: white;
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #0077ed;
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.4);
}

.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 100px auto;
    padding: 0 20px;
}

.feature-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-item p {
    color: #86868b;
    line-height: 1.5;
}

.libra-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.eyebrow {
    color: #f5f5f7;
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 10px;
}

.libra-hero h1 {
    font-size: 80px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, #a1a1a6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subheadline {
    font-size: 28px;
    color: #f5f5f7;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.libra-statement {
    padding: 150px 20px;
    text-align: center;
}

.gradient-text {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.1;
    background: linear-gradient(90deg, #fff, #86868b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.libra-statement p {
    font-size: 24px;
    color: #86868b;
    max-width: 800px;
    margin: 0 auto;
}

.libra-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 100px auto;
    padding: 20px;
}

.feature-card {
    background: #161617;
    border-radius: 30px;
    padding: 40px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.feature-card.large {
    grid-column: span 2;
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8)), url('../assets/img/polisweb-bg.jpg');
    background-size: cover;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-card p {
    color: #86868b;
    font-size: 17px;
}

.dym-btn-buy {
    background: #0071e3;
    color: #fff;
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 600;
    text-decoration: none;
    font-size: 17px;
    transition: background 0.3s;
}

.dym-btn-buy:hover {
    background: #0077ed;
}

/* ─── LEGAL PAGES ────────────────────────────────────────────────────────── */

.legal-page {
    background-color: #ffffff;
    color: #1d1d1f;
}

.legal-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 100px 20px;
}

.legal-header {
    border-bottom: 1px solid #d2d2d7;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.legal-header h1 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.last-updated {
    color: #86868b;
    margin-top: 10px;
}

.legal-content h2 {
    font-size: 24px;
    margin: 40px 0 20px 0;
}

.legal-content p {
    font-size: 17px;
    line-height: 1.6;
    color: #424245;
    margin-bottom: 20px;
}

.privacy-summary {
    margin-bottom: 60px;
}

.summary-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: #f5f5f7;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #d2d2d7;
}

.summary-item .icon {
    font-size: 24px;
    margin-bottom: 15px;
}

.summary-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.summary-item p {
    font-size: 13px;
    line-height: 1.4;
    color: #6e6e73;
    margin: 0;
}

/* ─── STORE ──────────────────────────────────────────────────────────────── */

.store-hub {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

.store-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px;
}

.hub-header h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 50px;
}

.hub-header h1 span {
    color: #86868b;
}

.shelf-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
}

.product-shelf-container {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.hub-card-link {
    text-decoration: none;
    color: inherit;
    flex: 0 0 450px;
}

.hub-card {
    background: #fff;
    border-radius: 28px;
    padding: 30px;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0, 0, 0.5, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.hub-card:hover {
    transform: scale(1.02);
}

.libra-theme {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
}

.future-theme {
    background: #1d1d1f;
    color: #fff;
}

.hub-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: block;
}

.hub-card h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hub-card p {
    font-size: 17px;
    color: #424245;
}

.future-theme p {
    color: #86868b;
}

.hub-price,
.hub-status {
    font-weight: 600;
    margin-top: 20px;
    display: block;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.category-item {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.category-item:hover {
    background: #e8e8ed;
}

.cat-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.store-page {
    background-color: #ffffff !important;
    color: #1d1d1f !important;
}

.buy-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 150px 20px 100px 20px;
}

.buy-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.product-gallery {
    flex: 1.2;
    position: sticky;
    top: 120px;
}

.placeholder-img {
    background-color: #f5f5f7;
    border-radius: 20px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #86868b;
}

.product-selection {
    flex: 1;
}

.selection-header h1 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.delivery-info {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 40px;
}

.selection-group h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.selection-group h2 span {
    color: #86868b;
}

.selection-box {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
}

.selection-box input {
    display: none;
}

.box-content {
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease;
}

.selection-box input:checked + .box-content {
    border-color: #0071e3;
    border-width: 2px;
}

.box-title {
    font-size: 17px;
    font-weight: 600;
}

.box-price {
    font-size: 14px;
    color: #1d1d1f;
}

.add-to-cart {
    width: 100%;
    background: #0071e3;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    margin-top: 40px;
    cursor: pointer;
}

/* Early access */
.early-access-box {
    background: #f5f5f7;
    padding: 30px;
    border-radius: 20px;
    margin-top: 20px;
}

.early-access-box h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
}

.early-access-box p {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.4;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #d2d2d7;
    font-size: 17px;
    outline: none;
}

.newsletter-form input:focus {
    border-color: #0071e3;
}

.btn-subscribe {
    background: #0071e3;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-subscribe:hover {
    background: #0077ed;
    transform: scale(1.01);
}

.privacy-note {
    font-size: 12px !important;
    margin-top: 15px !important;
    text-align: center;
}

/* ─── UTILITY ────────────────────────────────────────────────────────────── */

.hidden {
    display: none;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .hero h1 { font-size: 48px; }
    .hero .tagline { font-size: 20px; }
    .product-grid { grid-template-columns: 1fr; max-width: 700px; }
    .product-card { height: 400px; }
    .card-content h2 { font-size: 32px; }
}

@media (max-width: 834px) {
    .buy-layout { flex-direction: column; }
    .product-gallery { position: relative; top: 0; width: 100%; }
    .features-section { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .navbar { height: 50px; }
    .nav-content { padding: 0 15px; }

    .menu-toggle {
        display: block !important;
        cursor: pointer;
        font-size: 24px;
        z-index: 30000;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 40px;
        box-sizing: border-box;
        z-index: 20000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        gap: 15px;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        border: none !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li:nth-child(1) { transition-delay: 0.10s; }
    .nav-links li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links li:nth-child(3) { transition-delay: 0.20s; }
    .nav-links li:nth-child(4) { transition-delay: 0.25s; }

    .nav-links a {
        font-size: 28px !important;
        font-weight: 700 !important;
        color: #1d1d1f !important;
        padding: 10px 0 !important;
        letter-spacing: -0.02em;
    }

    .product-page .nav-links { background: #000000 !important; }
    .product-page .nav-links a { color: #ffffff !important; }

    .nav-btn {
        background: transparent !important;
        width: 100%;
        text-align: left !important;
        margin: 0 !important;
        padding: 10px 0 !important;
        border: none !important;
    }

    .hero { padding: 80px 15px 40px 15px; }
    .hero h1 { font-size: 36px; }
    .hero .tagline { font-size: 18px; }
    .product-grid { padding: 15px; }
    .product-card { height: 350px; padding: 30px; }
    .card-content h2 { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { text-align: left; padding-top: 20px; }

    .summary-card { grid-template-columns: 1fr; padding: 20px; }
    .hero-product h1 { font-size: 42px; }
    .libra-hero h1 { font-size: 42px; }
}
