/* concurrengine.com - Consultancy Professional Grid */
/* Palette: #0f172a, #ffffff, #3b82f6, #1e293b, #f1f5f9, #e2e8f0, #22c55e */
/* Fonts: Plus Jakarta Sans (display), Inter (body), IBM Plex Mono (data) */

:root {
    --navy: #0f172a;
    --white: #ffffff;
    --blue: #3b82f6;
    --text: #1e293b;
    --text-light: #f1f5f9;
    --border: #e2e8f0;
    --green: #22c55e;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(0, 0, 0, 0.10);
    --muted: #64748b;
    --muted-dark: #94a3b8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dots-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    opacity: 0.55;
}

.dots-group {
    transform-origin: 400px 400px;
    animation: rotateDots 60s linear infinite;
}

@keyframes rotateDots {
    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: rgba(241, 245, 249, 0.55);
    margin-top: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--white));
    z-index: 1;
}

/* ==========================================
   SECTION HEADINGS
   ========================================== */

.section-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

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

.feature-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    background: var(--white);
}

.feature-card:hover {
    box-shadow: 0 8px 30px var(--shadow-hover);
    transform: translateY(-2px);
}

.feature-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.icon-blue {
    background: var(--blue);
}

.icon-green {
    background: var(--green);
}

.feature-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.feature-list li {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
}

/* ==========================================
   METRICS SECTION
   ========================================== */

.metrics-section {
    background: var(--navy);
    padding: 6rem 2rem;
}

.metrics-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.metrics-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: -0.01em;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.metric-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.metric-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--white);
    display: inline;
    line-height: 1.1;
}

.metric-suffix {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--green);
    font-weight: 500;
}

.metric-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: rgba(241, 245, 249, 0.45);
    margin-top: 0.6rem;
    letter-spacing: 0.02em;
}

/* ==========================================
   ARCHITECTURE SECTION
   ========================================== */

.arch-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.arch-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.arch-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.arch-diagram {
    overflow-x: auto;
    padding: 1rem 0;
}

.arch-svg {
    width: 100%;
    max-width: 960px;
    height: auto;
}

/* ==========================================
   QUOTE SECTION
   ========================================== */

.quote-section {
    background: var(--navy);
    padding: 5rem 2rem;
}

.quote-inner {
    max-width: 700px;
    margin: 0 auto;
}

.quote-block {
    border-left: 3px solid var(--blue);
    padding-left: 2rem;
}

.quote-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.75;
    font-weight: 400;
    font-style: italic;
}

.quote-cite {
    display: block;
    margin-top: 1.25rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--muted-dark);
    font-style: normal;
    letter-spacing: 0.02em;
}

/* ==========================================
   CLOSE SECTION
   ========================================== */

.close-section {
    text-align: center;
    padding: 6rem 2rem;
    border-top: 1px solid var(--border);
}

.close-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.close-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 0.75rem;
}

/* ==========================================
   FADE-IN ANIMATION
   ========================================== */

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for feature cards */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.08s; }
.feature-card:nth-child(3) { transition-delay: 0.16s; }
.feature-card:nth-child(4) { transition-delay: 0.24s; }
.feature-card:nth-child(5) { transition-delay: 0.32s; }
.feature-card:nth-child(6) { transition-delay: 0.40s; }

/* Staggered delays for metrics */
.metric:nth-child(1) { transition-delay: 0s; }
.metric:nth-child(2) { transition-delay: 0.1s; }
.metric:nth-child(3) { transition-delay: 0.2s; }
.metric:nth-child(4) { transition-delay: 0.3s; }

/* ==========================================
   RESPONSIVE
   ========================================== */

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

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

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

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .dots-bg {
        width: 500px;
        height: 500px;
    }

    .quote-block {
        padding-left: 1.25rem;
    }
}
