/* ── Design tokens ── */
:root {
    --brand:        #0F172A;
    --brand-mid:    #1E293B;
    --accent:       #4F46E5;
    --accent-hover: #4338CA;
    --accent-light: #EEF2FF;
    --cta:          #F59E0B;
    --cta-hover:    #D97706;
    --ink:          #0F172A;
    --muted:        #64748B;
    --border:       #E2E8F0;
    --surface:      #F8FAFC;
    --white:        #FFFFFF;
    --radius:       8px;
    --radius-lg:    14px;
    --shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
    --max-w:        1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Header ── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--brand);
    box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.header-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-icon { width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0; }
.brand-name { font-size: 1.25rem; font-weight: 700; color: var(--white); letter-spacing: -.02em; }

.primary-nav { display: flex; align-items: center; gap: .25rem; }
.primary-nav a {
    color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 500;
    padding: .5rem .875rem; border-radius: var(--radius);
    transition: color .15s, background .15s;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--white); background: rgba(255,255,255,.1); text-decoration: none; }
.primary-nav .nav-cta {
    background: var(--cta); color: var(--brand) !important; font-weight: 700;
    margin-left: .5rem;
}
.primary-nav .nav-cta:hover { background: var(--cta-hover); }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: .5rem; gap: 5px; flex-direction: column; align-items: center;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
    display: inline-block; font-weight: 600; border-radius: var(--radius);
    padding: .625rem 1.25rem; font-size: .95rem; cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
    text-decoration: none !important; border: 2px solid transparent;
}
.btn-primary { background: var(--cta); color: var(--brand); border-color: var(--cta); }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn-lg { padding: .875rem 1.75rem; font-size: 1.05rem; }

/* ── Sections ── */
.section { padding: 5rem 1.5rem; }
.section-dark { background: var(--brand); color: var(--white); }
.section-dark .section-title, .section-dark h3 { color: var(--white); }
.section-dark .section-sub, .section-dark p { color: rgba(255,255,255,.75); }
.section-alt { background: var(--surface); }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: .75rem; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 640px; margin-bottom: 3rem; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, #1a1050 100%);
    padding: 6rem 1.5rem 5rem;
    color: var(--white);
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; max-width: 800px; }
.hero-tag {
    display: inline-block; background: rgba(79,70,229,.25); color: #a5b4fc;
    border: 1px solid rgba(79,70,229,.4); border-radius: 100px;
    padding: .3rem 1rem; font-size: .8rem; font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800;
    letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1.25rem;
}
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.8); max-width: 600px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Proof bar ── */
.proof-bar { background: var(--brand-mid); padding: 1.5rem; }
.proof-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem 3rem;
}
.proof-item { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.proof-num { font-size: 1.4rem; font-weight: 800; color: var(--cta); }
.proof-label { font-size: .8rem; color: rgba(255,255,255,.6); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

/* ── Card grid ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.card-link { font-weight: 600; font-size: .9rem; }

/* ── Why section ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.why-item { padding: 1.5rem; background: rgba(255,255,255,.06); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.1); }
.why-icon { font-size: 2rem; margin-bottom: 1rem; }
.why-item h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.why-item p { color: rgba(255,255,255,.7); font-size: .95rem; }

/* ── Process steps ── */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.step { text-align: center; padding: 2rem 1.5rem; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; border-radius: 50%;
    background: var(--accent-light); color: var(--accent);
    font-size: 1.1rem; font-weight: 800; margin-bottom: 1.25rem;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ── CTA section ── */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    padding: 5rem 1.5rem; text-align: center; color: var(--white);
}
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.cta-section p { font-size: 1.05rem; color: rgba(255,255,255,.85); max-width: 540px; margin: 0 auto 2.5rem; }
.cta-section .btn-primary { background: var(--white); color: var(--accent); border-color: var(--white); }
.cta-section .btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); }

/* ── Page hero ── */
.page-hero {
    background: var(--brand); color: var(--white);
    padding: 4rem 1.5rem 3rem;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .75rem; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 560px; }

/* ── Service detail ── */
.service-detail-inner { display: grid; grid-template-columns: 80px 1fr; gap: 2.5rem; align-items: start; }
.service-detail-icon { font-size: 3rem; padding-top: .25rem; }
.service-detail-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.service-lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1rem; }
.service-detail-content p { color: var(--muted); margin-bottom: 1rem; }
.service-detail-content h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1.75rem 0 .875rem; }
.service-list li { padding: .4rem 0 .4rem 1.25rem; position: relative; color: var(--ink); font-size: .95rem; }
.service-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.service-detail-content .btn { margin-top: 1.75rem; }

/* ── About ── */
.about-inner { display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: start; }
.about-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
.about-lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.25rem; }
.about-content p { color: var(--muted); margin-bottom: 1rem; }
.about-content h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1.75rem 0 .5rem; }
.brand-image-card { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem; background: var(--surface); border: 1px solid var(--border); }
.brand-img { width: 100%; display: block; }
.experience-card, .skills-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem;
}
.experience-card h3, .skills-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--ink); }
.exp-list { display: flex; flex-direction: column; gap: 1rem; }
.exp-list li { display: flex; flex-direction: column; gap: .15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.exp-list li:last-child { border-bottom: none; padding-bottom: 0; }
.exp-role { font-weight: 700; font-size: .95rem; }
.exp-org { font-size: .9rem; color: var(--accent); }
.exp-note { font-size: .8rem; color: var(--muted); }
.exp-linkedin { display: inline-block; margin-top: 1.25rem; font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.exp-linkedin:hover { text-decoration: underline; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tags span {
    background: var(--accent-light); color: var(--accent);
    border-radius: 100px; padding: .25rem .75rem; font-size: .8rem; font-weight: 600;
}

/* ── Contact ── */
.contact-inner { display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.req { color: var(--accent); }
.form-group input, .form-group select, .form-group textarea {
    padding: .625rem .875rem; border: 1.5px solid var(--border);
    border-radius: var(--radius); font-size: .95rem; font-family: inherit;
    color: var(--ink); background: var(--white); transition: border-color .15s;
    width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.contact-info-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-email { font-size: 1rem; font-weight: 600; color: var(--accent); word-break: break-all; }
.expect-list { display: flex; flex-direction: column; gap: .6rem; }
.expect-list li { font-size: .9rem; color: var(--muted); padding-left: 1.25rem; position: relative; }
.expect-list li::before { content: '✓'; position: absolute; left: 0; color: #10B981; font-weight: 700; }

/* ── Footer ── */
.site-footer { background: var(--brand); color: rgba(255,255,255,.7); padding: 3rem 1.5rem 1.5rem; }
.footer-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; gap: 3rem; flex-wrap: wrap; align-items: flex-start;
    padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 1.5rem;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand .brand-name { font-size: 1.1rem; font-weight: 700; color: var(--white); display: block; margin-bottom: .5rem; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.5); max-width: 280px; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-nav a:hover { color: var(--white); text-decoration: none; }
.footer-contact a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-contact a:hover { color: var(--white); }
.footer-legal { max-width: var(--max-w); margin: 0 auto; font-size: .8rem; color: rgba(255,255,255,.35); text-align: center; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--brand-mid); flex-direction: column; align-items: stretch;
        padding: 1rem; gap: .25rem;
        box-shadow: 0 8px 24px rgba(0,0,0,.3);
    }
    .primary-nav.open { display: flex; }
    .primary-nav a { padding: .75rem 1rem; }
    .primary-nav .nav-cta { text-align: center; margin-left: 0; margin-top: .5rem; }

    .about-inner, .contact-inner { grid-template-columns: 1fr; }
    .service-detail-inner { grid-template-columns: 1fr; }
    .service-detail-icon { display: none; }
    .form-row { grid-template-columns: 1fr; }

    .hero { padding: 4rem 1.5rem 3rem; }
    .section { padding: 3.5rem 1.5rem; }

    .footer-inner { flex-direction: column; gap: 2rem; }
}
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn-lg { width: 100%; text-align: center; }
}
