@font-face {
    font-family: 'customfont';
    src: url('assets/font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html,
body,
.section-title {
    font-family: 'customfont', sans-serif !important;
    text-rendering: optimizeSpeed;
    letter-spacing: 1.5px !important;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand h1,
.section-heading,
nav a,
.button,
button,
footer {
    font-family: 'customfont', sans-serif !important;
    text-rendering: optimizeSpeed;
    letter-spacing: 1.5px !important;
}

:root {
    font-family: 'customfont', sans-serif !important;
    text-rendering: optimizeSpeed;
    letter-spacing: 1.5px !important;
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #475569;
    --card-bg: #d3d3d3;
    --card-border: rgba(148, 163, 184, 0.12);
    --nav-link: #334155;
}

* {
    box-sizing: border-box;
}

body.dark-mode {
    --bg-color: #262626;
    --text-color: #f5f5f5;
    --text-muted: #cbd5e1;
    --card-bg: #333333;
    --card-border: rgba(255, 255, 255, 0.1);
    --nav-link: #e2e8f0;
}

#theme-switch .light {
    display: none;
}

#theme-switch .dark {
    display: inline;
}

body.dark-mode #theme-switch .dark {
    display: none;
}

body.dark-mode #theme-switch .light {
    display: inline;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0s, color 0s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #924909;
    text-decoration: none;
}

header {
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}


header .brand img {
    height: 60px;
    width: auto;
}


.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    width: 50px;
    height: auto;
}

.brand h1 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

nav {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

nav a {
    font-size: 0.95rem;
    color: var(--nav-link);
}

.hero {
    padding: 64px 20px 48px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.hero-copy {
    max-width: 620px;
}

.hero-copy p {
    margin: 24px 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
}

.hero-copy h2 {
    margin: 0;
    font-size: clamp(2.6rem, 4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button-primary {
    background: #a04b00;
    color: white;
    box-shadow: 0 0 40px #a04b00;
}

.button-secondary {
    background: #CCAE88;
    color: #a04b00;
}

button {
    background: #CCAE88;
    color: #915f33;
}

.button:hover {
    transform: translateY(-5px);
}

button:hover {
    transform: translateY(-5px);
}

.hero-visual {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(180deg, #663307, white);
    padding: 28px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 35%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.14), transparent 30%);
    pointer-events: none;
}

.hero-code {
    position: relative;
    z-index: 1;
    background: #0f172a;
    border-radius: 22px;
    color: #e2e8f0;
    padding: 28px;
    font-family: "Fira Code", "JetBrains Mono", monospace;
    font-size: 0.95rem;
    white-space: pre;
    overflow-x: auto;
    min-height: 560px;
    margin: 0;
    max-width: 100%;
}

.hero-code span {
    display: inline;
}

/* code colorer */
.hero-code .comment {
    color: #94a3b8;
}

.hero-code .keyword {
    color: #ff9100;
}

.hero-code .str {
    color: #00ca00;
}

.hero-code .function {
    color: #00a2ff;
}

.hero-code .purp {
    color: #e280e2;
}

code {
    background: var(--card-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Table Layout and Background */
.docs-table {
    width: 100%;
    border-collapse: separate; /* Allows for smooth rounded corners */
    border-spacing: 0;
    margin: 32px 0;
    background-color: var(--card-bg); /* Uses your card background color */
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden; /* Keeps background colors inside the rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); /* Tiny shadow for depth */
}

/* Header Row (Distinctly Darker) */
.docs-table th {
    background-color: rgba(0, 0, 0, 0.06); /* Slightly darkens the header row */
    color: var(--text-color);
    font-weight: 600;
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid var(--card-border);
}

.docs-table td {
    padding: 16px;
    color: var(--text-color);
    border-bottom: 1px solid var(--card-border);
}

.docs-table tr:last-child td {
    border-bottom: none;
}

.docs-table tr:nth-child(even) td {
    background-color: rgba(0, 0, 0, 0.02);
}

body.dark-mode .docs-table th {
    background-color: rgba(255, 255, 255, 0.04);
}
body.dark-mode .docs-table tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.01);
}

.hero-code .num {
    color: #00ffea;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: #a04b00;
    font-weight: 700;
}

.section-heading {
    text-align: center;
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 10px auto 8px;
    max-width: 680px;
}

.section-copy {
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 1rem;
}

.grid {
    display: grid;
    gap: 24px;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid var(--card-border);
    transition: background-color 0s, border-color 0s;
    margin-top: 20px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
}

footer {
    padding: 100px 20px 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
}

.highlight {
    color: #2563eb;
    font-weight: 700;
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
    }

    .hero-copy {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-copy p {
        margin: 16px auto 0;
    }

    .hero-visual {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        box-sizing: border-box;
    }

    .hero-code {
        min-height: auto;
        padding: 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    nav {
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    nav a {
        font-size: 1.15rem !important;
        padding: 8px 12px;
        display: inline-block;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .button,
    button {
        width: 100%;
        font-size: 1rem !important;
        padding: 12px 20px;
        text-align: center;
    }
}