/* BASE & TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #000000;
    --primary-hover: #171717;
    --accent: #4ade80; /* GridLogic Green-400 accent */
    --accent-dark: #22c55e;
    --accent-soft: #f0fdf4;
    --text-main: #374151;
    --text-muted: #6b7280;
    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --border: #eaeaea;
    --border-dark: #d1d5db;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0284c7;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 45px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: var(--bg-body); color: var(--primary); overflow-x: hidden; }

/* GLOBAL HEADER & NAV */
.global-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    display: flex;
    justify-content: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 200;
    transition: all 0.3s ease;
}

.global-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.global-header nav {
    width: 90%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.global-header nav .nav-logo a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.accent-dot {
    color: var(--accent);
    display: inline-block;
}

.global-header nav .nav-links ul {
    display: flex;
    column-gap: 32px;
    list-style-type: none;
    align-items: center;
}

.global-header nav .nav-links ul li a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.global-header nav .nav-links ul li a:hover,
.global-header nav .nav-links ul li a.active {
    color: #000;
}

.nav-sister-tag {
    background: #ecfeff;
    color: #0891b2;
    border: 1px solid #cffafe;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.nav-sister-tag:hover {
    background: #0891b2;
    color: #ffffff !important;
    border-color: #0891b2;
    transform: translateY(-1px);
}

/* BUTTONS */
a.product-link, button.product-link {
    background: #000;
    padding: 12px 24px;
    color: #fff !important;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform;
}

a.product-link span { color: #9ca3af; transition: color 0.3s ease; }
a.product-link:hover { 
    background: var(--primary-hover); 
    border-color: var(--accent); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.25); 
}
a.product-link:hover span { color: var(--accent); }

/* MEGAMENU */
.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: 3px solid #000;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1.4fr;
    gap: 35px;
    z-index: 100;
}

.megamenu::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
}

.megamenu-column h4 {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.megamenu-column ul { display: flex; flex-direction: column; gap: 10px; align-items: flex-start !important; }
.megamenu-column ul li { width: 100%; }
.megamenu-column ul li a {
    color: #000 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 10px;
    margin-left: -10px;
    border-radius: var(--radius-sm);
    display: block;
    transition: all 0.2s ease !important;
}
.megamenu-column ul li a:hover { background: #f8fafc; transform: translateX(3px); }
.megamenu-column ul li p { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 400; }

.megamenu-featured {
    background: #000;
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-md);
}

.megamenu-featured::after {
    content: ''; position: absolute; top: 0; right: 0; width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(74,222,128,0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%; transform: translate(25%, -25%);
}

.megamenu-featured h5 { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.megamenu-featured p { color: #9ca3af; font-size: 13px; line-height: 22px; margin-bottom: 20px; }
.megamenu-featured .btn {
    background: #fff; color: #000; padding: 9px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; width: fit-content; transition: all 0.2s; z-index: 1;
}
.megamenu-featured .btn:hover { background: var(--accent); transform: translateX(3px); }

.global-header nav .nav-mobile-menu-btn { cursor: pointer; display: none; }

/* MOBILE NAV */
nav.mobile-menu {
    width: 280px; position: fixed; height: 100vh; background: #fff; padding: 30px; display: none; z-index: 1000; box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}
nav.mobile-menu.active { display: block; }
nav.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
nav.mobile-menu ul li a { text-decoration: none; color: #000; font-weight: 500; font-size: 17px; }

/* MAIN LAYOUT */
main { width: 100%; display: flex; flex-direction: column; align-items: center; }

.section-container {
    width: 90%;
    max-width: 1400px;
    padding: 85px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* HERO SECTION */
@keyframes greenMeshFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section {
    background: linear-gradient(-45deg, #ffffff, #f0fdf4, #dcfce7, var(--accent));
    background-size: 350% 350%;
    animation: greenMeshFlow 14s ease infinite;
    border-bottom: 1px solid var(--border);
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 170px 0 110px 0;
    text-align: center;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0) 65%);
    pointer-events: none;
}

.hero-content {
    width: 90%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.hero-badge-pill {
    width: 8px;
    height: 8px;
    background: var(--accent-dark);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}

.hero-title {
    font-size: 54px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--primary);
}

.hero-desc {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-main);
    max-width: 680px;
}

/* SASSY SYSTEM COMPONENTS */
.sassy-btn {
    background: var(--primary); 
    color: #fff !important; 
    padding: 12px 24px; 
    border-radius: var(--radius-md); 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 500; 
    border: 1px solid var(--primary); 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    will-change: transform;
}
.sassy-btn:hover { 
    background: var(--primary-hover); 
    border-color: var(--accent); 
    color: var(--accent) !important; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 15px rgba(74, 222, 128, 0.2); 
}
.sassy-btn-outline { 
    background: #ffffff; 
    color: var(--primary) !important; 
    border-color: var(--border-dark); 
}
.sassy-btn-outline:hover { 
    background: #000000; 
    color: #ffffff !important; 
    border-color: #000000; 
}
.sassy-btn-ghost { background: transparent; color: var(--text-main) !important; border-color: transparent; }
.sassy-btn-ghost:hover { background: #f4f4f5; color: var(--primary) !important; }

.sassy-badge { 
    padding: 4px 10px; 
    border-radius: var(--radius-sm); 
    font-size: 11px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    display: inline-flex; 
    align-items: center;
    gap: 4px;
}
.badge-default { background: #f3f4f6; color: var(--text-main); }
.badge-primary { background: var(--accent); color: #000000; }
.badge-success { background: #dcfce7; color: var(--success); }

/* GRID CARDS */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    width: 100%;
}

.sassy-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    row-gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.sassy-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-md); 
    border-color: #d1d5db; 
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: #000000;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.sassy-card h4 { font-size: 19px; color: var(--primary); font-weight: 600; }
.sassy-card p { color: var(--text-main); font-size: 14px; line-height: 24px; flex-grow: 1; }

.tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.sassy-tag { 
    background: #f4f4f5; 
    color: var(--text-main); 
    padding: 5px 11px; 
    border-radius: var(--radius-sm); 
    font-size: 12px; 
    font-weight: 500; 
    transition: background 0.2s ease; 
}
.sassy-card:hover .sassy-tag { background: #eaeaea; }

/* TABS */
.sassy-tabs-header { 
    display: flex; 
    gap: 24px; 
    border-bottom: 1px solid var(--border); 
    margin-bottom: 24px; 
    overflow-x: auto; 
    white-space: nowrap; 
    padding-bottom: 4px;
}
.sassy-tab { 
    padding: 10px 0; 
    font-size: 15px; 
    font-weight: 500; 
    color: var(--text-muted); 
    cursor: pointer; 
    border-bottom: 2px solid transparent; 
    transition: all 0.2s; 
}
.sassy-tab:hover { color: var(--primary); }
.sassy-tab.active { color: var(--primary); border-color: var(--accent); font-weight: 600; }
.sassy-tab-content { font-size: 14px; color: var(--text-main); line-height: 25px; }

/* FORMS */
.sassy-form-group { display: flex; flex-direction: column; gap: 7px; width: 100%; margin-bottom: 18px; }
.sassy-label { font-size: 13px; font-weight: 600; color: var(--text-main); }
.sassy-input, .sassy-textarea, .sassy-select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border-dark); border-radius: var(--radius-md); font-family: inherit; font-size: 14px; color: var(--primary); outline: none; transition: border-color 0.2s; background: var(--bg-surface);
}
.sassy-input:focus, .sassy-textarea:focus, .sassy-select:focus { 
    border-color: #000; 
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); 
}

.sassy-check-label { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-main); cursor: pointer; }
.sassy-checkbox { width: 17px; height: 17px; accent-color: #000; cursor: pointer; }

/* DIALOG / MODAL */
.sassy-dialog-overlay { 
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(4px); 
    display: flex; align-items: center; justify-content: center; 
    z-index: 1000; 
}
.sassy-dialog { 
    background: var(--bg-surface); 
    width: 90%; max-width: 520px; 
    border-radius: var(--radius-lg); 
    padding: 32px; 
    box-shadow: var(--shadow-lg); 
}
.sassy-dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sassy-dialog-title { font-size: 19px; font-weight: 600; }
.sassy-dialog-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); }
.sassy-dialog-body { font-size: 14px; color: var(--text-main); margin-bottom: 24px; line-height: 24px; }
.sassy-dialog-footer { display: flex; justify-content: flex-end; gap: 10px; }

/* SECTION HEADERS */
.section-header { text-align: left; margin-bottom: 15px; }
.section-header h2 { font-size: 32px; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; margin-bottom: 10px; }
.section-header p { font-size: 15px; color: var(--text-main); max-width: 720px; line-height: 24px; }

.two-col-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

/* FOOTER */
footer { width: 100%; display: flex; justify-content: center; border-top: 1px solid var(--border); background: var(--bg-surface); margin-top: 80px; }
footer .footer-main { width: 90%; max-width: 1400px; padding: 60px 0 30px 0; display: flex; flex-direction: column; row-gap: 35px; }
footer .footer-content, footer .footer-text { width: 100%; display: flex; justify-content: space-between; }
footer .footer-links ul { display: flex; column-gap: 28px; list-style: none; }
footer .footer-logo a { text-decoration: none; color: #000; font-weight: 700; font-size: 22px; letter-spacing: -0.5px; }
footer .footer-links ul li a, 
footer .footer-text p, 
footer .footer-text a { text-decoration: none; color: #6b7280; font-weight: 500; font-size: 14px; transition: color 0.2s ease; }
footer .footer-links ul li a:hover, 
footer .footer-text a:hover { color: #000; }
footer .footer-text { justify-content: space-between; border-top: 1px solid var(--border); padding-top: 25px; margin-top: 15px; }

@media (max-width: 1024px) {
    .two-col-layout { grid-template-columns: 1fr; gap: 35px; }
    .hero-title { font-size: 42px; }
}

@media (max-width: 768px) {
    .global-header nav .nav-mobile-menu-btn { display: block; background: none; border: none; font-size: 22px; }
    .global-header nav .nav-links { display: none; }
    .megamenu { display: none !important; }
    footer .footer-content { flex-direction: column; row-gap: 25px; }
    footer .footer-links ul { flex-direction: column; gap: 12px; }
    footer .footer-text { flex-direction: column; gap: 15px; text-align: center; align-items: center; }
    .hero-title { font-size: 34px; }
    .section-header h2 { font-size: 26px; }
}
