@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;475;500;575;600&family=Inter+Display:wght@400;475;500&display=swap');

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

:root {
    --primary:         #181d26;
    --primary-active:  #0d1218;
    --canvas:          #ffffff;
    --surface-soft:    #f8fafc;
    --surface-strong:  #e0e2e6;
    --surface-dark:    #181d26;
    --hairline:        #dddddd;
    --ink:             #181d26;
    --body:            #333840;
    --muted:           #41454d;
    --on-primary:      #ffffff;
    --link:            #1b61c9;
    --link-active:     #1a3866;
    --sig-coral:       #aa2d00;
    --sig-forest:      #0a2e0e;
    --sig-cream:       #f5e9d4;
    --sig-peach:       #fcab79;
    --sig-mint:        #a8d8c4;
    --sig-yellow:      #f4d35e;
    --sig-mustard:     #d9a441;
    --r-xs:  2px;
    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  12px;
    --sp-xxs: 4px;
    --sp-xs:  8px;
    --sp-sm:  12px;
    --sp-md:  16px;
    --sp-lg:  24px;
    --sp-xl:  32px;
    --sp-xxl: 48px;
    --sp-sec: 96px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--body);
    background: var(--canvas);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-active); }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: var(--sp-xl);
}

.logo {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    gap: var(--sp-lg);
    align-items: center;
}

.main-nav a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active { color: var(--ink); font-weight: 500; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-xs);
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.hero-band {
    padding: var(--sp-sec) 0;
    background: var(--canvas);
}

.hero-inner {
    max-width: 760px;
}

.hero-inner h1 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-lg);
}

.hero-sub {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
}

.section-band {
    padding: var(--sp-sec) 0;
    background: var(--canvas);
}

.cream-band { background: var(--sig-cream); }

.section-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-xxl);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

.article-card {
    background: var(--canvas);
    border-radius: var(--r-md);
    border: 1px solid var(--hairline);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img-link { display: block; overflow: hidden; aspect-ratio: 16/9; }

.card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .card-img-link img { transform: scale(1.03); }

.card-body {
    padding: var(--sp-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

.card-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.card-body h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}

.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--link); }

.card-body p { font-size: 14px; line-height: 1.55; color: var(--body); margin-top: var(--sp-xxs); }

.card-meta { font-size: 13px; color: var(--muted); margin-top: auto !important; padding-top: var(--sp-xs); }

.signature-forest-card {
    background: var(--sig-forest);
    padding: var(--sp-sec) 0;
}

.sig-inner { max-width: 860px; }

.signature-forest-card h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--on-primary);
    margin-bottom: var(--sp-lg);
}

.signature-forest-card p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--sp-md);
}

.signature-forest-card a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.signature-forest-card a:hover { color: var(--on-primary); }

.demo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-md);
}

.demo-grid-card {
    background: var(--canvas);
    border-radius: var(--r-md);
    padding: var(--sp-lg);
    border: 1px solid var(--hairline);
}

.demo-grid-card.mint    { background: var(--sig-mint);    border-color: transparent; }
.demo-grid-card.peach   { background: var(--sig-peach);   border-color: transparent; }
.demo-grid-card.yellow  { background: var(--sig-yellow);  border-color: transparent; }

.demo-grid-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
}

.demo-grid-card p { font-size: 14px; line-height: 1.6; color: var(--body); }

.hero-card-dark {
    background: var(--surface-dark);
    padding: var(--sp-sec) 0;
}

.hero-card-dark h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--on-primary);
    margin-bottom: var(--sp-md);
}

.hero-card-dark p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--sp-xl);
    max-width: 640px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    max-width: 560px;
}

.form-row { display: flex; flex-direction: column; gap: var(--sp-xxs); }

.form-row label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
}

.form-row input,
.form-row textarea {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    width: 100%;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #458fff;
    box-shadow: 0 0 0 2px rgba(69,143,255,0.25);
}

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

.btn-primary {
    display: inline-block;
    background: var(--on-primary);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--r-lg);
    border: none;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.15s;
}

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

.cookie-banner {
    position: fixed;
    bottom: var(--sp-lg);
    left: var(--sp-lg);
    right: var(--sp-lg);
    max-width: 720px;
    background: var(--primary);
    color: var(--on-primary);
    border-radius: var(--r-lg);
    padding: var(--sp-lg);
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
    z-index: 9999;
    box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}

.cookie-banner.hidden { display: none; }

.cookie-banner p { font-size: 13px; line-height: 1.5; flex: 1; }
.cookie-banner a { color: rgba(255,255,255,0.7); text-decoration: underline; }

.cookie-actions { display: flex; gap: var(--sp-xs); flex-shrink: 0; }

.btn-legal {
    background: var(--link);
    color: var(--on-primary);
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--r-xs);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-legal-outline {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.4);
}

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: var(--sp-sec) 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-xxl);
    padding-bottom: var(--sp-sec);
}

.footer-brand {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-xs);
}

.footer-tagline { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: var(--sp-lg); }

.footer-contact { font-size: 14px; line-height: 1.7; color: var(--muted); }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--link); }

.footer-col-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.footer-col ul li { margin-bottom: var(--sp-xs); }
.footer-col ul li a { font-size: 14px; color: var(--muted); }
.footer-col ul li a:hover { color: var(--link); }

.footer-legal {
    border-top: 1px solid var(--hairline);
    padding: var(--sp-lg) var(--sp-xxl);
    font-size: 13px;
    color: var(--muted);
}

.article-main { padding: var(--sp-sec) 0; }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--sp-xxl);
    align-items: start;
}

.article-header { margin-bottom: var(--sp-xl); }

.article-header h1 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin: var(--sp-sm) 0 var(--sp-md);
}

.article-meta { font-size: 13px; color: var(--muted); }

.article-hero-img {
    margin-bottom: var(--sp-xxl);
    border-radius: var(--r-md);
    overflow: hidden;
}

.article-hero-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-hero-img figcaption {
    font-size: 12px;
    color: var(--muted);
    padding: var(--sp-xs) 0 0;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.35;
    margin: var(--sp-xxl) 0 var(--sp-md);
}

.article-body h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    margin: var(--sp-xl) 0 var(--sp-sm);
}

.article-body p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--sp-md);
}

.article-body ul {
    list-style: disc;
    padding-left: var(--sp-xl);
    margin-bottom: var(--sp-md);
}

.article-body ul li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--sp-xs);
}

.article-body a { color: var(--link); }
.article-body a:hover { color: var(--link-active); text-decoration: underline; }

.article-related {
    margin-top: var(--sp-xxl);
    padding-top: var(--sp-lg);
    border-top: 1px solid var(--hairline);
    font-size: 14px;
}

.article-sidebar { position: sticky; top: 80px; }

.sidebar-card {
    background: var(--surface-soft);
    border-radius: var(--r-md);
    padding: var(--sp-lg);
    margin-bottom: var(--sp-md);
    border: 1px solid var(--hairline);
}

.sidebar-card.mint   { background: var(--sig-mint);   border-color: transparent; }
.sidebar-card.peach  { background: var(--sig-peach);  border-color: transparent; }
.sidebar-card.yellow { background: var(--sig-yellow); border-color: transparent; }

.sidebar-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--sp-md);
}

.sidebar-card ul li { margin-bottom: var(--sp-xs); }

.sidebar-card ul li a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.sidebar-card ul li a:hover { color: var(--link); }

.page-main { padding: var(--sp-sec) 0; }

.page-layout { max-width: 800px; }

.page-layout h1 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--sp-xxl);
}

.page-layout h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--sp-xxl) 0 var(--sp-md);
}

.page-layout p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: var(--sp-md);
}

.page-layout address {
    font-size: 15px;
    line-height: 1.8;
    color: var(--body);
    margin-bottom: var(--sp-xl);
}

.page-layout a { color: var(--link); }
.page-layout a:hover { color: var(--link-active); text-decoration: underline; }

.text-link { color: var(--link); font-size: 14px; }

@media (max-width: 1024px) {
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--sp-md); }

    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: var(--sp-md) var(--sp-lg);
        z-index: 99;
    }

    .main-nav.open { display: block; }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-md);
    }

    .hero-inner h1 { font-size: 28px; }
    .hero-sub { font-size: 16px; }

    .article-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: var(--sp-xl); }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-md);
        left: var(--sp-md);
        right: var(--sp-md);
        bottom: var(--sp-md);
    }

    .article-header h1 { font-size: 28px; }
    .page-layout h1 { font-size: 28px; }
    .section-title { font-size: 24px; }
    .signature-forest-card h2 { font-size: 24px; }
    .hero-card-dark h2 { font-size: 24px; }
}
