/* ==========================================================================
   Phase Page Styles
   ========================================================================== */

:root {
    --color-background: #0a0a0a;
    --color-secondary-bg: #121212;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a3a3a3;
    --color-border: #262626;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 900px; /* A slightly narrower container for readability */
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header --- */
.main-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    text-decoration: none;
    color: var(--color-text-primary);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.btn-back:hover {
    color: var(--color-text-primary);
}

/* --- Main Content --- */
.page-content {
    padding: 5rem 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.page-intro {
    font-size: 1.1rem;
    max-width: 80%;
    margin-bottom: 4rem;
    color: var(--color-text-secondary);
}

.topic-list {
    list-style: none;
    padding: 0;
}

.topic-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.topic-item:first-child {
    padding-top: 0;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.topic-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* --- NEW STYLES FOR LINKS --- */
.topic-description a {
    color: var(--color-text-primary);
    font-weight: 500;
    text-decoration: underline;
    transition: opacity var(--transition-speed) ease;
}

.topic-description a:hover {
    opacity: 0.8;
}
/* --- END NEW STYLES --- */


/* --- Footer --- */
.main-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.9rem;
}

/* --- Add this to the end of page.css --- */

/* ==========================================================================
   Call to Action (CTA) Section - FANCY VERSION
   ========================================================================== */

.cta-section {
    position: relative;
    text-align: center;
    background-color: var(--color-secondary-bg);
    padding: 3rem 2.5rem;
    margin-top: 5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.05); /* Subtle glow effect */
    overflow: hidden; /* Keeps the pattern contained */
}

/* Adds the same grid pattern as the roadmap */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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: 2rem 2rem;
    opacity: 0.5;
    z-index: 0;
}

/* Ensures content stays above the background pattern */
.cta-icon,
.cta-section h2,
.cta-section p,
.cta-section .btn {
    position: relative;
    z-index: 1;
}

.cta-icon {
    font-size: 2.5rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--color-text-secondary);
}

.cta-section .btn {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    display: inline-flex; /* Aligns icon and text */
    align-items: center;
    gap: 0.6rem; /* Space between text and icon */
}