:root {
    --bg: #fbfbfd;
    --surface: #ffffff;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent: #0071e3;
    --border: rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

/* ---------- Header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 clamp(20px, 5vw, 48px);
    height: 52px;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

header .brand {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

header nav {
    display: flex;
    gap: 28px;
}

header nav a {
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: var(--text);
}

/* ---------- Auth (top-right) ---------- */
.auth {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-left: 24px;
}

.btn-login {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--accent);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 980px;
    transition: opacity 0.2s ease;
}

.btn-login:hover {
    opacity: 0.85;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.user-email {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ---------- Layout ---------- */
.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 32px);
}

section {
    padding: clamp(48px, 8vw, 88px) 0;
    border-bottom: 1px solid var(--border);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.section-head h2 {
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-head a {
    font-size: 15px;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.section-head a:hover {
    text-decoration: underline;
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: clamp(64px, 11vw, 120px) 0;
}

.hero h1 {
    font-size: clamp(38px, 7vw, 68px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.06;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero p {
    margin: 18px auto 0;
    max-width: 560px;
    font-size: clamp(17px, 2.4vw, 21px);
    color: var(--text-secondary);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero .btn {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- About ---------- */
.about p {
    max-width: 720px;
    font-size: clamp(17px, 2.2vw, 20px);
    color: var(--text-secondary);
}

.about strong {
    color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 11px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: var(--accent);
    border-radius: 980px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover { background: #0077ed; }
.btn:active { transform: scale(0.97); }

.btn.secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(0, 113, 227, 0.4);
}

.btn.secondary:hover { background: rgba(0, 113, 227, 0.08); }

/* ---------- Grids ---------- */
.grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 5px;
    padding-bottom: 5px;
}

.card {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    width: 300px;
    max-width: 325px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.card .logo {
    height: 34px;
    width: auto;
    margin-bottom: 16px;
    align-self: flex-start;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.card p {
    font-size: 15px;
    color: var(--text-secondary);
    flex: 1;
}

        .card .link {
            margin-top: 18px;
            font-size: 15px;
            font-weight: 500;
            color: var(--accent);
            text-decoration: none;
        }

.card .link:hover { text-decoration: underline; }

.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
footer {
    padding: 32px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover { color: var(--text); }
footer .copyright { margin-top: 12px; }
