/* ==========================================
   Index Page Specific Styles
   ========================================== */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    /* Allow scrolling on index */
}

/* Background Glow */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(180, 200, 255, 0.03) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.container {
    max-width: 1000px;
    width: 90%;
    text-align: center;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header h1 {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 300;
    margin-bottom: 10px;
    background: linear-gradient(to bottom, #fff 30%, rgba(255, 255, 255, 0.2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--muted);
    font-size: 1.2rem;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

/* Text Sections */
.intro-text,
.outro-text {
    max-width: 720px;
    margin: 0 auto 50px auto;
    text-align: left;
    color: var(--text);
}

.intro-text p,
.outro-text p {
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.intro-text h2,
.outro-text h2 {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 300;
    margin: 40px 0 20px 0;
    color: #fff;
}

.intro-text .tools-heading {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 0px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.feature-list li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 16px;
    position: relative;
    padding-left: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.8);
    font-weight: bold;
}

.feature-list strong {
    color: #fff;
    font-weight: 500;
}

.outro-text {
    margin: 60px auto 20px auto;
    text-align: center;
}

.outro-text p {
    color: var(--muted);
    font-size: 1.05rem;
}

.outro-text .final-call {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 30px;
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}

/* App-Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    flex-grow: 1;
}

.app-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 50px 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.app-icon {
    font-size: 48px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px rgba(180, 200, 255, 0.2));
}

.app-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15));
}

.app-card h2 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0 0 12px 0;
}

.app-card p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Adjust footer block for index specifically */
.container>footer {
    padding: 40px 0;
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    justify-content: center;
}

.legal-link {
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.legal-link:hover {
    color: var(--text);
}

@media (max-width: 600px) {
    .container {
        padding: 40px 0;
    }

    .app-card {
        padding: 30px 20px;
    }
}