:root {
    --primary: #22c55e;
    --primary-hover: #16a34a;
    --primary-light: #ecfdf5;
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    --footer-border: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --max-width: 1100px;
    --transition: 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-heading {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}

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

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--text);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color var(--transition);
}

.btn-outline:hover {
    border-color: var(--text-muted);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.header__logo-text {
    font-weight: 700;
    font-size: 18px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.header__link:hover {
    color: var(--text);
}

.header__cta {
    padding: 8px 20px;
    font-size: 14px;
}

.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.header__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }

    .header__nav.open {
        display: flex;
    }

    .header__hamburger {
        display: flex;
    }

    .header__cta {
        width: 100%;
        text-align: center;
    }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #f4f6f8 50%, #ecfdf5 100%);
    padding: 80px 24px;
}

.hero__inner {
    max-width: 640px;
}

.hero__heading {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero__subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 24px 80px;
    }

    .hero__heading {
        font-size: 28px;
    }

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

/* Sections */
.section {
    padding: 80px 24px;
}

.section--white {
    background: var(--surface);
}

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

.section__center {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.section__text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 24px;
    }
}

/* Features */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.feature-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.feature-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Articles */
.articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.article-card__thumb {
    height: 160px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 13px;
}

.article-card__body {
    padding: 20px;
}

.article-card__date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.article-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.article-card__excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-card__link {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    transition: color var(--transition);
}

.article-card__link:hover {
    color: var(--primary-hover);
}

@media (max-width: 768px) {
    .articles__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Contact Form */
.contact-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form__input {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
}

.contact-form__input::placeholder {
    color: var(--text-muted);
}

.contact-form__input:focus {
    border-color: var(--primary);
}

.contact-form__textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form__submit {
    width: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.contact-form__success {
    display: none;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.contact-form__success.show {
    display: block;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: #ffffff;
    padding: 40px 24px 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 32px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer__logo-text {
    font-weight: 700;
    font-size: 16px;
}

.footer__tagline {
    font-size: 13px;
    color: var(--footer-text);
}

.footer__links {
    display: flex;
    gap: 48px;
}

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

.footer__column-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer__link {
    font-size: 13px;
    color: var(--footer-text);
    transition: color var(--transition);
}

.footer__link:hover {
    color: #ffffff;
}

.footer__bottom {
    border-top: 1px solid var(--footer-border);
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: var(--footer-text);
}

@media (max-width: 768px) {
    .footer__inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer__links {
        gap: 32px;
    }
}

/* Article Detail */
.article-detail {
    background: var(--surface);
    padding: 40px 24px 80px;
    min-height: 60vh;
}

.article-detail__inner {
    max-width: 720px;
    margin: 0 auto;
}

.article-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 32px;
    transition: color var(--transition);
}

.article-detail__back:hover {
    color: var(--primary-hover);
}

.article-detail__date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.article-detail__title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 32px;
}

.article-detail__body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-detail__body h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px;
}

.article-detail__body p {
    margin-bottom: 16px;
}

.article-detail__not-found {
    text-align: center;
    padding: 80px 0;
}

.article-detail__not-found h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.article-detail__not-found p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}
