* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #050816;
    color: #f9fafb;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to right, rgba(15,23,42,0.96), rgba(17,24,39,0.96));
    border-bottom: 1px solid rgba(55,65,81,0.9);
}

.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #22c55e, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.brand-text {
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 14px;
    color: #e5e7eb;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: #e5e7eb;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    border-color: rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.8);
}

.nav-link-primary {
    border-color: rgba(59,130,246,0.8);
    background: linear-gradient(135deg, #3b82f6, #22c55e);
}

.nav-inline-form {
    margin: 0;
}

.nav-button {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: transparent;
    color: #e5e7eb;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-button:hover {
    background: rgba(255,255,255,0.1);
}

.page {
    max-width: 1400px;
    margin: 30px auto 50px;
    padding: 0 24px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 18px;
    color: #9ca3af;
    max-width: 520px;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.badge {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.8);
    color: #e5e7eb;
}

.badge-primary {
    border-color: rgba(59,130,246,0.9);
    background: rgba(37,99,235,0.2);
}

.hero-cta {
    margin-top: 24px;
    display: flex;
    gap: 14px;
}

.btn {
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    color: #f9fafb;
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}

.btn-secondary {
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    border: 1px solid rgba(75,85,99,0.9);
}

.hero-card {
    background: radial-gradient(circle at top left, rgba(59,130,246,0.35), transparent 55%), #020617;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(31,41,55,0.8);
    box-shadow: 0 25px 60px rgba(15,23,42,0.9);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #e5e7eb;
    margin-bottom: 12px;
}

.hero-card-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.35);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-card-main {
    margin-top: 8px;
}

.hero-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.hero-card-meta {
    font-size: 14px;
    color: #9ca3af;
}

.hero-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    font-size: 13px;
}

.hero-tile {
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(55,65,81,0.9);
}

.hero-tile-label { color: #9ca3af; font-size: 12px; }
.hero-tile-value { font-weight: 600; font-size: 16px; margin-top: 4px; }

.section {
    margin-top: 50px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: #9ca3af;
    margin-bottom: 24px;
    max-width: 600px;
}

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

.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background: #0a0a0f;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(31,41,55,0.9);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-body {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
}

.form-card {
    max-width: 500px;
}

.form-row {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(31,41,55,0.9);
    background: #020617;
    color: #f9fafb;
    font-size: 15px;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.error-box {
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.7);
    color: #fecaca;
    font-size: 14px;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.notice-box {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.7);
    color: #bbf7d0;
    font-size: 14px;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.footer {
    border-top: 1px solid rgba(31,41,55,0.9);
    background: #020617;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
    font-size: 14px;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.footer-note {
    color: #6b7280;
}

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .columns {
        grid-template-columns: minmax(0, 1fr);
    }
    .columns-2 {
        grid-template-columns: minmax(0, 1fr);
    }
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .hero-title {
        font-size: 32px;
    }
}
