/* Hero Section */
.hero-container {
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding-bottom: 0.2em; /* Ensure descenders/shadows aren't clipped */
    
    /* Animation Setup */
    background: linear-gradient(
        110deg, 
        var(--brand-violet) 20%, 
        var(--brand-magenta) 30%, 
        #ffffff 45%, 
        var(--brand-magenta) 55%, 
        var(--brand-violet) 80%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 20px rgba(167, 139, 250, 0.3);
    
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn-premium {
    background: var(--brand-gradient);
    border: none;
    color: white !important;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.6);
}

.btn-outline-glow {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-glow:hover {
    border-color: var(--brand-magenta);
    color: var(--brand-magenta);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.2);
}

/* Card Grid */
.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: var(--glow-shadow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h4 a {
    color: var(--text-primary) !important;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.feature-card:hover h4 a {
    color: var(--brand-magenta) !important;
}

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

.card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--brand-violet);
}

/* ------------------------------------------------------------------ */
/* Module showcase gallery (plot thumbnails on the landing page)       */
/* ------------------------------------------------------------------ */
.showcase-section {
    /* The landing page lifts the theme's 88rem .bd-page-width cap (see the
       inline style in index.html), so this simply fills the wider area. */
    width: 100%;
    padding: 2rem 1.5rem 3rem;
}

.showcase-heading {
    text-align: center;
    margin-bottom: 2.75rem;
}

.showcase-heading h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.showcase-heading p {
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.6;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* three cards per row */
    gap: 1.5rem;
    max-width: 1900px;   /* keep cards sane on ultra-wide monitors */
    margin: 0 auto;
}

@media (max-width: 992px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

.showcase-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.showcase-card:hover {
    transform: translateY(-8px);
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: var(--glow-shadow);
}

.showcase-card:hover::before {
    opacity: 1;
}

.showcase-thumb {
    background: radial-gradient(circle at 50% 0%,
                rgba(167, 139, 250, 0.14), transparent 72%);
    padding: 1.4rem 1.4rem 1.1rem;
    /* divider between the plot and the text below */
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.showcase-thumb img {
    width: 100%;
    height: 185px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.showcase-body {
    padding: 1.2rem 1.5rem 1.6rem;
}

.showcase-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand-violet);
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 999px;
    padding: 0.12rem 0.65rem;
    margin-bottom: 0.7rem;
}

.showcase-body h5 {
    margin-bottom: 0.4rem;
}

.showcase-title-link {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.12rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Stretch the title link over the whole card so the card stays clickable, */
/* while the API link below sits above it (z-index) and remains separate.   */
.showcase-title-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.showcase-card:hover .showcase-title-link {
    color: var(--brand-magenta);
}

.showcase-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.showcase-methods {
    margin-top: 0.85rem !important;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.showcase-methods .methods-list {
    font-family: var(--pst-font-family-monospace, monospace);
    color: var(--text-secondary);
}

.showcase-api-link {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--brand-violet);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.showcase-api-link:hover {
    color: var(--brand-magenta);
}

/* ------------------------------------------------------------------ */
/* Landing footer                                                      */
/* ------------------------------------------------------------------ */
.landing-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1.75rem;
}

.footer-brand {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 22rem;
}

.footer-col-title {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links li i {
    color: var(--brand-violet);
    width: 1.1rem;
    margin-right: 0.5rem;
    text-align: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--brand-magenta);
}

.footer-rule {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 2rem 0 1.25rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.footer-bottom small {
    color: var(--text-secondary);
}
