/* ===================================
   SynaptaLogic — Brand Stylesheet v2
   Brand Kit Compliant · 5-Page Website
   =================================== */

:root {
    --deep-indigo: #2E1B65;
    --mid-indigo: #4E3D8C;
    --electric-blue: #3B82F6;
    --sky-blue: #93C5FD;
    --pure-white: #FFFFFF;
    --dark-charcoal: #1E1E2E;
    --light-gray: #F1F5F9;
    --ice-blue: #EFF6FF;
    --font-display: 'Noto Serif Display', serif;
    --font-body: 'Noto Sans', sans-serif;
    --font-mono: 'Noto Sans Mono', monospace;
    --nav-height: 72px;
    --container-max: 1140px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(46, 27, 101, 0.07);
    --shadow-hover: 0 12px 40px rgba(46, 27, 101, 0.12);
    --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-charcoal);
    background: var(--pure-white);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--deep-indigo); line-height: 1.2; }
h4 { font-family: var(--font-body); font-weight: 700; color: var(--deep-indigo); }
a { color: var(--electric-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--mid-indigo); }
ul { list-style: none; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 15px; font-weight: 600;
    border: 2px solid transparent; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--electric-blue); color: var(--pure-white); border-color: var(--electric-blue); }
.btn-primary:hover { background: #2563eb; border-color: #2563eb; color: var(--pure-white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.3); }
.btn-outline { background: transparent; color: var(--pure-white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--pure-white); color: var(--pure-white); background: rgba(255,255,255,0.08); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* === Navbar === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-height); z-index: 1000;
    background: transparent; transition: all var(--transition);
}
.navbar.scrolled { background: var(--deep-indigo); box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { font-family: var(--font-display); font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon-svg { width: 32px; height: 32px; flex-shrink: 0; }
.brand-synapta { color: var(--pure-white); }
.brand-logic { color: var(--electric-blue); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--pure-white); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--pure-white); transition: all var(--transition); }

/* === Hero (Home) === */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(160deg, var(--deep-indigo) 0%, #1a0f3e 60%, var(--dark-charcoal) 100%);
    position: relative; overflow: hidden; padding: 120px 0 80px;
}
.hero-bg-pattern {
    position: absolute; inset: 0; opacity: 0.05;
    background-image: radial-gradient(circle, var(--electric-blue) 1.5px, transparent 1.5px);
    background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-title { font-size: clamp(40px, 6vw, 56px); color: var(--pure-white); margin-bottom: 20px; }
.text-blue { color: var(--electric-blue); }
.hero-description { font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 36px; max-width: 600px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* === Page Hero (inner pages) === */
.page-hero {
    background: var(--deep-indigo); padding: 120px 0 48px;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; opacity: 0.04;
    background-image: radial-gradient(circle, var(--electric-blue) 1px, transparent 1px);
    background-size: 50px 50px;
}
.page-hero-clean::before { display: none; }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.breadcrumb span { color: var(--electric-blue); }
.page-hero h1 { color: var(--pure-white); font-size: clamp(32px, 5vw, 42px); margin-bottom: 8px; }
.page-subtitle { color: rgba(255,255,255,0.6); font-size: 16px; }

/* === Section === */
.section { padding: 80px 0; }
.section-label {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
    color: var(--electric-blue); text-align: center; margin-bottom: 32px;
}

/* === Home: Services Preview Grid === */
.services-preview { background: var(--pure-white); padding-top: 80px; padding-bottom: 80px; }
.services-grid-home {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 16px;
}
.service-preview-card {
    background: var(--pure-white); border: 1px solid #eee; border-radius: var(--radius-sm);
    padding: 24px 16px; text-align: center; text-decoration: none;
    transition: all var(--transition); position: relative; overflow: hidden;
}
.service-preview-card:hover { border-color: var(--electric-blue); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-preview-card:hover::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--electric-blue); }
.spc-icon { font-size: 28px; margin-bottom: 12px; }
.service-preview-card h3 { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--deep-indigo); margin-bottom: 4px; }
.service-preview-card p { font-size: 12px; color: #666; }

/* === Home: Value Props === */
.value-props { background: var(--light-gray); }
.props-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.prop-card {
    background: var(--pure-white); border-radius: var(--radius-sm);
    padding: 24px; border-top: 3px solid var(--electric-blue); text-align: center;
}
.prop-icon { font-size: 28px; margin-bottom: 10px; }
.prop-card h4 { font-size: 15px; margin-bottom: 6px; }
.prop-card p { font-size: 13px; color: #666; }

/* === Home: Stats Bar === */
.stats-bar { background: var(--deep-indigo); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; text-align: center; }
.stat-item .stat-number { font-family: var(--font-display); font-size: 32px; color: var(--electric-blue); display: block; }
.stat-item .stat-label { font-size: 13px; color: rgba(255,255,255,0.5); }

/* === CTA Banner === */
.cta-banner {
    background: linear-gradient(135deg, rgba(46,27,101,0.04), rgba(59,130,246,0.04));
    padding: 64px 0; text-align: center;
}
.cta-content h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 12px; }
.cta-content p { color: #666; margin-bottom: 24px; }

/* === Services Page: Detail Sections === */
.service-details { padding-bottom: 0; }
.service-detail {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
    padding: 60px 0; border-bottom: 1px solid var(--light-gray);
}
.service-detail.reverse { grid-template-columns: 1fr 1.2fr; }
.service-detail.reverse .service-detail-visual { order: -1; }
.service-num { font-family: var(--font-mono); font-size: 12px; color: var(--electric-blue); letter-spacing: 1px; }
.service-detail h2 { font-size: 28px; margin: 8px 0 8px; }
.service-quote { font-style: italic; color: var(--mid-indigo); font-size: 15px; margin-bottom: 12px; }
.service-detail p { color: #555; font-size: 15px; margin-bottom: 16px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tags span {
    font-family: var(--font-mono); font-size: 12px; padding: 5px 12px;
    background: var(--light-gray); color: var(--deep-indigo); border-radius: 4px; border: 1px solid #e0e0e8;
}

/* Service Visuals */
.visual-placeholder {
    width: 100%; height: 240px; border-radius: var(--radius);
    background: var(--light-gray); display: flex; align-items: center; justify-content: center;
    border: 1px solid #e8e8f0;
}
.code-mockup { display: flex; flex-direction: column; gap: 10px; padding: 32px; width: 80%; }
.code-line { height: 8px; background: var(--mid-indigo); border-radius: 4px; opacity: 0.3; }
.code-line.short { width: 50%; }
.code-line.medium { width: 75%; }
.phone-mockup { width: 80px; height: 140px; border: 3px solid var(--mid-indigo); border-radius: 16px; opacity: 0.4; display: flex; align-items: center; justify-content: center; }
.phone-screen { width: 60px; height: 100px; background: var(--ice-blue); border-radius: 8px; }
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 140px; padding: 20px; }
.bar { width: 24px; background: var(--electric-blue); border-radius: 4px 4px 0 0; opacity: 0.6; }
.neural-nodes { position: relative; width: 120px; height: 120px; }
.node { width: 16px; height: 16px; background: var(--electric-blue); border-radius: 50%; position: absolute; opacity: 0.5; }
.node:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.node:nth-child(2) { top: 40%; left: 0; }
.node:nth-child(3) { top: 40%; right: 0; }
.node:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); }
.node.center-node { top: 50%; left: 50%; transform: translate(-50%,-50%); width: 24px; height: 24px; opacity: 0.8; }
.cloud-shape { width: 100px; height: 60px; background: var(--mid-indigo); border-radius: 30px; opacity: 0.3; }
.gear-icon { font-size: 64px; opacity: 0.4; }

/* === Process Section === */
.process-section { background: var(--dark-charcoal); padding: 64px 0; }
.process-section .section-label { color: var(--sky-blue); }
.process-grid { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.process-step { text-align: center; min-width: 120px; }
.step-circle {
    width: 48px; height: 48px; border-radius: 50%; background: var(--electric-blue);
    color: var(--pure-white); font-weight: 700; font-size: 18px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.process-step h4 { color: var(--pure-white); font-size: 15px; margin-bottom: 4px; }
.process-step p { color: rgba(255,255,255,0.5); font-size: 12px; }
.process-arrow { color: var(--sky-blue); font-size: 20px; opacity: 0.5; }

/* === About Page === */
.founder-section { background: var(--pure-white); }
.founder-grid { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.photo-placeholder {
    width: 200px; height: 240px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--deep-indigo), var(--mid-indigo));
    display: flex; align-items: center; justify-content: center;
}
.photo-initials { font-family: var(--font-display); font-size: 48px; color: var(--electric-blue); }
.founder-bio h2 { font-size: 28px; margin-bottom: 4px; }
.founder-role { color: var(--electric-blue); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.founder-bio > p { color: #555; font-size: 15px; margin-bottom: 16px; }
.credential-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.credential-tags span {
    font-family: var(--font-mono); font-size: 11px; padding: 4px 10px;
    border: 1px solid #ddd; border-radius: 4px; color: var(--dark-charcoal);
}

/* Story Section */
.story-section { background: rgba(59,130,246,0.03); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.story-block { border-left: 3px solid var(--electric-blue); padding-left: 24px; }
.story-block h3 { font-family: var(--font-body); font-size: 20px; margin-bottom: 12px; }
.story-block p { font-size: 15px; color: #555; margin-bottom: 12px; }

/* Values Section */
.values-section { background: var(--pure-white); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.value-card {
    background: var(--pure-white); border: 1px solid #eee; border-top: 3px solid var(--electric-blue);
    border-radius: var(--radius-sm); padding: 24px; text-align: center;
    transition: transform var(--transition);
}
.value-card:hover { transform: translateY(-4px); }
.value-icon { font-size: 28px; margin-bottom: 10px; }
.value-card h4 { font-size: 15px; margin-bottom: 6px; }
.value-card p { font-size: 13px; color: #666; }

/* Tech Cloud */
.tech-section { background: var(--light-gray); }
.tech-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-cloud span {
    font-family: var(--font-mono); font-size: 13px; padding: 8px 16px;
    background: var(--pure-white); color: var(--deep-indigo); border-radius: 4px;
    border: 1px solid #e0e0e8; transition: all var(--transition);
}
.tech-cloud span:hover { background: var(--deep-indigo); color: var(--pure-white); }

/* === Projects Page === */
.projects-section { background: var(--pure-white); }
.filter-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    padding: 10px 22px; border-radius: 100px; font-family: var(--font-body);
    font-size: 13px; font-weight: 500; background: var(--light-gray);
    color: var(--dark-charcoal); border: none; cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover { background: var(--ice-blue); color: var(--electric-blue); }
.filter-btn.active { background: var(--electric-blue); color: var(--pure-white); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.project-card {
    border: 1px solid #eee; border-radius: var(--radius); overflow: hidden;
    transition: all var(--transition); background: var(--pure-white);
}
.project-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-hover); border-top: 3px solid var(--electric-blue); }
.project-thumb {
    height: 180px; background: var(--light-gray);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.project-thumb img {
    width: 100%; height: 100%; object-fit: cover; object-position: top;
    transition: transform 0.4s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.05); }
.placeholder-thumb {
    display: flex; align-items: center; justify-content: center;
}
.thumb-label {
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
    color: rgba(255,255,255,0.8); text-align: center; padding: 16px;
}
.project-body { padding: 20px; }
.project-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--electric-blue); }
.project-body h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin: 8px 0; color: var(--deep-indigo); }
.project-body > p { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 10px; }
.project-result { font-size: 13px; color: #444; margin-bottom: 12px; font-weight: 500; }

/* === Contact Page === */
.contact-section { background: var(--pure-white); }
.contact-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 40px; align-items: start; }
.contact-form-wrapper h2 { font-family: var(--font-body); font-size: 22px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; color: #666; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 14px; color: var(--dark-charcoal);
    transition: border-color var(--transition); background: var(--pure-white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--electric-blue); }
.form-note { font-size: 12px; color: #888; margin-top: 12px; }

/* Info Panel */
.contact-info-panel {
    background: var(--deep-indigo); border-radius: var(--radius); padding: 32px;
    color: var(--pure-white);
}
.contact-info-panel h3 { color: var(--pure-white); font-family: var(--font-body); font-size: 18px; margin-bottom: 20px; }
.info-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.info-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.info-icon { font-size: 18px; }
.info-item a { color: rgba(255,255,255,0.8); }
.info-item a:hover { color: var(--electric-blue); }
.info-item span { color: rgba(255,255,255,0.7); }
.response-time { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.response-time h4 { color: var(--electric-blue); font-size: 14px; margin-bottom: 8px; }
.response-time p { font-size: 13px; color: rgba(255,255,255,0.6); }

/* FAQ */
.faq-section { background: var(--light-gray); }
.faq-title { text-align: center; font-size: 24px; margin-bottom: 32px; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid #e8e8f0; border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--pure-white); }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 18px 24px; border: none; background: none; cursor: pointer;
    font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--deep-indigo);
    text-align: left;
}
.faq-icon { font-size: 20px; color: var(--electric-blue); transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { font-size: 14px; color: #555; line-height: 1.7; }

/* === Footer === */
.footer { background: var(--dark-charcoal); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 22px; display: flex; align-items: center; gap: 10px; }
.footer-icon-svg { width: 28px; height: 28px; }
.footer-tagline { font-style: italic; color: var(--sky-blue); font-size: 13px; margin-top: 6px; }
.footer-entity { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 4px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--pure-white); margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,0.45); font-size: 13px; }
.footer-col a:hover { color: var(--electric-blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* === Responsive === */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: var(--nav-height); left: 0; right: 0;
        flex-direction: column; background: var(--deep-indigo);
        padding: 24px; gap: 20px; transform: translateY(-120%);
        opacity: 0; pointer-events: none; transition: all var(--transition);
    }
    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: all; }
    .hero-content { padding: 0 8px; }
    .hero-title { font-size: 36px; }
    .services-grid-home { grid-template-columns: repeat(2, 1fr); }
    .props-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .service-detail, .service-detail.reverse { grid-template-columns: 1fr; }
    .service-detail.reverse .service-detail-visual { order: 0; }
    .visual-placeholder { height: 180px; }
    .process-grid { flex-direction: column; gap: 24px; }
    .process-arrow { transform: rotate(90deg); }
    .founder-grid { grid-template-columns: 1fr; text-align: center; }
    .founder-photo { display: flex; justify-content: center; }
    .story-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .filter-tabs { overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .services-grid-home { grid-template-columns: 1fr; }
    .props-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
