:root {
    --primary: #010312;
    --accent: #FFC436;
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --surface: rgba(255, 255, 255, 0.05);
    --page-width: 800px;
}

body {
    background-color: var(--primary);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header matching FidopicsAppBar */
header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--primary);
    height: 64px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
}

.logo {
    height: 32px;
    width: auto;
    margin-right: 16px;
    object-fit: contain;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.home-icon {
    margin-left: auto;
    color: var(--text);
    text-decoration: none;
    padding: 8px;
    display: flex;
    align-items: center;
}

/* Main Content */
main {
    max-width: var(--page-width);
    margin: 5vh auto;
    padding: 0 5vw;
    text-align: center;
    min-height: 80vh;
    /* Ensure content takes up substantial space */
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Cards & Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.example-card {
    position: relative;
    /* Context for absolute positioning of pseudo-element */
    background: #1e1e1e;
    /* Material dark surface */
    /* Fallback/Base color */
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Standard outline opacity */
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

/* The background image layer */
.example-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 0;
    filter: brightness(0.6);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.example-card:hover::before {
    filter: brightness(0.75);
    transform: scale(1.05);
}

/* Ensure content sits above the background */
.card-content {
    position: relative;
    z-index: 1;
    padding: 24px;
    /* Scrim gradient for text protection */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    flex-grow: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
}

/* Hero & Copy (from individual pages) */
.hero-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #1a1a1a;
}

.copy {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: #000;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 196, 54, 0.3);
}

/* About Page Features */
.feature-grid {
    text-align: left;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    margin-bottom: 32px;
}

.feature-icon {
    background-color: var(--surface);
    padding: 12px;
    border-radius: 12px;
    height: fit-content;
    margin-right: 16px;
    color: var(--accent);
}

.feature-content h3 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
}

.feature-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.splash-image {
    width: 100%;
    border-radius: 16px;
    margin: 32px 0;
    opacity: 0.8;
}