/* === SUBPAGE STYLES (extends styles.css) === */

/* Page hero - smaller than homepage */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 40%, #6366f1 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.2) 0%, transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; }
.page-hero .breadcrumb { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.8); max-width: 640px; line-height: 1.7; }

/* Content sections */
.content-section { padding: 80px 0; }
.content-section h2 { font-size: 28px; font-weight: 700; color: #0d1b2a; margin-bottom: 16px; }
.content-section h3 { font-size: 20px; font-weight: 600; color: #6366f1; margin-bottom: 10px; }
.content-section p { font-size: 16px; color: #555; line-height: 1.75; margin-bottom: 16px; }
.content-section ul { padding-left: 20px; margin-bottom: 20px; }
.content-section li { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 8px; }

/* Two column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Use case cards */
.use-case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.use-case {
    background: #fff; border: 1px solid #e8e8ee; border-radius: 14px;
    padding: 28px; transition: all 0.3s ease;
}
.use-case:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.07); transform: translateY(-2px); }
.use-case h4 { font-size: 17px; font-weight: 600; color: #0d1b2a; margin-bottom: 8px; }
.use-case p { font-size: 14px; color: #666; line-height: 1.65; margin-bottom: 0; }
.use-case .icon { font-size: 28px; margin-bottom: 10px; }

/* Process steps */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.step {
    text-align: center; padding: 24px 16px;
    background: #fff; border: 1px solid #e8e8ee; border-radius: 14px;
}
.step-number {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-weight: 700; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.step h4 { font-size: 15px; font-weight: 600; color: #0d1b2a; margin-bottom: 6px; }
.step p { font-size: 13px; color: #666; margin-bottom: 0; }

/* Tech stack badges */
.tech-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tech-badge {
    background: #eef0ff; color: #4338ca; font-size: 12px; font-weight: 600;
    padding: 6px 14px; border-radius: 20px; border: 1px solid #d4d6f9;
}

/* Case study specific */
.screenshot-placeholder {
    background: linear-gradient(135deg, #f0f4ff, #e8edf8);
    border: 2px dashed #c8d4e8; border-radius: 14px;
    padding: 60px 24px; text-align: center; color: #888;
    font-size: 14px;
}

.architecture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.arch-item {
    background: #fff; border: 1px solid #e8e8ee; border-radius: 12px;
    padding: 20px; text-align: center;
}
.arch-item .icon { font-size: 28px; margin-bottom: 8px; }
.arch-item h4 { font-size: 14px; font-weight: 600; color: #0d1b2a; margin-bottom: 4px; }
.arch-item p { font-size: 12px; color: #888; margin-bottom: 0; }

/* Security highlights */
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.security-item {
    display: flex; gap: 12px; align-items: start;
    background: #f7faf7; border: 1px solid #d4e8d4; border-radius: 12px; padding: 16px;
}
.security-item .check { color: #06d6a0; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.security-item h4 { font-size: 14px; font-weight: 600; color: #0d1b2a; margin-bottom: 2px; }
.security-item p { font-size: 13px; color: #666; margin-bottom: 0; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; }
.stat {
    text-align: center; padding: 24px;
    background: #fff; border: 1px solid #e8e8ee; border-radius: 14px;
}
.stat-number { font-size: 36px; font-weight: 700; color: #6366f1; }
.stat-label { font-size: 13px; color: #888; margin-top: 4px; }

/* Inline CTA */
.inline-cta {
    background: linear-gradient(135deg, #0d1b2a, #6366f1);
    border-radius: 16px; padding: 48px; text-align: center; color: #fff; margin-top: 40px;
}
.inline-cta h2 { color: #fff; margin-bottom: 12px; }
.inline-cta p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }

/* === BUILD JOURNEY TIMELINE === */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 32px auto 0;
    padding-left: 28px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #6366f1, #06d6a0);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    padding: 0 0 28px 24px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.timeline-item.future::before {
    border-color: #06d6a0;
    box-shadow: 0 0 0 3px rgba(6,214,160,0.15);
}
.timeline-phase {
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.timeline-item.future .timeline-phase { color: #06d6a0; }
.timeline-item h4 {
    font-size: 17px;
    font-weight: 600;
    color: #0d1b2a;
    margin-bottom: 6px;
}
.timeline-item p {
    font-size: 14px;
    color: #5a6178;
    line-height: 1.7;
    margin-bottom: 0;
}

/* === TECHNICAL CHALLENGES === */
.challenge-list { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; max-width: 820px; margin-left: auto; margin-right: auto; }
.challenge {
    background: #fff; border: 1px solid #e8e8ee; border-radius: 14px;
    padding: 24px 26px; transition: all 0.3s ease;
}
.challenge:hover { box-shadow: 0 6px 24px rgba(99,102,241,0.08); transform: translateY(-2px); }
.challenge-label {
    display: inline-block;
    background: #eef0ff; color: #6366f1;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    padding: 4px 10px; border-radius: 20px; text-transform: uppercase;
    margin-bottom: 10px;
}
.challenge h4 { font-size: 17px; font-weight: 600; color: #0d1b2a; margin-bottom: 8px; }
.challenge .problem, .challenge .solution { font-size: 14px; line-height: 1.7; color: #5a6178; margin-bottom: 8px; }
.challenge .solution { margin-bottom: 0; }
.challenge .label { font-weight: 700; color: #0d1b2a; }

/* === RELATED SERVICES === */
.related-services {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-top: 24px; max-width: 820px; margin-left: auto; margin-right: auto;
}
.related-service {
    background: #fff; border: 1px solid #e8e8ee; border-radius: 12px;
    padding: 18px; text-align: center; transition: all 0.3s ease;
    color: #0d1b2a; display: block;
}
.related-service:hover { box-shadow: 0 6px 18px rgba(99,102,241,0.1); transform: translateY(-2px); border-color: #6366f1; }
.related-service .icon { font-size: 22px; margin-bottom: 6px; display: block; }
.related-service h5 { font-size: 14px; font-weight: 600; color: #0d1b2a; margin-bottom: 2px; }
.related-service p { font-size: 12px; color: #888; margin-bottom: 0; }

/* === STATUS BADGE === */
.status-badge {
    display: inline-block; font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px; letter-spacing: 0.5px;
    text-transform: uppercase; margin-top: 8px;
}
.status-badge.live { background: rgba(6,214,160,0.2); color: #047857; border: 1px solid rgba(6,214,160,0.4); }
.status-badge.in-development { background: rgba(249,115,22,0.2); color: #c2410c; border: 1px solid rgba(249,115,22,0.4); }

/* === BLOG === */
.post-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
    letter-spacing: 0.3px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 16px;
}
.blog-card {
    background: #fff;
    border: 1px solid #e8e8ee;
    border-radius: 14px;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #06d6a0);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.blog-card:hover {
    box-shadow: 0 8px 28px rgba(99,102,241,0.1);
    transform: translateY(-3px);
}
.blog-card:hover::before { opacity: 1; }
.blog-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0d1b2a;
    margin-bottom: 10px;
    line-height: 1.35;
}
.blog-card h2 a {
    color: inherit;
    transition: color 0.2s;
}
.blog-card h2 a:hover { color: #6366f1; }
.blog-card p {
    font-size: 14px;
    color: #5a6178;
    line-height: 1.7;
    margin-bottom: 16px;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.blog-tag {
    background: #eef0ff;
    color: #6366f1;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #d4d6f9;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.blog-date {
    font-size: 12px;
    color: #888;
}
.blog-read-more {
    display: inline-block;
    color: #6366f1;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.2s ease;
}
.blog-read-more:hover { transform: translateX(3px); }

/* Blog post body */
.blog-post .container {
    max-width: 780px;
}
.blog-post p {
    font-size: 17px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}
.blog-post h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0d1b2a;
    margin-top: 40px;
    margin-bottom: 14px;
}
.blog-post h3 {
    font-size: 19px;
    font-weight: 600;
    color: #0d1b2a;
    margin-top: 28px;
    margin-bottom: 10px;
}
.blog-post ul,
.blog-post ol {
    padding-left: 22px;
    margin-bottom: 20px;
}
.blog-post li {
    font-size: 16px;
    color: #333;
    line-height: 1.75;
    margin-bottom: 10px;
}
.blog-post a {
    color: #6366f1;
    font-weight: 500;
    border-bottom: 1px solid rgba(99,102,241,0.25);
    transition: border-color 0.2s;
}
.blog-post a:hover { border-color: #6366f1; }
.blog-post strong { color: #0d1b2a; }
.blog-post em { color: #444; }
.blog-post .inline-cta { margin-top: 48px; }
.blog-post .inline-cta a { border-bottom: none; }

/* === DELIVERABLES & INVESTMENT === */
.deliverables-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.deliverable-list { list-style: none; padding: 0; margin: 0; }
.deliverable-list li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid #f0f0f5; font-size: 15px; color: #333; line-height: 1.6;
}
.deliverable-list li:last-child { border-bottom: none; }
.deliverable-check {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, #06d6a0, #059669);
    color: #fff; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.investment-card {
    background: linear-gradient(135deg, #f8f9ff, #eef0ff);
    border: 1px solid #d4d6f9; border-radius: 16px; padding: 32px; text-align: center;
}
.investment-card h3 { font-size: 18px; font-weight: 700; color: #0d1b2a; margin-bottom: 8px; }
.price-range { font-size: 36px; font-weight: 700; color: #6366f1; margin: 16px 0 8px; }
.price-note { font-size: 13px; color: #888; margin-bottom: 20px; }
.price-factors { list-style: none; padding: 0; text-align: left; }
.price-factors li {
    font-size: 13px; color: #5a6178; padding: 6px 0;
    border-bottom: 1px solid rgba(99,102,241,0.1);
    display: flex; align-items: center; gap: 8px;
}
.price-factors li:last-child { border-bottom: none; }
.price-factors li::before { content: '~'; color: #6366f1; font-weight: 700; }
.investment-cta {
    display: inline-block; margin-top: 20px; padding: 10px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.investment-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99,102,241,0.3); color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .page-hero h1 { font-size: 30px; }
    .two-col { grid-template-columns: 1fr; }
    .use-case-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .architecture-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .related-services { grid-template-columns: 1fr; }
    .deliverables-grid { grid-template-columns: 1fr; }
    .timeline { padding-left: 20px; }
    .blog-post p { font-size: 16px; }
    .blog-post h2 { font-size: 22px; }
    .blog-post h3 { font-size: 17px; }
}
