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

:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --primary: #f54e00;
    --primary-active: #d04200;
    --on-primary: #ffffff;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--canvas);
    color: var(--body);
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }

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

.rj-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
}

.rj-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.rj-nav__logo {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.rj-nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.rj-nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    transition: color 0.15s;
}

.rj-nav__links a:hover { color: var(--ink); }

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

.rj-nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.rj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.rj-btn--primary {
    background: var(--primary);
    color: var(--on-primary);
}

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

.rj-btn--secondary {
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
}

.rj-btn--secondary:hover { background: var(--canvas-soft); }

.rj-hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.rj-hero__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    padding: 4px 10px;
    border-radius: var(--rounded-pill);
    margin-bottom: 24px;
}

.rj-hero__h1 {
    font-size: 56px;
    font-weight: 400;
    letter-spacing: -1.2px;
    line-height: 1.1;
    color: var(--ink);
    max-width: 760px;
    margin-bottom: 20px;
}

.rj-hero__desc {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.rj-hero__img {
    margin-top: 48px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 480px;
    width: 100%;
    object-fit: cover;
}

.rj-section {
    padding: 80px 0;
}

.rj-section--alt {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
}

.rj-section__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.rj-section__h2 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 16px;
}

.rj-section__intro {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 48px;
}

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

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

.rj-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.15s;
}

.rj-card:hover { border-color: var(--hairline-strong); }

.rj-card--link { cursor: pointer; }
.rj-card--link:hover .rj-card__title { color: var(--ink); }

.rj-card__tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
}

.rj-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--body-strong);
    line-height: 1.4;
}

.rj-card__text {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    flex: 1;
}

.rj-card__img {
    border-radius: var(--rounded-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 8px;
}

.rj-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rj-card__meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: auto;
}

.rj-card__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-top: 8px;
    display: inline-block;
}

.rj-article {
    padding: 64px 0 80px;
}

.rj-article__header {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 40px;
}

.rj-article__tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    padding: 4px 10px;
    border-radius: var(--rounded-pill);
    display: inline-block;
    margin-bottom: 20px;
}

.rj-article__h1 {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 16px;
    max-width: 720px;
}

.rj-article__meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 0;
}

.rj-article__img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    margin-bottom: 40px;
    max-height: 440px;
}

.rj-article__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rj-article__body {
    max-width: 720px;
}

.rj-article__body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 40px 0 16px;
    line-height: 1.25;
}

.rj-article__body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
}

.rj-article__body p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.rj-article__body ul, .rj-article__body ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.rj-article__body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.rj-article__body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rj-article__body blockquote {
    border-left: 3px solid var(--hairline-strong);
    padding: 12px 20px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.rj-info-box {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 20px 24px;
    margin: 28px 0;
}

.rj-info-box__title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.rj-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--ink);
    overflow-x: auto;
    line-height: 1.5;
}

.rj-legend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 20px 0;
}

.rj-legend-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--hairline);
}

.rj-legend-table td {
    padding: 12px;
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--body);
    vertical-align: top;
}

.rj-legend-table tr:last-child td { border-bottom: none; }

.rj-zone-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--rounded-pill);
}

.rj-zone-a { background: #f9d9cc; color: #7a2d0e; }
.rj-zone-b { background: #fef3c7; color: #7a5c00; }
.rj-zone-c { background: #d1fae5; color: #064e3b; }

.rj-form-section {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 40px;
    max-width: 560px;
}

.rj-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.rj-form__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.rj-form__input {
    font-family: inherit;
    font-size: 15px;
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    height: 44px;
    width: 100%;
    outline: none;
    transition: border-color 0.15s;
}

.rj-form__input:focus { border-color: var(--ink); }

.rj-form__textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.rj-form__msg {
    font-size: 14px;
    margin-top: 12px;
    min-height: 20px;
}

.rj-form__msg--success { color: var(--semantic-success); }
.rj-form__msg--error   { color: var(--semantic-error); }

.rj-disclaimer {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 32px 0;
}

.rj-footer {
    border-top: 1px solid var(--hairline);
    padding-top: 64px;
    background: var(--canvas);
}

.rj-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.rj-footer__brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.rj-footer__tagline {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.rj-footer__heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.rj-footer__col {
    display: flex;
    flex-direction: column;
}

.rj-footer__col a {
    font-size: 14px;
    color: var(--body);
    margin-bottom: 8px;
    transition: color 0.15s;
}

.rj-footer__col a:hover { color: var(--ink); }

.rj-footer__bottom {
    border-top: 1px solid var(--hairline);
    padding: 20px 0;
}

.rj-footer__bottom .rj-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}

.rj-footer__bottom a { color: var(--muted); }
.rj-footer__bottom a:hover { color: var(--ink); }

.rj-cookie {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-lg);
    box-shadow: 0 2px 16px rgba(38,37,30,0.10);
    max-width: 520px;
    width: calc(100% - 48px);
}

.rj-cookie__inner {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rj-cookie__inner p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.rj-cookie__inner a { color: var(--primary); text-decoration: underline; }

.rj-cookie__btns {
    display: flex;
    gap: 12px;
}

.rj-page-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 48px;
}

.rj-page-hero__h1 {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 12px;
}

.rj-page-hero__sub {
    font-size: 16px;
    color: var(--body);
    max-width: 540px;
    line-height: 1.6;
}

.rj-page-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 40px 0 14px;
    line-height: 1.25;
}

.rj-page-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 10px;
}

.rj-page-body p {
    margin-bottom: 18px;
    line-height: 1.7;
}

.rj-page-body ul {
    padding-left: 20px;
    margin-bottom: 18px;
}

.rj-page-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.rj-page-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 1024px) {
    .rj-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .rj-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .rj-hero__h1 { font-size: 42px; }
}

@media (max-width: 768px) {
    .rj-nav__links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: 20px 24px;
    }
    .rj-nav__links--open { display: flex; }
    .rj-nav__burger { display: flex; }
    .rj-nav { position: relative; }
    .rj-grid-3, .rj-grid-2 { grid-template-columns: 1fr; }
    .rj-footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .rj-hero__h1 { font-size: 32px; letter-spacing: -0.5px; }
    .rj-hero { padding: 48px 0; }
    .rj-section { padding: 48px 0; }
    .rj-article__h1 { font-size: 28px; }
    .rj-form-section { padding: 24px; }
    .rj-footer__bottom .rj-container { flex-direction: column; gap: 8px; text-align: center; }
}
