@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-top: #f8fafc;
    --bg-bottom: #ecfeff;
    --ink: #0f172a;
    --muted: #475569;
    --primary: #0f766e;
    --primary-dark: #0b5d56;
    --accent: #f59e0b;
    --card: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, rgba(14, 116, 144, 0.15), transparent 40%),
        linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 36px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-family: "Fraunces", "Times New Roman", serif;
    font-size: 24px;
    letter-spacing: 0.6px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-weight: 600;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink);
}

.site-nav a:hover {
    color: var(--primary);
}

.nav-user {
    color: var(--muted);
    font-size: 14px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
    gap: 32px;
    padding: 40px 0 24px;
}

.hero h1 {
    font-family: "Fraunces", "Times New Roman", serif;
    font-size: 40px;
    margin: 0 0 12px;
}

.hero p {
    color: var(--muted);
    line-height: 1.6;
}

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

.hero-card h3 {
    margin-top: 0;
}

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

.badge {
    background: rgba(15, 118, 110, 0.12);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.section-title {
    margin: 24px 0 12px;
    font-size: 22px;
    font-family: "Fraunces", "Times New Roman", serif;
}

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

.card {
    background: var(--card);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.card h3 {
    margin-top: 0;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
}

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

.btn-outline:hover {
    background: rgba(15, 118, 110, 0.08);
}

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

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--muted);
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}

.form-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll .table {
    width: max-content;
    min-width: 100%;
}

.table th, .table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.table th {
    text-transform: uppercase;
    font-size: 12px;
    color: var(--muted);
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}

.alert.error {
    background: #fee2e2;
    color: #b91c1c;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.site-footer {
    padding: 30px 24px 50px;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 20px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .container {
        padding: 20px 16px;
    }
    input, select, textarea {
        font-size: 16px;
    }
}
