/* ── Variables (shadcn-style tokens) ── */
:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --border: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Base ── */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navbar ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: hsla(var(--background), 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: hsl(var(--foreground));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    text-decoration: none;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--accent));
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: hsl(var(--foreground));
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}

.btn-outline:hover {
    background: hsl(var(--accent));
}

.btn-ghost {
    background: transparent;
    color: hsl(var(--muted-foreground));
    border: none;
}

.btn-ghost:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    letter-spacing: 0.01em;
}

.badge-outline {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

/* ── Hero ── */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid hsl(var(--border));
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-top: 1rem;
    color: hsl(var(--foreground));
}

.hero-desc {
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.stat-label {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
}

.stat-divider {
    width: 1px;
    height: 2.5rem;
    background: hsl(var(--border));
}

/* ── Sections ── */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: hsl(var(--secondary));
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: 0.75rem;
    color: hsl(var(--foreground));
}

.section-header p {
    margin-top: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 1.05rem;
}

/* ── Grid ── */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ── Card ── */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
    box-shadow: 0 2px 8px hsla(var(--foreground), 0.06);
    border-color: hsl(var(--muted-foreground) / 0.2);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.card-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ── Pricing ── */
.pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-featured {
    border-color: hsl(var(--primary));
    box-shadow: 0 4px 16px hsla(var(--primary), 0.1);
}

.popular-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
}

.pricing-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.pricing-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

.price {
    margin-top: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.price-period {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.4rem 0;
    color: hsl(var(--foreground));
}

.pricing-features svg {
    color: hsl(var(--foreground));
    flex-shrink: 0;
}

/* ── Team ── */
.team-card {
    text-align: center;
    padding: 2rem 1rem;
}

.avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 1rem;
    border: 2px solid hsl(var(--border));
}

.team-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.team-role {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.15rem;
}

/* ── Form ── */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: inherit;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsla(var(--ring), 0.15);
}

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

/* ── Footer ── */
.footer {
    border-top: 1px solid hsl(var(--border));
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.75rem;
    max-width: 260px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: hsl(var(--foreground));
}

.footer-links a {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: hsl(var(--foreground));
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        background: hsl(var(--background));
        border-bottom: 1px solid hsl(var(--border));
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 1.25rem;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        width: 3rem;
        height: 1px;
    }

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