@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --canvas: #f7f7f4;
    --ink: #26251e;
    --body-color: #5a5852;
    --primary: #f54e00;
    --primary-active: #d04200;
    --surface-card: #ffffff;
    --hairline: #e6e5e0;
    --hairline-strong: #cfcdc4;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --success: #1f8a65;
    --error: #cf2d56;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    background-color: var(--canvas);
    color: var(--body-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.top-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav .container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
}

.nav-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-links li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body-color);
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--ink);
    background: var(--hairline);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-top: 1px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 8px;
    min-width: 280px;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    display: block;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--body-color);
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.nav-dropdown-menu li a:hover {
    color: var(--ink);
    background: var(--canvas);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--ink);
    font-size: 20px;
    margin-left: auto;
}

.section {
    padding: 80px 0;
}

.section--alt {
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.72px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--body-color);
    max-width: 560px;
    line-height: 1.5;
}

.hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {}

.hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--hairline);
    border-radius: 9999px;
    padding: 4px 12px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: var(--body-color);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-meta {
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--hairline);
    padding-top: 20px;
    margin-top: 20px;
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    aspect-ratio: 4/3;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.card:hover {
    border-color: var(--hairline-strong);
}

.card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.02);
}

.card-body {
    padding: 24px;
}

.card-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 10px;
}

.card-excerpt {
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
    padding-bottom: 1px;
    display: inline-block;
    transition: border-color 0.15s;
}

.card-link:hover {
    border-color: var(--ink);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.feature-item {}

.feature-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.6;
}

.article-hero {
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.article-meta-dot {
    width: 3px;
    height: 3px;
    background: var(--muted-soft);
    border-radius: 50%;
}

.article-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
}

.article-title {
    font-size: 42px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    max-width: 800px;
}

.article-subtitle {
    font-size: 18px;
    color: var(--body-color);
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 32px;
}

.article-featured-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hairline);
    margin-top: 40px;
    aspect-ratio: 2/1;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-featured-image figcaption {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--muted);
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
}

.article-layout {
    padding: 64px 0 80px;
}

.article-layout .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
}

.article-content {
    max-width: 720px;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.325px;
    line-height: 1.25;
    margin-top: 48px;
    margin-bottom: 16px;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-content p {
    font-size: 16px;
    color: var(--body-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-content li {
    font-size: 16px;
    color: var(--body-color);
    line-height: 1.7;
    margin-bottom: 6px;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--hairline-strong);
    text-underline-offset: 3px;
}

.article-content a:hover {
    text-decoration-color: var(--ink);
}

.article-content blockquote {
    border-left: 3px solid var(--hairline-strong);
    padding-left: 24px;
    margin: 32px 0;
    font-size: 18px;
    font-style: italic;
    color: var(--ink);
    line-height: 1.6;
}

.info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 32px 0;
}

.info-box strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.info-box p {
    font-size: 14px;
    color: var(--body-color);
    margin-bottom: 0;
}

.article-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-card ul li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 10px;
    display: block;
    transition: color 0.15s;
}

.sidebar-card ul li:last-child a {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-card ul li a:hover {
    color: var(--body-color);
}

.article-nav {
    border-top: 1px solid var(--hairline);
    padding-top: 32px;
    margin-top: 32px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.article-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
    padding-bottom: 1px;
    transition: border-color 0.15s;
}

.article-nav a:hover {
    border-color: var(--ink);
}

.page-hero {
    padding: 60px 0;
    border-bottom: 1px solid var(--hairline);
}

.page-title {
    font-size: 36px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.72px;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--body-color);
}

.page-content {
    padding: 64px 0 80px;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 40px;
    margin-bottom: 12px;
}

.page-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 24px;
    margin-bottom: 8px;
}

.page-content p {
    font-size: 16px;
    color: var(--body-color);
    line-height: 1.7;
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.page-content li {
    font-size: 16px;
    color: var(--body-color);
    line-height: 1.7;
    margin-bottom: 4px;
}

.page-content ul li {
    list-style-type: disc;
}

.page-content ol li {
    list-style-type: decimal;
}

.page-content a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--hairline-strong);
    text-underline-offset: 3px;
}

.page-content a:hover {
    text-decoration-color: var(--ink);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/2;
}

.contact-section {
    padding: 80px 0;
    border-top: 1px solid var(--hairline);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h3 {
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.325px;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 16px;
    color: var(--body-color);
    line-height: 1.7;
    margin-bottom: 16px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.contact-detail-item {
    font-size: 14px;
    color: var(--body-color);
}

.contact-detail-item strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}

.form-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
    height: 44px;
}

.form-group textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--hairline-strong);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-soft);
}

.form-submit {
    background: var(--ink);
    color: var(--canvas);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    height: 44px;
    transition: background 0.15s;
    width: 100%;
}

.form-submit:hover {
    background: #3a3930;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    display: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
}

.form-message.success {
    background: #edf7f3;
    border: 1px solid #9fd4be;
    color: var(--success);
}

.form-loading {
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    margin-top: 12px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--hairline);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {}

.footer-brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer-brand-name span {
    color: var(--primary);
}

.footer-brand-desc {
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--body-color);
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: var(--ink);
}

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.15s;
}

.footer-bottom-links a:hover {
    color: var(--ink);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
    padding: 20px 0;
    z-index: 1000;
    display: none;
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    color: var(--body-color);
    min-width: 280px;
}

.cookie-text a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-accept {
    background: var(--ink);
    color: var(--canvas);
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    height: 36px;
    transition: background 0.15s;
}

.btn-accept:hover {
    background: #3a3930;
}

.btn-reject {
    background: transparent;
    color: var(--body-color);
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    height: 36px;
    transition: border-color 0.15s, color 0.15s;
}

.btn-reject:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--muted);
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb span {
    color: var(--muted-soft);
}

.updated-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 38px;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .article-layout .container {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface-card);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li a {
        display: block;
    }
    .nav-dropdown-menu {
        position: static;
        border: none;
        background: var(--canvas);
        display: none;
        padding: 8px 0 8px 16px;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-desc {
        font-size: 16px;
    }
    .section-title {
        font-size: 28px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .card-grid--2col {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .article-title {
        font-size: 28px;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
        letter-spacing: -0.5px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
