body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    background-color: transparent;
    color: #000000;
    padding: 60px 20px 20px;
    text-align: center;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: inline-block;
    position: relative;
    margin: 0;
    padding-bottom: 8px;
    cursor: default;
}

h1::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

h1:hover::after {
    transform: scaleX(1);
}

h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    color: #111;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #222;
}

main {
    background-color: transparent;
    padding: 20px;
    width: 100%;
    max-width: 700px;
    margin-top: 0;
    box-shadow: none;
    border-radius: 0;
}

p {
    font-size: 1.125rem;
    color: #111;
}

a {
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration-thickness: 2px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

code-block {
    display: block;
    position: relative;
    background: #1e1e1e;
    border-radius: 12px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

code-block .copy-button {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

code-block .copy-button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

code-block .code-title {
    position: absolute;
    top: 16px;
    left: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    pointer-events: none;
}

code-block .copy-button:active {
    transform: translateY(0);
}

code-block pre {
    margin-top: 48px;
    margin-bottom: 0;
    padding: 12px 24px 24px 24px;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

code-block pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

code-block pre::-webkit-scrollbar-track {
    background: transparent;
}

code-block pre::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

code-block pre::-webkit-scrollbar-thumb:hover {
    background: #555;
}

code-block code {
    font-family: 'JetBrains Mono', monospace;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
}

x-warning {
    display: flex;
    align-items: flex-start;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-left: 4px solid #EF4444;
    border-radius: 12px;
    padding: 16px;
    margin: 2rem 0;
    color: #991B1B;
    font-family: 'Inter', sans-serif;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

x-warning svg {
    flex-shrink: 0;
    color: #EF4444;
    margin-top: 2px;
}

x-warning p {
    margin: 0;
    color: #991B1B;
    font-size: 1rem;
    line-height: 1.5;
}

x-note {
    display: flex;
    align-items: flex-start;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-left: 4px solid #3B82F6;
    border-radius: 12px;
    padding: 16px;
    margin: 2rem 0;
    color: #1E40AF;
    font-family: 'Inter', sans-serif;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

x-note svg {
    flex-shrink: 0;
    color: #3B82F6;
    margin-top: 2px;
}

x-note p {
    margin: 0;
    color: #1E40AF;
    font-size: 1rem;
    line-height: 1.5;
}

x-term {
    display: inline-block;
    border-bottom: 1px dashed #999;
    cursor: help;
    position: relative;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    color: #333;
    line-height: 1.2;
}

x-term::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

x-term:hover {
    color: #000;
    border-bottom-color: transparent;
}

x-term:hover::after {
    transform: scaleX(1);
}

x-term .term-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1e1e1e;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    width: max-content;
    max-width: 250px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    z-index: 100;
    text-align: center;
    font-weight: 400;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

x-term .term-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1e1e1e transparent transparent transparent;
}

x-term:hover .term-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

footer {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #eaeaea;
    width: 100%;
    max-width: 700px;
}
