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

:root {
    --navy: #0B2B42;
    --teal: #00C9B1;
    --teal-dark: #00A692;
    --teal-soft: #D9F8F2;
    --gray-mid: #5B6E8C;
    --gray-light: #F0F4F9;
    --red-accent: #E5484D;
}

body {
    font-family: 'Inter', sans-serif;
    background: #F8FAFE;
    color: #121826;
    line-height: 1.5;
}

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

/* Header */
.header {
    border-bottom: 1px solid #E9EEF2;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.96);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo a {
    display: flex;
    text-decoration: none;
}

.logo-svg {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--navy);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--teal);
}

.btn-outline {
    border: 2px solid var(--teal);
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    background: white;
}

.btn-outline:hover {
    background: var(--teal-soft);
    border-color: var(--teal-dark);
}

/* Hero */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F7F5 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--navy);
}

.hero-content h1 span {
    color: var(--teal);
}

.hero-content p {
    font-size: 18px;
    color: var(--gray-mid);
    margin-bottom: 32px;
    max-width: 500px;
}

.button {
    display: inline-block;
    background-color: var(--teal);
    color: var(--navy);
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid var(--teal);
}

.button:hover {
    background-color: transparent;
    color: var(--teal);
}

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

.button-secondary {
    background-color: transparent;
    color: var(--teal);
}

.button-secondary:hover {
    background-color: var(--teal);
    color: var(--navy);
}

.hero-image {
    background: var(--teal-soft);
    border-radius: 32px;
    padding: 40px;
    text-align: center;
}

.hero-image svg {
    max-width: 100%;
    height: auto;
}

/* Features */
.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--navy);
}

.features h2 span {
    color: var(--teal);
}

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

.feature-card {
    background: var(--gray-light);
    padding: 40px 28px;
    border-radius: 28px;
    transition: transform 0.3s;
    text-align: center;
    color: inherit;
    text-decoration: none;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-icon {
    font-size: 52px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--navy);
}

.feature-card p {
    color: var(--gray-mid);
}

/* Articles */
.latest-articles {
    padding: 80px 0;
    background: var(--gray-light);
}

.latest-articles h2 {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--navy);
}

.latest-articles h2 span {
    color: var(--teal);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.article-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
}

.article-img {
    height: 180px;
    background: var(--teal-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.article-content {
    padding: 24px;
}

.article-tag {
    display: inline-block;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--navy);
}

.article-card p {
    color: var(--gray-mid);
    font-size: 14px;
}

.read-more {
    color: var(--teal);
    font-weight: 600;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.center-btn {
    text-align: center;
}

.button-ghost {
    background: transparent;
    border: 2px solid var(--teal);
    color: var(--navy);
}

.button-ghost:hover {
    background: var(--teal);
    color: var(--navy);
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background: var(--navy);
    color: white;
    text-align: center;
}

.newsletter h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-size: 18px;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
}

.subscribe-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

.subscribe-form button {
    background: var(--teal);
    color: var(--navy);
    border: none;
    border-radius: 40px;
    padding: 0 36px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
    font-size: 16px;
}

.subscribe-form button:hover {
    background: var(--teal-dark);
}

.policy-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.policy-checkbox a {
    color: var(--teal);
    text-decoration: none;
}

.form-message {
    margin-top: 16px;
    font-size: 14px;
    min-height: 1.4em;
}

.form-message.is-error {
    color: var(--red-accent);
}

.form-message.is-pending {
    color: var(--teal);
}

.form-message.is-success {
    color: #2C9A6E;
}

/* Contacts / simple pages */
.page-hero {
    padding: 64px 0 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F7F5 100%);
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 18px;
    color: var(--gray-mid);
    max-width: 560px;
}

.contacts {
    padding: 40px 0 80px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-block {
    background: white;
    border: 1px solid #E9EEF2;
    border-radius: 24px;
    padding: 32px 28px;
}

.contact-block h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.contact-block p {
    color: var(--gray-mid);
    margin-bottom: 20px;
    font-size: 15px;
}

.contact-link {
    display: inline-block;
    color: var(--teal-dark);
    font-weight: 700;
    text-decoration: none;
}

.contact-link:hover {
    color: var(--navy);
}

/* Legal / policy */
.legal-content {
    padding: 48px 0 80px;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.legal-content .policy-date {
    color: var(--gray-mid);
    margin-bottom: 32px;
    font-size: 14px;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin: 32px 0 12px;
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin: 20px 0 10px;
}

.legal-content p,
.legal-content li {
    color: #2a3444;
    margin-bottom: 10px;
    font-size: 15px;
}

.legal-content ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.legal-content a {
    color: var(--teal-dark);
}

.legal-content .highlight {
    background: var(--teal-soft);
    border-radius: 16px;
    padding: 16px 20px;
    margin: 20px 0;
}

.legal-content .table-container {
    overflow-x: auto;
    margin: 16px 0 24px;
}

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

.legal-content th,
.legal-content td {
    border: 1px solid #E9EEF2;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.legal-content th {
    background: var(--gray-light);
    color: var(--navy);
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #E9EDF2;
    padding: 40px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.footer .logo-svg {
    height: 32px;
}

.footer-links a {
    color: var(--gray-mid);
    text-decoration: none;
    margin-right: 28px;
    font-size: 14px;
}

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

.copyright {
    color: var(--gray-mid);
    font-size: 14px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 860px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

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

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

    .header .container {
        flex-direction: column;
    }

    .nav-links {
        justify-content: center;
        gap: 16px 24px;
    }

    .subscribe-form {
        flex-direction: column;
        padding: 0 20px;
    }

    .subscribe-form button {
        padding: 14px 36px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 12px 8px;
        display: inline-block;
    }

    .page-hero h1 {
        font-size: 32px;
    }

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