/**
 * simple-prop.css — Design transfer from simple-prop.io
 * Dark theme with grey accent (#9CA3AF)
 */

/* ============================================================
   GLOBAL BODY & BASE
   ============================================================ */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: var(--header-height);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header-logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Nav */
.nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: #14161a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    z-index: var(--z-dropdown);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-link small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Header CTA */
.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    background: var(--color-primary);
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    flex-shrink: 0;
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(156, 163, 175, 0.4);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 290;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(320px, 85vw);
    background: #0d0e10;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 295;
    overflow-y: auto;
    transition: right var(--transition-slow);
    padding-bottom: 2rem;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1rem 0.5rem;
    height: var(--header-height);
    align-items: center;
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.mobile-nav-close svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mobile-nav-links {
    padding: 0.5rem 1rem;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-primary);
}

.mobile-nav-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    fill: currentColor;
}

.mobile-nav-item.open .mobile-nav-link svg {
    transform: rotate(180deg);
}

.mobile-nav-dropdown {
    display: none;
    padding: 0 0.5rem 0.75rem 1rem;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-item.open .mobile-nav-dropdown {
    display: flex;
}

.mobile-nav-dropdown a,
.mobile-nav-all {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav-dropdown a:hover,
.mobile-nav-all:hover,
.mobile-nav-dropdown a.active,
.mobile-nav-all.active {
    color: var(--color-primary);
    background: rgba(156, 163, 175, 0.08);
}

.mobile-nav-cta {
    margin: 1rem 0.5rem 0;
    display: block;
    padding: 0.875rem 1.5rem;
    background: var(--color-primary);
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    text-align: center;
    transition: background var(--transition-fast);
}

.mobile-nav-cta:hover {
    background: var(--color-primary-light);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    min-height: 44px;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(156, 163, 175, 0.4);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.page-wrapper {
    overflow-x: hidden;
    width: 100%;
}

.sp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg);
    padding: calc(var(--header-height) + 2rem) 0 4rem;
    width: 100%;
    max-width: 100vw;
}

.sp-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 60% at 50% 85%, rgba(156, 163, 175, 0.32) 0%, rgba(156, 163, 175, 0.12) 35%, transparent 65%);
    pointer-events: none;
}

.sp-hero-glow2 {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 40% at 50% 100%, rgba(156, 163, 175, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.sp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
}

.sp-hero-title {
    font-size: clamp(1.75rem, 5vw, 4.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.sp-hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 560px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: break-word;
    word-break: break-word;
}

.sp-hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.sp-hero-img-wrap {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
}

.sp-hero-img-frame {
    background: #111216;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.sp-hero-img-bar {
    background: #1a1d23;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-hero-img-dots {
    display: flex;
    gap: 6px;
}

.sp-hero-img-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sp-hero-img-dots span:nth-child(1) { background: #ff5f57; }
.sp-hero-img-dots span:nth-child(2) { background: #febc2e; }
.sp-hero-img-dots span:nth-child(3) { background: #28c840; }

.sp-hero-img-url {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.5rem;
}

.sp-hero-img-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   KEEP IT SIMPLE SECTION
   ============================================================ */
.sp-simple-section {
    padding: 5rem 0;
    background: var(--color-bg);
}

.sp-simple-card {
    max-width: 820px;
    margin: 0 auto;
    background: #0f2718;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(34, 197, 94, 0.15);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sp-simple-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent);
}

.sp-simple-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.sp-simple-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.sp-simple-card .sp-simple-lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.5rem;
}

.sp-simple-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}

/* Decorative plus/cross icons */
.sp-deco-cross {
    position: absolute;
    color: rgba(255, 255, 255, 0.12);
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: none;
}

/* ============================================================
   EXPLORE SYSTEM SECTION
   ============================================================ */
.sp-explore-section {
    padding: 5rem 0;
    background: var(--color-bg);
}

.sp-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sp-section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.sp-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.sp-section-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tabs */
.sp-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.sp-tab {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-base);
}

.sp-tab.active,
.sp-tab:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* Feature Cards */
.sp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.sp-feature-card {
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color var(--transition-base), transform var(--transition-base);
    cursor: pointer;
}

.sp-feature-card:hover {
    border-color: rgba(156, 163, 175, 0.3);
    transform: translateY(-4px);
}

.sp-feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.sp-feature-card-body {
    padding: 1.25rem;
}

.sp-feature-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(156, 163, 175, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    color: var(--color-primary);
}

.sp-feature-card-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.sp-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.sp-feature-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ============================================================
   SPLIT FEATURE SECTIONS
   ============================================================ */
.sp-split-section {
    padding: 5rem 0;
    background: var(--color-bg-section);
}

.sp-split-section:nth-child(even) {
    background: var(--color-bg);
}

.sp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.sp-split.reverse {
    direction: rtl;
}

.sp-split.reverse > * {
    direction: ltr;
}

.sp-split-text {}

.sp-split-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.sp-split-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: rgba(156, 163, 175, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.sp-split-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.sp-split-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.sp-split-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.sp-split-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.sp-split-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.sp-split-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(156, 163, 175, 0.15);
    border: 1.5px solid rgba(156, 163, 175, 0.4);
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23e76a32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.sp-split-img {
    position: relative;
}

.sp-split-img-frame {
    background: #111216;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.sp-split-img-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.sp-stats-section {
    padding: 4rem 0;
    background: #0d0e10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.sp-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.sp-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.sp-categories-section {
    padding: 5rem 0;
    background: var(--color-bg);
}

.sp-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.sp-cat-card {
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
}

.sp-cat-card:hover {
    border-color: rgba(156, 163, 175, 0.3);
    background: rgba(156, 163, 175, 0.04);
    transform: translateY(-2px);
}

.sp-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(156, 163, 175, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.sp-cat-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.sp-cat-info {}

.sp-cat-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.sp-cat-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   ARTICLES / LATEST POSTS
   ============================================================ */
.sp-articles-section {
    padding: 5rem 0;
    background: var(--color-bg-section);
}

.sp-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.sp-article-card {
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
}

.sp-article-card:hover {
    border-color: rgba(156, 163, 175, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.sp-article-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #1a1d23;
}

.sp-article-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sp-article-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 0.625rem;
    flex: 1;
}

.sp-article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.75rem;
}

.sp-article-arrow {
    margin-left: auto;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 700;
}

/* ============================================================
   CAROUSEL / KEYWORDS
   ============================================================ */
.sp-carousel-section {
    padding: 3rem 0;
    overflow: hidden;
    background: var(--color-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.carousel-section {
    background: var(--color-bg);
    padding: 3rem 0;
    overflow: hidden;
}

.kw-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.kw-pill:hover {
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.3);
    color: var(--color-primary);
}

/* ============================================================
   TAGS SECTION
   ============================================================ */
.tags-section {
    padding: 4rem 0;
    background: var(--color-bg);
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.tag-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tag-card:hover {
    border-color: rgba(156, 163, 175, 0.3);
    color: var(--color-primary);
    background: rgba(156, 163, 175, 0.06);
}

.tag-card-featured {
    background: #1a1d23;
    border-color: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.tag-card-icon {
    display: flex;
    align-items: center;
    color: var(--color-primary);
}

.tag-card-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.tag-card-count {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   SEO CONTENT
   ============================================================ */
.seo-content {
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.seo-content p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 340px;
}

.footer-brand .header-logo {
    display: inline-flex;
    margin-bottom: 0.5rem;
}

.footer-brand .header-logo-text {
    color: #ffffff;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom > p:last-child {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   PAGE HERO (INTERNAL PAGES)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, #0a0b0d 0%, #111216 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(156, 163, 175, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.page-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-breadcrumb a,
.page-breadcrumb span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.page-breadcrumb a:hover {
    color: var(--color-primary);
}

.page-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.2);
}

.page-breadcrumb .current {
    color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2.5rem var(--container-padding);
}

.article-main {}

.article-content {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
}

.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }

.article-content p { margin-bottom: 1.25rem; }

.article-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.article-content th,
.article-content td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.article-content th {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.article-content td {
    color: rgba(255, 255, 255, 0.6);
}

.article-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Article sidebar */
.article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    align-self: start;
}

.sidebar-widget {
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.sidebar-widget-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    line-height: 1.4;
}

.sidebar-links a:hover {
    background: rgba(156, 163, 175, 0.08);
    color: var(--color-primary);
}

/* ============================================================
   CATEGORY / LIST PAGES
   ============================================================ */
.list-page-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2.5rem var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
}

.list-page-main {}

.sp-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.sp-list-card {
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
}

.sp-list-card:hover {
    border-color: rgba(156, 163, 175, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.sp-list-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background: #1a1d23;
}

.sp-list-card-body {
    padding: 1.25rem;
    flex: 1;
}

.sp-list-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.sp-list-card-arrow {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Pagination */
.sp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.sp-pagination a,
.sp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    background: #111216;
    transition: all var(--transition-fast);
}

.sp-pagination a:hover {
    border-color: rgba(156, 163, 175, 0.3);
    color: var(--color-primary);
}

.sp-pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem var(--container-padding);
}

.sp-form {
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.sp-form-group {
    margin-bottom: 1.25rem;
}

.sp-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.sp-form-input,
.sp-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.sp-form-input:focus,
.sp-form-textarea:focus {
    outline: none;
    border-color: rgba(156, 163, 175, 0.4);
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

.sp-form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.sp-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem var(--container-padding);
}

.sp-404-num {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.sp-404-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.sp-404-desc {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ============================================================
   SECTION UTILITY
   ============================================================ */
.section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: var(--z-modal-backdrop);
    display: none;
    backdrop-filter: blur(4px);
}

.modal-overlay.active { display: block; }

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    z-index: var(--z-modal);
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    width: min(680px, 92vw);
    max-height: 80vh;
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-base);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
}

.modal.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-close svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-body h2, .modal-body h3 {
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .sp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sp-split.reverse {
        direction: ltr;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .list-page-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-main { display: none; }
    .header-cta { display: none; }
    .mobile-menu-toggle { display: flex; }

    .sp-hero {
        padding-top: calc(var(--header-height) + 1.5rem);
    }

    .sp-features-grid {
        grid-template-columns: 1fr;
    }

    .sp-articles-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sp-card-grid {
        grid-template-columns: 1fr;
    }

    .sp-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .sp-simple-card {
        padding: 2.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sp-split {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sp-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .sp-articles-grid {
        grid-template-columns: 1fr;
    }

    .sp-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sp-stat-number {
        font-size: 1.5rem;
    }

    .sp-categories-grid {
        grid-template-columns: 1fr;
    }
}
