:root {
    /* === Paisa Code Brand Color System === */

    /* Primary Colors */
    --purple: #9f7aea;       /* Dominant: headings, primary UI, mountain/tech elements */
    --purple-dark: #6b46c1;  /* Hover states, emphasis, accessible text on light backgrounds */
    --green: #34d399;        /* Secondary/botanical: success states, spring elements, CTAs */
    --green-dark: #059669;   /* Hover states for green elements */
    --gold: #fbbf24;         /* Accent (use sparingly): logo "Code" wordmark, highlights, warmth */
    --gold-dark: #d97706;    /* Hover states for gold elements */

    /* Neutrals */
    --dark: #1e293b;         /* Body text, dark backgrounds (never use pure black) */
    --mid: #64748b;          /* Secondary text, captions (on light backgrounds only) */
    --light-mid: #cbd5e1;    /* Borders, disabled states, secondary text on dark backgrounds */
    --light: #f9fafb;        /* Page backgrounds */
    --white: #ffffff;        /* Cards, content backgrounds */

    /* === Color Usage Rules ===
     * - Purple is the dominant brand color
     * - Green is secondary/botanical
     * - Gold is accent — use sparingly
     * - Never combine green and gold without purple as anchor
     * - Dark backgrounds use --dark or --purple-dark, never pure black
     *
     * === WCAG AA Accessible Pairings (4.5:1 for text) ===
     *
     * On white/light backgrounds:
     *   purple-dark on white  ~7.0:1  ✓
     *   dark on white         ~13.5:1 ✓
     *   mid on white          ~4.6:1  ✓
     *   green-dark on white   ~4.3:1  ✓ (large text)
     *
     * On dark backgrounds (#1e293b):
     *   white on dark         ~13.5:1 ✓
     *   light-mid on dark     ~7.8:1  ✓
     *   green on dark         ~7.1:1  ✓
     *   gold on dark          ~8.0:1  ✓
     *   purple on dark        ~3.9:1  (large text only)
     *
     * On purple-dark backgrounds (#6b46c1):
     *   white on purple-dark  ~7.0:1  ✓
     *   gold on purple-dark   ~5.6:1  ✓
     *
     * Avoid for body text (insufficient contrast):
     *   purple on white       ~3.4:1  ✗
     *   green on white        ~1.9:1  ✗
     *   gold on white         ~1.7:1  ✗
     */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* NAV */
nav {
    padding: 1.25rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(159, 122, 234, 0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo .paisa { color: var(--white); }
.logo .code { color: var(--gold); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--light-mid);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--purple);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--purple-dark) !important; }

/* LANGUAGE TOGGLE */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.lang-toggle a {
    color: var(--light-mid);
    text-decoration: none;
    transition: color 0.2s;
}

.lang-toggle a:hover { color: var(--white); }

.lang-toggle .active {
    color: var(--white);
    font-weight: 700;
}

.lang-toggle .separator {
    color: var(--light-mid);
    user-select: none;
}

/* HERO */
.hero {
    padding: 10rem 0 6rem;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(159, 122, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(159, 122, 234, 0.15);
    border: 1px solid rgba(159, 122, 234, 0.3);
    color: var(--purple);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 700px;
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--purple), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--light-mid);
    max-width: 550px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--purple);
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--light-mid);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(203, 213, 225, 0.3);
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--light-mid);
    color: var(--white);
}

/* WHAT WE DO */
.what-we-do {
    padding: 6rem 0;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple-dark);
    margin-bottom: 0.75rem;
}

.section-heading {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--mid);
    max-width: 600px;
    margin-bottom: 3rem;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--light-mid);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    border-color: var(--purple);
    box-shadow: 0 4px 24px rgba(159, 122, 234, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(159, 122, 234, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--mid);
    line-height: 1.6;
}

/* PROJECTS & PARTNERS */
.partnership {
    padding: 6rem 0;
    background: var(--dark);
}

.partnership .section-label { color: var(--green); }

.partnership .section-heading {
    color: var(--white);
    margin-bottom: 1rem;
}

.partnership-lead {
    font-size: 1.1rem;
    color: var(--light-mid);
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.partnership-embedded {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 3rem;
    font-weight: 500;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .project-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .project-grid { grid-template-columns: 1fr; }
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.75rem;
}

.project-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--light-mid);
    line-height: 1.6;
}

.partnership-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .partnership-stats { grid-template-columns: 1fr 1fr; }
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.stat-number .accent { color: var(--green); }

.stat-label {
    font-size: 0.85rem;
    color: var(--light-mid);
}

/* AI CONSULTING SECTION */
.ai-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, #2d1b69 50%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.ai-section::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(159, 122, 234, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.ai-section::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.ai-section .container {
    position: relative;
    z-index: 1;
}

.ai-header {
    margin-bottom: 3.5rem;
    max-width: 650px;
}

.ai-header .section-label {
    color: var(--green);
}

.ai-header .section-heading {
    color: var(--white);
    margin-bottom: 1.25rem;
}

.ai-header .section-sub {
    color: var(--light-mid);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Featured tool block */
.ai-tool-feature {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(159, 122, 234, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.ai-tool-feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--green));
}

.ai-tool-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(159, 122, 234, 0.15);
    border: 1px solid rgba(159, 122, 234, 0.3);
    color: var(--purple);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.ai-tool-feature h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.ai-tool-feature h3 .tool-name {
    color: var(--green);
}

.ai-tool-feature-lead {
    font-size: 1.1rem;
    color: var(--light-mid);
    line-height: 1.8;
    max-width: 640px;
    margin-bottom: 1.5rem;
}

.ai-tool-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.ai-tool-point {
    display: flex;
    gap: 0.75rem;
    align-items: start;
}

.ai-tool-point-icon {
    width: 36px;
    height: 36px;
    background: rgba(52, 211, 153, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.ai-tool-point p {
    font-size: 0.95rem;
    color: var(--light-mid);
    line-height: 1.7;
}

.ai-tool-point strong {
    color: var(--white);
}

@media (min-width: 769px) {
    .ai-tool-feature {
        padding: 3rem;
    }
    .ai-tool-points {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem;
    }
}

.ai-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.ai-pillar {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
    align-items: start;
}

.ai-pillar-icon {
    width: 56px;
    height: 56px;
    background: rgba(159, 122, 234, 0.15);
    border: 1px solid rgba(159, 122, 234, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ai-pillar h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.ai-pillar p {
    font-size: 1rem;
    color: var(--light-mid);
    line-height: 1.8;
    max-width: 560px;
}

.ai-pillar p + p {
    margin-top: 0.75rem;
}

.ai-anti-patterns {
    border-left: 2px solid var(--purple);
    padding-left: 1rem;
}

.ai-cta {
    margin-top: 3.5rem;
    text-align: center;
}

.ai-cta p {
    color: var(--light-mid);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.ai-cta-btn {
    background: var(--green);
    color: var(--dark);
    font-weight: 700;
}

.ai-cta-btn:hover {
    background: var(--green-dark, #2bb380);
    transform: translateY(-1px);
}

@media (min-width: 769px) {
    .ai-pillars {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .ai-pillar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* WHO WE WORK WITH */
.team-section {
    padding: 6rem 0;
    background: var(--white);
}

.team-section .section-label {
    color: var(--purple-dark);
}

.team-section .section-sub {
    font-size: 1.1rem;
    color: var(--mid);
    max-width: 640px;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.profile-card {
    background: var(--white);
    border: 1px solid var(--light-mid);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-card:hover {
    border-color: var(--purple);
    box-shadow: 0 4px 24px rgba(159, 122, 234, 0.08);
}

.profile-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--green));
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    font-weight: 700;
}

.profile-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.profile-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--purple-dark);
    margin-bottom: 1rem;
}

.profile-bio {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.6;
}

/* HOW WE WORK */
.how-we-work {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--light) 0%, rgba(159, 122, 234, 0.03) 100%);
}

.how-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.how-header .section-sub {
    margin-left: auto;
    margin-right: auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--purple);
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.6;
}

/* CTA */
.cta {
    padding: 6rem 0;
    background: var(--dark);
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    color: var(--light-mid);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta .btn-primary {
    background: var(--green);
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.cta .btn-primary:hover { background: var(--green-dark); }

/* FOOTER */
footer {
    background: var(--dark);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand p {
    color: var(--light-mid);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 0.75rem;
    max-width: 320px;
}

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

.footer-col ul {
    list-style: none;
}

.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
    color: var(--light-mid);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-col .contact-item {
    color: var(--light-mid);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--light-mid);
    font-size: 0.8rem;
}

/* MOBILE NAV */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 1.5rem 5%;
        gap: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-links.open { display: flex; }
    .nav-cta { text-align: center; }
    .lang-toggle { justify-content: center; margin-left: 0; }
}
