/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    /* Gap for grid lines */
    background: rgba(255, 255, 255, 0.1);
    /* Color of the gap/lines */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-3>* {
    background: var(--bg-dark);
    /* Cards cover the background, leaving gaps as lines */
}

/* Base Typo Overrides for Section Headers */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: auto;
    /* Allow content to dictate size */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0 1rem;
    /* Reduced bottom padding to pull screenshots up */
    overflow: hidden;
    border-bottom: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Technical Grid Background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.logo-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--accent-highlight);
    padding: 10px;
    background: var(--bg-dark);
    box-shadow: none;
    position: relative;
}

/* Corner accents for logo */
.logo-wrapper::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent-highlight);
    border-right: 2px solid var(--accent-highlight);
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent-highlight);
    border-left: 2px solid var(--accent-highlight);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    /* Sharp corners */
    filter: none;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover .logo-img {
    transform: scale(1.05);
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 0px;
    color: var(--text-main);
    line-height: 0.9;
    letter-spacing: -2px;
}

.hero-slogan {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-highlight);
    margin: 1.5rem 0 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(64, 224, 208, 0.1);
    display: inline-block;
    padding: 0.2rem 0.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-store {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 1rem 3rem;
    border-radius: 0;
    /* Sharp */
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    min-width: 250px;
    /* Uniform width */
    text-decoration: none;
}



.hero-links {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.policy-link-hero {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 1rem;
    text-decoration: underline;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.policy-link-hero:hover {
    color: var(--accent-highlight);
}

.btn-store::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-main);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-store:hover {
    color: var(--bg-dark);
}

.btn-store:hover::before {
    left: 0;
}

/* Features Section */
.features {
    padding: 3rem 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    position: relative;
    border: 1px solid transparent;
    /* Placeholder */
    transition: border-color 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-highlight);
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-family: var(--font-mono);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: var(--font-mono);
    font-weight: 300;
}

.sparkline {
    height: 40px;
    width: 100px;
    margin-top: 2rem;
    background: url('../assets/sparkline.png') no-repeat center left;
    background-size: contain;
    position: relative;
    filter: drop-shadow(0 0 5px var(--accent-highlight));
    opacity: 0.8;
}

/* Mascot Section */
.mascot-section {
    padding: 2rem 0;
    /* Reduced */
    position: relative;
    background: transparent;
    /* Unified background */
}

.mascot-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}

.mascot-group {
    display: flex;
    align-items: flex-end;
    gap: 0;
    /* Overlap slightly */
    position: relative;
}

.mascot-image-wrapper {
    width: 250px;
    height: 250px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    background: var(--bg-dark);
}

.mascot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.advisor-image-wrapper {
    width: 300px;
    border: 1px solid var(--accent-highlight);
    background: rgba(0, 0, 0, 0.8);
    margin-left: -50px;
    margin-bottom: -30px;
    z-index: 3;
    position: relative;
}

.advisor-img {
    width: 100%;
    display: block;
    filter: contrast(110%);
}

.mascot-text {
    max-width: 400px;
}

.mascot-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.mascot-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    border-left: 2px solid var(--accent-highlight);
    padding-left: 1rem;
}

/* Benefits Section */
.benefits {
    padding: 2rem 0;
    border-top: none;
}

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

.benefit-item {
    background: transparent;
    padding: 0;
    border: none;
}

.benefit-item h3 {
    margin-bottom: 1rem;
    color: var(--accent-highlight);
    font-family: var(--font-mono);
    font-size: 1rem;
    text-transform: uppercase;
}

.benefit-item p {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Screenshots Section */
.screenshots {
    padding: 1rem 0 3rem;
    /* Very tight top padding */
    background: transparent;
    border-top: none;
}

.phones-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.phone-mockup {
    width: 210px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px;
    background: var(--bg-dark);
    box-shadow: 10px 10px 0px rgba(255, 255, 255, 0.05);
    /* Hard shadow */
    transition: transform 0.3s ease;
}

.phone-mockup img {
    width: 100%;
    display: block;
    filter: brightness(0.9);
}

.phone-mockup:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0px var(--accent-highlight);
    border-color: var(--accent-highlight);
    z-index: 10;
}

/* Release Notes Section */
.release-notes {
    padding: 4rem 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-highlight);
}

.release-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.release-block::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent-highlight);
    border-left: 2px solid var(--accent-highlight);
}

.release-block::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent-highlight);
    border-right: 2px solid var(--accent-highlight);
}

.release-block:hover {
    border-color: var(--accent-highlight);
    background: rgba(255, 255, 255, 0.05);
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.release-version {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-highlight);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.release-date {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
}

.release-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem 2rem;
}

.release-list li {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
}

.release-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-highlight);
    font-size: 1.2rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: left;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle top border left */
    background: transparent;
}

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

footer p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.policy-link {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.policy-link:hover {
    color: var(--accent-highlight);
}

@media (max-width: 768px) {
    .phones-container {
        flex-direction: column;
    }

    .mascot-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .mascot-text p {
        text-align: left;
        display: inline-block;
    }

    .hero-title {
        font-size: 3rem;
    }
}