* {
    box-sizing: border-box;
}

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #172033;
    --muted: #64748b;
    --border: #e5e7eb;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --dark: #0f172a;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 72px;
    padding: 0 32px;
    background: rgba(15, 23, 42, 0.97);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.logo h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

nav a {
    color: #cbd5e1;
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s ease;
}

nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 36px auto;
}

.hero {
    padding: 64px 48px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 35%),
        linear-gradient(135deg, #0f172a, #172554);
    color: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 600;
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card h2,
.card h3 {
    margin-top: 0;
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #eff6ff;
    font-size: 22px;
}

.price {
    margin: 10px 0 16px;
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
}

button {
    border: 0;
    border-radius: 10px;
    padding: 11px 18px;
    background: var(--primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

button:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

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

table {
    width: 100%;
    margin-top: 16px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

th {
    padding: 13px 15px;
    background: var(--surface-soft);
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 15px;
    border-bottom: 1px solid #eef2f7;
    color: var(--text);
    font-size: 14px;
}

tr:last-child td {
    border-bottom: 0;
}

tr:hover td {
    background: #fafcff;
}

.hot {
    color: var(--danger);
    font-weight: 700;
}

.section {
    margin-top: 30px;
}

footer {
    margin-top: 60px;
    padding: 28px 20px;
    background: var(--dark);
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
}

footer p {
    margin: 0;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

canvas {
    max-width: 100%;
    margin-top: 15px;
}

@media (max-width: 800px) {
    .topbar {
        padding: 14px 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    nav a {
        white-space: nowrap;
    }

    .container {
        width: min(100% - 24px, 1180px);
        margin: 24px auto;
    }

    .hero {
        padding: 40px 26px;
        border-radius: 18px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .card {
        padding: 20px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 15px;
    }

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