/* =============================================================
   1. GLOBAL ASSET & SCROLLBAR STYLES
   ============================================================= */

/* Noscript Image fallback */
noscript img {
    display: block; /* Remove tiny gap under image */
    width: 100%;
    height: 800px;
    object-fit: cover;
}

/* Custom Scrollbar for Code Blocks */
.code-block::-webkit-scrollbar {
    width: 6px;  /* Vertical scrollbar width */
    height: 6px; /* Horizontal scrollbar height */
}

.code-block::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03); /* Slightly lighter than background */
    border-radius: 10px;
}

.code-block::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15); /* Subtle white handle */
    border-radius: 10px;
    transition: background 0.3s ease;
}

.code-block::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25); /* More visible on hover */
}

.code-block::-webkit-scrollbar-corner {
    background: transparent;
}

/* =============================================================
   2. LAYOUT & CONTAINERS
   ============================================================= */

.content-relative {
    position: relative; /* Anchor for absolute positioned elements */
    flex-grow: 1;
    min-height: 4900px; /* Large height to accommodate absolute area */
    width: 100%;   
    box-sizing: border-box; 
    overflow-x: hidden;
}

section {
    padding: 0 2rem;
}

/* Section Anchor Offsets */
section[id] { 
    scroll-margin-top: 10rem; 
}
section#support { 
    scroll-margin-top: 0px; 
}

/* Main Container Styles */
.container-parents {  
    position: absolute; 
    top: 780px; 
    left: 50%; 
    transform: translateX(-50%);
    padding: 0 10rem;
    background: rgba(0, 0, 0, 0.6); 
    border-radius: 1.8rem;
    max-width: 144rem; 
    width: 100%;
}

.container { 
    margin: 0 auto; 
}

.textGroup { 
    margin-top: 12rem; 
}

.textGroup.center { 
    top: initial !important; 
    margin-top: 12rem; 
}

nav { 
    display: block; 
}

/* =============================================================
   3. TYPOGRAPHY
   ============================================================= */

h1 {
    font-family: "PlusJakartaSans Variable", sans-serif; 
    font-weight: 900;
    color: var(--color-primary);
}

h2 {
    font-family: "PlusJakartaSans Variable", sans-serif;
    font-weight: 700; 
    letter-spacing: .1rem;
    color: var(--color-secondary); 
    font-size: 3.8rem;
    text-align: center;
    margin: 4.4rem 0;
    margin-top: 6rem;
}

/* Subtitle under H2 */
h2 > span {
    display: block;
    font-size: 2rem; 
    font-weight: 400;
    color: #91918e; 
    margin-top: 1rem;
}

.sky-color h2 span {
    color: #8596a7;
}

h3 {
    font-family: "PlusJakartaSans Variable", sans-serif;
    font-weight: 700; 
    font-size: 2.2rem;
    margin: 1.5rem 0;
    color: var(--color-secondary);
}

h4 {
    font-size: 1.6rem; 
    margin: 0 0; 
    font-weight: 600;
    margin-top: 2rem;
}

h5 {
    font-size: 2rem; 
    margin: 1rem 0; 
    margin-top: 2rem;
}

a { 
    text-decoration: none; 
    color: var(--color-interactive); 
}

a:hover { 
    color: var(--color-interactive-hover); 
}

p { 
    font-size: 1.7rem; 
    font-weight: 300; 
    line-height: 180%; 
    color: #ececec; 
    margin: 0;
}

hr {
    border: 0;
    height: .1rem;
    background: #252525;
    margin: 9rem 0;
}

/* =============================================================
   4. STICKY HEADER & NAVIGATION
   ============================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.95); 
    padding: 1.5rem 0;
    z-index: 1000;
    box-shadow: 0 .2rem 8px rgba(0,0,0,0.5);
    font-size: 1.7rem;
}

.header .container {
    max-width: 144rem; 
    margin: auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.header .container .logo { 
    color: var(--color-text-light); 
    font-size: 2rem;  
    font-family: "PlusJakartaSans Variable"; 
    font-weight: 800;    
}

.header .container .logo span { 
    font-weight: 300; 
    padding-right: 10px; 
}

.header .container nav a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-left: 3rem;
    transition: color 0.3s;
}

.header .container nav a:hover {
    color: var(--color-interactive-hover);
}

/* Specialized Demo Links */
.demo-link-blue { color: #63b3ed !important; }
.demo-link-blue:hover { color: #6dc2ff !important; }

.demo-link-gold { color: #ddca74 !important; }
.demo-link-gold:hover { color: #ffe15d !important; }

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    z-index: 1001;
}

.menu-toggle .icon-bar {
    display: block;
    width: 2.5rem;
    height: .3rem;
    margin: .5rem 0;
    background-color: var(--color-text-light); 
    transition: all 0.3s ease;
}

/* =============================================================
   5. FEATURE GRID & COMPONENTS
   ============================================================= */

.support-section {
    padding-bottom: 8rem !important;
}

.support-section p { 
    font-weight: 500; 
    font-size: 1.8rem; 
}

.support-section .doc-link {
    padding-top: 3rem;
}

.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 7rem; 
    margin: 0 auto;
}

.feature-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 7rem; 
    margin: 0 auto;
}

/* Preset Item Thumbnails */
.preset-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.preset-item p {
    color: #797979; 
    font-weight: 500;
    line-height: 200%;
    padding-left: 1rem;
}

.sky-color .preset-item p {
    color: #8e98a0; 
    font-weight: 500;
    line-height: 200%;
    padding-left: 1rem;
}

/* =============================================================
   6. TABLES, LISTS & CODE BLOCKS
   ============================================================= */

.code-example-grid {
    display: flex;
    gap: 4rem;
    align-items: stretch;
}

.example-column {
    flex: 1;
    min-width: 0;
}

.example-column h4 { 
    margin-bottom: 1rem; 
}

.example-column p {
    font-size: 1.5rem;
    line-height: 130%;
}

table { 
    text-align: left; 
    font-family: "Inter var", sans-serif; 
    color: #bdbdb2; 
    margin-top: 2rem; 
    border-radius: 1rem; 
    background: #252525; 
    padding: 1rem; 
    width: 100%;
}

table thead th { 
    font-size: 1.4rem; 
    font-weight: 400; 
    padding-bottom: .8rem;
}

table tbody tr td { 
    font-size: 1.4rem; 
    padding: .6rem .2rem;
}

ul { 
    padding-left: 1.5rem; 
    color: #bdbdb2; 
}

ul li { 
    padding-bottom: 1rem; 
    font-size: 1.4rem; 
    line-height: 140%; 
}

ul li strong { 
    font-size: 1.4rem; 
}

li::marker {
    color: #888888; 
    font-size: 0.8em; 
    font-weight: normal;
    padding-right: 1rem;
}

code { 
    font-family: "Inter var", sans-serif; 
    color: #bdbdb2; 
}

pre.code-block {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 1.5rem;
    font-weight: 200 !important;
    background-color: #222;
    letter-spacing: -.01rem;
    word-spacing: -.05rem;
    padding: 20px;
    border-radius: 1rem;
    white-space: pre-wrap;
    line-height: 170%;
    overflow-y: auto;
    margin-top: 1.5rem;
    height: 43rem;
    color: #eaeae3;
}

/* Syntax Highlighting */
pre.code-block .annotation { 
    color: rgb(157, 172, 172);
    letter-spacing: -.1rem;
}

.path { 
    color: rgb(159, 233, 217); 
}

.identifier {
    color: rgb(245, 232, 116);
}

/* =============================================================
   7. FINAL CALL & FOOTER
   ============================================================= */

.support-section { 
    text-align: center; 
}

.cta-block {
    margin-bottom: 3rem;
}

.quick-start-box { 
    background: rgba(131, 141, 115, 0.1); 
    border-left: 5px solid var(--color-secondary); 
    padding: 2rem; 
    margin-bottom: 4rem; 
    border-radius: .4rem;
}

.quick-start-box > P { 
    margin: 0; 
    color: #fff; 
    line-height: 1.6;
}

footer {
    margin-top: auto; 
    padding: 3rem 0;
    background-color: #0d0d0da2;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* =============================================================
   8. RESPONSIVE QUERIES
   ============================================================= */

/* Tablet & Small Desktop (769px ~ 1024px) */
@media screen and (max-width: 1024px) {
    body { font-size: 0.95rem; word-spacing: initial; }
    .content-relative { min-height: none; }
     footer { display: none; }
    .hero { margin-top: 6rem; }
    .textGroup { top: initial !important; margin-top: 1rem; }
    .container-parents { width: 90%; top: 78rem !important; max-width: none; }
    .header .container .main-nav a { font-size: 1.4rem; margin-left: 1.5rem; }
    .main-nav .btn-buy { font-size: 1.4rem; padding: 1rem 1rem; }
    .feature-grid-2, .feature-grid-3 { grid-template-columns: 1fr; }

    .container-parents { 
        box-sizing: border-box !important;
        border-radius: 0 !important;
        width: 100% !important; top: 40rem !important;  
        max-width: 100%;
        padding: 0 1.6rem}    
}

/* Small Tablet (Max 900px) */
@media screen and (max-width: 900px) {     
    section { padding: 0 0; }
    pre.code-block { min-width: initial; }
    .content-relative { min-height: none; }
    footer { display: none; }
    .hero { margin-top: 8rem; }
    .textGroup { margin-top: 1rem; }
    .textGroup.center { margin-top: 3rem; }
    .container-parents { width: 90%; top: 48rem !important; max-width: none; }
    .textGroup .btn-buy { display: none; }
    .feature-grid-2, .feature-grid-3 { grid-template-columns: 1fr; }
    .code-example-grid { display: block; }
 
    /* Mobile Header & Menu */
    .header { width: 100%; box-sizing: border-box; }
    .header.height-full { height: 100vh; transition: height 0.4s ease-in-out; }
    .header .container { justify-content: space-between; width: 90%; }
    .main-nav.is-open { display: flex; }
    .main-nav {
        position: absolute; top: 80px; left: 0;
        display: flex; flex-direction: column;  
        padding: 0; 
        width: 100%; height: calc(100vh - 8rem);   
        box-sizing: border-box;
        display: none;
    }
    .header .container .main-nav a { font-size: 2rem; margin: 2rem; }    
    .header .container .main-nav .btn-buy { margin-top: auto; text-align: center; }

    /* Hamburger Animation States */
    .menu-toggle { display: block; }    
    .menu-toggle.is-active .icon-bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .icon-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .icon-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Mobile Portrait (Max 768px) */
@media screen and (max-width: 768px) {
    .w60 { width: initial !important; }

}