@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #f4f7fb;
    --bg-2: #eef3f9;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --text: #0f172a;
    --muted: #475569;
    --line: rgba(148, 163, 184, 0.22);
    --line-strong: rgba(148, 163, 184, 0.35);
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.08);
    --success-soft: rgba(16, 185, 129, 0.10);
    --success-text: #047857;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 18px 42px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.06), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 18px 64px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--surface-strong);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 28px 22px 30px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto -100px -100px auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.10), transparent 70%);
    pointer-events: none;
}

.hero-top {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .9rem;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .84rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    text-align: center;
}

.logo {
    width: min(320px, 76%);
    margin: 0 auto 1.4rem;
    filter: drop-shadow(0 16px 26px rgba(15, 23, 42, 0.12));
}

.hero h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 800;
    color: #111827;
}

.hero p {
    max-width: 780px;
    margin: 1rem auto 0;
    text-align: center;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem;
    margin-top: 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 48px;
    padding: 0 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    transition: .2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border-color: var(--line);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.20);
}

.stats {
    margin-top: 1.8rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    padding: 0 .15rem;
}

.stat {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1rem .9rem;
    text-align: center;
    min-width: 0;
}

.stat strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: .3rem;
}

.stat span {
    color: var(--muted);
    font-size: .92rem;
}

.section {
    margin-top: 44px;
}

.section-head {
    margin-bottom: 18px;
}

.section-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #111827;
}

.section-subtitle {
    margin: .65rem 0 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.7;
}

.featured-card,
.project-item,
.contact-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.featured-card {
    padding: 1.3rem;
}

.featured-grid {
    display: grid;
    gap: 1.2rem;
    align-items: center;
}

.featured-visual {
    width: 100%;
    min-height: 230px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-visual img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 12px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: .9rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: .42rem .78rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.tag-success {
    background: var(--success-soft);
    color: var(--success-text);
    border-color: rgba(16, 185, 129, 0.12);
}

.featured-title {
    margin: 0 0 .7rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.featured-desc {
    color: var(--muted);
    line-height: 1.72;
    font-size: .98rem;
}

.featured-desc p {
    margin: 0 0 .8rem;
}

.link-group {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .78rem 1rem;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--text);
    font-size: .93rem;
    font-weight: 700;
    transition: .2s ease;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    border-color: rgba(37, 99, 235, 0.22);
    color: var(--primary);
}

.link-btn svg {
    flex: 0 0 auto;
}

.device-icons {
    display: inline-flex;
    gap: .18rem;
    opacity: .7;
}

.device-icons svg {
    width: 16px;
    height: 16px;
}

.projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.project-item {
    padding: 1.2rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.project-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.22);
}

.project-cover,
.logo-demos,
.project-item img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    padding: 18px;
}

.project-title {
    margin: 1rem 0 .55rem;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.project-desc {
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.7;
}

.project-desc p {
    margin: 0 0 .8rem;
}

.chat-warning {
    margin-top: 1rem;
    padding: .95rem 1rem;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: #1e3a8a;
    font-size: .91rem;
    line-height: 1.6;
}

.chat-warning p {
    margin: 0 0 .45rem;
}

.chat-warning p:last-child {
    margin-bottom: 0;
}

.contact-card {
    padding: 1.5rem;
    text-align: center;
}

.contact-card h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.contact-card p {
    margin: .9rem auto 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.7;
}

.footer {
    margin-top: 26px;
    text-align: center;
    color: var(--muted);
    font-size: .92rem;
}

@media (min-width: 768px) {
    .page {
        padding: 32px 22px 72px;
    }

    .hero {
        padding: 38px 34px 38px;
    }

    .stats {
        grid-template-columns: repeat(4, 1fr);
        padding: 0;
    }

    .projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 980px) {
    .featured-grid {
        grid-template-columns: 1.05fr 1fr;
    }
}

@media (max-width: 520px) {
    .hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .stats {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .link-group {
        flex-direction: column;
    }

    .link-btn {
        width: 100%;
        justify-content: center;
    }
}