/* No sidebars, no search, no mobile menu. */
.md-sidebar,
.md-search__inner,
.md-header__button.md-icon[for="__search"],
.md-header__button.md-icon[for="__drawer"] {
    display: none !important;
}

/*
Make the effective height of search zero to not interfere with the
absolutely-positioned top nav links.
*/
.md-search {
    padding: 0;
}

/*
Show top-level nav.
*/
@media screen and (min-width: 60em) {
    .md-header__button.md-logo-text {
        display: block;
    }
}

.md-header__inner.md-grid {
    padding-right: 0.2rem;
}

@media screen and (max-width: 60em) {
    nav.nav-home {
        justify-content: left;
        padding-left: 0.8rem;
    }
}

nav.nav-home {
    display: flex;
}

/* No duplicative title */
div.md-header__title--active > div.md-header__ellipsis {
    display: none;
}

/* Full width, full height */
.md-content {
    margin: 0;
}

article.md-content__inner p {
    margin: 0;
}

article.md-content__inner {
    margin: 0 !important;
}
div.md-main__inner.md-grid {
    margin: 0;
    max-width: unset !important;
}

/* No title, no feedback */
article.md-content__inner > h1,
article.md-content__inner::before,
form.md-feedback {
    display: none;
}

@media (min-width: 1600px) {
    .hero .subtitle {
        max-width: 968px;
    }

    .hero-code {
        max-width: 1089px;
    }
}

/* Hero Section */
.hero {
    padding: 3.2rem 0.6rem;
    color: white;
    text-align: center;
    background: #3e3e3e;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #f0f0f0;
}

.hero .subtitle {
    font-size: 1rem;
    margin-bottom: 1.6rem;
    color: #e0e0e0;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.hero-code {
    background: rgb(38, 40, 42);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.6rem;
    margin: 2.4rem auto;
    max-width: 990px;
    border: 1px solid #3c3c3c;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-code::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(90deg, #0e5df5, #55bcf9, #6a01ff, #1972ca);
    background-size: 400% 100%;
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    padding-top: 0.8rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot:nth-child(1) {
    background: #ff5f56;
}
.code-dot:nth-child(2) {
    background: #ffbd2e;
}
.code-dot:nth-child(3) {
    background: #27ca3f;
}

.code-filename {
    margin-left: auto;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
}

.md-typeset pre {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.md-typeset pre > code {
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-size: 0.72rem !important;
    line-height: 1.5 !important;
}

/* Dark mode syntax highlighting overrides */
.hero-code code {
    color: #d4d4d4 !important;
    background: rgb(38, 40, 42);
}

.hero-code .token.keyword {
    color: #569cd6 !important;
}

.hero-code .token.string {
    color: #ce9178 !important;
}

.hero-code .token.comment {
    color: #6a9955 !important;
}

.hero-code .token.number {
    color: #b5cea8 !important;
}

.hero-code .token.punctuation {
    color: #d4d4d4 !important;
}

.hero-code .token.property {
    color: #9cdcfe !important;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #0e5df5, #1972ca);
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 1.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 93, 245, 0.4);
    border: 2px solid #1972ca;
}
@media screen and (max-width: 60em) {
    .cta-button {
        width: 100%;
    }
}

a.cta-button {
    color: white !important;
    text-decoration: none !important;
}

.cta-button:hover {
    /* transform: translateY(-2px) */
    box-shadow: 0 8px 25px rgba(14, 93, 245, 0.6);
    background: linear-gradient(45deg, #1972ca, #0e5df5);
}

/* Features Section */
.features {
    background: white;
    padding: 2.4rem 0;
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: #2c2c2c;
}

.features-subtitle {
    text-align: center;
    font-size: 0.88rem;
    color: #5c5c5c;
    margin-bottom: 3.2rem;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    margin: 3.2rem 0;
    padding: 0 0.6rem;
}
@media screen and (max-width: 60em) {
    .features-grid {
        margin: 0;
    }
}

@media screen and (max-width: 60em) {
    .features-grid {
        display: block;
    }
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(14, 93, 245, 0.1);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card p {
    min-height: 80px;
}

@media screen and (max-width: 60em) {
    .feature-card p {
        min-height: 0;
    }

    .feature-card {
        margin-bottom: 2.4rem;
    }

    .feature-card:last-of-type {
        margin-bottom: 0;
    }
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(14, 93, 245, 0.15);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #0e5df5, #55bcf9);
}

.feature-card:nth-child(2)::before {
    background: linear-gradient(45deg, #55bcf9, #0e5df5);
}

.feature-card:nth-child(3)::before {
    background: linear-gradient(45deg, #0e5df5, #55bcf9);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(45deg, #0e5df5, #55bcf9);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    flex-grow: 0;
}

.feature-icon .material-icons {
    font-size: 48px;
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(45deg, #55bcf9, #0e5df5);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(45deg, #0e5df5, #55bcf9);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #2c2c2c;
}

.feature-card p {
    color: #5c5c5c;
    margin-bottom: 1.6rem;
    line-height: 1.7;
}

.feature-button {
    display: inline-block;
    background: linear-gradient(45deg, #0e5df5, #55bcf9);
    color: white;
    margin-top: 1.2rem;
    padding: 0.64rem 1.44rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 93, 245, 0.3);
    border: 2px solid #1972ca;
}
@media screen and (max-width: 60em) {
    .feature-button {
        width: 100%;
    }
}

a.feature-button {
    color: white !important;
    text-decoration: none !important;
}

.feature-button:hover,
.integration-dropdown:hover {
    background: linear-gradient(45deg, #55bcf9, #0e5df5);
    box-shadow: 0 8px 25px rgba(14, 93, 245, 0.4);
}

.feature-button:hover {
    box-shadow: 0 8px 25px rgba(85, 188, 249, 0.4);
}

.integration-selector {
    margin-top: 1.2rem;
}

.integration-dropdown {
    width: 100%;
    background: linear-gradient(45deg, #0e5df5, #55bcf9);
    color: white;
    border: 2px solid #1972ca;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(85, 188, 249, 0.3);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.7216rem 1.44rem;
    text-align: center;

    display: flex;
    align-items: center;
}

.integration-dropdown:focus {
    outline: none;
    box-shadow: 0 8px 25px rgba(14, 93, 245, 0.4);
}

.integration-dropdown optgroup {
    background: white;
    color: #2c2c2c;
    font-weight: 600;
    padding: 0.4rem;
}

.integration-dropdown option {
    background: white;
    color: #2c2c2c;
    padding: 0.4rem;
    font-weight: 400;
}

.integration-dropdown option:hover,
.integration-dropdown option:checked {
    background: #f8f9fa;
}
