/* ===== VARIABLES ===== */
:root {
    /* Colors from SubnetForge app */
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --accent-color: #FFC107;
    --accent-dark: #FFD54F;

    /* Neutral colors */
    --bg-light: #F5F5F5;
    --bg-dark: #152238;
    --card-bg: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #FFFFFF;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;
    --card-radius: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.nav-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

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

/* ===== HERO SECTION ENHANCEMENTS ===== */
.hero {
    background: radial-gradient(circle at top right, #1e3a8a 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    padding: 120px 20px;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.play-store-link {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.play-store-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.store-badge {
    height: 80px;
    width: auto;
}

.hero-title {
    font-size: 56px;
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    margin: 0 auto;
}

.mockup-img {
    position: absolute;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 8px solid #1e293b;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-mockup {
    z-index: 2;
    width: 280px;
    right: 20px;
    top: 50px;
    animation: float 6s ease-in-out infinite;
}

.secondary-mockup {
    z-index: 1;
    width: 240px;
    left: 20px;
    top: 150px;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite reverse;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* ===== FEATURES SECTION PREMIUM STYLES ===== */
.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 32px;
}

.feature-icon {
    box-shadow: 0 10px 15px -3px rgba(33, 150, 243, 0.3);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.feature-icon.premium {
    background: linear-gradient(135deg, var(--accent-color), #FF9800);
    box-shadow: 0 10px 20px -5px rgba(255, 193, 7, 0.4);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.premium-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent-color);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

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

section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* ===== SCREENSHOTS SECTION ===== */
.screenshots {
    background: var(--bg-light);
    padding: 100px 20px;
}

.screenshots-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.screenshot-item {
    text-align: center;
    max-width: 300px;
}

.screenshot-item img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-item p {
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== DOWNLOAD SECTION ===== */
.download {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    text-align: center;
}

.download .section-title,
.download .section-subtitle {
    color: var(--text-light);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.download-btn {
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
}

.store-badge-large {
    height: 100px;
    width: auto;
}

.download-note {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--card-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.contact-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-light);
    border-radius: var(--card-radius);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

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

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .mockup-container {
        height: 500px;
        transform: scale(0.8);
    }

    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
    }

    .mockup-container {
        display: none;
    }
}


/* ===== PRIVACY & TERMS PAGES ===== */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-page h1 {
    font-size: 36px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.legal-page .last-updated {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

.legal-page h2 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-page h3 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-page p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-page ul {
    list-style: disc;
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-page li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.legal-page a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--primary-dark);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}