/* ============================================
   Bullet Proof Intelligence — Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #06080d;
    --bg-secondary: #0c1017;
    --bg-card: #111822;
    --bg-card-hover: #161f2c;
    --border-color: #1e2a3a;
    --border-light: #253347;
    --text-primary: #e8edf4;
    --text-secondary: #8b99ad;
    --text-muted: #5a6a80;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #8b5cf6 100%);
    --gradient-card: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08));
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 40px rgba(59,130,246,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal overflow on narrow screens */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure tables and code blocks don't break layout */
table, pre, code, iframe, embed, object, video {
    max-width: 100%;
}

pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(6, 8, 13, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--border-color);
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.logo-icon {
    color: var(--accent-blue);
    font-size: 1.4rem;
    animation: rotate 8s linear infinite;
}

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

.logo strong {
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--gradient-primary) !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    margin-right: -12px;
    min-width: 48px;
    min-height: 48px;
    border-radius: var(--radius-sm);
    touch-action: manipulation;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.glow-1 {
    position: absolute;
    top: -20%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%);
    filter: blur(80px);
    animation: float 12s ease-in-out infinite;
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.1), transparent 70%);
    filter: blur(80px);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    background: rgba(59,130,246,0.05);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* --- Trust Bar --- */
.trust-bar {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.trust-label {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 600;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.trust-logo:hover {
    opacity: 1;
    color: var(--text-secondary);
}

/* --- Section Common --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-blue);
    background: rgba(59,130,246,0.1);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* --- Projects --- */
.projects {
    background: var(--bg-primary);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

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

.project-card.featured {
    border-color: rgba(59,130,246,0.3);
    background: var(--gradient-card);
}

.project-card.featured::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 4px;
}

.card-tag.seed {
    background: rgba(59,130,246,0.15);
    color: var(--accent-blue);
}

.card-tag.series-a {
    background: rgba(139,92,246,0.15);
    color: var(--accent-purple);
}

.card-tag.pre-seed {
    background: rgba(16,185,129,0.15);
    color: var(--accent-green);
}

.card-ai-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.metric {
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.metric-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.card-progress {
    flex: 1;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1.5s ease;
}

.progress-33 { width: 33%; }
.progress-41 { width: 41%; }
.progress-45 { width: 45%; }
.progress-55 { width: 55%; }
.progress-62 { width: 62%; }
.progress-78 { width: 78%; }

.progress-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-card {
    padding: 8px 18px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    color: var(--accent-blue);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-card:hover {
    background: rgba(59,130,246,0.2);
    border-color: var(--accent-blue);
}

.projects-cta {
    text-align: center;
}

/* --- How It Works --- */
.how-it-works {
    background: var(--bg-secondary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

.step:hover {
    background: var(--bg-card);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 16px;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.15);
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.step-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* --- Why BPI --- */
.why-bpi {
    background: var(--bg-primary);
}

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

.why-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.why-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(59,130,246,0.1);
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Testimonials --- */
.testimonials {
    background: var(--bg-secondary);
}

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-light);
}

.testimonial-stars {
    color: var(--accent-amber);
    font-size: 0.9rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- CTA Section --- */
.cta-section {
    background: var(--bg-primary);
    padding: 100px 0;
}

.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 64px;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.cta-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input {
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6a80' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 16px 0 20px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 4px 0;
}

.footer-col a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.footer-legal {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent-blue);
}

/* --- Linked Cards (for multi-page navigation) --- */
a.service-card,
a.industry-card,
a.result-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.service-card * {
    color: inherit;
}

a.industry-card * {
    color: inherit;
}

a.result-card * {
    color: inherit;
}

/* --- Pain Points Section --- */
.pain-points {
    background: var(--bg-primary);
}

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

.pain-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.pain-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.pain-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.15);
    color: var(--accent-red);
    margin-bottom: 20px;
}

.pain-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pain-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pain-cta {
    text-align: center;
}

/* --- Services Section --- */
.services {
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

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

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.15);
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.service-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-bullets {
    list-style: none;
    padding: 0;
}

.service-bullets li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.service-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(59,130,246,0.3);
    border: 1px solid var(--accent-blue);
}

/* --- Industries Section --- */
.industries {
    background: var(--bg-primary);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.industry-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.industry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(59,130,246,0.08);
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.industry-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.industry-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Results / Case Studies Section --- */
.results {
    background: var(--bg-secondary);
}

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

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.result-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.result-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-green);
    background: rgba(16,185,129,0.1);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.result-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-top: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.result-title:first-of-type {
    margin-top: 0;
}

.result-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Investment Showcase Section --- */
.investment {
    background: var(--bg-primary);
}

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

.investment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.investment-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.investment-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-purple);
    background: rgba(139,92,246,0.1);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.investment-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.investment-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.investment-cta {
    text-align: center;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

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

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

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

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .projects-grid,
    .testimonials-grid,
    .why-grid,
    .pain-grid,
    .services-grid,
    .results-grid,
    .investment-grid {
        grid-template-columns: 1fr;
    }

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

    .steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cta-section {
        padding: 64px 0;
    }

    .cta-box {
        padding: 32px 20px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .challenge-widget {
        flex-direction: column;
        align-items: stretch;
    }

    .challenge-widget input[type="text"] {
        max-width: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .trust-logos {
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .section {
        padding: 64px 0;
    }
}

/* --- Contact Form Styling --- */
#ctaForm label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

#ctaForm .required {
    color: var(--accent-red);
}

#ctaForm .optional {
    color: var(--text-muted);
    font-weight: 400;
}

#ctaForm input[type="text"],
#ctaForm input[type="email"],
#ctaForm input[type="tel"],
#ctaForm select,
#ctaForm textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: var(--transition);
    outline: none;
}

#ctaForm input::placeholder,
#ctaForm textarea::placeholder {
    color: var(--text-muted);
}

#ctaForm input:focus,
#ctaForm select:focus,
#ctaForm textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

#ctaForm select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6a80' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

#ctaForm select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

#ctaForm .form-group {
    margin-bottom: 20px;
}

#ctaForm .form-group:last-of-type {
    margin-bottom: 0;
}

#ctaForm textarea {
    resize: vertical;
    min-height: 100px;
}

/* --- Contact Form Enhancements --- */
.hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.turnstile-widget {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.cf-turnstile {
    display: flex;
    justify-content: center;
}

.challenge-widget {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.challenge-widget label {
    margin-bottom: 0;
}

.challenge-widget input[type="text"] {
    max-width: 120px;
}

.form-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

/* ============================================
   INNER PAGES — Content Layout Styles
   ============================================ */

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: 120px 0 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumbs-list li + li::before {
    content: '/';
    margin-right: 8px;
    color: var(--text-muted);
}

.breadcrumbs-list a {
    color: var(--text-muted);
    transition: var(--transition);
}

.breadcrumbs-list a:hover {
    color: var(--accent-blue);
}

.breadcrumbs-list .current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- Inner Page Hero --- */
.inner-hero {
    padding: 64px 0 48px;
    background: var(--bg-primary);
    text-align: center;
}

.inner-hero .section-tag {
    margin-bottom: 16px;
}

.inner-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.inner-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Content Article Layout --- */
.content-section {
    padding: 64px 0;
}

.content-section:nth-child(even) {
    background: var(--bg-secondary);
}

.content-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.content-wrapper h2:first-child {
    margin-top: 0;
}

.content-wrapper h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.content-wrapper p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-wrapper ul,
.content-wrapper ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.content-wrapper li {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.content-wrapper strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-wrapper a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-color: rgba(59,130,246,0.3);
    text-underline-offset: 3px;
}

.content-wrapper a:hover {
    text-decoration-color: var(--accent-blue);
}

/* --- Content Tables --- */
.content-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.content-table thead {
    background: var(--bg-card);
}

.content-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-table td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    line-height: 1.6;
}

.content-table tbody tr:last-child td {
    border-bottom: none;
}

.content-table tbody tr:hover {
    background: var(--bg-card);
}

/* --- FAQ Accordion --- */
.faq-section {
    padding: 64px 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-card);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Inline CTA Box --- */
.inline-cta {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin: 48px 0;
    position: relative;
    overflow: hidden;
}

.inline-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-hero);
}

.inline-cta h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.inline-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* --- Hub Page Grid --- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.hub-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.hub-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(59,130,246,0.08);
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.hub-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.hub-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.hub-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
}

/* --- Page CTA Section --- */
.page-cta {
    padding: 80px 0;
    background: var(--bg-primary);
}

/* --- Nav Dropdown --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 0;
    min-width: 240px;
    box-shadow: var(--shadow-card);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-dropdown-menu a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

/* --- Responsive Updates --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 16px 24px 24px;
        gap: 4px;
        box-shadow: 0 24px 48px rgba(0,0,0,0.4);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

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

    .nav-links > a,
    .nav-dropdown > a {
        padding: 16px 8px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
    }

    .nav-links > a:last-of-type,
    .nav-dropdown > a:last-of-type {
        border-bottom: none;
    }

    .nav-cta {
        margin-top: 12px;
        text-align: center;
        justify-content: center;
        padding: 14px 24px;
        width: 100%;
    }

    .nav-links > a[href="/contact.html"]:not(.nav-cta) {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        margin-top: 8px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-sm);
        color: var(--text-primary);
        font-weight: 600;
        transition: var(--transition);
    }

    .nav-links > a[href="/contact.html"]:not(.nav-cta):hover {
        border-color: var(--accent-blue);
        color: var(--accent-blue);
        background: rgba(59,130,246,0.05);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        background: var(--bg-card);
        border-radius: var(--radius-sm);
        margin-top: 4px;
        margin-bottom: 8px;
        min-width: auto;
        width: 100%;
        padding: 8px 0;
    }

    .nav-dropdown.active > a::after {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu a {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

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

    .content-wrapper h2 {
        font-size: 1.4rem;
    }

    .inner-hero {
        padding: 48px 0 32px;
    }
}
