/* ============================================================
   SENSIBLE LAB — Premium Agency Design System
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #f0f0f5;
    --text-secondary: #E1E1E7;
    --text-muted: #B9B9C5;

    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --gradient-primary: linear-gradient(135deg, #6c5ce7, #a29bfe, #74b9ff);
    --gradient-hero: linear-gradient(180deg, rgba(108, 92, 231, 0.08) 0%, transparent 60%);
    --gradient-cta: linear-gradient(135deg, #6c5ce7, #a29bfe);

    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-card: 0 4px 30px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
    --container-narrow: 800px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-base);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-primary); }

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

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img { height: 32px; width: auto; }

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--gradient-cta) !important;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-base);
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--gradient-cta);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
    color: #fff;
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}
.btn-lg { padding: 18px 40px; font-size: 16px; }
.btn-full { width: 100%; }

/* --- Section Badges & Titles --- */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 48px;
}

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,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%);
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.25);
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
    animation: fadeInDown 0.6s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease;
}

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

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    animation: fadeInUp 1.4s ease;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* --- Page Hero (inner pages) --- */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--gradient-hero);
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.page-hero .hero-sub {
    margin: 0 auto;
}

/* --- Service Cards --- */
.services-section { padding: 100px 0; }

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 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: opacity var(--transition);
}
.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-light);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* --- Services Detail --- */
.services-detail { padding: 40px 0 100px; }
.services-list { display: flex; flex-direction: column; gap: 24px; }

.service-detail-card {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all var(--transition);
}
.service-detail-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}
.service-detail-icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-light);
}
.service-detail-body h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.service-detail-body p { color: var(--text-secondary); line-height: 1.8; }

/* --- Project Cards --- */
.projects-section { padding: 100px 0; background: var(--bg-secondary); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
}
.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(108, 92, 231, 0.12);
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}
.project-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.project-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.project-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 600;
    font-size: 14px;
}

.projects-detail { padding: 40px 0 100px; }
.project-card-lg { padding: 48px; }

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

/* --- Blog Cards --- */
.blog-section { padding: 100px 0; }
.blog-listing { padding: 40px 0 100px; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.blog-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
    color: var(--text-primary);
}
.blog-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
}
.blog-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(116, 185, 255, 0.1);
    color: #74b9ff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}
.blog-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.blog-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.blog-read { font-size: 14px; font-weight: 600; color: var(--accent-light); }

/* --- Blog Article --- */
.blog-article { padding: 140px 0 80px; }
.article-header { margin-bottom: 48px; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.article-excerpt { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; }
.article-body { font-size: 17px; line-height: 1.9; color: var(--text-secondary); }
.article-body h2 { color: var(--text-primary); font-size: 1.5rem; font-weight: 700; margin: 48px 0 16px; }
.article-body h3 { color: var(--text-primary); font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body a { color: var(--accent-light); text-decoration: underline; }

/* --- Dynamic Page --- */
.dynamic-page { padding: 140px 0 80px; }

/* --- Landing Page --- */
.landing-body { background: var(--bg-primary); }
.landing-main { min-height: 100vh; }
.landing-page { padding: 40px 0; }
.landing-wrapper { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* --- FAQ --- */
.faq-section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.faq-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--text-muted); transition: transform var(--transition); }
.faq-item[open] summary::after { content: '−'; color: var(--accent-light); }
.faq-item summary:hover { color: var(--accent-light); }
.faq-answer { padding: 0 24px 20px; color: var(--text-secondary); line-height: 1.8; }

/* --- Contact Form --- */
.contact-section { padding: 40px 0 100px; }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.form-group input,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-base);
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.success-message {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease;
}
.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.success-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2ed573;
    margin-bottom: 8px;
}
.success-text p {
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 600px) {
    .success-message {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
}

/* --- CTA Section --- */
.cta-section { padding: 100px 0; }
.cta-card {
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
    opacity: 0.3;
}
.cta-card h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-card p { color: var(--text-secondary); margin-bottom: 32px; font-size: 17px; position: relative; }
.cta-card .btn { position: relative; }

/* --- Footer --- */
.site-footer {
    padding: 80px 0 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}
.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}
.footer-logo { height: 28px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-links h4,
.footer-contact h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; color: var(--text-secondary); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--text-primary); }
.footer-contact p { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.footer-cta { font-weight: 600; font-size: 14px; }
.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 13px; }
.footer-bottom a { color: var(--text-secondary); }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }

    .hero-stats { gap: 24px; }
    .services-grid, .projects-grid, .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .service-detail-card { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; }
}
