@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800&display=swap');

:root {
    --primary-color: #047aed;
    --secondary-color: #1c3fa8;
    --dark-color: #002240;
    --light-color: #f4f4f4;
    --success-color: #5cb85c;
    --error-color: #d9534f;
    --border-color: #e5eaf2;
    --text-muted: #6b7280;
}

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #1a202c;
    line-height: 1.6;
}

ul { list-style-type: none; }

a {
    text-decoration: none;
    color: #1a202c;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 10px 0;
}

h2 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 10px 0;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: 0.875rem;
    font-weight: 600;
}

p {
    font-size: 0.9375rem;
    margin: 10px 0;
    color: #4a5568;
}

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

code, pre {
    background: #0f172a;
    color: #94a3b8;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    display: block;
    border-left: 3px solid var(--primary-color);
}

.navbar {
    background-color: var(--primary-color);
    color: #fff;
    height: 68px;
    box-shadow: 0 2px 12px rgba(4, 122, 237, 0.3);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    color: #fff;
}

.navbar ul {
    display: flex;
    gap: 4px;
}

.navbar a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    padding: 7px 14px;
    border-radius: 6px;
    transition: background 0.18s ease, color 0.18s ease;
    letter-spacing: 0.01em;
}

.navbar a:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.navbar .flex {
    justify-content: space-between;
}

.showcase {
    height: 430px;
    background: linear-gradient(135deg, #0570d8 0%, var(--primary-color) 60%, #1a8af5 100%);
    color: #fff;
    position: relative;
}

.showcase h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.showcase-text p {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin: 18px 0 24px;
    line-height: 1.7;
    max-width: 420px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.showcase .grid {
    overflow: visible;
    grid-template-columns: 55% 45%;
    gap: 30px;
}

.showcase-text {
    animation: slideInFromLeft 0.45s ease-out;
}

.showcase-form {
    position: relative;
    top: 60px;
    height: 360px;
    width: 400px;
    padding: 36px;
    z-index: 100;
    animation: slideInFromRight 0.45s ease-out;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
}

.showcase-form h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}

.showcase-form .form-control {
    margin: 22px 0;
}

.showcase-form input[type='text'],
.showcase-form input[type='email'] {
    border: 0;
    border-bottom: 1.5px solid #d1d9e6;
    width: 100%;
    padding: 6px 2px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: #1a202c;
    background: transparent;
    transition: border-color 0.2s;
}

.showcase-form input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.showcase-form input::placeholder {
    color: #a0aec0;
    font-size: 0.875rem;
}

.showcase::before,
.showcase::after {
    content: '';
    position: absolute;
    height: 100px;
    bottom: -70px;
    right: 0;
    left: 0;
    background: #fff;
    transform: skewY(-3deg);
    -webkit-transform: skewY(-3deg);
    -moz-transform: skewY(-3deg);
    -ms-transform: skewY(-3deg);
}

.stats .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats {
    display: flex;
    justify-content: center;
    padding-top: 100px;
    animation: slideInFromBottom 0.45s ease-out;
}

.stats-heading {
    font-size: 1rem;
    font-weight: 400;
    color: #718096;
    max-width: 520px;
    margin: auto;
    text-align: center;
    line-height: 1.65;
}

.stats .grid > div {
    padding: 20px 10px;
}

.stats .grid i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: block;
}

.stats .grid h3 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
}

.stats .grid p {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.cli .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.cli .grid > *:first-child {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

.cli .card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
}

.cli .card i {
    color: var(--primary-color);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cli .card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a202c;
}

.cloud .grid {
    grid-template-columns: 4fr 3fr;
}

.languages .flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 14px;
}

.languages .card {
    text-align: center;
    margin: 0;
    padding: 18px 12px;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.languages .card h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4a5568;
}

.languages .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 24px rgba(4,122,237,0.12);
}

.features-head img,
.docs-head img {
    width: 180px;
    justify-self: flex-end;
    opacity: 0.92;
}

.features-head p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.82);
    margin-top: 8px;
}

.features-sub-head {
    padding: 36px 0 32px;
    border-bottom: 1px solid var(--border-color);
}

.features-sub-head .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.features-sub-head h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    line-height: 1.25;
}

.features-sub-head p {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.75;
    margin: 0;
}

.features-sub-head .sub-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.features-sub-head .sub-image img {
    max-width: 280px;
    width: 100%;
}

.features-main .grid {
    padding: 40px 30px;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.features-main .card {
    padding: 28px 24px;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.features-main .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(4,122,237,0.1);
}

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-icon-wrap i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.features-main .card h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.features-main .card p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

.docs-head .grid {
    align-items: center;
}

.docs-head p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.82);
    margin-top: 8px;
}

.docs-main .grid {
    grid-template-columns: 1fr 2fr;
    align-items: flex-start;
    gap: 28px;
}

.docs-main h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 14px;
}

.docs-main h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.docs-main nav li {
    font-size: 0.875rem;
    font-weight: 400;
    padding-bottom: 7px;
    margin-bottom: 7px;
    border-bottom: 1px solid #e5eaf2;
}

.docs-main nav li a {
    color: #4a5568;
    transition: color 0.15s;
}

.docs-main nav li a:hover,
.docs-main a:hover {
    color: var(--primary-color);
    font-weight: 500;
}

.docs-main .card > ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
    font-size: 0.875rem;
    color: #4a5568;
}

.docs-main .card > p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.7;
}

.docs-main .card pre {
    margin: 6px 0 14px;
}

.docs-head img {
    max-width: 170px;
    justify-self: flex-end;
}

.footer h1 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.25px;
    margin-bottom: 6px;
}

.footer p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.footer nav ul li {
    margin-bottom: 8px;
}

.footer nav ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.15s;
}

.footer nav ul li a:hover {
    color: #fff;
}

.footer .social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer .social a {
    color: rgba(255,255,255,0.55);
    font-size: 1.1rem;
    transition: color 0.15s, transform 0.15s;
}

.footer .social a:hover {
    color: #fff;
    transform: translateY(-2px);
}

@keyframes slideInFromRight {
    0%   { transform: translateX(60px); opacity: 0; }
    100% { transform: translateX(0);    opacity: 1; }
}

@keyframes slideInFromLeft {
    0%   { transform: translateX(-60px); opacity: 0; }
    100% { transform: translateX(0);     opacity: 1; }
}

@keyframes slideInFromTop {
    0%   { transform: translateY(-60px); opacity: 0; }
    100% { transform: translateY(0);     opacity: 1; }
}

@keyframes slideInFromBottom {
    0%   { transform: translateY(60px); opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .showcase-form {
        width: 300px;
        padding: 24px;
        height: auto;
    }
    .showcase h1 { font-size: 1.85rem; }
    .showcase-text p { font-size: 0.9rem; }
    .languages .flex { grid-template-columns: repeat(4, 1fr); }
    .features-main .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid,
    .showcase .grid,
    .stats .grid,
    .cli .grid,
    .cloud .grid,
    .docs-main .grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .features-main .grid {
        grid-template-columns: 1fr;
        padding: 20px 16px;
    }

    .features-sub-head .container {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .features-sub-head .sub-image {
        order: -1;
    }

    .languages .flex { grid-template-columns: repeat(4, 1fr); }
    .languages .card { margin: 0; }

    .showcase { height: auto; }

    .showcase-text {
        text-align: center;
        margin-top: 40px;
        animation: slideInFromTop 0.45s ease-out;
    }

    .showcase-text p { max-width: 100%; }

    .showcase-form {
        width: 100%;
        max-width: 400px;
        top: 0;
        height: auto;
        padding: 24px;
        justify-self: center;
        margin: 20px auto;
        animation: slideInFromBottom 0.45s ease-out;
    }

    .cli .grid > *:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .features-head,
    .docs-head { text-align: center; }

    .features-head img,
    .docs-head img { justify-self: center; }

    .features-head .grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .docs-head .grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .docs-head img {
        max-width: 120px;
        margin: 10px auto;
    }
}

@media (max-width: 500px) {
    .navbar { height: 110px; }
    .navbar .flex { flex-direction: column; }
    .navbar ul { padding: 10px; background-color: rgba(0,0,0,0.1); }
    .languages .flex { grid-template-columns: repeat(2, 1fr); }
}
