/* ============================================
   GOBLIN Landing Page Styles
   Design: goblintechnologies.com aesthetic
   ============================================ */

:root {
    --bg-primary: #f9fbf7;
    --bg-dark: #2d2d2d;
    --bg-darker: #232323;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --text-white: #ffffff;
    --accent-blue: #0693e3;
    --accent-purple: #9b51e0;
    --border-light: #e8e8e8;
    --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
    --separator: #303030;
    --goblin-green: #2e7d32;
    --goblin-green-light: #43a047;
    --font-goblin: 'Rajdhani', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1:focus {
    outline: none;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-purple);
}

/* ---- GOBLIN WORDMARK ---- */

.goblin {
    font-family: var(--font-goblin);
    font-weight: 700;
    color: var(--goblin-green);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.goblin-light {
    font-family: var(--font-goblin);
    font-weight: 700;
    color: var(--goblin-green-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---- NAVBAR ---- */

.navbar-goblin {
    background-color: var(--bg-dark);
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-goblin .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
}

.navbar-brand-goblin {
    font-family: var(--font-goblin);
    color: var(--goblin-green-light);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-brand-goblin:hover {
    color: var(--goblin-green-light);
}

.brand-logo {
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    margin: 5px 0;
    transition: 0.3s;
}

/* ---- HERO ---- */

.hero {
    background: url('../images/hero-bg.jpg') center center / cover no-repeat;
    color: var(--text-white);
    padding: 140px 2rem 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero .tagline {
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero .cta-btn {
    display: inline-block;
    background: var(--text-white);
    color: var(--bg-dark);
    padding: 0.875rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero .cta-btn:hover {
    background: var(--accent-blue);
    color: var(--text-white);
}

/* ---- SECTIONS (shared) ---- */

.section {
    padding: 60px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-dark .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 650px;
    margin: 0 auto 2rem;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.separator {
    width: 50px;
    height: 3px;
    background: var(--separator);
    margin: 0.75rem auto 1.25rem;
}

.section-dark .separator {
    background: rgba(255, 255, 255, 0.3);
}

/* ---- CHALLENGES ---- */

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.challenge-card {
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.challenge-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.challenge-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.challenge-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--bg-dark);
    fill: none;
    stroke-width: 1.5;
}

.challenge-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.challenges-cta {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- ABOUT ---- */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text strong {
    color: var(--text-white);
}

/* ---- TESTIMONIALS ---- */

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-left: 3px solid var(--accent-blue);
}

.testimonial-card blockquote {
    font-size: 0.925rem;
    font-style: italic;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem;
}

.testimonial-card cite {
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.testimonial-standalone {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-left: 3px solid var(--accent-blue);
}

.testimonial-standalone blockquote {
    color: var(--text-secondary);
}

.testimonial-standalone cite {
    color: var(--text-light);
}

.testimonial-section {
    padding-top: 0;
}

/* ---- STATS ---- */

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.stat-number {
    display: block;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--bg-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.how-details {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.how-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.how-details strong {
    color: var(--text-primary);
}

/* ---- KEY FEATURES ---- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    transition: background 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---- CONTACT / CTA ---- */

.cta-section {
    text-align: center;
    padding: 50px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-btn {
    display: inline-block;
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 0.875rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-section .cta-btn:hover {
    background: var(--accent-blue);
}

/* ---- FOOTER ---- */

.footer {
    background-color: var(--bg-darker);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h4 {
    color: var(--text-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer p, .footer a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.footer a:hover {
    color: var(--text-white);
}

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

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}

/* ---- PAGE HERO (sub-pages) ---- */

.page-hero {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 110px 2rem 50px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.75rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- HOME ABOUT GRID ---- */

.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.link-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--goblin-green-light);
}

.link-more:hover {
    color: var(--text-white);
}

/* ---- STATS (dark variant) ---- */

.stats-row-dark {
    margin-bottom: 0;
}

.stat-item-dark {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.stat-item-dark .stat-number {
    color: var(--goblin-green-light);
}

.stat-item-dark .stat-label {
    color: rgba(255, 255, 255, 0.5);
}

/* ---- ABOUT PAGE ---- */

.about-page-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-page-grid p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.section-title-left {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.separator-left {
    margin-left: 0;
    margin-right: auto;
}

.about-mascot {
    max-width: 260px;
    width: 100%;
    display: block;
    margin: 0 auto;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.capability-item {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: background 0.3s ease;
}

.capability-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.capability-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonials-grid .testimonial-standalone {
    margin: 0;
    max-width: none;
}

/* ---- CONTACT PAGE ---- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-method h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
}

.contact-method p,
.contact-method a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-card {
    background: #ffffff;
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.contact-card h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.contact-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.contact-steps li {
    padding: 0.75rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-light);
    counter-increment: step;
}

.contact-steps li:last-child {
    border-bottom: none;
}

.contact-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--goblin-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-steps li strong {
    color: var(--text-primary);
}

/* ---- ARTICLE DETAIL ---- */

.article-body {
    max-width: 780px;
    margin: 0 auto;
}

.article-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.article-body strong {
    color: var(--text-primary);
}

.article-meta {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
}

.article-meta .meta-sep {
    margin: 0 0.25rem;
}

.article-card-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.article-back {
    max-width: 780px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.article-back a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- ARCHITECTURE DIAGRAM ---- */

.architecture-diagram {
    margin-top: 2rem;
    text-align: center;
}

.architecture-diagram img {
    max-width: 100%;
    height: auto;
    box-shadow: var(--shadow-card);
    background: #ffffff;
    padding: 1.5rem;
}

/* ---- COMPLIANCE BADGES ---- */

.compliance-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 0;
}

.compliance-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.compliance-badge img {
    height: 80px;
    width: auto;
}

.compliance-badge svg {
    height: 80px;
    width: auto;
}

.compliance-badge span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

/* ---- CASE STUDIES / ARTICLES ---- */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

a.article-card {
    background: #ffffff;
    box-shadow: var(--shadow-card);
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

a.article-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    color: inherit;
}

.article-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.article-card p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 0.75rem;
    flex-grow: 1;
}

.article-card .read-more {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.articles-show-more {
    text-align: center;
    margin-top: 1.5rem;
}

.articles-show-more button {
    background: none;
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.6rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.articles-show-more button:hover {
    border-color: var(--bg-dark);
    color: var(--bg-dark);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 992px) {
    .challenges-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 2rem;
    }

    .about-content,
    .home-about-grid,
    .about-page-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr);
        margin: 0 auto 2rem;
    }

    .features-grid,
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .compliance-badges {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .stats-row {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .features-grid,
    .capabilities-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        padding: 1rem 2rem;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 110px 1.5rem 60px;
    }

    .hero h1 {
        font-size: 2.25rem;
        letter-spacing: 3px;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .section {
        padding: 40px 1.5rem;
    }

    .section-title,
    .section-title-left {
        font-size: 1.5rem;
    }

    .page-hero {
        padding: 100px 1.5rem 40px;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .about-mascot {
        max-width: 180px;
    }
}

/* ---- UTILITY / BLAZOR ---- */

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--bg-dark);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}
