/* 
   Apple-inspired styling for JustMVP.io
   Uses SF Pro Display font and minimalist aesthetics
*/

:root {
    --primary-color: #0a84ff;
    --secondary-color: #1c1c1e;
    --tertiary-color: #68686e;
    --background-color: #111111;
    --card-background: #1c1c1e;
    --light-background: #2c2c2e;
    --text-color: #ffffff;
    --light-text: #aeaeb2;
    --spacing-unit: 8px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

/* Typography */
h1 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: var(--spacing-unit);
}

h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 20px;
    font-weight: 600;
}

p {
    font-size: 17px;
    color: var(--light-text);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

/* Navigation */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: calc(var(--spacing-unit) * 2) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
}

.nav-links a {
    color: var(--text-color);
    font-weight: 400;
    position: relative;
}

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

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: calc(var(--spacing-unit) * 12) 0;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
}

.subtitle {
    font-size: clamp(18px, 3vw, 22px);
    max-width: 600px;
    margin: calc(var(--spacing-unit) * 3) auto 0;
}

/* Featured Product */
.featured-product {
    padding: calc(var(--spacing-unit) * 8) 0;
    background-color: var(--light-background);
}

.product-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    align-items: center;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.new-label {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    margin-bottom: var(--spacing-unit);
}

.product-content h2 {
    font-size: 40px;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.tagline {
    font-size: 20px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--primary-color);
}

.description {
    font-size: 18px;
    max-width: 480px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.cta-buttons {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 22px;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background-color: #0062c3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.2);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: rgba(0, 113, 227, 0.05);
    transform: translateY(-2px);
}

.product-image {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.product-image:hover img {
    transform: scale(1.03);
}

/* Products Gallery */
.products-gallery {
    padding: calc(var(--spacing-unit) * 10) 0 calc(var(--spacing-unit) * 5);
}

.gallery-intro {
    padding: calc(var(--spacing-unit) * 12) 0 calc(var(--spacing-unit) * 6);
    text-align: center;
}

.gallery-intro .logo {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--primary-color);
}

.gallery-intro h1 {
    font-size: clamp(40px, 8vw, 64px);
    background: linear-gradient(90deg, #ffffff, #aeaeb2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.gallery-intro .subtitle {
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 400;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.gallery-featured {
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.product-card.featured {
    position: relative;
    border-radius: calc(var(--border-radius) * 2);
    overflow: hidden;
    background-color: var(--card-background);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    margin-bottom: calc(var(--spacing-unit) * 6);
    display: grid;
    grid-template-columns: 1fr;
}

.product-card.featured .card-image {
    height: 500px;
    position: relative;
}

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

.product-card.featured .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: calc(var(--spacing-unit) * 4);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    z-index: 2;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: calc(var(--spacing-unit) * 3);
}

.product-card {
    position: relative;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    grid-column: span 4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-card.primary-card {
    grid-column: span 6;
    grid-row: span 2;
}

.product-card.secondary-card {
    grid-column: span 6;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .card-overlay {
    opacity: 1;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: calc(var(--spacing-unit) * 3);
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    transform: translateY(60px);
    transition: transform 0.4s ease;
}

.product-card:hover .card-content {
    transform: translateY(0);
}

.card-meta {
    display: flex;
    gap: calc(var(--spacing-unit));
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.category-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--light-text);
    padding: 4px 8px;
    background-color: rgba(174, 174, 178, 0.2);
    border-radius: 4px;
}

.featured-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    padding: 4px 8px;
    background-color: var(--primary-color);
    border-radius: 4px;
    margin-right: calc(var(--spacing-unit));
}

.card-content h3 {
    font-size: 22px;
    margin-bottom: var(--spacing-unit);
    background: linear-gradient(90deg, #ffffff, #aeaeb2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-content p {
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: 15px;
    max-width: 90%;
    opacity: 0.8;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease 0.1s;
}

.product-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.link-arrow::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* CTA Section */
.cta-section {
    background-color: var(--light-background);
    padding: calc(var(--spacing-unit) * 10) 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.cta-section p {
    margin-bottom: calc(var(--spacing-unit) * 4);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: calc(var(--spacing-unit) * 3) 0;
    position: relative;
    margin-top: calc(var(--spacing-unit) * 4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary-color), #64d2ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-left: 8px;
}

.footer-credit {
    font-size: 14px;
    color: var(--light-text);
    letter-spacing: 0.02em;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    opacity: 0.7;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.footer-brand {
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary-color), #64d2ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 4px;
}

.legal-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
}

.legal-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .grid-layout {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .product-card {
        grid-column: span 4;
    }
    
    .product-card.primary-card {
        grid-column: span 8;
        grid-row: span 1;
    }
    
    .product-card.secondary-card {
        grid-column: span 4;
    }
}

@media (max-width: 992px) {
    .product-card.featured .card-image {
        height: 400px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
        text-align: center;
    }
}

@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-card {
        grid-column: span 4;
    }
    
    .product-card.primary-card,
    .product-card.secondary-card {
        grid-column: span 4;
    }
    
    .gallery-intro h1 {
        font-size: 36px;
    }
    
    .footer-legal {
        text-align: center;
    }
    
    .product-card.featured .card-content {
        padding: calc(var(--spacing-unit) * 3);
    }
}

@media (max-width: 576px) {
    .product-card.featured .card-image {
        height: 300px;
    }
    
    .product-card {
        min-height: 280px;
    }
    
    .gallery-intro {
        padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4);
    }
    
    .gallery-intro h1 {
        font-size: 32px;
    }
    
    .gallery-intro .subtitle {
        font-size: 16px;
    }
    
    .card-content h3 {
        font-size: 18px;
    }
    
    .card-content p {
        font-size: 14px;
    }
}
