/* Reset + fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
}

/* Header */
header {
    background: #1e1e2f;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

header .logo {
    font-size: 1.8rem;
    font-weight: 700;
}

header nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Hero */
.hero {
    background: #4f46e5;
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    transition: ease-in-out 0.3s;
    background: #fff;
    color: #4f46e5;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    background: #a0a0ff;
    transition: ease-in-out 0.3s;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.container {
    width: 90%;
    margin: 0 auto;
}

pre {
    background: #eee;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
}

/* Features */
.features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.features ul li {
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

/* Footer */
footer {
    background: #1e1e2f;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Search page styles */
.search-box {
    width: 100%;
    max-width: 500px;
    padding: 1rem 1rem;
    margin: 2.5rem 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 100%;
    transition: border 0.2s, box-shadow 0.2s;
}

.search-box:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.3);
}

.api-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.api-item {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    transition: ease-in 0.25s;
}

.api-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #b1acff;
    transition: ease-in 0.25s;
}

.api-item a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    width: 100%;
}

/* Documentation content */
.section h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: #4f46e5;
}

.section p {
    margin: 0.75rem 0;
    max-width: 800px;
}

pre {
    background: #1e1e2f;
    color: #f8f8f2;
    padding: 1.2rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
}

code {
    background: #1e1e2f;
    color: #ffffff;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
}
