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

:root {
    --brand:       #6C4FE8;
    --brand-dark:  #4F35C5;
    --brand-light: #EDE9FF;
    --dark:        #0F0E17;
    --mid:         #2E2B3D;
    --muted:       #6B6880;
    --border:      #E4E2F0;
    --bg:          #FAFAFA;
    --white:       #FFFFFF;
    --radius:      14px;
    --shadow:      0 4px 32px rgba(108,79,232,.10);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.65;
}

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img { height: 38px; display: block; }

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .2s;
}

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

/* ── HERO ── */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 96px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
}

.hero-text h1 span {
    color: var(--brand);
}

.hero-text p {
    margin-top: 20px;
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 440px;
}

.hero-cta {
    margin-top: 36px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--brand);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108,79,232,.35);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.btn-outline:hover {
    background: var(--brand-light);
    transform: translateY(-1px);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-illustration {
    width: 100%;
    max-width: 380px;
}

.hero-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 380px;
    border-top: 4px solid var(--brand);
}

.hero-card-tag {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand);
    font-size: .75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-card h3 {
    margin-top: 14px;
    font-size: 1.1rem;
    font-weight: 700;
}

.hero-card p {
    margin-top: 8px;
    font-size: .88rem;
    color: var(--muted);
}

.hero-card-phrase {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.45;
}

.hero-card-email {
    margin-top: 24px;
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand);
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.hero-card-stack {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--mid);
}

/* ── SECTION SHARED ── */
section { padding: 80px 24px; }

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
}

.section-title {
    margin-top: 10px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
}

.section-sub {
    margin-top: 12px;
    font-size: 1rem;
    color: var(--muted);
    max-width: 520px;
}

/* ── SERVICES ── */
#services { background: var(--white); }

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

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: box-shadow .2s, transform .2s;
}

.service-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--brand);
}

.service-card h3 {
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 700;
}

.service-card p {
    margin-top: 8px;
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── APPS ── */
#apps { background: var(--bg); }

.apps-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.app-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform .2s, box-shadow .2s;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(108,79,232,.16);
}

.app-name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--dark);
}

.app-card p {
    font-size: .93rem;
    color: var(--muted);
    flex: 1;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    color: var(--brand);
    transition: gap .2s;
}

.app-link:hover { gap: 10px; }

.app-link i {
    transition: transform .2s;
}

.app-link:hover i {
    transform: translateX(3px);
}

.app-badge {
    align-self: flex-start;
    background: var(--brand-light);
    color: var(--brand);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
}

/* ── CONTACT ── */
#contact { background: var(--white); }

.contact-layout {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.contact-info p {
    margin-top: 10px;
    font-size: .93rem;
    color: var(--muted);
    line-height: 1.7;
}

.contact-details {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    color: var(--mid);
}

.contact-detail-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--brand);
}

.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--mid);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .92rem;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--white);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(108,79,232,.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

#form-status {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 500;
    display: none;
}

#form-status.success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    display: block;
}

#form-status.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    display: block;
}

/* ── FOOTER ── */
footer {
    background: var(--dark);
    color: rgba(255,255,255,.5);
    padding: 40px 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo img { height: 28px; filter: brightness(0) invert(1); opacity: .7; }

footer p { font-size: .85rem; }

footer a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color .2s;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 60px 24px 48px;
        text-align: center;
    }

    .hero-text p { margin: 20px auto 0; }
    .hero-cta { justify-content: center; }
    .hero-visual { display: none; }

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

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

    .nav-links { display: none; }
}
