:root {
    --bg: #f6f5f7;
    --bg-alt: #ffffff;
    --text: #262730;
    --text-muted: #6b6b80;
    --primary: #1e3a8a;   /* deep navy */
    --accent: #f97362;    /* warm coral */
    --accent-soft: #fde4dd;
    --teal: #0d9488;
    --border: #e2e2ee;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.09);
    --transition: 180ms ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Layout */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    padding: 32px 20px 64px;
}

/* Header + Nav */

.header {
    background: radial-gradient(circle at 0% 0%, #c7d2fe 0, #1e293b 40%, #020617 100%);
    color: #f9fafb;
    padding: 18px 20px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-mark span {
    transform: translateY(-1px);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text-title {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.brand-text-sub {
    font-size: 0.78rem;
    opacity: 0.8;
}

.nav-toggle {
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(248, 250, 252, 0.35);
    border-radius: 999px;
    padding: 6px 10px;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.82rem;
}

.nav-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
    position: relative;
}

.nav-toggle span::after,
.nav-toggle span::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
    left: 0;
}

.nav-toggle span::before {
    top: -5px;
}
.nav-toggle span::after {
    top: 5px;
}

.nav {
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 0 4px;
}

.nav-links {
    display: none;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links.show {
    display: flex;
}

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
    background: rgba(15, 23, 42, 0.4);
}

.nav-links a.active {
    background: rgba(15, 23, 42, 0.75);
    color: #f9fafb;
}

/* Hero (home) */

.hero {
    max-width: 1120px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.hero-card {
    background: var(--bg-alt);
    padding: 32px 26px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.hero-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    letter-spacing: 0.03em;
    margin: 0 0 6px;
}

.hero-highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.btn {
    border-radius: 999px;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #fb923c);
    color: #111827;
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.4);
}

.btn-ghost {
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #0f172a;
    background: rgba(255, 255, 255, 0.35);
}

.hero-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-meta strong {
    color: var(--teal);
}

.hero-visual {
    background: radial-gradient(circle at 0% 0%, var(--accent-soft), #e0f2fe);
    border-radius: var(--radius-lg);
    padding: 24px 22px 26px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.65);
    padding: 6px 12px;
    border-radius: 999px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--teal);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    font-size: 0.78rem;
}

.stat-label {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-weight: 700;
    font-size: 1rem;
}

/* Content sections */

.section {
    max-width: 1120px;
    margin: 40px auto 0;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.section-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

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

.card {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1rem;
}

.card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Chat board (community) */

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

.chat-panel,
.chat-info {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 18px 16px 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border);
}

.chat-log {
    max-height: none;
    overflow-y: visible;
    padding-right: 6px;
    margin-top: 8px;
    margin-bottom: 14px;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #eff6ff;
    font-size: 0.88rem;
}

.chat-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-form-row {
    display: flex;
    gap: 8px;
}

.chat-form input,
.chat-form textarea {
    font-family: inherit;
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex: 1;
}

.chat-form textarea {
    resize: vertical;
    min-height: 54px;
}

.chat-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Footer */

.footer {
    background: #020617;
    color: #9ca3af;
    font-size: 0.8rem;
    padding: 20px;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Forms (contact) */

.form {
    max-width: 540px;
    background: var(--bg-alt);
    padding: 22px 18px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

/* Utilities */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    background: #e0f2fe;
    color: #0f172a;
    margin-bottom: 8px;
}

/* Responsive */

@media (max-width: 768px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .nav-links {
        margin-top: 8px;
    }

    .main {
        padding: 24px 16px 52px;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .nav-toggle {
        margin-left: auto;
    }
}
